API reference
HTS APIs
Every endpoint, schema and error code, rendered from the published OpenAPI files, in the order you integrate them.
Schema
book_failure
Fields
error_codestring enum
required
Error codes for the book operation. This is a non-exhaustive list of enum values, which will be extended in the future.
token_application_mismatch- thebook_tokencould not be shown to belong to the calling application. A funnel must be completed by the application that started it: shop, quote and book must all be called with the API key of that 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.loyalty_number_failure- the booking was rejected by the provider over the guest's hotel loyalty membership. Covers three underlying causes — the provider required a loyalty number and none was supplied, the number was not recognised, or the number was malformed for that provider; thedescriptionsays which. Expected to be rare: where the provider allows the booking to be retried without the membership it is, and the reservation is confirmed instead, so this error is only returned where it cannot be.payment_declined- the payment for the booking was declined. No reservation was created and no charge was made. Thebook_tokencannot be reused; call/quoteagain and book with corrected payment details or a different payment method.
Values
invalid_inputinvalid_book_tokenrate_unavailableduplicate_partner_reference_idpayment_gateway_errorbook_token_already_usedunauthorizedtoken_application_mismatchloyalty_number_failurepayment_declineddescriptionstring
required
A human-readable description of the error.
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-426614174000Used by
Example
{
"error_code": "invalid_input",
"description": "string",
"response_id": "123e4567-e89b-12d3-a456-426614174000"
}