List products
Products and services with ID, code, description, price and VAT code.
GET https://cotlet.dev/api/v1/e-boekhouden/products
read
Returns the product list so invoice lines can point to a product_id instead of retyping description and price. When a product ID is given on a line, the line code is ignored by e-Boekhouden.
Parameters
| Name | Type | Description |
|---|---|---|
| limit integer | integer | Number of items to return. |
| offset integer | integer | Number of items to skip, for the next page. |
Request
curl https://cotlet.dev/api/v1/e-boekhouden/products \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("e-boekhouden", "list_products") const result = await cotlet.call('e-boekhouden', 'list_products'); cotlet call e-boekhouden list_products Example response
{
"products": [
{
"product_id": 17,
"code": "CONS-H",
"description": "Consulting hour",
"price_per_unit": 85,
"vat_code": "HOOG_VERK_21",
"ledger_id": 8000
}
],
"total": 1
}