Create customer
Add a customer to the customer register with name, email and organisation number.
POST https://cotlet.dev/api/v1/fortnox/customers
write
Adds one customer to the Fortnox customer register and returns its customer number. Run list_customers first so you do not create a duplicate. create_customer runs without asking first: it sends nothing to anyone and the customer can be edited in Fortnox afterwards.
Parameters
| Name | Type | Description |
|---|---|---|
| name string required | string | Customer name. |
| email string | string | Email address for invoices. |
| organisation_number string | string | Swedish organisation number or foreign tax ID. |
| delivery_method enum | enum | email, e_invoice or print_service. Default: email. |
Request
curl -X POST https://cotlet.dev/api/v1/fortnox/customers \
-H "Authorization: Bearer $COTLET_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"Jane Doe"}' result = client.call("fortnox", "create_customer", {"name":"Jane Doe"}) const result = await cotlet.call('fortnox', 'create_customer', {"name":"Jane Doe"}); cotlet call fortnox create_customer --data '{"name":"Jane Doe"}' Example response
{
"customer_number": "1043",
"name": "Fjord Studio AB",
"organisation_number": "556987-6543",
"email": "faktura@fjord.example",
"delivery_method": "email"
}