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

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

Example response

JSON

{
  "customers": [
    {
      "customer_number": "1042",
      "name": "Nordlys Design AB",
      "organisation_number": "556123-4567",
      "email": "ekonomi@nordlys.example",
      "delivery_method": "email"
    }
  ],
  "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.