Guides
Trin for trin-vejledninger til opsætning og brug af systemet.
Guides - Booking: Forecast
Booking: Forecast
This webhook can be used daily, at calendar group level, to receive a forecast of the future bookings. For each webhook you select the period to look at, for example the 'next 7 days'. The data that can be sent could, for example, be the number of bookings, the duration of the bookings, the value of the bookings and the duration of the unbooked available time. Example of JSON that can be sent in this webhook: |
{
"date": "[date]",
"period": {
"periodFrom": "[periodFrom]",
"periodTo": "[periodTo]"
},
"calendarGroups": [
[CALENDARGROUP_BEGIN]
{
"calendarGroupId": [calendarGroupId],
"calendarGroupName": "[calendarGroupName]",
"calendarGroupNamePath": "[calendarGroupNamePath]",
"calendarGroupLevel": "[calendarGroupLevel]",
"calendarGroupCalendars": "[calendarGroupCalendars]",
"bookingCount": [bookingCount],
"bookingValue": "[bookingValue]",
"bookingTime": [bookingTime],
"bookingTimeFree": [bookingTimeFree]
}[lineBreak]
[CALENDARGROUP_END]
]
}
The replacement codes above will be replaced with the following data when the specific webhook is run:
|