API reference

HTS APIs

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

Schema

offer_price_request

Fields

token
string
required

Opaque token from a shop offer's token field

Length ≥ 1, ≤ 1024 · Example eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9
passengers
array of passenger
required
Items ≥ 1, ≤ 9
Show fields
Array of passenger
Items ≥ 1, ≤ 9
type
string enum
required
Values adultchildlap_infantseated_infant · Example adult
first_name
string
required

Passenger's first name

Length ≥ 1 · Example John
last_name
string
required

Passenger's last name

Length ≥ 1 · Example Doe
date_of_birth
string · date
required

Passenger's date of birth in YYYY-MM-DD format

Example 1990-01-15
gender
string enum
required
Values malefemaleunspecified · Example male
email
string · email
required

Passenger's email address

Example john@example.com
phone_number
string
required

Passenger's phone number

Length ≥ 1 · Example +15551234567
id
string

Unique passenger identifier within this quote/order

Example a1b2c3d4-e5f6-7890-abcd-ef1234567890
middle_name
string

Passenger's middle name

Example Michael
nationality
string

Passenger's nationality as an ISO 3166-1 alpha-2 country code

Length ≥ 2, ≤ 2 · Example US
travel_documents
array of travel_document

Passenger's travel documents

Show fields
Array of travel_document · one of 4 · Passenger's travel documents
Exactly one of the following, selected by type:
passport (passport_document) passport_document
type
string enum
required

Travel document type discriminator

Values passport
number
string
required

Passport number

Length ≥ 1 · Example A1234567
issuing_country
string
required

ISO 3166-1 alpha-2 country code of the issuing country

Length ≥ 2, ≤ 2 · Example US
expiry_date
string · date

Passport expiry date

Example 2030-01-15
national_id (national_id_document) national_id_document
type
string enum
required

Travel document type discriminator

Values national_id
number
string
required

National ID number

Length ≥ 1 · Example 12345678
issuing_country
string
required

ISO 3166-1 alpha-2 country code of the issuing country

Length ≥ 2, ≤ 2 · Example BR
known_traveler (known_traveler_document) known_traveler_document
type
string enum
required

Travel document type discriminator

Values known_traveler
number
string
required

TSA PreCheck Known Traveler Number

Length ≥ 1 · Example 123456789
issuing_country
string
required

ISO 3166-1 alpha-2 country code of the issuing country

Length ≥ 2, ≤ 2 · Example US
redress (redress_document) redress_document
type
string enum
required

Travel document type discriminator

Values redress
number
string
required

DHS Redress Control Number

Length ≥ 1 · Example 1234567
issuing_country
string
required

ISO 3166-1 alpha-2 country code of the issuing country

Length ≥ 2, ≤ 2 · Example US
frequent_flyer_programs
array of frequent_flyer_program

Passenger's frequent flyer program memberships

Show fields
Array of frequent_flyer_program · Passenger's frequent flyer program memberships
airline
string
required

IATA code of the airline operating the program

Length ≥ 2, ≤ 2 · Example AC
number
string
required

Frequent flyer membership number

Length ≥ 1 · Example AC123456789
accompanying_adult_id
string

For lap_infant passengers only: the ID of the accompanying adult passenger this infant is traveling with.

Example pas_0
special_assistance
array of string enum

Special assistance requests for this passenger.

Used by

POST/offerPriceConfirm fare availability and ancillaries
Example
{
  "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9",
  "passengers": [
    {
      "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
      "type": "adult",
      "first_name": "John",
      "middle_name": "Michael",
      "last_name": "Doe",
      "date_of_birth": "1990-01-15",
      "gender": "male",
      "nationality": "US",
      "travel_documents": [
        {
          "type": "passport",
          "number": "A1234567",
          "issuing_country": "US",
          "expiry_date": "2030-01-15"
        }
      ],
      "frequent_flyer_programs": [
        {
          "airline": "AC",
          "number": "AC123456789"
        }
      ],
      "accompanying_adult_id": "pas_0",
      "email": "john@example.com",
      "phone_number": "+15551234567",
      "special_assistance": [
        "blind"
      ]
    }
  ]
}