API reference

HTS APIs

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

Schema

one_way

Fields

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.

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