Any questions

We are happy to help!

Question about Gecko Booking?

If you are unsure whether Gecko Booking is right for you, or if you have other questions, we would love to hear from you!

All good!
Please enter your name.
All good!
Please enter your email.
All good!
All good!
Please enter your question.

Fields marked with an * are required


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:

  • [date] is replaced with yesterday's date in the format DD/MM-YYYY.
  • [calendarGroup_begin] [lineBreak] [calendarGroup_end] is used to repeat data for each calendar group. Calendars that are not in a group are included as group 0 with the name "Ikke i gruppe" (Not in group). Each group only counts the calendars that are directly in the group, and not calendars in its subgroups. The replacement codes below can be used in between:
    • [calendarGroupId] is replaced with the unique Id of the calendar group in GECKO. The group "Ikke i gruppe" has Id 0.
    • [calendarGroupName] is replaced with the name of the calendar group.
    • [calendarGroupNamePath] is replaced with all the names in the calendar group's path, separated by " - " (for example "TestForecast - Under"), which is only relevant if calendar subgroups are used.
    • [calendarGroupLevel] is replaced with the calendar group's level: 0 for a main group, 1 for a subgroup of a main group, and so on. It is only relevant if calendar subgroups are used.
    • [calendarGroupCalendars] is replaced with a comma-separated list of the Ids of the calendars that are directly in the calendar group.
    • [cancellationCount] is replaced with the number of bookings that were deleted yesterday. Groups without deleted bookings get the value 0.
    • [cancellationValue] is replaced with the value of the bookings that were deleted yesterday. The value is the item's price, including VAT if the item is not exempt from VAT.

 


Try a Free and Non-Binding Demo of Gecko Booking & Administration

Fill out the form, and you will receive a demo as soon as possible.

All good!
Please enter the company name.
All good!
Please enter your phone number.
All good!
Please enter your name.

Fields marked with an * are required