API reference

HTS APIs

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

PUT/orders/{id}/exerciseRetrieve

Manual CFAR Exercise

https://fintech.staging.htsapis.com/lodging-cfar/v2/orders/{id}/exercise

Manually exercise a CFAR. This should only be used if the regular, automated flow is not possible and so the partner has manually performed the exercise and so this is informing HTS of their actions.

Parameters

id
path · string
required

The ID of the CFAR order.

Request body application/json · required

Exactly one of the following:
contracts_exercise_request contracts_exercise_request
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
loyalty_program (loyalty_program) loyalty_program
not_provided (not_provided2) not_provided2
payment_card (payment_card) payment_card
reseller_controlled (reseller_controlled) reseller_controlled
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.

single_contract_exercise_request single_contract_exercise_request
reason
string
required
Length ≥ 1
payout_information
payout_information · one of 2
required

Payout information for the exercise. Either a detailed breakdown of payouts (Provided) or a signal that no payout details are available (NotProvided). If both payouts and payout_information are provided, payout_information takes precedence.

Show fields

Payout information for the exercise. Either a detailed breakdown of payouts (Provided) or a signal that no payout details are available (NotProvided). If both payouts and payout_information are provided, payout_information takes precedence.

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

value: not_provided

amount
string
required

Total amount of the payout.

provided (provided1) provided1
type
string
required

value: provided

payouts
array of provided_refundable_payment
required

List of payouts issued to the customer.

Items ≥ 1
Show fields
Array of provided_refundable_payment · one of 3 · List of payouts issued to the customer.
Items ≥ 1
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.

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
currency
string
required

Currency of all money values in this contract.

payouts
array of provided_refundable_payment
deprecated

DEPRECATED: Use payout_information instead. The payouts issued to the customer.

Items ≥ 1
Show fields
Array of provided_refundable_payment · one of 3 · DEPRECATED: Use payout_information instead. The payouts issued to the customer.
Items ≥ 1
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
type
string
required

value: apple_pay

other (other) other
type
string
required

value: other

name
string
required

Name of the alternate payment method for unsupported types, e.g. Bank Transfer.

Length ≥ 1
paypal (paypal) paypal
type
string
required

value: paypal

venmo (venmo) venmo
type
string
required

value: 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.

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
type
string
required

value: details

last_four_digits
string
required

Last four digits of the payment card.

Pattern [0-9]{4}
expiration_month
string
required

Two digits expiration month of the payment card.

Pattern [0-9]{2}
expiration_year
string
required

Four digits expiration year of the payment card.

Pattern [0-9]{4}
token (token) token
type
string
required

value: token

value
string
required

The token representing a credit card or a debit card. Used to process refunds to the original form of payment.

Length ≥ 1

Responses

204
No body.
400Syntactic errors were encountered while handling the request
Array of error
message
string
required
code
string
required
Example
[
  {
    "message": "string",
    "code": "string"
  }
]
401The client could not be authenticated
No body.
403The authenticated client does not have permission to call this endpoint
No body.
404The requested resource could not be found
No body.
422Semantic errors were encountered while handling the request
Array of manual_order_exercise_error · one of 7
Items ≥ 1
Exactly one of the following, selected by code:
already_exercised (already_exercised) already_exercised
message
string
required

A human-readable message describing the error

code
string
required
contract_not_confirmed (contract_not_confirmed) contract_not_confirmed
message
string
required

A human-readable message describing the error

code
string
required
contract_not_in_order (contract_not_in_order) contract_not_in_order
message
string
required

A human-readable message describing the error

code
string
required
currency_mismatch (currency_mismatch) currency_mismatch
message
string
required

A human-readable message describing the error

code
string
required
duplicate_contract (duplicate_contract) duplicate_contract
message
string
required

A human-readable message describing the error

code
string
required
exercise_already_in_progress (exercise_already_in_progress2) exercise_already_in_progress2
message
string
required

A human-readable message describing the error

code
string
required
multiple_contracts (multiple_contracts) multiple_contracts
message
string
required

A human-readable message describing the error

code
string
required
Example
[
  {
    "message": "string",
    "code": "string"
  }
]
499The client cancelled the request
No body.
500The server encountered an internal error
No body.
Request
curl -X PUT "https://fintech.staging.htsapis.com/lodging-cfar/v2/orders/<id>/exercise" \
  -H "X-Api-Key: $HTS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "contracts": [
    {
      "id": "string",
      "user_outcome": {
        "payouts_from_partner": [
          {
            "type": "alternate_payment_method"
          }
        ],
        "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"
}'

Examples are generated from the schema where the spec publishes none; field values are illustrative.