List products
Products from your product library with description and unit price.
GET https://cotlet.dev/api/v1/invoice-ninja/products
read
Lists the products saved in the company, with the description and unit cost the invoice form fills in when you add the product to a line. Search matches the product name and the description. Use the product name in the items of create_invoice and create_quote.
Parameters
| Name | Type | Description |
|---|---|---|
| company string | string | Company name, for accounts with several companies. Default: the company open when you signed in. |
| search string | string | Text to match in the product name or description. |
| limit integer | integer | 1 to 100. Default: 20. |
| cursor string | string | Next page cursor from the previous call. |
Request
curl https://cotlet.dev/api/v1/invoice-ninja/products \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("invoice-ninja", "list_products") const result = await cotlet.call('invoice-ninja', 'list_products'); cotlet call invoice-ninja list_products Example response
{
"products": [
{
"product": "Design sprint",
"description": "Design sprint, per hour",
"unit_cost": 90
},
{
"product": "Hosting setup",
"description": "Hosting setup, one time",
"unit_cost": 150
}
],
"next_cursor": null
}