List customers
Customers in the customer register with number, name, organisation number and email.
GET https://cotlet.dev/api/v1/fortnox/customers
read
Lists customers from the Fortnox customer register. Search by name, customer number or organisation number to check whether a customer exists before creating one. Use the customer_number of an item in create_invoice. Pages hold up to 100 customers; pass next_cursor back as cursor for the next page.
Parameters
| Name | Type | Description |
|---|---|---|
| search string | string | Customer name, customer number or organisation number. |
| limit integer | integer | 1 to 100. Default: 50. |
| cursor string | string | Next page cursor from the previous call. |
Request
curl https://cotlet.dev/api/v1/fortnox/customers \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("fortnox", "list_customers") const result = await cotlet.call('fortnox', 'list_customers'); cotlet call fortnox list_customers Example response
{
"customers": [
{
"customer_number": "1042",
"name": "Nordlys Design AB",
"organisation_number": "556123-4567",
"email": "ekonomi@nordlys.example",
"delivery_method": "email"
}
],
"next_cursor": null
}