HTS APIs
Every endpoint, schema and error code, rendered from the published OpenAPI files, in the order you integrate them.
/contracts/{id}/exercise_quotesOtherCreate CFAR Exercise Quote
Create CFAR exercise quote
Parameters
idA unique identifier for a contract.
Request body application/json · required
session_idSession identifier for tracking user interactions and analytics.
Responses
201
idUnique ID for an exercise quote.
payout_optionsOptions detailing the different ways a customer may select to be paid out.
Show fields
idUnique ID for a payout option.
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:booking_already_canceled (booking_already_canceled) booking_already_canceled
messageA human-readable message describing the error
codebooking_in_void_window (booking_in_void_window) booking_in_void_window
messageA human-readable message describing the error
codeinsufficient_funds (insufficient_funds) insufficient_funds
messageA human-readable message describing the error
codeinvalid_contract_status (invalid_contract_status4) invalid_contract_status4
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>/exercise_quotes" \
-H "X-Api-Key: $HTS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"session_id": "c17aff84-7581-461e-8505-002d15ac368a"
}'{
"id": "string",
"payout_options": [
{
"id": "string",
"payouts": [
{
"type": "string",
"amount": "string"
}
]
}
]
}Examples are generated from the schema where the spec publishes none; field values are illustrative.
