List items

Items you sell, with code, name, group and unit.

GET https://cotlet.dev/api/v1/erpnext/items

read

Lists Item records so your agent can use the exact item code on an invoice line. The search matches part of the item code or name. Pages hold up to 100 items; pass next_cursor back as cursor for the next page.

Parameters

Parameters: list_items
NameTypeDescription
search string string Part of the item code or item name.
item_group string string Item Group name from your site.
limit integer integer Records per page. Default: 20.
cursor string string Next page cursor from the previous call.

Request

cURL
curl https://cotlet.dev/api/v1/erpnext/items \
  -H "Authorization: Bearer $COTLET_API_KEY"
Python
result = client.call("erpnext", "list_items")
Node.js
const result = await cotlet.call('erpnext', 'list_items');
CLI
cotlet call erpnext list_items

Example response

JSON

{
  "items": [
    {
      "item_code": "CONSULT-HR",
      "item_name": "Consulting hour",
      "item_group": "Services",
      "stock_uom": "Hour"
    },
    {
      "item_code": "SETUP-FEE",
      "item_name": "Setup fee",
      "item_group": "Services",
      "stock_uom": "Nos"
    }
  ],
  "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.