List products
Products with number, name and sales price.
GET https://cotlet.dev/api/v1/e-conomic/products
read
Returns products by product number. Use a product number on an invoice line so the line takes its name and price from the register.
Parameters
| Name | Type | Description |
|---|---|---|
| name string | string | Only products whose name contains this text. |
| limit integer | integer | 1 to 100. Default: 50. |
| cursor string | string | Next page cursor from the previous call. |
Request
curl https://cotlet.dev/api/v1/e-conomic/products \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("e-conomic", "list_products") const result = await cotlet.call('e-conomic', 'list_products'); cotlet call e-conomic list_products Example response
{
"products": [
{
"product_number": "100",
"name": "Consulting hour",
"sales_price": 95
},
{
"product_number": "200",
"name": "Workshop day",
"sales_price": 250
}
],
"next_cursor": null
}