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 DAFAR Exercise Quote

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

Create DAFAR exercise quote

Parameters

id
path · string
required

A unique identifier for a contract.

Responses

201
id
string
required

Unique ID for an exercise quote.

payouts
array of exercise_payout
required

The list of payouts which would be issued for this quote.

Items ≥ 1
Show fields
Array of exercise_payout · one of 1 · The list of payouts which would be issued for this quote.
Items ≥ 1
Exactly one of the following, selected by type:
original_form_of_payment (original_form_of_payment) original_form_of_payment
type
string
required

value: original_form_of_payment

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
type
string
required

A payment that cannot be tokenized. eg: ApplePay.

amount
string
required
method
method · one of 4
required

The method of payment.

Show fields

The method of payment.

Exactly one of the following, selected by type:
apple_pay (apple_pay) apple_pay
other (other) other
paypal (paypal) paypal
venmo (venmo) venmo
loyalty_program (loyalty_program) loyalty_program
type
string
required

value: loyalty_program

amount
string
required
name
string
required

The 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.

Length ≥ 1
units
string
required

The 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
type
string
required

value: not_provided

amount
string
required
payment_card (payment_card) payment_card
type
string
required

A credit or debit card. Must be tokenized (refer to above documentation).

amount
string
required
identifier
identifier · one of 2
required
Show fields
Exactly one of the following, selected by type:
details (details) details
token (token) token
reseller_controlled (reseller_controlled) reseller_controlled
type
string
required

The partner does not charge the user directly and thus does not have payment information.

amount
string
required
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 dafar_create_flights_exercise_quote_error · one of 2
Items ≥ 1
Exactly one of the following, selected by code:
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
invalid_contract_status (invalid_contract_status5) invalid_contract_status5
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-dafar/v2/contracts/<id>/exercise_quotes" \
  -H "X-Api-Key: $HTS_API_KEY"
Response 201
{
  "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.