List customers

Customers with name, type, organisation number and payment terms.

GET https://cotlet.dev/api/v1/bokio/customers

read

Lists the customers of the company and searches by name or email. Use customer_id from each item in create_invoice. Pages hold up to 100 customers.

Parameters

Parameters: list_customers
NameTypeDescription
search string string Part of the name or email.
page integer integer Page number. Default: 1.
page_size integer integer 1 to 100. Default: 25.

Request

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

Example response

JSON

{
  "customers": [
    {
      "customer_id": "c7a1e5d2-3b94-4f60-9a1d-5e2f0b8c6d11",
      "name": "Nordlys Design AB",
      "type": "company",
      "org_number": "556000-0000",
      "email": "ekonomi@nordlys.example"
    }
  ],
  "total_items": 1,
  "total_pages": 1,
  "current_page": 1
}

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.