Guides
Trin for trin-vejledninger til opsætning og brug af systemet.
Guides - Booking: Cancellations yesterday
Booking: Cancellations yesterday
This webhook can be used daily, at calendar group level, to receive both the number and the value of the bookings that were deleted/cancelled yesterday. It does not matter when the deleted booking was scheduled, only that the deletion itself was made yesterday. The webhook runs every day at a time of your choice, which is entered in steps of 5 minutes. The period is always yesterday and cannot be changed. Example of JSON that can be sent in this webhook: |
{
"date": "[date]",
"calendarGroups": [
[calendarGroup_begin]
{
"calendarGroupId": [calendarGroupId],
"calendarGroupName": "[calendarGroupName]",
"calendarGroupNamePath": "[calendarGroupNamePath]",
"calendarGroupLevel": "[calendarGroupLevel]",
"calendarGroupCalendars": "[calendarGroupCalendars]",
"cancellationCount": [cancellationCount],
"cancellationValue": "[cancellationValue]"
}[lineBreak]
[calendarGroup_end]
]
}
The replacement codes above will be replaced with the following data when the specific webhook runs:
|