API reference

HTS APIs

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

Schema

hotel_loyalty

A guest's membership in a hotel loyalty program, supplied so the provider can credit the stay to their account.

The membership is passed to the provider on a best-effort basis. It is never validated by this API beyond the format constraints below, and a number the provider does not recognise does not prevent the reservation from being confirmed. Supplying a membership is optional: a loyalty-eligible rate can be booked without one.

Fields

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
{
  "program_code": "string",
  "loyalty_number": "123456789"
}