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

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

Example response

JSON

{
  "partners": [
    {
      "partner_id": "bp_20417",
      "name": "Nordic Print Oy",
      "type": "customer",
      "business_id": "1234567-8",
      "email": "billing@nordicprint.example"
    }
  ],
  "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.