List products and services
Products and services you can put on an invoice, with price and tax.
GET https://cotlet.dev/api/v1/alegra/items
read
Lists your products and services with the default price and the tax each one carries. Use item_id as the item of an invoice line. A line may override the price, so the price here is the default only. Pass next_cursor back as cursor for the next page.
Parameters
| Name | Type | Description |
|---|---|---|
| query string | string | Part of the name or the reference. |
| limit integer | integer | Items per page. |
| cursor string | string | Next page cursor from the previous call. |
Request
curl https://cotlet.dev/api/v1/alegra/items \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("alegra", "list_items") const result = await cotlet.call('alegra', 'list_items'); cotlet call alegra list_items Example response
{
"items": [
{
"item_id": "12",
"name": "Landing page review",
"reference": "LPR-01",
"price": 400,
"tax": {
"tax_id": "3",
"name": "IVA 19%"
}
},
{
"item_id": "15",
"name": "Setup",
"reference": "SET-01",
"price": 150,
"tax": {
"tax_id": "3",
"name": "IVA 19%"
}
}
],
"next_cursor": null
}