Stay organized with collections
Save and categorize content based on your preferences.
How to Add Cancellation Windows
Cancellation windows define when the cancellation button is activate. This
means the cancellation function will be inoperable in user confirmation
emails and will disappear from all other surfaces.
Cancellation windows can be enabled in two ways: service-level and
slot-level. The processes for specifying windows at these levels are
discussed below.
If both a service-level and a slot-level cancellation window are set, the
slot-level window will take effect. If neither are set, the cancellation window
defaults to the start of the time slot (i.e. the user can be cancelled at the
last minute).
Service level definition
Service-level cancellation windows can be enabled by specifying
rules.min_advance_online_canceling in the
Service
feed. This field
should be set to the number of seconds in advance of the reservation start
time that the booking needs to be made. For example, if the booking can only be cancelled up
until 24h before the start time this field would be set to
86400 (so a booking for 3pm can only be cancelled until 3pm the previous day).
This would apply to all slots for that service
(unless overridden by slot level definition).
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-31 UTC."],[[["Cancellation windows control when users can cancel bookings, disappearing from interfaces when inactive."],["They can be set at the service level, affecting all slots, or at the slot level, overriding service settings."],["Service-level windows use `rules.min_advance_online_canceling` in the Service feed, specifying the minimum booking time in advance."],["Slot-level windows use `scheduling_rule_overrides.last_online_cancellable_sec` in the Availability feed, specifying the last cancellation timestamp."],["Implementing cancellation windows in feeds requires handling `BookingFailure` and `OUTSIDE_CANCELLATION_WINDOW` for edge cases."]]],[]]