API reference

HTS APIs

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

Schema

ancillary_itinerary

Itinerary for which to create offers.

Fields

slices
array of itinerary_slice
required

List of slices of the itinerary; 1 (one way), 2 (round trip), or up to 10 (multi-destination) slices are allowed

Items ≥ 1
Show fields
Array of itinerary_slice · List of slices of the itinerary; 1 (one way), 2 (round trip), or up to 10 (multi-destination) slices are allowed
Items ≥ 1
segments
array of itinerary_slice_segment
required

A list of segments which make up the slice.

Items ≥ 1
Show fields
Array of itinerary_slice_segment · A list of segments which make up the slice.
Items ≥ 1
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}
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}
fare_brand
string
required

Name of the brand for the fare of the slice.

Length ≥ 1
alternative_fares
array of fare

A list of alternative fares which were also available to the user in the same cabin.

Items ≥ 1
Show fields
Array of fare · A list of alternative fares which were also available to the user in the same cabin.
Items ≥ 1
amount
string
required

Price of the fare.

brand
string
required

Name of the brand for this fare.

Length ≥ 1
fare_rules
fare_rules

The fare rules for the slice detailing cancel and change policies with associated penalties and refund methods. Fare rules which are not sent are assumed to be unknown.

Show fields
cancel
policies

The cancel policy for the slice.

Show fields
before_departure
policy · one of 2

Policy that applies before the flight departure time.

Show fields

Policy that applies before the flight departure time.

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

value: non_refundable

refundable (refundable) refundable
type
string
required

value: refundable

method
string enum
required

The method by which the refund will be processed.

Values original_form_of_paymentfuture_travel_credit
penalty
penalty · one of 2

Penalty applied to the refund amount, if applicable.

Show fields
after_departure
policy · one of 2

Policy that applies after the flight departure time.

Show fields

Policy that applies after the flight departure time.

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

value: non_refundable

refundable (refundable) refundable
type
string
required

value: refundable

method
string enum
required

The method by which the refund will be processed.

Values original_form_of_paymentfuture_travel_credit
penalty
penalty · one of 2

Penalty applied to the refund amount, if applicable.

Show fields
anytime
policy · one of 2

Policy that applies regardless of timing relative to departure.

Show fields

Policy that applies regardless of timing relative to departure.

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

value: non_refundable

refundable (refundable) refundable
type
string
required

value: refundable

method
string enum
required

The method by which the refund will be processed.

Values original_form_of_paymentfuture_travel_credit
penalty
penalty · one of 2

Penalty applied to the refund amount, if applicable.

Show fields
change
policies

The change policy for the slice.

Show fields
before_departure
policy · one of 2

Policy that applies before the flight departure time.

Show fields

Policy that applies before the flight departure time.

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

value: non_refundable

refundable (refundable) refundable
type
string
required

value: refundable

method
string enum
required

The method by which the refund will be processed.

Values original_form_of_paymentfuture_travel_credit
penalty
penalty · one of 2

Penalty applied to the refund amount, if applicable.

Show fields
after_departure
policy · one of 2

Policy that applies after the flight departure time.

Show fields

Policy that applies after the flight departure time.

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

value: non_refundable

refundable (refundable) refundable
type
string
required

value: refundable

method
string enum
required

The method by which the refund will be processed.

Values original_form_of_paymentfuture_travel_credit
penalty
penalty · one of 2

Penalty applied to the refund amount, if applicable.

Show fields
anytime
policy · one of 2

Policy that applies regardless of timing relative to departure.

Show fields

Policy that applies regardless of timing relative to departure.

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

value: non_refundable

refundable (refundable) refundable
type
string
required

value: refundable

method
string enum
required

The method by which the refund will be processed.

Values original_form_of_paymentfuture_travel_credit
penalty
penalty · one of 2

Penalty applied to the refund amount, if applicable.

Show fields
void_policy
void_policy · one of 4

The void policy for the slice, describing whether and how long a booking can be voided after purchase. If not specified, the void policy is unknown.

Show fields

The void policy for the slice, describing whether and how long a booking can be voided after purchase. If not specified, the void policy is unknown.

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

value: allowed

allowed_for (allowed_for) allowed_for
type
string
required

value: allowed_for

duration
string
required

The duration after booking during which the booking can be voided, as an ISO 8601 duration.

