HTS APIs
Every endpoint, schema and error code, rendered from the published OpenAPI files, in the order you integrate them.
/offerPriceQuoteConfirm fare availability and ancillaries
Confirm fare availability and ancillaries (bags, seats) before booking.
Parameters
Request-IdOptional client-supplied UUID to correlate this request across your systems and ours.
When provided, the same value is echoed back in the Request-Id response header and
used in logs and traces. When omitted, the server generates one automatically.
Must be a valid UUID; invalid values are rejected with 400 Bad Request.
Idempotency-KeyOptional client-supplied unique string to ensure idempotent processing.
When provided, sending the same key for the same request will return the same result
without re-processing. When omitted, the server generates a UUID automatically.
The resolved key is always returned in the Idempotency-Key response header so it
can be captured and re-sent for retries.
Request body application/json · required
tokenOpaque token from a shop offer's token field
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9passengersShow fields
typeadultchildlap_infantseated_infant · Example adultfirst_namePassenger's first name
Johnlast_namePassenger's last name
Doedate_of_birthPassenger's date of birth in YYYY-MM-DD format
1990-01-15gendermalefemaleunspecified · Example maleemailPassenger's email address
john@example.comphone_numberPassenger's phone number
+15551234567idUnique passenger identifier within this quote/order
a1b2c3d4-e5f6-7890-abcd-ef1234567890middle_namePassenger's middle name
MichaelnationalityPassenger's nationality as an ISO 3166-1 alpha-2 country code
UStravel_documentsPassenger's travel documents
Show fields
type:passport (passport_document) passport_document
typeTravel document type discriminator
passportnumberPassport number
A1234567issuing_countryISO 3166-1 alpha-2 country code of the issuing country
USexpiry_datePassport expiry date
2030-01-15national_id (national_id_document) national_id_document
typeTravel document type discriminator
national_idnumberNational ID number
12345678issuing_countryISO 3166-1 alpha-2 country code of the issuing country
BRknown_traveler (known_traveler_document) known_traveler_document
typeTravel document type discriminator
known_travelernumberTSA PreCheck Known Traveler Number
123456789issuing_countryISO 3166-1 alpha-2 country code of the issuing country
USredress (redress_document) redress_document
typeTravel document type discriminator
redressnumberDHS Redress Control Number
1234567issuing_countryISO 3166-1 alpha-2 country code of the issuing country
USfrequent_flyer_programsPassenger's frequent flyer program memberships
Show fields
airlineIATA code of the airline operating the program
ACnumberFrequent flyer membership number
AC123456789accompanying_adult_idFor lap_infant passengers only: the ID of the accompanying adult passenger this infant is traveling with.
pas_0special_assistanceSpecial assistance requests for this passenger.
Responses
200OK
Request-IdUUID that uniquely identifies this request. If a valid Request-Id was sent in the
request header, this echoes that value; otherwise a server-generated UUID is returned.
Include this value when contacting support to help correlate logs and traces.
Idempotency-KeyThe idempotency key used for this request. If a valid Idempotency-Key was sent in
the request header, this echoes that value; otherwise a server-generated UUID is returned.
Capture this value from the response to retry the same request safely.
slicesThe flight slices (journeys) included in this offer.
Show fields
idUnique slice identifier within this order
sli_0origin_airport_codeIATA code of the origin airport
YULdestination_airport_codeIATA code of the destination airport
JFKdurationTotal journey duration in ISO 8601 duration format
PT5H30MsegmentsShow fields
idUnique segment identifier within this quote/order
seg_0origin_airport_codeIATA code of the origin airport
YULdestination_airport_codeIATA code of the destination airport
JFKdeparture_date_timeDeparture date and time in ISO 8601 format
2026-06-01T10:00:00Zarrival_date_timeArrival date and time in ISO 8601 format
2026-06-01T12:00:00Zflight_numberThe flight number
1234marketing_carrier_codeIATA code of the marketing carrier
ACoperating_carrier_codeIATA code of the operating carrier
UAcabin_classeconomypremium_economybusinessfirst · Example economystopsNumber of stops on this segment (0 = non-stop)
0fare_basis_codeThe fare basis code for this segment
YOWCAbooking_class_codeThe booking class (RBD) for this segment
Yfare_brand_nameThe branded fare name for this segment
Economy FlexdurationFlight duration in ISO 8601 duration format
PT2H30Mequipment_codeIATA aircraft type code
320statusSegment booking status. Only present in order responses (not in shopping or offerPrice).
confirmed: Segment is confirmed.cancelled: Segment cancelled.pending: Awaiting confirmation.
confirmedcancelledpending · Example confirmedpricePrice information for an offer.
Show fields
currencyISO 4217 currency code
^[A-Z]{3}$ · Example USDbase_amountThe base fare amount before taxes as a decimal string.
120.00total_amountThe total amount as a decimal string (base_amount + taxes_and_fees).
150.00taxes_and_fees_amountThe total amount of taxes and fees as a decimal string.
30.00taxes_and_feesItemized taxes and fees breakdown.
Show fields
codeCharge code identifier (e.g., IATA tax/fee codes)
YQamountCharge amount as a decimal string
15.00tokenOpaque token to use for booking this quoted offer
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9passengersShow fields
typeadultchildlap_infantseated_infant · Example adultfirst_namePassenger's first name
Johnlast_namePassenger's last name
Doedate_of_birthPassenger's date of birth in YYYY-MM-DD format
1990-01-15gendermalefemaleunspecified · Example maleemailPassenger's email address
john@example.comphone_numberPassenger's phone number
+15551234567idUnique passenger identifier within this quote/order
a1b2c3d4-e5f6-7890-abcd-ef1234567890middle_namePassenger's middle name
MichaelnationalityPassenger's nationality as an ISO 3166-1 alpha-2 country code
UStravel_documentsPassenger's travel documents
Show fields
type:passport (passport_document) passport_document
typeTravel document type discriminator
passportnumberPassport number
A1234567issuing_countryISO 3166-1 alpha-2 country code of the issuing country
USexpiry_datePassport expiry date
2030-01-15national_id (national_id_document) national_id_document
typeTravel document type discriminator
national_idnumberNational ID number
12345678issuing_countryISO 3166-1 alpha-2 country code of the issuing country
BRknown_traveler (known_traveler_document) known_traveler_document
typeTravel document type discriminator
known_travelernumberTSA PreCheck Known Traveler Number
123456789issuing_countryISO 3166-1 alpha-2 country code of the issuing country
USredress (redress_document) redress_document
typeTravel document type discriminator
redressnumberDHS Redress Control Number
1234567issuing_countryISO 3166-1 alpha-2 country code of the issuing country
USfrequent_flyer_programsPassenger's frequent flyer program memberships
Show fields
airlineIATA code of the airline operating the program
ACnumberFrequent flyer membership number
AC123456789accompanying_adult_idFor lap_infant passengers only: the ID of the accompanying adult passenger this infant is traveling with.
pas_0special_assistanceSpecial assistance requests for this passenger.
available_servicesAncillary services available for purchase with this offer
Show fields
idOpaque service identifier
svc_bag_checkedtypeService type discriminator
baggage · Example baggagepricePrice information for an offer.
Show fields
currencyISO 4217 currency code
^[A-Z]{3}$ · Example USDbase_amountThe base fare amount before taxes as a decimal string.
120.00total_amountThe total amount as a decimal string (base_amount + taxes_and_fees).
150.00taxes_and_fees_amountThe total amount of taxes and fees as a decimal string.
30.00taxes_and_feesItemized taxes and fees breakdown.
Show fields
codeCharge code identifier (e.g., IATA tax/fee codes)
YQamountCharge amount as a decimal string
15.00passenger_idsWhich passengers this service is available for
maximum_quantityMaximum units purchasable
3tiersPer-unit pricing tiers when the price varies by quantity. When present, the top-level price reflects the first tier.
Show fields
tierThe ordinal tier number (1 = first unit, 2 = second unit, etc.)
1pricePrice information for an offer.
Show fields
currencyISO 4217 currency code
^[A-Z]{3}$ · Example USDbase_amountThe base fare amount before taxes as a decimal string.
120.00total_amountThe total amount as a decimal string (base_amount + taxes_and_fees).
150.00taxes_and_fees_amountThe total amount of taxes and fees as a decimal string.
30.00taxes_and_feesItemized taxes and fees breakdown.
Show fields
segment_idsWhich segments this service applies to. When absent, the service applies to the entire journey.
metadataMetadata for a baggage service
Show fields
typeService type discriminator
baggagebaggage_typeType of baggage
checkedcarry_on · Example checkedmaximum_weight_kgMaximum weight in kilograms
23400Bad Request
Request-IdUUID that uniquely identifies this request. If a valid Request-Id was sent in the
request header, this echoes that value; otherwise a server-generated UUID is returned.
Include this value when contacting support to help correlate logs and traces.
Idempotency-KeyThe idempotency key used for this request. If a valid Idempotency-Key was sent in
the request header, this echoes that value; otherwise a server-generated UUID is returned.
Capture this value from the response to retry the same request safely.
errorShow fields
codeA machine-readable snake_case string for programmatic handling.
parameter_missingmessageA human-readable description for the developer.
The 'passengers' parameter is required to create a booking.paramThe specific request parameter that caused the error.
passengersExample
{
"error": {
"code": "parameter_missing",
"message": "The 'passengers' parameter is required to create a booking.",
"param": "passengers"
}
}422Unprocessable Entity
Request-IdUUID that uniquely identifies this request. If a valid Request-Id was sent in the
request header, this echoes that value; otherwise a server-generated UUID is returned.
Include this value when contacting support to help correlate logs and traces.
Idempotency-KeyThe idempotency key used for this request. If a valid Idempotency-Key was sent in
the request header, this echoes that value; otherwise a server-generated UUID is returned.
Capture this value from the response to retry the same request safely.
errorShow fields
codeA machine-readable snake_case string for programmatic handling.
parameter_missingmessageA human-readable description for the developer.
The 'passengers' parameter is required to create a booking.paramThe specific request parameter that caused the error.
passengersExample
{
"error": {
"code": "parameter_missing",
"message": "The 'passengers' parameter is required to create a booking.",
"param": "passengers"
}
}500Internal Server Error
Request-IdUUID that uniquely identifies this request. If a valid Request-Id was sent in the
request header, this echoes that value; otherwise a server-generated UUID is returned.
Include this value when contacting support to help correlate logs and traces.
Idempotency-KeyThe idempotency key used for this request. If a valid Idempotency-Key was sent in
the request header, this echoes that value; otherwise a server-generated UUID is returned.
Capture this value from the response to retry the same request safely.
errorShow fields
codeA machine-readable snake_case string for programmatic handling.
parameter_missingmessageA human-readable description for the developer.
The 'passengers' parameter is required to create a booking.paramThe specific request parameter that caused the error.
passengersExample
{
"error": {
"code": "parameter_missing",
"message": "The 'passengers' parameter is required to create a booking.",
"param": "passengers"
}
}curl -X POST "https://travel-distribution.staging.htsapis.com/api/flights/v1/offerPrice" \
-H "HTS-API-KEY: $HTS_API_KEY" \
-H "Request-Id: $(uuidgen)" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9",
"passengers": [
{
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"type": "adult",
"first_name": "John",
"middle_name": "Michael",
"last_name": "Doe",
"date_of_birth": "1990-01-15",
"gender": "male",
"nationality": "US",
"travel_documents": [
{
"type": "passport",
"number": "A1234567",
"issuing_country": "US",
"expiry_date": "2030-01-15"
}
],
"frequent_flyer_programs": [
{
"airline": "AC",
"number": "AC123456789"
}
],
"accompanying_adult_id": "pas_0",
"email": "john@example.com",
"phone_number": "+15551234567",
"special_assistance": [
"blind"
]
}
]
}'{
"slices": [
{
"id": "sli_0",
"origin_airport_code": "YUL",
"destination_airport_code": "JFK",
"duration": "PT5H30M",
"segments": [
{
"id": "seg_0",
"origin_airport_code": "YUL",
"destination_airport_code": "JFK",
"departure_date_time": "2026-06-01T10:00:00Z",
"arrival_date_time": "2026-06-01T12:00:00Z",
"flight_number": "1234",
"marketing_carrier_code": "AC",
"operating_carrier_code": "UA",
"cabin_class": "economy",
"stops": 0,
"fare_basis_code": "YOWCA",
"booking_class_code": "Y",
"fare_brand_name": "Economy Flex",
"duration": "PT2H30M",
"equipment_code": "320",
"status": "confirmed"
}
]
}
],
"price": {
"currency": "USD",
"base_amount": "120.00",
"total_amount": "150.00",
"taxes_and_fees_amount": "30.00",
"taxes_and_fees": [
{
"code": "YQ",
"amount": "15.00"
}
]
},
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9",
"passengers": [
{
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"type": "adult",
"first_name": "John",
"middle_name": "Michael",
"last_name": "Doe",
"date_of_birth": "1990-01-15",
"gender": "male",
"nationality": "US",
"travel_documents": [
{
"type": "passport",
"number": "A1234567",
"issuing_country": "US",
"expiry_date": "2030-01-15"
}
],
"frequent_flyer_programs": [
{
"airline": "AC",
"number": "AC123456789"
}
],
"accompanying_adult_id": "pas_0",
"email": "john@example.com",
"phone_number": "+15551234567",
"special_assistance": [
"blind"
]
}
],
"available_services": [
{
"id": "svc_bag_checked",
"type": "baggage",
"price": {
"currency": "USD",
"base_amount": "120.00",
"total_amount": "150.00",
"taxes_and_fees_amount": "30.00",
"taxes_and_fees": [
{
"code": "YQ",
"amount": "15.00"
}
]
},
"tiers": [
{
"tier": 1,
"price": {
"currency": "USD",
"base_amount": "120.00",
"total_amount": "150.00",
"taxes_and_fees_amount": "30.00",
"taxes_and_fees": [
{}
]
}
}
],
"segment_ids": [
"seg_0",
"seg_1"
],
"passenger_ids": [
"pas_0"
],
"maximum_quantity": 3,
"metadata": {
"type": "baggage",
"baggage_type": "checked",
"maximum_weight_kg": 23
}
}
]
}Examples are generated from the schema where the spec publishes none; field values are illustrative.
