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
| Name | Type | Description |
|---|---|---|
| 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 https://cotlet.dev/api/v1/erpnext/items \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("erpnext", "list_items") const result = await cotlet.call('erpnext', 'list_items'); cotlet call erpnext list_items Example response
{
"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
}