Tabba.
IntegrationerSådan virker TabbaFeatures

© 2026 Tabba. Alle rettigheder forbeholdes.

Udviklere
Udviklere
Udviklere
Overview
Delete a customer DELETEList the customers the company invoices GETRead one customer GETChange the fields of a customer that the body states PATCHCreate a customer POST

Andre spor

AI clientsREST API
Customers

Change the fields of a customer that the body states

A field the body leaves out stays as it is; a field stated as null is cleared. The change is written to the accounting platform first. A body that states only external_id asks the platform nothing.

PATCH
/customers/{ref}

Authorization

bearerAuth
AuthorizationBearer <token>

An API key minted by an admin under Settings → Developers. It is bound to one company and has a scope: read, or read_write. A request without one, or with one that is not ours, is answered 401 and metered by its client address (x-rate-limits).

In: header

Path Parameters

ref*string

The record's id, or ext:<external_id> for the record that carries your own key.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X PATCH "https://example.com/customers/string" \  -H "Content-Type: application/json" \  -d '{}'
{  "object": "customer",  "id": "string",  "external_id": "string",  "name": "string",  "country_key": "string",  "is_person": true,  "send_method": "email",  "street": "string",  "zip_code": "string",  "city": "string",  "phone": "string",  "email": "string",  "webpage": "string",  "att_person": "string",  "vat_number": "string",  "se_number": "string",  "p_number": "string",  "ean_number": "string",  "use_cvr": true,  "company_type_key": "string",  "preferred_invoice_language_key": "string",  "preferred_invoice_currency_key": "string",  "external_reference": "string",  "payment_condition_type": "string",  "payment_condition_number_of_days": -9007199254740991,  "invoice_mail_out_option_key": "string",  "payment_mean": "string",  "vat_zone_ref": "string",  "payment_terms_ref": "string",  "layout_ref": "string",  "customer_group_ref": "string",  "updated_at": "string"}

Read one customer GET

Forrige side

Create a customer POST

The customer is written to the accounting platform first. With an `external_id` that a customer already carries, that customer is updated and the answer is 200; otherwise a customer is created and the answer is 201. An update replaces what the body states and keeps a choice from the platform's own lists (`vat_zone_ref`, `payment_terms_ref`, `layout_ref`, `customer_group_ref`) that the body leaves out. One create runs at a time under an `external_id`: a second while the first is still running is answered 409 `CREATE_IN_PROGRESS` with `Retry-After`, and the same request after that interval answers the customer the first created. A create under an `external_id` is safe to send again after a 502: where the first request made the customer, the same request, with the same body and within the hour, is answered that customer. A create with no `external_id` sent again makes a second customer. Where the platform made the customer and the create did not finish, the answer is 502 `CREATE_UNFINISHED` with the customer's `record_id`: the customer is in the catalog, and the same request again updates it.

name?string
country_key?string
is_person?boolean
send_method?string

Value in

  • "email"
  • "einvoice"
street?string|null
zip_code?string|null
city?string|null
phone?string|null
email?string|null
webpage?string|null
att_person?string|null
vat_number?string|null
se_number?string|null
p_number?string|null
ean_number?string|null
use_cvr?boolean|null
company_type_key?|null
preferred_invoice_language_key?|null
preferred_invoice_currency_key?string|null
external_reference?string|null
payment_condition_type?|null
payment_condition_number_of_days?|null
invoice_mail_out_option_key?|null
payment_mean?string|null
vat_zone_ref?string|null
customer_group_ref?string|null
payment_terms_ref?string|null
layout_ref?string|null
external_id?|null