curl --request POST \
--url https://api.mijnklantportaal.nl/v1/customer-groups/{customerGroupId}/customers \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"customers": [
"cst_abc12345"
]
}
'{
"data": [
{
"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"
}
]
}Add one or multiple customers to the Customer Group. Please note that unknown or wrong Customer IDs are ignored, no error is returned.
curl --request POST \
--url https://api.mijnklantportaal.nl/v1/customer-groups/{customerGroupId}/customers \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"customers": [
"cst_abc12345"
]
}
'{
"data": [
{
"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 group to add the customers to
An array of Customer IDs which needs to be added to the group.
Non-paginated response with customers
Array of Customer objects
Show child attributes