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

The trip as purchased, with each slice's exercise eligibility and each segment's rebook eligibility and disruption. It doesn't change after a rebook; the rebooked flights are in that rebook's exercise. Populated on Get Contract and the contract webhooks; absent on Create Contract.

Fields

slices
array of contract_itinerary_slice
required

The slices of the trip as purchased, in purchase order.

Items ≥ 1
Show fields
Array of contract_itinerary_slice · The slices of the trip as purchased, in purchase order.
Items ≥ 1
segments
array of contract_itinerary_segment
required

The ordered list of segments that make up this slice.

Items ≥ 1
Show fields
Array of contract_itinerary_segment · The ordered list of segments that make up this slice.
Items ≥ 1
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
…
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

fare_brand
string
required

Name of the brand for the fare of the slice.

Length ≥ 1
exercise_eligibility
exercise_eligibility · one of 2
required

Whether this slice can be exercised, and how.

Show fields

Whether this slice can be exercised, and how.

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

value: eligible

exercise_options
array of exercise_option
required

The ways the slice can be exercised.

Items ≥ 1
ineligible (ineligible1) ineligible1
type
string
required

value: ineligible

Example
{
  "slices": [
    {
      "segments": [
        {
          "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": []
          },
          "disruption": {
            "type": "string"
          }
        }
      ],
      "fare_brand": "Standard",
      "exercise_eligibility": {
        "type": "string",
        "exercise_options": [
          "payout"
        ]
      }
    }
  ]
}