customers
Create a customer
Changed onCreates a customer for the company.
Scope: customers:write
If customerNumber is omitted or null, the next numeric customer number is suggested automatically. A supplied customer number is preserved exactly.
post/companies/{companyId}/customers
Request
- Base URLhttps://api.bokio.se/v1
- URLhttps://api.bokio.se/v1/companies/{companyId}/customers
- AuthHTTP bearer
Request body
Example request
{
"id": "55c899c5-82b2-47fa-9c51-e35fc9b26443",
"name": "customer 1",
"customerNumber": "CUST-001",
"type": "company",
"vatNumber": "SE1234567890",
"orgNumber": "123456-7890",
"paymentTerms": "30",
"contactsDetails": [
{
"name": "John Doe",
"email": "john@email.com",
"phone": "0927-5631505",
"isDefault": true
}
],
"address": {
"line1": "Älvsborgsvägen 10",
"line2": null,
"city": "Göteborg",
"postalCode": "123 45",
"country": "SE"
},
"language": "sv",
"constructionReverseChargeEnabled": true,
"modifiedDateTime": "2024-10-10T00:00:00Z"
}Response
Customer created
Example response
{
"id": "55c899c5-82b2-47fa-9c51-e35fc9b26443",
"name": "customer 1",
"customerNumber": "CUST-001",
"type": "company",
"vatNumber": "SE1234567890",
"orgNumber": "123456-7890",
"paymentTerms": "30",
"contactsDetails": [
{
"name": "John Doe",
"email": "john@email.com",
"phone": "0927-5631505",
"isDefault": true
}
],
"address": {
"line1": "Älvsborgsvägen 10",
"line2": null,
"city": "Göteborg",
"postalCode": "123 45",
"country": "SE"
},
"language": "sv",
"constructionReverseChargeEnabled": true,
"modifiedDateTime": "2024-10-10T00:00:00Z"
}Changes
- info
added the new optional request property
- info
added the new optional request property
- info
added the optional property
to the response with the status - info
added the optional property
to the response with the status
- info