API reference

HTS APIs

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

Schema

contracts_exercise_request

Record an exercise the partner already carried out on the named contracts. The partner cancelled the reservation and paid the customer. HTS writes it down.

Fields

contracts
array of exercised_contract
required

One entry per contract exercised: every contract on the order, or a subset.

Items ≥ 1
Show fields
Array of exercised_contract · One entry per contract exercised: every contract on the order, or a subset.
Items ≥ 1
id
string
required

The HTS contract id.

user_outcome
exercised_user_outcome
required

What the customer got back for this contract.

Show fields
payouts_from_partner
array of refundable_payment
required

What the partner paid the customer, by payment method. Empty when the partner paid nothing.

Show fields
Array of refundable_payment · one of 5 · What the partner paid the customer, by payment method. Empty when the partner paid nothing.
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
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
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_lodging
string

What the lodging property paid the customer directly. Only when merchant_of_record_on_reservation is lodging.

partner_outcome
partner_outcome

What the partner got back for this contract.

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.

exercise_type
string enum
required

cfar: the customer used CFAR, and the amounts are the CFAR payout. full_refund: the cancellation was fully refundable on its own, so the customer got everything back, including the CFAR price.

Values cfarfull_refund
source
source · one of 2
required

Who carried out the exercise.

Show fields

Who carried out the exercise.

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

value: automation

support_agent (support_agent) support_agent
type
string
required

value: support_agent

agent_id
string
required

The partner's id for the agent.

Length ≥ 1
reason
string
required

Why the agent exercised the contracts.

Length ≥ 1
currency
string
required

Currency of every amount in this request. Must equal the order's currency.

exercised_at
string · date-time

When the cancellation and refund happened, as a UTC (RFC3339) datetime. Defaults to now. Must not be in the future, nor before the contracts were purchased.

Example
{
  "contracts": [
    {
      "id": "string",
      "user_outcome": {
        "payouts_from_partner": [
          {
            "type": "alternate_payment_method",
            "amount": "173.24"
          }
        ],
        "payout_from_lodging": "string"
      },
      "partner_outcome": {
        "payout_from_lodging": "string"
      }
    }
  ],
  "exercise_type": "cfar",
  "source": {
    "type": "string"
  },
  "exercised_at": "2026-12-10T15:00:00Z",
  "currency": "USD"
}