{
"event": "users-on-customers.create",
"time": "2025-01-01T20:00:00.000Z",
"data": {
"id": 123456,
"userId": "0e9d8c7b-6a5f-4e3d-2c1b-0a9f8e7d6c5b",
"customerId": "6b7c8d9e-0f1a-2b3c-4d5e-6f7a8b9c0d1e",
"customerReferenceId": "CUST-5001",
"relation": "debtor",
"contact": true,
"lang": "da",
"createdAt": "2025-01-01T20:00:00.000Z",
"details": {
"name": "Hans Hansen",
"cpr": null,
"cvr": null,
"ean": null,
"registryIdentifier": null,
"email": "email@example.com",
"phone": {
"locale": "45",
"number": "12345678"
},
"address": {
"address": "Applebys Plads 7, 1.",
"coAddress": null,
"city": "København K",
"zipcode": "1411",
"country": "Danmark",
"moveInDate": "2024-03-01"
},
"birthdate": null,
"description": null,
"courtId": null,
"type": null,
"alternativeContactReferenceId": null,
"secondaryEmails": [],
"secondaryPhones": [],
"addressProtection": false,
"nameProtected": false,
"personStatus": "ACTIVE",
"personStatusDate": null,
"companyStatus": null,
"companyStatusDate": null,
"dissolutionStatus": null
}
}
}Webhooks
User on customer created
Notifies when a user has been added to a customer, including the users of a newly created customer. Delivery order is not guaranteed, so this can arrive before the customers.create of a new customer.
WEBHOOK
users-on-customers.create
{
"event": "users-on-customers.create",
"time": "2025-01-01T20:00:00.000Z",
"data": {
"id": 123456,
"userId": "0e9d8c7b-6a5f-4e3d-2c1b-0a9f8e7d6c5b",
"customerId": "6b7c8d9e-0f1a-2b3c-4d5e-6f7a8b9c0d1e",
"customerReferenceId": "CUST-5001",
"relation": "debtor",
"contact": true,
"lang": "da",
"createdAt": "2025-01-01T20:00:00.000Z",
"details": {
"name": "Hans Hansen",
"cpr": null,
"cvr": null,
"ean": null,
"registryIdentifier": null,
"email": "email@example.com",
"phone": {
"locale": "45",
"number": "12345678"
},
"address": {
"address": "Applebys Plads 7, 1.",
"coAddress": null,
"city": "København K",
"zipcode": "1411",
"country": "Danmark",
"moveInDate": "2024-03-01"
},
"birthdate": null,
"description": null,
"courtId": null,
"type": null,
"alternativeContactReferenceId": null,
"secondaryEmails": [],
"secondaryPhones": [],
"addressProtection": false,
"nameProtected": false,
"personStatus": "ACTIVE",
"personStatusDate": null,
"companyStatus": null,
"companyStatusDate": null,
"dissolutionStatus": null
}
}
}Headers
Sent with every delivery so the receiver can verify the request really comes from Debbie. The token is issued when the webhook is created — compare it with the stored value and reject deliveries that do not match.
Body
application/json
Webhook payload
Event "users-on-customers.create"
Example:
"users-on-customers.create"
Event dispatch time
Example:
"2025-01-01T20:00:00.000Z"
The created user on customer
Show child attributes
Show child attributes
Example:
{
"id": 123456,
"userId": "0e9d8c7b-6a5f-4e3d-2c1b-0a9f8e7d6c5b",
"customerId": "6b7c8d9e-0f1a-2b3c-4d5e-6f7a8b9c0d1e",
"customerReferenceId": "CUST-5001",
"relation": "debtor",
"contact": true,
"lang": "da",
"createdAt": "2025-01-01T20:00:00.000Z",
"details": {
"name": "Hans Hansen",
"cpr": null,
"cvr": null,
"ean": null,
"registryIdentifier": null,
"email": "email@example.com",
"phone": { "locale": "45", "number": "12345678" },
"address": {
"address": "Applebys Plads 7, 1.",
"coAddress": null,
"city": "København K",
"zipcode": "1411",
"country": "Danmark",
"moveInDate": "2024-03-01"
},
"birthdate": null,
"description": null,
"courtId": null,
"type": null,
"alternativeContactReferenceId": null,
"secondaryEmails": [],
"secondaryPhones": [],
"addressProtection": false,
"nameProtected": false,
"personStatus": "ACTIVE",
"personStatusDate": null,
"companyStatus": null,
"companyStatusDate": null,
"dissolutionStatus": null
}
}