API reference
HTS APIs
Every endpoint, schema and error code, rendered from the published OpenAPI files, in the order you integrate them.
Schema
shopping_request
Fields
slicesarray of query_slice
required
Items ≥ 1, ≤ 2
Show fields
Array of query_slice
Items ≥ 1, ≤ 2
originstring
required
IATA airport or city code of the origin
Length ≥ 3, ≤ 3 · Example
YULdestinationstring
required
IATA airport or city code of the destination
Length ≥ 3, ≤ 3 · Example
JFKdeparture_datestring · date
required
Departure date in YYYY-MM-DD format
Example
2026-06-01origin_typestring enum
Whether a location code refers to an airport or a city. Defaults to airport.
Values
airportcity · Default "airport" · Example airportdestination_typestring enum
Whether a location code refers to an airport or a city. Defaults to airport.
Values
airportcity · Default "airport" · Example airportpassengersarray of passenger_count
required
Items ≥ 1
Show fields
Array of passenger_count
Items ≥ 1
typestring enum
required
Values
adultchildlap_infantseated_infant · Example adultcountinteger
required
Range ≥ 1, ≤ 9 · Example
1Used by
Example
{
"slices": [
{
"origin": "YUL",
"destination": "JFK",
"departure_date": "2026-06-01",
"origin_type": "airport",
"destination_type": "airport"
}
],
"passengers": [
{
"type": "adult",
"count": 1
}
]
}