API reference

HTS APIs

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

Schema

data3

The webhook payload.

Fields

contract
cfar_contract
required

The exercised contract.

Show fields
id
string
required

CFAR contract ID

price
cfar_price
required

Price for CFAR.

Show fields
total_amount
string
required

The total amount for CFAR, including base and taxes.

base_amount
string
required

The base amount for CFAR.

taxes
array of tax

The taxes for this price.

Show fields
Array of tax · The taxes for this price.
code
string
required

Code representing this tax.

Length ≥ 1
amount
string
required

Total amount of the tax.

payout
payout
required

Breakdown of what will be paid upon exercise.

Show fields
amount
string
required

The maximum amount to issue to the user if they exercise CFAR.

percentage
integer · int32
required

The payout defined as a percentage of the unit's booking_amount. Must be a number between 0 and 100.

price_included
boolean
required

If CFAR price is included in the payout amount.

expires_at
string · date-time
required

The instant the purchased contract will expire as a UTC (RFC3339) datetime.

status
string enum
required

Current status of the contract.

Values draftedconfirmedexercisedvoidedcanceled
currency
string
required

Currency of all money values in this contract. 3-letter ISO 4217 code.

unit_reservation_id
string

The ID of the unit reservation (in the partner's system) associated with this contract. For single-unit bookings, this may be the same as reservation_id.

Length ≥ 1
agent_commission
agent_commission

Commission payable to the travel agent.

Show fields
amount
string
required

Monetary amount payable to the agent, in the offer's currency.

payable_date
string · date
required

Informs the agent of when their commission becomes payable — agents should not expect payment before this date. Commissions are not paid if the reservation is cancelled - the traveller must check-in.

exercise
cfar_exercisable1
required

Details of how the contract was exercised.

Show fields
id
string
required

The ID of the quoted exercise. Use this to fulfill the exercise.

currency
string
required

The currency all payments are in.

user_outcome
user_outcome
required

The outcome that the user will receive if they exercise CFAR.

Show fields
total_payout_amount
string
required

Total amount user will receive upon exercising CFAR. Sum of all other payments in this model.

Range ≥ 0
payouts_from_partner
array of refundable_payment
required

Payments that will be paid out by the partner.

Show fields
Array of refundable_payment · one of 5 · Payments that will be paid out by the partner.
Exactly one of the following, selected by type:
alternate_payment_method (alternate_payment_method) alternate_payment_method
type
string
required

A payment that cannot be tokenized. eg: ApplePay.

amount
string
required
method
method · one of 4
required

The method of payment.

Show fields

The method of payment.

Exactly one of the following, selected by type:
apple_pay (apple_pay) apple_pay
other (other) other
paypal (paypal) paypal
venmo (venmo) venmo
loyalty_program (loyalty_program) loyalty_program
type
string
required

value: loyalty_program

amount
string
required
name
string
required

The name of the of the loyalty program, e.g. points, miles, cash_rewards, etc. Required, to ensure that the amounts are refunded to the same loyalty program used during purchase.

Length ≥ 1
units
string
required

The unit to currency exchange rate is implicit from the amount in the Payment object and this number of points.

not_provided (not_provided2) not_provided2
type
string
required

value: not_provided

amount
string
required
payment_card (payment_card) payment_card
type
string
required

A credit or debit card. Must be tokenized (refer to above documentation).

amount
string
required
identifier
identifier · one of 2
required
Show fields
Exactly one of the following, selected by type:
details (details) details
token (token) token
reseller_controlled (reseller_controlled) reseller_controlled
type
string
required

The partner does not charge the user directly and thus does not have payment information.

amount
string
required
payout_from_hts
payout_from_hts

Payment that will be paid out by HTS.

Show fields
amount
string
payout_from_lodging
string

Payment that will be paid out by the lodging property directly to the user. This may only be defined if merchant_of_record_on_reservation is lodging.

expires_at
string · date-time
required

The date and time at which this quote expires as a UTC (RFC3339) datetime. After this time, a new quote must be created.

partner_outcome
partner_outcome

The outcome that the partner will receive if reservation is cancelled.

Show fields
payout_from_lodging
string

The amount that the partner is expected to receive from the lodging property if the reservation is cancelled. This may only be defined if merchant_of_record_on_reservation is partner.

Example
{
  "contract": {
    "id": "string",
    "price": {
      "total_amount": "12.00",
      "base_amount": "10.00",
      "taxes": [
        {
          "code": "VAT",
          "amount": "20.00"
        }
      ]
    },
    "payout": {
      "amount": "450",
      "percentage": 100,
      "price_included": true
    },
    "expires_at": "2026-12-10T15:00:00Z",
    "unit_reservation_id": "string",
    "status": "drafted",
    "agent_commission": {
      "amount": "1.20",
      "payable_date": "2026-08-15"
    },
    "currency": "USD"
  },
  "exercise": {
    "id": "string",
    "currency": "USD",
    "user_outcome": {
      "total_payout_amount": "173.24",
      "payouts_from_partner": [
        {
          "type": "alternate_payment_method",
          "amount": "173.24",
          "method": {
            "type": "apple_pay"
          }
        }
      ],
      "payout_from_hts": {
        "amount": "string"
      },
      "payout_from_lodging": "string"
    },
    "partner_outcome": {
      "payout_from_lodging": "string"
    },
    "expires_at": "2026-12-10T15:00:00Z"
  }
}