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
| Name | Type | Description |
|---|---|---|
| customer_number integer required | integer | Customer number from list_customers or create_customer. |
Request
curl https://cotlet.dev/api/v1/e-conomic/customers/1 \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("e-conomic", "get_customer", {"customer_number":1}) const result = await cotlet.call('e-conomic', 'get_customer', {"customer_number":1}); cotlet call e-conomic get_customer --data '{"customer_number":1}' Example response
{
"customer_number": 14,
"name": "Nordlys ApS",
"currency": "DKK",
"payment_terms_number": 2,
"vat_zone_number": 1,
"email": "ap@nordlys.example",
"city": "Aarhus"
}