HTS APIs
Every endpoint, schema and error code, rendered from the published OpenAPI files, in the order you integrate them.
book_request
Payload for finalizing a lodging reservation using the provided quote details.
Fields
book_tokenOpaque token from the /quote response used to finalize this booking.
Important: Use the book_token only for the booking it was generated for. Each unique booking (different guests or reservations) requires calling /quote to obtain a new token. Reusing a token from a completed booking will result in an error.
The token is also bound to the application that quoted it. Call /book with the API key of that same application, otherwise the request is rejected with 403 token_application_mismatch.
stringrequest_idUnique value used to identify this request. If provided to us during operational questions, it will help us provide better support.
123e4567-e89b-12d3-a456-426614174000partner_reference_idA client-determined unique identifier for this booking, used for reconciliation and tracking.
Important: This identifier must be unique across all your bookings. Reusing the same partner_reference_id for different bookings will result in an error. Use a different value for each unique reservation, even when booking the same hotel/dates/room with different guests.
123e4567-e89b-12d3-a456-426614174000primary_guestDetails of the primary guest who will check in for the reservation.
Show fields
first_nameFirst name of the primary guest. Validation allows ANY character in any language (Latin, CJK, Arabic, etc), numbers, and punctuation. Strictly blocks Emojis and other 4-byte Unicode characters.
^[\u0000-\uD7FF\uE000-\uFFFF]+$ · Example Fredlast_nameLast name of the primary guest. Validation allows ANY character in any language, numbers, and punctuation. Strictly blocks Emojis and other 4-byte Unicode characters.
^[\u0000-\uD7FF\uE000-\uFFFF]+$ · Example LalondeemailEmail address of the primary guest.
fred@example.comphonePhone number of the primary guest.
^\+?[0-9]{7,15}$ · Example +18339334671hotel_loyaltyOptional. The guest's hotel loyalty memberships. Send whichever the guest holds; we forward the one matching the program on the rate being booked.
Always accepted, whatever the quote said. loyalty.loyalty_transmission on the quote advises whether collecting a membership is worth it — where it is not eligible we may have no way to transmit one, so the guest should verify at check-in — but it never gates this field.
Show fields
program_codeThe 3-character code identifying a hotel loyalty program.
Codes are added as more programs are supported, so treat an unrecognised code as a program you do not yet know about rather than as invalid.
Eligibility is determined by the provider from the rate plan; it is never derived from the traveller, and no loyalty membership is required to shop or book a loyalty-eligible rate.
^[A-Z0-9]{3}$loyalty_numberThe guest's membership number for this loyalty program.
123456789payment_methodPayment method for direct credit card payment. Required for tenants configured for direct payment processing; ignored for others. Use the provider-specific variant to supply the vault token. Contact Hopper to enable this feature for your tenant.
Show fields
Payment method for direct credit card payment. Required for tenants configured for direct payment processing; ignored for others. Use the provider-specific variant to supply the vault token. Contact Hopper to enable this feature for your tenant.
provider:spreedly (spreedly_payment_method) spreedly_payment_method
providerIdentifies this as a Spreedly payment method.
spreedly · Example spreedlytokenPayment method token issued by the Spreedly vault.
LbDpERKx17Y8PGeR4EvnMVdB1bNfraud_preventionFraud prevention data collected by the partner. Required for tenants using partner-managed fraud prevention; ignored for others. Use the type-specific variant to supply session data. Contact Hopper to enable this feature for your tenant.
Show fields
Fraud prevention data collected by the partner. Required for tenants using partner-managed fraud prevention; ignored for others. Use the type-specific variant to supply session data. Contact Hopper to enable this feature for your tenant.
type:riskified (riskified_fraud_prevention) riskified_fraud_prevention
typeIdentifies this as a Riskified fraud prevention payload.
riskified · Example riskifiedcustomer_ip_addressThe IP address of the customer making the booking.
203.0.113.42session_tokenSession token from the fraud prevention provider (e.g. the Riskified Beacon session ID).
00000000-0000-0000-0000-000000000000user_agentThe User-Agent string of the customer's browser or device.
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7)Used by
{
"book_token": "string",
"request_id": "123e4567-e89b-12d3-a456-426614174000",
"partner_reference_id": "123e4567-e89b-12d3-a456-426614174000",
"primary_guest": {
"first_name": "Fred",
"last_name": "Lalonde",
"email": "fred@example.com",
"phone": "+18339334671",
"hotel_loyalty": [
{
"program_code": "string",
"loyalty_number": "123456789"
}
]
},
"payment_method": {
"provider": "spreedly",
"token": "LbDpERKx17Y8PGeR4EvnMVdB1bN"
},
"fraud_prevention": {
"type": "riskified",
"session_token": "00000000-0000-0000-0000-000000000000",
"customer_ip_address": "203.0.113.42",
"user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7)"
}
}