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

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

Example response

JSON

{
  "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
}

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.