List customers

Customers in the register with number, name, currency and payment terms.

GET https://cotlet.dev/api/v1/e-conomic/customers

read

Returns customers in customer-number order, with currency, customer group, payment terms and VAT zone. Filter by name to find a match before creating a new one. Large registers come in pages; pass the cursor for the next page.

Parameters

Parameters: list_customers
NameTypeDescription
name string string Only customers whose name contains this text.
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/e-conomic/customers \
  -H "Authorization: Bearer $COTLET_API_KEY"
Python
result = client.call("e-conomic", "list_customers")
Node.js
const result = await cotlet.call('e-conomic', 'list_customers');
CLI
cotlet call e-conomic list_customers

Example response

JSON

{
  "customers": [
    {
      "customer_number": 14,
      "name": "Nordlys ApS",
      "currency": "DKK",
      "payment_terms_number": 2,
      "vat_zone_number": 1,
      "email": "ap@nordlys.example"
    },
    {
      "customer_number": 15,
      "name": "Havn Design",
      "currency": "DKK",
      "payment_terms_number": 2,
      "vat_zone_number": 1,
      "email": "faktura@havn.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.