allowed_until (allowed_until) allowed_until
type
string
required

value: allowed_until

expires_at
string · date-time
required

The point in time until which the booking can be voided, as a UTC RFC3339 formatted datetime.

not_allowed (not_allowed) not_allowed
type
string
required

value: not_allowed

ancillaries
array of ancillary
required

Ancillaries attached to the itinerary which will be covered by the product and their prices. In the case of a split itinerary the payout amount of these ancillaries will be evenly distributed amongst the passengers.

Show fields
Array of ancillary · Ancillaries attached to the itinerary which will be covered by the product and their prices. In the case of a split itinerary the payout amount of these ancillaries will be evenly distributed amongst the passengers.
amount
string
required

Total price of the ancillary.

code
string
required

Code of the ancillary in the PNR/Order, e.g. the SSR code XBAG for an extra checked baggage. The mapping table of code => ancillary type, and whether the ancillary is covered or not, is configured on the HTS side. It's important to use the same value as in the PNR/Order since it's used by HTS for various flow, e.g. validating and updating a CFAR or DAFAR payout amount.

Length ≥ 1
passengers
array of itinerary_passenger
required

List of passengers on the itinerary.

Items ≥ 1
Show fields
Array of itinerary_passenger · List of passengers on the itinerary.
Items ≥ 1
type
string enum
required

Type of passenger:
* adult - 12+ years of age
* child - 2-11 years of age
* seated_infant - < 2 years of age, in their own seat
* lap_infant - < 2 years of age, not in their own seat

Values adultchildseated_infantlap_infant
ancillaries
array of ancillary
required

Ancillaries attached to the passenger and their prices.

Show fields
Array of ancillary · Ancillaries attached to the passenger and their prices.
amount
string
required

Total price of the ancillary.

code
string
required

Code of the ancillary in the PNR/Order, e.g. the SSR code XBAG for an extra checked baggage. The mapping table of code => ancillary type, and whether the ancillary is covered or not, is configured on the HTS side. It's important to use the same value as in the PNR/Order since it's used by HTS for various flow, e.g. validating and updating a CFAR or DAFAR payout amount.

Length ≥ 1
fare_amount
string
required

Total price of the fare for this passenger

Range ≥ 0
fare_amount_modifications
array of fare_amount_modification

Modifications to the fare amount, which change how much a customer is charged. Add each fare modification to the fare amount to get the total fare amount the customer will be charged.

Items ≥ 1
Show fields
Array of fare_amount_modification · Modifications to the fare amount, which change how much a customer is charged. Add each fare modification to the fare amount to get the total fare amount the customer will be charged.
Items ≥ 1
amount
string
required

Amount of the modification.

reason
string
required

Reason for the modification being applied to the fare amount.

Length ≥ 1
Example
{
  "slices": [
    {
      "segments": [
        {
          "origin_airport": "BOS",
          "destination_airport": "LGA",
          "departure_date_time": "2022-04-02T18:34:30",
          "arrival_date_time": "2022-04-02T19:12:30",
          "cabin": "economy",
          "reservation_booking_designator": "Y",
          "marketing_carrier_code": "B6",
          "marketing_flight_number": "776",
          "operating_carrier_code": "B6",
          "operating_flight_number": "776"
        }
      ],
      "fare_brand": "Flex",
      "alternative_fares": [
        {
          "amount": "401.10",
          "brand": "flex"
        }
      ],
      "fare_rules": {
        "cancel": {
          "before_departure": {
            "type": "string"
          },
          "after_departure": {
            "type": "string"
          },
          "anytime": {
            "type": "string"
          }
        },
        "change": {
          "before_departure": {
            "type": "string"
          },
          "after_departure": {
            "type": "string"
          },
          "anytime": {
            "type": "string"
          }
        }
      },
      "void_policy": {
        "type": "string"
      }
    }
  ],
  "ancillaries": [
    {
      "amount": "20.55",
      "code": "string"
    }
  ],
  "passengers": [
    {
      "type": "adult",
      "ancillaries": [
        {
          "amount": "20.55",
          "code": "string"
        }
      ],
      "fare_amount": "140.56",
      "fare_amount_modifications": [
        {
          "amount": "10.00",
          "reason": "points conversion"
        }
      ]
    }
  ]
}