API reference

HTS APIs

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

Schema

segment_eligibility

Fields

id
string
required

Stable identifier for this segment within the rebook eligibility. Echo it back as segment_id on the flight shop request to rebook this exact segment. Stable across eligibility calls for the same disruption.

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
rebook_eligibility
rebook_eligibility · one of 2
required

Whether this segment is eligible for rebook, with the search criteria when it is.

Show fields

Whether this segment is eligible for rebook, with the search criteria when it is.

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]?$
disruption
disruption_reason · one of 3

The disruption experienced by the segment, if any has occurred.

Show fields

The disruption experienced by the segment, if any has occurred.

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": "seg_1",
  "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,
  "cabin": "Economy",
  "reservation_booking_designator": "J",
  "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"
  }
}