API reference

HTS APIs

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

Schema

send_event_request

Fields

Exactly one of the following, selected by type:
booking_confirmed (booking_confirmed) booking_confirmed
type
string
required

value: booking_confirmed

session_id
string
required

Identifies a single shopping funnel, from the initial search through to booking. A new search (including changing the search parameters) begins a new funnel with a new id.

occurred_at
string · date-time
required

Date and time at which the event occurred, as a UTC RFC3339 formatted datetime.

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

value: from_booking_data

booking_data
booking_data
required

The details of the confirmed booking.

Show fields
check_in_date
string · date
required

The date the guest checks in.

check_out_date
string · date
required

The date the guest checks out.

currency
string
required

The currency the guest was charged in. 3-letter ISO 4217 code.

property
booking_property
required

The property that was booked.

Show fields
id
string
required

The ID of the property in the partner's system.

property_name
string
required

The name of the property.

Length ≥ 1
country_code
string
required

The country the property is in, as an ISO 3166-1 alpha-2 code (2 letters, upper case).

Length ≥ 1
chain_name
string

The name of the property's chain.

Length ≥ 1
rates
array of booking_rate
required

The rates that were booked, each with the unit it was booked for, its price breakdown and its cancellation penalty. A single-room booking has exactly one; a multi-room booking has one per booked room.

Show fields
Array of booking_rate · The rates that were booked, each with the unit it was booked for, its price breakdown and its cancellation penalty. A single-room booking has exactly one; a multi-room booking has one per booked room.
id
string
required

The ID of the booked rate in the partner's system, as sent at offer creation.

unit_id
string
required

The ID of the booked unit in the partner's system, as sent at offer creation.

price
pricing
required

The price breakdown for this rate.

Show fields
cancellation_penalty
cancellation_penalty · one of 2
required

The cancellation penalty for this rate. Use:

  • non_refundable if the rate is not refundable starting from booking time (i.e., if the user cancels right after booking, they won't get any refund)
  • refundable for anything else
Show fields
channel
channel · one of 5
required

The partner's channel the booking was made through.

Show fields

The partner's channel the booking was made through.

Exactly one of the following, selected by type:
agent_reseller (agent_reseller) agent_reseller
type
string
required

value: agent_reseller

agency_id
string
required

The ID of the agency.

Length ≥ 1
agent
agent
required

The agent operating the session. Expected from every agent portal integration.

Show fields
api (api) api
type
string
required

value: api

client
string
required

The client name of the API.

Length ≥ 1
direct (direct) direct
type
string
required

value: direct

online_booking_tool (online_booking_tool) online_booking_tool
type
string
required

value: online_booking_tool

travel_management_company
string
required

The name of the travel management company.

Length ≥ 1
business
string
required

The name of the business.

Length ≥ 1
white_label (white_label) white_label
type
string
required

value: white_label

brand
string
required

The brand name of the white label partner.

Length ≥ 1
booking_references
map_string
required

IDs that are relevant to the booking. It's a dictionary of key/value pairs. Check with HTS for examples of supported keys.

occupancy
occupancy

The occupancy that was booked.

Show fields
num_adults
integer · int32

The number of adults the user is booking for.

num_children
integer · int32

The number of children the user is booking for.

num_units
integer · int32

The number of units the user is booking.

user_id
string

The ID of the user who made the booking.

from_booking_references (from_booking_references) from_booking_references
type
string
required

value: from_booking_references

booking_references
map_string
required

Record locators if PSS, Order ID if OMS, etc. Used to retrieve the flight booking later. It's a dictionary of key/value pairs. The keys can be anything, but they are referenced in the configuration when retrieving the booking, so those must align.

not_available (not_available) not_available
type
string
required

value: not_available

merchandising_displayed (merchandising_displayed) merchandising_displayed
type
string
required

value: merchandising_displayed

session_id
string
required

Identifies a single shopping funnel, from the initial search through to booking. A new search (including changing the search parameters) begins a new funnel with a new id.

occurred_at
string · date-time
required

Date and time at which the event occurred, as a UTC RFC3339 formatted datetime.

offer_ids
array of string
required
merchandising_faq_clicked (merchandising_faq_clicked) merchandising_faq_clicked
type
string
required

value: merchandising_faq_clicked

session_id
string
required

Identifies a single shopping funnel, from the initial search through to booking. A new search (including changing the search parameters) begins a new funnel with a new id.

occurred_at
string · date-time
required

Date and time at which the event occurred, as a UTC RFC3339 formatted datetime.

offer_ids
array of string
required
merchandising_offer_attached (merchandising_offer_attached) merchandising_offer_attached
type
string
required

value: merchandising_offer_attached

session_id
string
required

Identifies a single shopping funnel, from the initial search through to booking. A new search (including changing the search parameters) begins a new funnel with a new id.

occurred_at
string · date-time
required

Date and time at which the event occurred, as a UTC RFC3339 formatted datetime.

offer_id
string
required
merchandising_offer_declined (merchandising_offer_declined) merchandising_offer_declined
type
string
required

value: merchandising_offer_declined

session_id
string
required

Identifies a single shopping funnel, from the initial search through to booking. A new search (including changing the search parameters) begins a new funnel with a new id.

occurred_at
string · date-time
required

Date and time at which the event occurred, as a UTC RFC3339 formatted datetime.

offer_ids
array of string
required
offer_display_requested (offer_display_requested) offer_display_requested
type
string
required

value: offer_display_requested

session_id
string
required

Identifies a single shopping funnel, from the initial search through to booking. A new search (including changing the search parameters) begins a new funnel with a new id.

occurred_at
string · date-time
required

Date and time at which the event occurred, as a UTC RFC3339 formatted datetime.

offer_ids
array of string
required

The offers that the customer is requesting to view.

trigger
request_trigger
required

What prompted the customer to request to view an offer.

Show fields
page
string
required

The page where the request was triggered.

Length ≥ 1
entry_point
string
required

The entry point of the flow where the request was triggered.

Length ≥ 1

Used by

POST/eventsCreate Event
Example
{
  "type": "string",
  "session_id": "c17aff84-7581-461e-8505-002d15ac368a",
  "occurred_at": "2026-12-10T15:00:00Z",
  "booking_information_source": {
    "type": "string",
    "booking_data": {
      "check_in_date": "2026-09-12",
      "check_out_date": "2026-09-14",
      "currency": "USD",
      "property": {
        "id": "12345",
        "property_name": "Fairmont Copley Plaza Boston",
        "chain_name": "Fairmont",
        "country_code": "US"
      },
      "rates": [
        {
          "id": "rate-bar-flex",
          "unit_id": "unit-king-lux",
          "price": {}
        }
      ],
      "occupancy": {
        "num_adults": 1,
        "num_children": 1,
        "num_units": 1
      },
      "channel": {
        "type": "string",
        "agency_id": "858695eb-db27-406a-b9dd-a76af17b7d1c",
        "agent": {}
      },
      "booking_references": {},
      "user_id": "33bb4eb2-2937-4bd3-97b1-7796206712f0"
    }
  }
}