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.
Last updated
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.
Last updated
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
Parameter | Type | Description |
---|---|---|
Headers
Name | Value |
---|---|
Body
Name | Type | Description |
---|---|---|
Response
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.
partner_id
string
The partner identifier provided during onboarding
booking_id
string
Unique identifier of the booking. Available from the create booking API response.
Accept
application/json
Content-Type
application/json
Authorization
Bearer <token>
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