curl --request PATCH \
--url https://api.mijnklantportaal.nl/v1/customers/{customerId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"companyName": "Test Company BV",
"address": "Teststreet 123",
"zipCode": "1234AB",
"city": "Amsterdam",
"primaryEmail": "[email protected]"
}
'{
"id": "cst_abc12345def678",
"companyName": "Test Company BV",
"address": "Teststreet 123",
"zipCode": "1234AB",
"city": "Amsterdam",
"primaryEmail": "[email protected]",
"phone": "+312012345678",
"integration": "acumulus",
"integrationId": "123456789",
"customerGroups": [
"cug_123abc567"
],
"createdAt": "2024-04-28T21:00:00+02:00"
}Make changes to an existing customer.
Allthough all body fields are optional, at least one should be provided.
curl --request PATCH \
--url https://api.mijnklantportaal.nl/v1/customers/{customerId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"companyName": "Test Company BV",
"address": "Teststreet 123",
"zipCode": "1234AB",
"city": "Amsterdam",
"primaryEmail": "[email protected]"
}
'{
"id": "cst_abc12345def678",
"companyName": "Test Company BV",
"address": "Teststreet 123",
"zipCode": "1234AB",
"city": "Amsterdam",
"primaryEmail": "[email protected]",
"phone": "+312012345678",
"integration": "acumulus",
"integrationId": "123456789",
"customerGroups": [
"cug_123abc567"
],
"createdAt": "2024-04-28T21:00:00+02:00"
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
ID of the customer to change
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.
Getting the updated 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"
Primary email of the customer. This will be used to send notification to.
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"