DELETE/v1/hotels/book/:gdsprovider/:reference

Cancel hotel booking

Cancels an existing hotel booking by provider and reference, subject to provider policy and booking state.

Cancels an existing hotel booking by provider and reference, subject to provider policy and booking state.

Endpoint

MethodPathAuth
DELETE/v1/hotels/book/:gdsprovider/:referenceRequired API key
Required headers:
HeaderDescription
AuthorizationBearer <secret_key>. The secret is shown only once when the credential is created.
X-Travelandz-Id<public_key>:<profile_code>. The profile_code is the dp_-prefixed Developer Profile code shown in your dashboard. This binds the request to a profile and credential.
Content-TypeUse application/json for requests with a body.

Request Params Schema

PropertyTypeDetailsRequiredNotes
gdsprovidernumberYes-
referencestringYes-

Success Response

Returns cancellation status and provider confirmation when available.

Errors

StatusCodeCase
400hotel_booking_already_cancelledBooking was already cancelled.
400unable_to_perform_hotel_booking_cancellationProvider could not cancel.
404hotel_booking_not_foundBooking was not found.
401/403auth codesInvalid credentials.
500-Internal error.

Responses

CodeDescription
204Booking cancelled successfully