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

Parameters: list_products
NameTypeDescription
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
curl https://cotlet.dev/api/v1/e-conomic/products \
  -H "Authorization: Bearer $COTLET_API_KEY"
Python
result = client.call("e-conomic", "list_products")
Node.js
const result = await cotlet.call('e-conomic', 'list_products');
CLI
cotlet call e-conomic list_products

Example response

JSON

{
  "products": [
    {
      "product_number": "100",
      "name": "Consulting hour",
      "sales_price": 95
    },
    {
      "product_number": "200",
      "name": "Workshop day",
      "sales_price": 250
    }
  ],
  "next_cursor": null
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.