HTS APIs
Every endpoint, schema and error code, rendered from the published OpenAPI files, in the order you integrate them.
/get_bookingOtherGet Booking
Called by HTS to retrieve the current state of a lodging booking from the partner system.
HTS calls this endpoint after purchase confirmation, during exercise to determine payout amounts based on current payment state, and periodically for product reconciliation to ensure system state consistency.
The recommended response includes:
- Reservation details — reservation ID, confirmation ID, status, check-in/check-out dates, and price breakdown (base, taxes, fees)
- Property, unit & rate — property ID, unit ID, and rate ID, each matching the identifiers sent on the create-offer request; plus property name, chain name, and check-in time
- Currency — ISO 4217 currency code for all monetary amounts
- Payment transactions — amount, timestamp, transaction type (UserCharge, UserRefund), and payment type (PaymentCard, NotProvided, etc.). HTS uses the current payment state to reconcile how much the customer should be paid out during exercise.
- CFAR order ID — HTS order ID if a CFAR contract is associated with the booking
- Cancel URL — URL for the customer to initiate cancellation
Partner implementations may vary in structure and field naming. HTS is designed to handle these variations gracefully, including partner-specific reservation status values.
Responses
200
reservation_idID of the reservation in the partner's system.
customer_confirmation_idCustomer-facing confirmation ID (locator) for the hotel.
reservation_statusCurrent status of the reservation. Partners may use their own status values; HTS will accept and translate them.
check_in_dateCheck-in date in ISO 8601 local date format.
check_out_dateCheck-out date in ISO 8601 local date format.
created_atISO 8601 timestamp when the reservation was created.
reservation_priceFull reservation cost split into base, taxes, and fees.
Show fields
baseBase price amount.
taxesTax amount.
feesFee amount.
booking_currencyISO 4217 currency code for all monetary amounts in the response.
property_idID of the property in the partner's system.
unit_idID of the booked unit in the partner's system.
rate_idID of the booked rate in the partner's system.
property_nameDisplay name of the property.
last_modified_atISO 8601 timestamp when the reservation was last modified.
check_in_timeLocal check-in time at the property.
chain_nameName of the hotel chain. Not required for independent properties.
payment_transactionsRecord of payment transactions associated with this booking.
Show fields
amountMonetary amount of the transaction.
date_timeISO 8601 timestamp when the transaction occurred.
transaction_typeWhether this transaction is a charge or refund.
user_chargeuser_refundpayment_typeThe payment method used for this transaction.
payment_cardnot_providedcfar_order_idHTS CFAR order ID, if a CFAR contract is associated with this booking.
cancel_urlURL for the customer to initiate a cancellation.
400Syntactic errors were encountered while handling the request
messagecodeExample
[
{
"message": "string",
"code": "string"
}
]404The requested resource could not be found
422Semantic errors were encountered while handling the request
messagecodeExample
[
{
"message": "string",
"code": "string"
}
]500The server encountered an internal error
curl -X GET "https://fintech.staging.htsapis.com/lodging-cfar/v2/get_booking" \
-H "X-Api-Key: $HTS_API_KEY"{
"reservation_id": "string",
"customer_confirmation_id": "string",
"reservation_status": "string",
"check_in_date": "2024-06-15",
"check_out_date": "2024-06-18",
"created_at": "2024-06-15T10:30:00Z",
"last_modified_at": "2026-12-10T15:00:00Z",
"reservation_price": {
"base": "200.00",
"taxes": "30.00",
"fees": "20.00"
},
"booking_currency": "USD",
"property_id": "string",
"unit_id": "string",
"rate_id": "string",
"property_name": "string",
"check_in_time": "15:00",
"chain_name": "string",
"payment_transactions": [
{
"amount": "150.00",
"date_time": "2024-06-15T10:30:00Z",
"transaction_type": "user_charge",
"payment_type": "payment_card"
}
],
"cfar_order_id": "string",
"cancel_url": "string"
}Examples are generated from the schema where the spec publishes none; field values are illustrative.
