HTS APIs
Every endpoint, schema and error code, rendered from the published OpenAPI files, in the order you integrate them.
/contracts/{id}/exercise_quotesOtherCreate DAFAR Exercise Quote
Create DAFAR exercise quote
Parameters
idA unique identifier for a contract.
Responses
201
idUnique ID for an exercise quote.
payoutsThe list of payouts which would be issued for this quote.
Show fields
type:original_form_of_payment (original_form_of_payment) original_form_of_payment
typevalue: original_form_of_payment
payoutThe payment details for this payout.
Show fields
The payment details for this payout.
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.
amount400Syntactic 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_in_void_window (booking_in_void_window) booking_in_void_window
messageA human-readable message describing the error
codeinvalid_contract_status (invalid_contract_status5) invalid_contract_status5
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-dafar/v2/contracts/<id>/exercise_quotes" \
-H "X-Api-Key: $HTS_API_KEY"{
"id": "string",
"payouts": [
{
"type": "string",
"payout": {
"type": "alternate_payment_method",
"amount": "173.24",
"method": {
"type": "apple_pay"
}
}
}
]
}Examples are generated from the schema where the spec publishes none; field values are illustrative.
