API reference

HTS APIs

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

Schema

contract_itinerary_segment

Fields

id
string
required

Base64-encoded string of ":", both zero-based. The encoding is padded, so some ids end in =; treat the id as an opaque string.

origin_airport
string
required

IATA airport code of origin.

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

IATA airport code of destination.

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

Local date and time of departure, in ISO 8601 format.

arrival_date_time
string
required

Local date and time of arrival, in ISO 8601 format.

cabin
string enum
required

Cabin of the segment.

Values economypremium_economybusinessfirst
marketing_carrier_code
string
required

IATA airline code of the marketing carrier for this segment.

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

Flight number for the marketing carrier.

Pattern [0-9]{1,4}
rebook_eligibility
rebook_eligibility · one of 2
required

Whether a rebook can start from this segment, with the search criteria when it can.

Show fields

Whether a rebook can start from this segment, with the search criteria when it can.

Exactly one of the following, selected by type:
eligible (eligible) eligible
type
string
required

value: eligible

search_criterias
array of search_criteria
required

The searches HTS applies before shopping a rebook from this segment. Partners sourcing their own inventory must apply them so their rebook options match the HTS-sourced flow.

Items ≥ 1
Show fields
Array of search_criteria · The searches HTS applies before shopping a rebook from this segment. Partners sourcing their own inventory must apply them so their rebook options match the HTS-sourced flow.
Items ≥ 1
slice_index
integer · int32
required

Zero-based position in slices of the slice these criteria search for.

Range ≥ 0
origin_airports
array of string
required

Origin airports to search: the original airport plus any nearby airports HTS would include.

Items ≥ 1
destination_airports
array of string
required

Destination airports to search: the original airport plus any nearby airports HTS would include.

Items ≥ 1
departure_date_window
date_window
required

The departure date window to search across.

Show fields
start
string · date
required

First date of the search window (the disrupted departure day), as an ISO local date.

end
string · date
required

Last date of the search window (typically the day after the disruption), as an ISO local date.

ineligible (ineligible) ineligible
type
string
required

value: ineligible

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]?$
operating_carrier_code
string

IATA airline code of the operating carrier for this segment. Assumed to be the same as marketing_carrier_code if not set.

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

Flight number for the operating carrier. Assumed to be the same as marketing_flight_number if not set.

Pattern [0-9]{1,4}
disruption
disruption_reason · one of 3

The disruption on this segment. Absent when the segment has not been disrupted.

Show fields

The disruption on this segment. Absent when the segment has not been disrupted.

Exactly one of the following, selected by type:
canceled (canceled) canceled
type
string
required

value: canceled

delayed (delayed) delayed
type
string
required

value: delayed

delay_minutes
integer · int32
required

The number of minutes the flight was delayed.

missed_connection (missed_connection1) missed_connection1
type
string
required

value: missed_connection

Example
{
  "id": "MDow",
  "origin_airport": "YUL",
  "destination_airport": "SFO",
  "departure_date_time": "2026-11-15T08:00",
  "arrival_date_time": "2026-11-15T11:15",
  "cabin": "Economy",
  "reservation_booking_designator": "Y",
  "marketing_carrier_code": "AC",
  "marketing_flight_number": "759",
  "operating_carrier_code": "AC",
  "operating_flight_number": "759",
  "rebook_eligibility": {
    "type": "string",
    "search_criterias": [
      {
        "slice_index": 0,
        "origin_airports": [
          "string"
        ],
        "destination_airports": [
          "string"
        ],
        "departure_date_window": {
          "start": "2026-05-11",
          "end": "2026-05-12"
        }
      }
    ]
  },
  "disruption": {
    "type": "string"
  }
}