API reference

HTS APIs

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

Schema

round_trip

Fields

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",
  "origin": "BOS",
  "destination": "LGA",
  "departure_date": "2024-04-22",
  "return_date": "2024-04-29",
  "previous_slice_offer_id": "string"
}