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
line1string
required
First line of the address
Example
123 Main Streetcitystring
required
City name
Example
New Yorkpostal_codestring
required
Postal or ZIP code
Example
10001statestate
required
State or province information
Show fields
namestring
required
Full name of the state or province
Example
Californiacodestring
required
2-letter or 3-letter state/province code for Australia, Canada and the USA.
Example
CAcountrystring
required
Country code (ISO 3166-1 alpha-2)
Pattern
^[A-Z]{2}$ · Example USline2string
Second line of the address (optional)
Example
Apt 4BExample
{
"line1": "123 Main Street",
"line2": "Apt 4B",
"city": "New York",
"postal_code": "10001",
"state": {
"name": "California",
"code": "CA"
},
"country": "US"
}