curl -X GET \
/customers \
--header "Authorization: Bearer <token>"{
"data": [
{
"countryCode": "DE",
"id": "00000000-0000-0000-0000-000000000000",
"customerNumber": "CUSTOMER-000",
"timeZone": "Europe/Berlin",
"firstName": "John",
"lastName": "Doe",
"currencyCode": "EUR",
"companyName": "Acme Inc.",
"vatId": "DE123456789",
"isVatIdValid": true,
"datevId": "123456789",
"commercialRegisterName": "Amtsgericht Berlin (Charlottenburg)",
"commercialRegisterNumber": "HRB 123456",
"status": "STATUS_ACTIVE",
"gender": "male",
"phone": "+49 123 456789",
"language": "de",
"totalTurnOverRank": 10,
"createdAt": "2020-01-01T00:00:00+00:00",
"customFields": {
"field1": "value1",
"field2": "value2"
},
"businessCustomer": true,
"defaultAddress": {
"id": "<string>",
"vatId": "DE123456789",
"type": "TYPE_DEFAULT",
"default": "true",
"status": "active",
"city": "Berlin",
"zip": "12345",
"street": "Musterstraße",
"houseNumber": "1a",
"countryCode": "DE",
"companyName": "ACME Inc.",
"salutation": "Herr",
"addition": "c/o John Doe",
"costCentre": "123456789",
"firstName": "John",
"lastName": "Doe"
},
"defaultInvoiceAddress": {
"id": "<string>",
"vatId": "DE123456789",
"type": "TYPE_DEFAULT",
"default": "true",
"status": "active",
"city": "Berlin",
"zip": "12345",
"street": "Musterstraße",
"houseNumber": "1a",
"countryCode": "DE",
"companyName": "ACME Inc.",
"salutation": "Herr",
"addition": "c/o John Doe",
"costCentre": "123456789",
"firstName": "John",
"lastName": "Doe"
},
"defaultEmailAddress": {
"email": "[email protected]",
"receiverName": "John Doe",
"type": "TYPE_COMPANY",
"id": "00000000-0000-0000-0000-000000000000",
"default": "true"
},
"defaultInvoiceEmailAddress": {
"email": "[email protected]",
"receiverName": "John Doe",
"type": "TYPE_COMPANY",
"id": "00000000-0000-0000-0000-000000000000",
"default": "true"
},
"defaultPaymentMethod": {},
"isPartner": true
}
],
"meta": {
"pagination": {
"totalItems": 123,
"itemsPerPage": 123,
"currentPage": 123,
"lastPage": 123,
"pageTotalItems": 123
}
}
}Get customers
Required permissions:customer:readcurl -X GET \
/customers \
--header "Authorization: Bearer <token>"{
"data": [
{
"countryCode": "DE",
"id": "00000000-0000-0000-0000-000000000000",
"customerNumber": "CUSTOMER-000",
"timeZone": "Europe/Berlin",
"firstName": "John",
"lastName": "Doe",
"currencyCode": "EUR",
"companyName": "Acme Inc.",
"vatId": "DE123456789",
"isVatIdValid": true,
"datevId": "123456789",
"commercialRegisterName": "Amtsgericht Berlin (Charlottenburg)",
"commercialRegisterNumber": "HRB 123456",
"status": "STATUS_ACTIVE",
"gender": "male",
"phone": "+49 123 456789",
"language": "de",
"totalTurnOverRank": 10,
"createdAt": "2020-01-01T00:00:00+00:00",
"customFields": {
"field1": "value1",
"field2": "value2"
},
"businessCustomer": true,
"defaultAddress": {
"id": "<string>",
"vatId": "DE123456789",
"type": "TYPE_DEFAULT",
"default": "true",
"status": "active",
"city": "Berlin",
"zip": "12345",
"street": "Musterstraße",
"houseNumber": "1a",
"countryCode": "DE",
"companyName": "ACME Inc.",
"salutation": "Herr",
"addition": "c/o John Doe",
"costCentre": "123456789",
"firstName": "John",
"lastName": "Doe"
},
"defaultInvoiceAddress": {
"id": "<string>",
"vatId": "DE123456789",
"type": "TYPE_DEFAULT",
"default": "true",
"status": "active",
"city": "Berlin",
"zip": "12345",
"street": "Musterstraße",
"houseNumber": "1a",
"countryCode": "DE",
"companyName": "ACME Inc.",
"salutation": "Herr",
"addition": "c/o John Doe",
"costCentre": "123456789",
"firstName": "John",
"lastName": "Doe"
},
"defaultEmailAddress": {
"email": "[email protected]",
"receiverName": "John Doe",
"type": "TYPE_COMPANY",
"id": "00000000-0000-0000-0000-000000000000",
"default": "true"
},
"defaultInvoiceEmailAddress": {
"email": "[email protected]",
"receiverName": "John Doe",
"type": "TYPE_COMPANY",
"id": "00000000-0000-0000-0000-000000000000",
"default": "true"
},
"defaultPaymentMethod": {},
"isPartner": true
}
],
"meta": {
"pagination": {
"totalItems": 123,
"itemsPerPage": 123,
"currentPage": 123,
"lastPage": 123,
"pageTotalItems": 123
}
}
}Value for the Authorization header parameter.
The collection page number
The number of items per page
0 <= x <= 100Customer collection
Show child attributes
"DE"
"00000000-0000-0000-0000-000000000000"
2 - 255"CUSTOMER-000"
"Europe/Berlin"
Can be empty if the customer is a company.
2 - 255"John"
Can be empty if the customer is a company.
2 - 255"Doe"
Can be empty. In this case the default currency of the tenant is used.
"EUR"
2 - 255"Acme Inc."
2 - 255"DE123456789"
Indicates if the VAT ID is valid. This is only available for EU VAT IDs. We validate the VAT IDs each night and directly after change.
true
The ID of the customer in DATEV
2 - 255"123456789"
The name of the commercial register. This is needed tofullfill the collection processes on companies.
"Amtsgericht Berlin (Charlottenburg)"
The ID of the customer in the commercial register, e.g. HRB 123456. This is needed tofullfill the collection processes on companies.
"HRB 123456"
STATUS_ACTIVE, STATUS_ARCHIVED, STATUS_SUSPENDED "STATUS_ACTIVE"
This field is needed, to fullfill a collection process on a personal customer.
male, female, diverse "male"
2 - 255"+49 123 456789"
The language of the customer. This is used for the communication with the customer or on generating documents like invoices, reminders, etc.
de, en "de"
The current customer rank, based on their revenue. Lower is better. This will calculate each night.
10
"2020-01-01T00:00:00+00:00"
Custom fields for the entity. The keys are the field names and the values are the field values. They need to be configured under "/custom-fields" in the API documentation. The input is validated against the configuration. For more details see Custom Fields Guide
Show child attributes
{ "field1": "value1", "field2": "value2" }The default address of the customer. This is the address that is used for billing if no other address is specified.
Show child attributes
VAT ID, which will be used to bill to. If not provided, we will use the customer vat id.
"DE123456789"
TYPE_DEFAULT, TYPE_INVOICE "TYPE_DEFAULT"
"true"
active, archived "active"
"Berlin"
"12345"
"Musterstraße"
"1a"
"DE"
Company name, which will be used to bill to.
"ACME Inc."
Firma, Herr, Frau "Herr"
Additional address information, which will be shown on generated documents like invoices, reminders, etc.
"c/o John Doe"
Cost centre, which will be shown on generated documents like invoices, reminders, etc.
"123456789"
First name, which will be shown on generated documents like invoices, reminders, etc.
"John"
Last name, which will be shown on generated documents like invoices, reminders, etc.
"Doe"
The invoice address of the customer. This is the address that is used for billing if defined. If not defined, the default address is used.
Show child attributes
VAT ID, which will be used to bill to. If not provided, we will use the customer vat id.
"DE123456789"
TYPE_DEFAULT, TYPE_INVOICE "TYPE_DEFAULT"
"true"
active, archived "active"
"Berlin"
"12345"
"Musterstraße"
"1a"
"DE"
Company name, which will be used to bill to.
"ACME Inc."
Firma, Herr, Frau "Herr"
Additional address information, which will be shown on generated documents like invoices, reminders, etc.
"c/o John Doe"
Cost centre, which will be shown on generated documents like invoices, reminders, etc.
"123456789"
First name, which will be shown on generated documents like invoices, reminders, etc.
"John"
Last name, which will be shown on generated documents like invoices, reminders, etc.
"Doe"
The default email address of the customer. This is the email address that is used for billing if no other email address is specified.
Show child attributes
255255"John Doe"
TYPE_COMPANY, TYPE_INVOICE "TYPE_COMPANY"
"00000000-0000-0000-0000-000000000000"
"true"
The invoice email address of the customer. This is the email address that is used for billing if defined. If not defined, the default email address is used.
Show child attributes
255255"John Doe"
TYPE_COMPANY, TYPE_INVOICE "TYPE_COMPANY"
"00000000-0000-0000-0000-000000000000"
"true"
The default payment method of the customer. This is the payment method that is used for billing.
Indicates if the customer is a partner.
Was this page helpful?