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

Parameters: create_customer
NameTypeDescription
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
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"}'
Python
result = client.call("fortnox", "create_customer", {"name":"Jane Doe"})
Node.js
const result = await cotlet.call('fortnox', 'create_customer', {"name":"Jane Doe"});
CLI
cotlet call fortnox create_customer --data '{"name":"Jane Doe"}'

Example response

JSON

{
  "customer_number": "1043",
  "name": "Fjord Studio AB",
  "organisation_number": "556987-6543",
  "email": "faktura@fjord.example",
  "delivery_method": "email"
}

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.