API reference

HTS APIs

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

Schema

contact_info

Contact information of the user buying the product(s).

Fields

email_address
email_address · one of 3
required
Show fields
Exactly one of the following, selected by type:
hashed (hashed) hashed
type
string
required

value: hashed

value
string
required

A stable hash of the user's email address. Must be stable across different API calls and different bookings. Used for transaction correlation for fraud analysis.

Length ≥ 1
literal (literal) literal
type
string
required

value: literal

value
string
required

The actual email address for the user.

Pattern ^[^@\s]+@[^@\s]+\.[^@\s]+$
not_provided (not_provided1) not_provided1
type
string
required

value: not_provided

phone_number
string
Pattern ^\+[1-9][0-9]{1,14}$
additional_recipients
array of additional_contact_info
Show fields
Array of additional_contact_info
email_address
literal1

Email address of the additional recipient to notify.

Show fields
value
string
required

The actual email address for the user.

Pattern ^[^@\s]+@[^@\s]+\.[^@\s]+$
phone_number
string

SMS notifications are not currently supported; a request that includes a phone number is rejected.

Pattern ^\+[1-9][0-9]{1,14}$
notification_preferences
notification_preferences

Consent for the PRIMARY BOOKER (the email_address / phone_number on this contact_info) to receive disruption notifications via SMS/push. Applies to the primary booker only: additional_recipients never receive SMS or push (they are email-only, notification-only). Captured per offer at purchase; does not persist across offers. Recording consent does not trigger delivery.

Show fields
sms
boolean

SMS consent for the primary booker's phone_number. Omit = not specified, true = opt-in, false = declined. Requires phone_number to be present; the request is rejected if sms=true and phone_number is absent.

push
boolean

Push consent for the primary booker. Omit = not specified, true = opt-in, false = declined.

Example
{
  "email_address": {
    "type": "string",
    "value": "a8cfcd74832004951b4408cdb0a5dbcd8c7e5243f7fe-244bf72058205241da"
  },
  "phone_number": "string",
  "additional_recipients": [
    {
      "email_address": {
        "value": "john@email.com"
      },
      "phone_number": "string"
    }
  ],
  "notification_preferences": {
    "sms": true,
    "push": true
  }
}