Cancel booking
The Cancel Booking API endpoint allows partners to cancel bookings associated with their partner account. This endpoint requires a valid access token obtained from the Authentication.
DELETE
/api/partners/{partner_id}/bookings/{booking_id}
This endpoint supports the cancellation of individual bookings identified by their unique booking ID. Partners can provide optional information about the policies related to the booking being cancelled, including reasons for cancellation.
Path parameters
partner_id
string
The partner identifier provided during onboarding
booking_id
string
Unique identifier of the booking. Available from the create booking API response.
Headers
Accept
application/json
Content-Type
application/json
Authorization
Bearer <token>
Body
reason
string, optional
The reason for cancellation
policies
array, optional
Array of policies included in the booking. Required only when you need to cancel individual policies.
policies[id]
string
Unique identifier of the policy
policies[reason]
string
Reason for the policy cancellation
preview
boolean, optional
Optional field to enable the preview mode.
Default: false
Response
Preview Mode
The Booking Cancellation API supports a preview mode feature to allow partners to preview the result of a cancellation request without actually cancelling the booking. Partners can enable this feature by including an additional boolean field preview
in the request body.
The preview mode allows partners to assess the potential outcome of the cancellation before making any permanent changes. To confirm cancellation using a preview, please see Confirm cancellation preview.
Last updated