HTS APIs
Every endpoint, schema and error code, rendered from the published OpenAPI files, in the order you integrate them.
/orders/{id}/exercise_quotesRetrieveCreate CFAR Exercise Quote
Create a quote for how CFAR would be exercised.
Parameters
idThe ID of the CFAR order.
Responses
201The exercise quote for exercising CFAR contract(s)
type:cfar_exercisable (cfar_exercisable) cfar_exercisable
typevalue: cfar_exercisable
idThe ID of the quoted exercise. Use this to fulfill the exercise.
currencyThe currency all payments are in.
user_outcomeThe outcome that the user will receive if they exercise CFAR.
Show fields
total_payout_amountTotal amount user will receive upon exercising CFAR. Sum of all other payments in this model.
payouts_from_partnerPayments that will be paid out by the partner.
Show fields
type:alternate_payment_method (alternate_payment_method) alternate_payment_method
typeA payment that cannot be tokenized. eg: ApplePay.
amountloyalty_program (loyalty_program) loyalty_program
typevalue: loyalty_program
amountnameThe 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.
unitsThe 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
typevalue: not_provided
amountpayment_card (payment_card) payment_card
reseller_controlled (reseller_controlled) reseller_controlled
typeThe partner does not charge the user directly and thus does not have payment information.
amountpayout_from_htsPayment that will be paid out by HTS.
Show fields
amountpayout_from_lodging 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_atThe date and time at which this quote expires as a UTC (RFC3339) datetime. After this time, a new quote must be created.
partner_outcomeThe outcome that the partner will receive if reservation is cancelled.
Show fields
payout_from_lodging 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.
400Syntactic errors were encountered while handling the request
messagecodeExample
[
{
"message": "string",
"code": "string"
}
]401The client could not be authenticated
403The authenticated client does not have permission to call this endpoint
404The requested resource could not be found
422Semantic errors were encountered while handling the request
code:exercise_already_in_progress (exercise_already_in_progress) exercise_already_in_progress
messageA human-readable message describing the error
codeexpired (expired) expired
messageA human-readable message describing the error
codefully_exercised (fully_exercised) fully_exercised
messageA human-readable message describing the error
codefully_voided (fully_voided) fully_voided
messageA human-readable message describing the error
codenot_purchased (not_purchased1) not_purchased1
messageA human-readable message describing the error
codepast_check_in (past_check_in) past_check_in
messageA human-readable message describing the error
codereservation_cancelled (reservation_cancelled) reservation_cancelled
messageA human-readable message describing the error
codereservation_error (reservation_error) reservation_error
messageA human-readable message describing the error
codevoid_window (void_window1) void_window1
messageA human-readable message describing the error
codeExample
[
{
"message": "string",
"code": "string"
}
]499The client cancelled the request
500The server encountered an internal error
curl -X POST "https://fintech.staging.htsapis.com/lodging-cfar/v2/orders/<id>/exercise_quotes" \
-H "X-Api-Key: $HTS_API_KEY"{
"type": "string",
"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"
}Examples are generated from the schema where the spec publishes none; field values are illustrative.
