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 2025-01-30 UTC."],[[["Cancellation windows control when users can cancel bookings, hiding the cancellation option outside the window."],["You can set cancellation windows at the service level (affecting all slots) or the slot level (affecting individual slots)."],["Service-level windows use `rules.min_advance_online_canceling` in the Service feed to define the minimum time before the booking start when cancellations are allowed."],["Slot-level windows use `scheduling_rule_overrides.last_online_cancellable_sec` in the Availability feed to specify the last time (EPOCH timestamp) a slot can be cancelled."],["Implementing cancellation windows in feeds doesn't replace handling `BookingFailure` with `OUTSIDE_CANCELLATION_WINDOW` for edge cases in your system."]]],["Cancellation windows control when cancellations are allowed. They can be set at the service level using `rules.min_advance_online_canceling` in the Service feed (specifying seconds before the reservation start) or at the slot level using `scheduling_rule_overrides.last_online_cancellable_sec` in the availability feed (specifying an EPOCH timestamp). Slot-level settings override service-level settings. If neither is set, cancellations are allowed up until the slot's start. Implementations must handle `OUTSIDE_CANCELLATION_WINDOW` errors for edge cases.\n"]]