Guides
Trin for trin-vejledninger til opsætning og brug af systemet.
Guides - Event: Create/edit/delete
-
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
- Create a webhook
- 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
- Customer: Master data updated
- Cash register: Cash reconciliation
- Online paid/cancelled orders with customer attached
- Work hours: Create/edit/delete work hour
- Event: Create/edit/delete
- Event participant: Sign up/cancel/edit
- Questionnaire: Finish/edit
- Voucher: Completed transaction
- SSO - Single Sign On
- API and webhooks
Event: Create/edit/delete
This webhook can be used to send data from events when they are created, changed and/or deleted. On the individual webhook you choose under "Run at" whether it should run at Create event, Edit event and/or Delete event. When the action is performed, 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 which of the three actions was performed. It is therefore recommended to create one webhook for each action and write the action yourself as text in the JSON, for example "CREATED", "EDITED" or "DELETED". For a deleted event, the event's values are sent as they were when it was deleted. Example of JSON that can be sent: |
{
"action": "CREATED",
"eventId": [eventId],
"eventGUID": "[eventGUID]",
"eventHeadline": "[eventHeadline]",
"eventLink": "[eventLink]",
"eventDateFrom": [eventDateShow_begin]"[eventDateFrom]"[eventDateShow_end][noEventDateShow_begin]null[noEventDateShow_end],
"eventTimeFrom": [eventDateShow_begin]"[eventTimeFrom]"[eventDateShow_end][noEventDateShow_begin]null[noEventDateShow_end],
"eventDateTo": [eventDateShow_begin]"[eventDateTo]"[eventDateShow_end][noEventDateShow_begin]null[noEventDateShow_end],
"eventTimeTo": [eventDateShow_begin]"[eventTimeTo]"[eventDateShow_end][noEventDateShow_begin]null[noEventDateShow_end],
[eventImageShow_begin]"eventImageUrl": "[eventImageUrl]",[eventImageShow_end]
"openForSignup": [openForSignupShow_begin]"[openForSignupDatetime]"[openForSignupShow_end][noopenForSignupShow_begin]null[noopenForSignupShow_end],
"signupDeadline": [signupDeadlineShow_begin]"[signupDeadlineDatetime]"[signupDeadlineShow_end][nosignupDeadlineShow_begin]null[nosignupDeadlineShow_end],
"unsubscribeDeadline": [unsubscribeShow_begin]"[unsubscribeDatetime]"[unsubscribeShow_end][nounsubscribeShow_begin]null[nounsubscribeShow_end]
}
![]() |
The headline and the descriptions (see below) are inserted as written on the event, without escaping quotation marks. If a headline contains quotation marks, for example, the JSON becomes invalid. The descriptions can also contain HTML. They are therefore not included in the example. |
The replacement codes in the example above will be replaced with the following data when the specific webhook runs:
The three dates for opening, deadline and unsubscription are the saved values and are shown even if the function is not turned on. The same applies to the dates of an event without a date. The example therefore uses show/hide blocks, so the values are only sent when the function is turned on, and are otherwise null:
|
In addition to the above, you can also use replacement codes from the following category to build your own: |
