Guides
Trin for trin-vejledninger til opsætning og brug af systemet.
Guides - Customer: Master data updated
-
Guides
- General
- Booking
- Event
- Cash Register Add-On
- Gift Voucher Add-On
- Marketing Add-On
- Record Add-On
- Form Add-On
- Documents
- Online Payment Add-On
- SMS Add-On
- Integrations
- For developers
- API and webhooks
- REST API
- Webhooks
- Scheduled webhooks
- Event webhooks
- Booking: Create/edit/delete
- Customer: Newsletter subscribe/unsubscribe
- Reward program: Balance update
- Cash register: Completed sale
- Cash register: Completed sale - per line item
- Cash register: Cash reconciliation
- Customer: Master data updated
- Online paid/cancelled orders with customer attached
- Event: Create/edit/delete
- Event participant: Sign up/cancel/edit
- Work hours: Create/edit/delete work hour
- Voucher: Completed transaction
- Questionnaire: Finish/edit
- SSO - Single Sign On
- API and webhooks
Customer: Master data updated
This webhook can be used to send data when a customer is created or edited. The webhook runs when:
If "Customers who have said yes to newsletters" is selected on the webhook, it is only sent for customers who have said yes to the newsletter. The webhook is added to a queue that is processed every 5 minutes. It can therefore take up to about 5 minutes before the webhook is sent. There is no replacement code that tells whether the customer was created or edited. It is therefore recommended to create one webhook for each action (Create customer and Edit customer) and write the action yourself as text in the JSON, for example "CREATED" or "EDITED". Example of JSON that can be sent: |
{
"action": "CREATED",
"customerId": [customerId],
"customerName": "[customerName]",
"customerFirstName": "[customerFirstName]",
"customerLastName": "[customerLastName]",
"customerEmail": "[customerEmail]",
"customerTelephone": "[customerTelephone]",
"customerMobile": "[customerMobile]",
"customerAddress": "[customerAddress]",
"customerPostalCode": "[customerPostalCode]",
"customerCity": "[customerCity]",
"customerSexValue": "[customerSexValue]",
"customerBirthday": "[customerBirthdateYear]-[customerBirthdateMonth_MM]-[customerBirthdateDay_DD]",
"customerAcceptsMarketingEmail": "[customerAcceptsMarketingEmail]",
"customerAcceptsMarketingSms": "[customerAcceptsMarketingSms]",
"customerTags": [
[customerTag_begin]
{
"customerTagId": [customerTagId],
"customerTagName": "[customerTagName]",
"customerTagValue": "[customerTagValue]"
}[lineBreak]
[customerTag_end]
]
}
![]() |
Customers created or edited through import or through the API do not trigger this webhook. Changes to the newsletter subscription also have their own webhook, "Kunde: Nyhedsbrev til-/frameld". |
The following replacement codes are specific to this webhook and can be used in addition to those in the example:
If the customer's date of birth is not filled in, [customerBirthdateDay_DD] and [customerBirthdateMonth_MM] give the value 00 and [customerBirthdateYear] gives the value 0. |
In addition to the replacement codes above, you can freely use replacement codes from the following category to build your own data: |
