HTS APIs
Every endpoint, schema and error code, rendered from the published OpenAPI files, in the order you integrate them.
get_booking_response
Recommended response structure for the partner get_booking endpoint.
Fields
currencyISO 4217 currency code for all monetary amounts in the response.
itineraryThe flight itinerary associated with the booking.
Show fields
slicesThe legs of the itinerary.
Show fields
segmentsThe flight segments within this slice.
Show fields
origin_airportIATA code of the origin airport.
[A-Z]{3}destination_airportIATA code of the destination airport.
[A-Z]{3}departure_date_timeScheduled local departure date and time in ISO Local Date Time format.
arrival_date_timeScheduled local arrival date and time in ISO Local Date Time format.
cabinCabin class.
economypremium_economybusinessfirstmarketing_carrier_codeIATA marketing carrier code.
[A-Z0-9]{2}marketing_flight_numberMarketing flight number.
[0-9]{1,4}reservation_booking_designatorReservation Booking Designator (RBD) for this segment: the booking code the airline sold the seat under, one uppercase letter and an optional second letter or digit. Also known as booking class, booking code, class of service, or fare class (e.g. Y, B, M, Q, N, J, F, E1). Pass the code exactly as it appears on the ticket/PNR.
^[A-Z][A-Z0-9]?$operating_carrier_codeIATA operating carrier code, if different from marketing carrier.
[A-Z0-9]{2}operating_flight_numberOperating flight number, if different from marketing flight number.
[0-9]{1,4}fare_brandThe fare brand for this slice.
passengersPassengers on the booking.
Show fields
passenger_typeType of passenger (e.g. adult, child, lap_infant, seated_infant).
fare_amountThe fare amount for this passenger.
ancillariesOptional ancillary purchases for this passenger.
Show fields
amountMonetary amount of the ancillary.
codeCode identifying the type of ancillary.
idA non-PII identifier generated by the partner that uniquely identifies a passenger within the booking and remains stable for the life of the booking.
ancillariesOptional ancillary purchases.
Show fields
amountMonetary amount of the ancillary.
codeCode identifying the type of ancillary.
booking_referencesPartner-defined key/value pairs used to identify the booking (e.g. record locator, order ID). These must match the references provided during contract creation.
booking_statusCurrent status of the booking as reported by the partner system. HTS will accept and translate partner-specific statuses.
confirmedcanceledpendingchecked_inno_showvoidedvoid_policyWhether the booking is eligible to be voided.
Show fields
Whether the booking is eligible to be voided.
type:allowed (allowed1) allowed1
typevalue: allowed
allowed_until (allowed_until1) allowed_until1
typevalue: allowed_until
expires_atnot_allowed (not_allowed1) not_allowed1
typevalue: not_allowed
created_atISO 8601 timestamp of when the booking was originally created.
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_providedUsed by
{
"currency": "CAD",
"itinerary": {
"slices": [
{
"segments": [
{
"origin_airport": "YUL",
"destination_airport": "YYZ",
"departure_date_time": "2024-06-15T14:30",
"arrival_date_time": "2024-06-15T16:00",
"cabin": "Economy",
"reservation_booking_designator": "N",
"marketing_carrier_code": "AC",
"marketing_flight_number": 123,
"operating_carrier_code": "string",
"operating_flight_number": "string"
}
],
"fare_brand": "string"
}
],
"passengers": [
{
"passenger_type": "string",
"fare_amount": "250.00",
"ancillaries": [
{
"amount": "25.00",
"code": "string"
}
],
"id": "passenger-id-1"
}
],
"ancillaries": [
{
"amount": "25.00",
"code": "string"
}
]
},
"booking_references": {},
"booking_status": "confirmed",
"void_policy": {
"type": "string"
},
"created_at": "2024-06-15T10:30:00Z",
"payment_transactions": [
{
"amount": "150.00",
"date_time": "2024-06-15T10:30:00Z",
"transaction_type": "user_charge",
"payment_type": "payment_card"
}
]
}