API reference

HTS APIs

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

Schema

address

Fields

first_line
string
required

The first line of the street address.

Example JFK Airport Terminal 4
country
string
required

Country code (ISO 3166-1 alpha-2)

Pattern ^[A-Z]{2}$ · Example US
city
string
required

The city of the location.

Example New York
second_line
string

The second line of the street address, if applicable.

state_province
string

The code for the state or province ISO 3166-2 (e.g., "CA", "FL").

Pattern ^[A-Z0-9]{1,3}$ · Example CA
Example
{
  "first_line": "JFK Airport Terminal 4",
  "second_line": "string",
  "country": "US",
  "city": "New York",
  "state_province": "CA"
}