List partners
Customers, suppliers and persons from the register.
GET https://cotlet.dev/api/v1/procountor/partners
read
Searches the business partner register by name or business ID. Type is customer, supplier or person. Use the partner_id as the customer in create_sales_invoice. Pages hold up to 200 partners.
Parameters
| Name | Type | Description |
|---|---|---|
| query string | string | Part of the partner name or business ID. |
| type string | string | customer, supplier or person. |
| limit integer | integer | 1 to 200. Default: 50. |
| cursor string | string | Next page cursor from the previous call. |
Request
curl https://cotlet.dev/api/v1/procountor/partners \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("procountor", "list_partners") const result = await cotlet.call('procountor', 'list_partners'); cotlet call procountor list_partners Example response
{
"partners": [
{
"partner_id": "bp_20417",
"name": "Nordic Print Oy",
"type": "customer",
"business_id": "1234567-8",
"email": "billing@nordicprint.example"
}
],
"next_cursor": null
}