API reference

HTS APIs

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

Schema

flight_delay1

The covered flight was delayed beyond the threshold.

Fields

type
string
required

value: flight_delay

segment
disrupted_segment
required

The flight segment that was delayed.

Show fields
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}
revised_departure_date_time
string
revised_arrival_date_time
string
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 asmarketing_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 asmarketing_flight_number if not set.

Pattern [0-9]{1,4}
delay_minutes
integer · int32
required

The number of minutes the flight was delayed.

Example
{
  "type": "string",
  "segment": {
    "origin_airport": "BOS",
    "destination_airport": "LGA",
    "departure_date_time": "2022-04-02T18:34:30",
    "revised_departure_date_time": "string",
    "arrival_date_time": "2022-04-02T19:12:30",
    "revised_arrival_date_time": "string",
    "cabin": "economy",
    "reservation_booking_designator": "Y",
    "marketing_carrier_code": "B6",
    "marketing_flight_number": "776",
    "operating_carrier_code": "B6",
    "operating_flight_number": "776"
  },
  "delay_minutes": 1
}