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