API reference

HTS APIs

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

Schema

get_booking_response

Recommended response structure for the partner get_booking endpoint.

Fields

currency
string
required

ISO 4217 currency code for all monetary amounts in the response.

itinerary
itinerary
required

The flight itinerary associated with the booking.

Show fields
slices
array of slice1
required

The legs of the itinerary.

Show fields
Array of slice1 · The legs of the itinerary.
segments
array of slice_segment
required

The flight segments within this slice.

Show fields
Array of slice_segment · The flight segments within this slice.
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.

cabin
string enum
required

Cabin class.

Values economypremium_economybusinessfirst
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}
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 operating carrier code, if different from marketing carrier.

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

Operating flight number, if different from marketing flight number.

Pattern [0-9]{1,4}
fare_brand
string
required

The fare brand for this slice.

passengers
array of passenger
required

Passengers on the booking.

Show fields
Array of passenger · Passengers on the booking.
passenger_type
string
required

Type of passenger (e.g. adult, child, lap_infant, seated_infant).

fare_amount
string
required

The fare amount for this passenger.

Range ≥ 0
ancillaries
array of ancillary1

Optional ancillary purchases for this passenger.

Show fields
Array of ancillary1 · Optional ancillary purchases for this passenger.
amount
string
required

Monetary amount of the ancillary.

Range ≥ 0
code
string
required

Code identifying the type of ancillary.

id
string

A non-PII identifier generated by the partner that uniquely identifies a passenger within the booking and remains stable for the life of the booking.

Length ≥ 1
ancillaries
array of ancillary1

Optional ancillary purchases.

Show fields
Array of ancillary1 · Optional ancillary purchases.
amount
string
required

Monetary amount of the ancillary.

Range ≥ 0
code
string
required

Code identifying the type of ancillary.

booking_references
map_string
required

Partner-defined key/value pairs used to identify the booking (e.g. record locator, order ID). These must match the references provided during contract creation.

booking_status
string enum
required

Current status of the booking as reported by the partner system. HTS will accept and translate partner-specific statuses.

Values confirmedcanceledpendingchecked_inno_showvoided
void_policy
void_policy1 · one of 3
required

Whether the booking is eligible to be voided.

Show fields

Whether the booking is eligible to be voided.

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

value: allowed

allowed_until (allowed_until1) allowed_until1
type
string
required

value: allowed_until

expires_at
string · date-time
required
not_allowed (not_allowed1) not_allowed1
type
string
required

value: not_allowed

created_at
string · date-time
required

ISO 8601 timestamp of when the booking was originally created.

payment_transactions
array of payment_transaction

Record of payment transactions associated with this booking.

Show fields
Array of payment_transaction · Record of payment transactions associated with this booking.
amount
string
required

Monetary amount of the transaction.

Range ≥ 0
date_time
string · date-time
required

ISO 8601 timestamp when the transaction occurred.

transaction_type
string enum
required

Whether this transaction is a charge or refund.

Values user_chargeuser_refund
payment_type
string enum
required

The payment method used for this transaction.

Values payment_cardnot_provided

Used by

GET/get_bookingGet Booking
Example
{
  "currency": "CAD",
  "itinerary": {
    "slices": [
      {
        "segments": [
          {
            "origin_airport": "YUL",
            "destination_airport": "YYZ",
            "departure_date_time": "2024-06-15T14:30",
            "arrival_date_time": "2024-06-15T16:00",
            "cabin": "Economy",
            "reservation_booking_designator": "N",
            "marketing_carrier_code": "AC",
            "marketing_flight_number": 123,
            "operating_carrier_code": "string",
            "operating_flight_number": "string"
          }
        ],
        "fare_brand": "string"
      }
    ],
    "passengers": [
      {
        "passenger_type": "string",
        "fare_amount": "250.00",
        "ancillaries": [
          {
            "amount": "25.00",
            "code": "string"
          }
        ],
        "id": "passenger-id-1"
      }
    ],
    "ancillaries": [
      {
        "amount": "25.00",
        "code": "string"
      }
    ]
  },
  "booking_references": {},
  "booking_status": "confirmed",
  "void_policy": {
    "type": "string"
  },
  "created_at": "2024-06-15T10:30:00Z",
  "payment_transactions": [
    {
      "amount": "150.00",
      "date_time": "2024-06-15T10:30:00Z",
      "transaction_type": "user_charge",
      "payment_type": "payment_card"
    }
  ]
}