Skip to Content
Customers

Create Customer

Toegang

Lid van de organisatie met dit recht:

  • customers:write

Een API-sleutel met scopes heeft het recht ook in zijn scopes nodig.

POST
/orgs/{organizationId}/customers

Creates a new customer with the provided data. Optional displayId keeps a customer number from another system: it must be unused and not above the highest number in use (409 when taken, 400 when too high); without it the next number is assigned. Optional identityDocumentScanId links an unassigned (pending) identity document scan to the new customer in the same atomic transaction.

Authorization

ApiKeyAuth
headerx-api-key<token>

API key for authentication

Path Parameters

organizationId*string

The ID or slug of the organization

Request Body

application/json
  1. body
displayId?integer
Range-9007199254740991 <= value <= 9007199254740991
firstName*string
Length1 <= length
lastName?string|null
email?|unknown
phone?string
address?string
city?string
state?string
zipCode?string
country?string
status?string
Value in"DEFAULT""PREFERRED""WARNING""BLACKLISTED""VIP"
locale?string
Length1 <= length
vatNumber?string
notes?string
birthday?string
Formatdate-time
birthplace?string
profession?string
personalNumber?string
customerType?string
Value in"STANDARD""WORKER_RENTAL_CARAVAN""WORKER_TOWING_CARAVAN"
consentToCommunications?boolean
consentToMarketing?boolean
identityDocumentScanId?string
customFields?

Response Body

OK

application/json
  1. response
Example Request
curl -X POST 'https://api.tillor.eu/orgs//customers' \  -H 'Content-Type: application/json' \  -d '{  "firstName": "string"}'
Example Response
null