HTS APIs
Every endpoint, schema and error code, rendered from the published OpenAPI files, in the order you integrate them.
slice1
A single leg of the itinerary, containing one or more segments.
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.
{
"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"
}