Get customer

One customer with contact data, terms and balance.

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

read

Returns the customer record with address, email, currency, payment terms and VAT zone. Use it before drafting an invoice to see the terms the draft will carry.

Parameters

Parameters: get_customer
NameTypeDescription
customer_number integer required integer Customer number from list_customers or create_customer.

Request

cURL
curl https://cotlet.dev/api/v1/e-conomic/customers/1 \
  -H "Authorization: Bearer $COTLET_API_KEY"
Python
result = client.call("e-conomic", "get_customer", {"customer_number":1})
Node.js
const result = await cotlet.call('e-conomic', 'get_customer', {"customer_number":1});
CLI
cotlet call e-conomic get_customer --data '{"customer_number":1}'

Example response

JSON

{
  "customer_number": 14,
  "name": "Nordlys ApS",
  "currency": "DKK",
  "payment_terms_number": 2,
  "vat_zone_number": 1,
  "email": "ap@nordlys.example",
  "city": "Aarhus"
}

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.