curl --request POST \
--url https://api.mijnklantportaal.nl/v1/customers \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"companyName": "Test Company BV",
"address": "Teststreet 123",
"zipCode": "1234AB",
"city": "Amsterdam",
"primaryEmail": "john.doe@test.com",
"countryCode": "NL"
}
'{
"id": "cst_abc12345def678",
"companyName": "Test Company BV",
"address": "Teststreet 123",
"zipCode": "1234AB",
"city": "Amsterdam",
"countryCode": "NL",
"primaryEmail": "john.doe@test.com",
"phone": "+312012345678",
"integration": "acumulus",
"integrationId": "123456789",
"customerGroups": [
"cug_123abc567"
],
"createdAt": "2024-04-28T21:00:00+02:00"
}Adding a new customer to your portal
curl --request POST \
--url https://api.mijnklantportaal.nl/v1/customers \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"companyName": "Test Company BV",
"address": "Teststreet 123",
"zipCode": "1234AB",
"city": "Amsterdam",
"primaryEmail": "john.doe@test.com",
"countryCode": "NL"
}
'{
"id": "cst_abc12345def678",
"companyName": "Test Company BV",
"address": "Teststreet 123",
"zipCode": "1234AB",
"city": "Amsterdam",
"countryCode": "NL",
"primaryEmail": "john.doe@test.com",
"phone": "+312012345678",
"integration": "acumulus",
"integrationId": "123456789",
"customerGroups": [
"cug_123abc567"
],
"createdAt": "2024-04-28T21:00:00+02:00"
}Documentation Index
Fetch the complete documentation index at: https://docs.developers.mijnklantportaal.nl/llms.txt
Use this file to discover all available pages before exploring further.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Name of the customer
"Test Company BV"
Street name and number of the customer
"Teststreet 123"
Zip code of the customer
"1234AB"
City of the customer
"Amsterdam"
Primary email of the customer. This will be used to send notification to.
"john.doe@test.com"
ISO 3166-1 alpha-2 country code (2 letters). Will fallback to NL when not provided.
"NL"
Returning the created Customer
Customer
ID of the customer, always starting with cst_.
"cst_abc12345def678"
Name of the customer
"Test Company BV"
Street name and number of the customer
"Teststreet 123"
Zip code of the customer
"1234AB"
City of the customer
"Amsterdam"
The two-letter country code (ISO 3166-1 alpha-2)
"NL"
Primary email of the customer. This will be used to send notification to.
"john.doe@test.com"
Phone number, if available, including country code.
"+312012345678"
If the customer is linked to a bookkeeping integration, the ID of the integration is set here.
"acumulus"
If the customer is linked to a bookkeeping integration, the ID of the customer in the integration is set here.
"123456789"
An array of Customer Group IDs of which this customer is part of
Date and time when the customer is added to MijnKlantportaal. Written in ATOM format.
"2024-04-28T21:00:00+02:00"