API reference

HTS APIs

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

POST/contracts/{id}/exercise_quotesOther

Create CFAR Exercise Quote

https://fintech.staging.htsapis.com/flights-cfar/v2/contracts/{id}/exercise_quotes

Create CFAR exercise quote

Parameters

id
path · string
required

A unique identifier for a contract.

Request body application/json · required

session_id
string
required

Session identifier for tracking user interactions and analytics.

Responses

201
id
string
required

Unique ID for an exercise quote.

payout_options
array of payout_option
required

Options detailing the different ways a customer may select to be paid out.

Items ≥ 1
Show fields
Array of payout_option · Options detailing the different ways a customer may select to be paid out.
Items ≥ 1
id
string
required

Unique ID for a payout option.

payouts
array of cfar_exercise_payout
required

The list of payouts which would be issued for this payout option.

Items ≥ 1
Show fields
Array of cfar_exercise_payout · one of 2 · The list of payouts which would be issued for this payout option.
Items ≥ 1

The method by which the payout will be be delivered to the customer.

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

value: future_travel_credit

amount
string
required

The amount of the payout.

original_form_of_payment (original_form_of_payment) original_form_of_payment
type
string
required

value: original_form_of_payment

payment
refundable_payment · one of 5
required

DEPRECATED: The payment details for this payout.

Show fields

DEPRECATED: The payment details for this payout.

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
refundable_payment · one of 5
required

The payment details for this payout.

Show fields

The payment details for this payout.

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
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 cfar_create_flights_exercise_quote_error · one of 4
Items ≥ 1
Exactly one of the following, selected by code:
booking_already_canceled (booking_already_canceled) booking_already_canceled
message
string
required

A human-readable message describing the error

code
string
required
booking_in_void_window (booking_in_void_window) booking_in_void_window
message
string
required

A human-readable message describing the error

code
string
required
insufficient_funds (insufficient_funds) insufficient_funds
message
string
required

A human-readable message describing the error

code
string
required
invalid_contract_status (invalid_contract_status4) invalid_contract_status4
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 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"
}'
Response 201
{
  "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.