curl --request GET \
--url https://api.mijnklantportaal.nl/v1/customers \
--header 'Authorization: Bearer <token>'{
"current_page": 1,
"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"
}
],
"first_page_url": "https://api.mijnklantportaal.nl/v1/customers?page=1",
"from": 1,
"next_page_url": "https://api.mijnklantportaal.nl/v1/customers?page=2,",
"path": "https://api.mijnklantportaal.nl/v1/customers",
"per_page": 15,
"prev_page_url": null,
"to": 15
}Getting all your customers in your portal as paginated response
curl --request GET \
--url https://api.mijnklantportaal.nl/v1/customers \
--header 'Authorization: Bearer <token>'{
"current_page": 1,
"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"
}
],
"first_page_url": "https://api.mijnklantportaal.nl/v1/customers?page=1",
"from": 1,
"next_page_url": "https://api.mijnklantportaal.nl/v1/customers?page=2,",
"path": "https://api.mijnklantportaal.nl/v1/customers",
"per_page": 15,
"prev_page_url": null,
"to": 15
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Paginated response with customers
Current page of the response
1
Array of Customer objects
Show child attributes
Endpoint to go to the first page of objects
"https://api.mijnklantportaal.nl/v1/customers?page=1"
Offset of the current page
1
Endpoint to get the next batch of objects, if available
"https://api.mijnklantportaal.nl/v1/customers?page=2,"
Current used endpoint
"https://api.mijnklantportaal.nl/v1/customers"
Amount of object returned per page. Default is 15 objects
15
Endpoint to get the previous batch of object, if available
null
Next offset of objects
15