HTS APIs
Every endpoint, schema and error code, rendered from the published OpenAPI files, in the order you integrate them.
/contracts/{id}/user_projected_payoutsOtherGet User Projected Payouts
Returns the projected payout a user would receive if they exercised CFAR on this contract, for each payout option, broken down by how they would be refunded. Read-only; does not create an exercise quote.
The projection uses the same payout calculation as the exercise quote. Where the contract carries a cancellation penalty, the payout is capped at that penalty, as it is when exercising. The projection is returned even while the booking is within the void window.
Returns 422 if the contract is not in a state that can be exercised (already exercised, voided, cancelled, expired or not purchased); the body carries the specific reason.
Parameters
idA unique identifier for a contract.
Responses
200The projected payout breakdown, by payout option
currencyThe currency all payout amounts are in.
payout_options Options detailing the different ways the user could be paid out if they exercised CFAR, mirroring the
payout_options of an exercise quote.
Show fields
total_payout_amountThe total amount the user would be paid out under this option. Sum of all payouts amounts.
payoutsThe list of payouts which would be issued for this payout option.
Show fields
The method by which the payout will be be delivered to the customer.
type:future_travel_credit (future_travel_credit) future_travel_credit
typevalue: future_travel_credit
amountThe amount of the payout.
original_form_of_payment (original_form_of_payment) original_form_of_payment
typevalue: original_form_of_payment
paymentDEPRECATED: The payment details for this payout.
Show fields
DEPRECATED: The payment details for this payout.
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
payoutThe payment details for this payout.
Show fields
The payment details for this payout.
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
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:contract_canceled (contract_canceled) contract_canceled
messageA human-readable message describing the error
codecontract_exercised (contract_exercised) contract_exercised
messageA human-readable message describing the error
codecontract_not_purchased (contract_not_purchased) contract_not_purchased
messageA human-readable message describing the error
codecontract_voided (contract_voided) contract_voided
messageA human-readable message describing the error
codeexpired (expired) expired
messageA human-readable message describing the error
codepurchase_payments_not_on_contract (purchase_payments_not_on_contract) purchase_payments_not_on_contract
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/flights-cfar/v2/contracts/<id>/user_projected_payouts" \
-H "X-Api-Key: $HTS_API_KEY"{
"currency": "USD",
"payout_options": [
{
"total_payout_amount": "173.24",
"payouts": [
{
"type": "string",
"amount": "string"
}
]
}
]
}Examples are generated from the schema where the spec publishes none; field values are illustrative.
