The cancel request allows to cancel a particular booking previously confirmed. When cancelling an activity, this could have cancellation fees that apply. If not sure whether the cancellation fees apply, we strongly advise you to do a “simulation” of the cancellation process before the real cancellation to ensure that cancellation policies are retrieved and shown to the client before the booking is cancelled.
The following is an example:
DELETE https://api.hotelbeds.com/activity-api/3.0/bookings/ {{language}} / {{reference}} ?cancellationFlag= {{cancellationFlag}}
Examples of the language and booking code could be:
This will cancell the booking.
https://api.test.hotelbeds.com/activity-api/3.0/bookings/en/102-123456798?cancellationFlag=CANCELLATION
https://api.test.hotelbeds.com/activity-api/3.0/bookings/en/102-123456798
If not sure whether the cancellation fees apply, we strongly advise you to do a “simulation” of the cancellation process before the real cancellation to ensure that cancellation policies are retrieved and shown to the client before the booking is cancelled.
https://api.test.hotelbeds.com/activity-api/3.0/bookings/en/102-123456798?cancellationFlag=SIMULATION
In case of any charges applied the returned simulation amount will be the charged amount if NOT using the simulation.
If the simulation amount is 0, no charges will be applied if canceling at the moment.