API reference
HTS APIs
Every endpoint, schema and error code, rendered from the published OpenAPI files, in the order you integrate them.
Schema
cancellation_failure
Fields
error_codestring enum
required
Error codes for the cancel operation. This is a non-exhaustive list of enum values, which will be extended in the future.
invalid_input- the request was malformed.invalid_cancel_token- the cancellation token is invalid or expired.order_already_cancelled- the order has already been cancelled.unauthorized- the caller is not authorized to cancel this order.cannot_be_cancelled- the reservation cannot be cancelled (e.g. the provider rejected the cancellation, the cancellation deadline has passed, or it is non-refundable). This is a terminal outcome; thedescriptionfield carries the specific reason.token_application_mismatch- thecancellation_tokencould not be shown to belong to the calling application. Precancel and cancel must be called with the API key of the same application. Returned when the token belongs to a different application, when it carries no application binding, and when the calling application cannot be determined; thedescriptionsays which.
Values
invalid_inputinvalid_cancel_tokenorder_already_cancelledunauthorizedcannot_be_cancelledtoken_application_mismatchdescriptionstring
required
A human-readable description of the error. For cannot_be_cancelled, this conveys the specific reason (e.g. requires_agent_cancellation, past_cancellation_deadline, cancellation_not_allowed).
response_idstring · uuid
required
Unique identifier of the specific response. Use this identifier when you need to refer to a specific response, when requiring technical support.
Example
123e4567-e89b-12d3-a456-426614174000Example
{
"error_code": "invalid_input",
"description": "string",
"response_id": "123e4567-e89b-12d3-a456-426614174000"
}