API reference

HTS APIs

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

Schema

trip

The type of trip the customer is shopping for. This field should only be sent when synthetic fares are being created for partial itineraries which are merchandised slice by slice in the partner's booking flow. Itineraries are assumed by default to be complete, so there is no need to pass the trip type when creating a synthetic fare for the full itinerary.

Fields

The type of trip the customer is shopping for. This field should only be sent when synthetic fares are being created for partial itineraries which are merchandised slice by slice in the partner's booking flow. Itineraries are assumed by default to be complete, so there is no need to pass the trip type when creating a synthetic fare for the full itinerary.

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

value: multi_city

slices
array of slice
required

The individual slices of the multi-city trip

Items ≥ 1
Show fields
Array of slice · The individual slices of the multi-city trip
Items ≥ 1
origin
string
required

IATA airport code of origin.

Pattern [A-Z]{3}
destination
string
required

IATA airport code of destination.

Pattern [A-Z]{3}
departure_date
string · date
required

Local date of departure from origin.

previous_slice_offer_id
string

Used when the partner's booking flow is merchandised one slice at a time. When generating synthetic fares for the first slice, this field should be empty. If the customer has chosen a synthetic fare for the prior slice, the CFAR offer id of the chosen synthetic fare should be stored and passed back into this field when generating synthetic fares for the next slice. The final output will be an offer for the entire itinerary, progressively built from each of the slice selections.

one_way (one_way) one_way
type
string
required

value: one_way

origin
string
required

IATA airport code of origin.

Pattern [A-Z]{3}
destination
string
required

IATA airport code of destination.

Pattern [A-Z]{3}
departure_date
string · date
required

Local date of departure from origin.

round_trip (round_trip) round_trip
type
string
required

value: round_trip

origin
string
required

IATA airport code of origin.

Pattern [A-Z]{3}
destination
string
required

IATA airport code of destination.

Pattern [A-Z]{3}
departure_date
string · date
required

Local date of departure from origin.

return_date
string · date
required

Local date of return from destination.

previous_slice_offer_id
string

Used when the partner's booking flow is merchandised one slice at a time. When generating synthetic fares for the outgoing slice, this field should be empty. If the customer has chosen a synthetic fare for the outgoing slice, the CFAR offer id of the chosen synthetic fare should be stored and passed back into this field when generating synthetic fares for the return slice. The final output will be an offer for the entire itinerary, progressively built from each of the slice selections.

Example
{
  "type": "string",
  "slices": [
    {
      "origin": "BOS",
      "destination": "LGA",
      "departure_date": "2024-04-22"
    }
  ],
  "previous_slice_offer_id": "string"
}