API reference

HTS APIs

Every endpoint, schema and error code, rendered from the published OpenAPI files, in the order you integrate them.

Schema

shopped_slice

Fields

segments
array of shopped_segment
required

The segments in this slice.

Items ≥ 1
Show fields
Array of shopped_segment · The segments in this slice.
Items ≥ 1
origin_airport
string
required

IATA code of the origin airport.

Pattern [A-Z]{3}
destination_airport
string
required

IATA code of the destination airport.

Pattern [A-Z]{3}
departure_date_time
string
required

Scheduled local departure date and time in ISO Local Date Time format.

arrival_date_time
string
required

Scheduled local arrival date and time in ISO Local Date Time format.

marketing_carrier_code
string
required

IATA marketing carrier code.

Pattern [A-Z0-9]{2}
marketing_flight_number
string
required

Marketing flight number.

Pattern [0-9]{1,4}
cabin
string enum
required

Cabin class.

Values economypremium_economybusinessfirst
operating_carrier_code
string

IATA operating carrier code, present when the flight is operated by a different carrier.

Pattern [A-Z0-9]{2}
operating_flight_number
string

Operating flight number, present when the flight is operated under a different number.

Pattern [0-9]{1,4}
reservation_booking_designator
string

Reservation 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.

Pattern ^[A-Z][A-Z0-9]?$
fare_brand
string

Name of the fare brand for this slice, if the source provides one.

Length ≥ 1
Example
{
  "segments": [
    {
      "origin_airport": "YUL",
      "destination_airport": "YYZ",
      "departure_date_time": "2024-06-15T14:30",
      "arrival_date_time": "2024-06-15T16:00",
      "marketing_carrier_code": "AC",
      "marketing_flight_number": 123,
      "operating_carrier_code": "QK",
      "operating_flight_number": 456,
      "cabin": "Economy",
      "reservation_booking_designator": "F"
    }
  ],
  "fare_brand": "Economy Flex"
}