API reference

HTS APIs

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

Schema

PrimaryGuest

Details of the primary guest who will check in for the reservation.

Fields

first_name
string · person-name
required

First name of the primary guest. Validation allows ANY character in any language (Latin, CJK, Arabic, etc), numbers, and punctuation. Strictly blocks Emojis and other 4-byte Unicode characters.

Length ≥ 1, ≤ 255 · Pattern ^[\u0000-\uD7FF\uE000-\uFFFF]+$ · Example Fred
last_name
string · person-name
required

Last name of the primary guest. Validation allows ANY character in any language, numbers, and punctuation. Strictly blocks Emojis and other 4-byte Unicode characters.

Length ≥ 1, ≤ 255 · Pattern ^[\u0000-\uD7FF\uE000-\uFFFF]+$ · Example Lalonde
email
string · email
required

Email address of the primary guest.

Example fred@example.com
phone
string

Phone number of the primary guest.

Pattern ^\+?[0-9]{7,15}$ · Example +18339334671
hotel_loyalty
array of hotel_loyalty

Optional. The guest's hotel loyalty memberships. Send whichever the guest holds; we forward the one matching the program on the rate being booked. Always accepted, whatever the quote said. loyalty.loyalty_transmission on the quote advises whether collecting a membership is worth it — where it is not eligible we may have no way to transmit one, so the guest should verify at check-in — but it never gates this field.

Items ≤ 10
Show fields
Array of hotel_loyalty · Optional. The guest's hotel loyalty memberships. Send whichever the guest holds; we forward the one matching the program on the rate being booked. Always accepted, whatever the quote said. `loyalty.loyalty_transmission` on the quote advises whether collecting a membership is worth it — where it is not `eligible` we may have no way to transmit one, so the guest should verify at check-in — but it never gates this field.
Items ≤ 10
program_code
string
required

The 3-character code identifying a hotel loyalty program.

Codes are added as more programs are supported, so treat an unrecognised code as a program you do not yet know about rather than as invalid.

Eligibility is determined by the provider from the rate plan; it is never derived from the traveller, and no loyalty membership is required to shop or book a loyalty-eligible rate.

Length ≥ 3, ≤ 3 · Pattern ^[A-Z0-9]{3}$
loyalty_number
string
required

The guest's membership number for this loyalty program.

Length ≥ 1, ≤ 64 · Example 123456789
Example
{
  "first_name": "Fred",
  "last_name": "Lalonde",
  "email": "fred@example.com",
  "phone": "+18339334671",
  "hotel_loyalty": [
    {
      "program_code": "string",
      "loyalty_number": "123456789"
    }
  ]
}