HTS APIs
Every endpoint, schema and error code, rendered from the published OpenAPI files, in the order you integrate them.
/shoppingSearchSearch for flights
Retrieve flight offers from multiple sources.
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.
Request body application/json · required
slicesShow fields
originIATA airport or city code of the origin
YULdestinationIATA airport or city code of the destination
JFKdeparture_dateDeparture date in YYYY-MM-DD format
2026-06-01origin_typeWhether a location code refers to an airport or a city. Defaults to airport.
airportcity · Default "airport" · Example airportdestination_typeWhether a location code refers to an airport or a city. Defaults to airport.
airportcity · Default "airport" · Example airportpassengersShow fields
typeadultchildlap_infantseated_infant · Example adultcount1Responses
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.
offersShow fields
tokenAn opaque token that identifies the offer for quoting.
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9slicesThe 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.00validating_carrier_codeIATA code of the validating carrier for this offer.
ACpassenger_pricingPer-passenger-type price breakdown for this offer.
Show fields
typeadultchildlap_infantseated_infant · Example adultcountNumber of passengers of this type this pricing applies to.
2pricePrice 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
required_passenger_informationPassenger information required for this offer at offerPrice time. When absent, no additional passenger information is required beyond the standard fields.
Show fields
typeThe type of passenger information required
nationalitypassportnational_idknown_travelerredress · Example nationalityidUnique identifier for this shop response.
shop_abc123400Bad 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.
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.
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.
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 PUT "https://travel-distribution.staging.htsapis.com/api/flights/v1/shopping" \
-H "HTS-API-KEY: $HTS_API_KEY" \
-H "Request-Id: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"slices": [
{
"origin": "YUL",
"destination": "JFK",
"departure_date": "2026-06-01",
"origin_type": "airport",
"destination_type": "airport"
}
],
"passengers": [
{
"type": "adult",
"count": 1
}
]
}'{
"id": "shop_abc123",
"offers": [
{
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9",
"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"
}
]
},
"validating_carrier_code": "AC",
"passenger_pricing": [
{
"type": "adult",
"count": 2,
"price": {
"currency": "USD",
"base_amount": "120.00",
"total_amount": "150.00",
"taxes_and_fees_amount": "30.00",
"taxes_and_fees": [
{}
]
}
}
],
"required_passenger_information": [
{
"type": "nationality"
}
]
}
]
}Examples are generated from the schema where the spec publishes none; field values are illustrative.
