API reference

HTS APIs

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

Schema

address

Address information for a lodging

Fields

line1
string
required

First line of the address

Example 123 Main Street
city
string
required

City name

Example New York
postal_code
string
required

Postal or ZIP code

Example 10001
state
state
required

State or province information

Show fields
name
string
required

Full name of the state or province

Example California
code
string
required

2-letter or 3-letter state/province code for Australia, Canada and the USA.

Example CA
country
string
required

Country code (ISO 3166-1 alpha-2)

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

Second line of the address (optional)

Example Apt 4B
Example
{
  "line1": "123 Main Street",
  "line2": "Apt 4B",
  "city": "New York",
  "postal_code": "10001",
  "state": {
    "name": "California",
    "code": "CA"
  },
  "country": "US"
}