API reference

HTS APIs

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

Schema

exercise_contract_request

Fields

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

value: full_itinerary_exercise_request

payout_information
payout_information · one of 2
required

Payout information for the exercise. Either a detailed breakdown of payouts (Provided) or a signal that no payout details are available (NotProvided). If both payouts and payout_information are provided, payout_information takes precedence.

Show fields

Payout information for the exercise. Either a detailed breakdown of payouts (Provided) or a signal that no payout details are available (NotProvided). If both payouts and payout_information are provided, payout_information takes precedence.

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

value: not_provided

amount
string
required

Total amount of the payout.

provided (provided1) provided1
type
string
required

value: provided

payouts
array of provided_refundable_payment
required

List of payouts issued to the customer.

Items ≥ 1
Show fields
Array of provided_refundable_payment · one of 3 · List of payouts issued to the customer.
Items ≥ 1
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
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.

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

Currency of all exercise payouts.

reason
string
required

Human-readable explanation for why this exercise was performed.

Length ≥ 1
payouts
array of provided_refundable_payment
deprecated

DEPRECATED: Use payout_information instead. The payouts issued to the customer.

Items ≥ 1
Show fields
Array of provided_refundable_payment · one of 3 · DEPRECATED: Use payout_information instead. The payouts issued to the customer.
Items ≥ 1
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
type
string
required

value: apple_pay

other (other) other
type
string
required

value: other

name
string
required

Name of the alternate payment method for unsupported types, e.g. Bank Transfer.

Length ≥ 1
paypal (paypal) paypal
type
string
required

value: paypal

venmo (venmo) venmo
type
string
required

value: 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.

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

value: details

last_four_digits
string
required

Last four digits of the payment card.

Pattern [0-9]{4}
expiration_month
string
required

Two digits expiration month of the payment card.

Pattern [0-9]{2}
expiration_year
string
required

Four digits expiration year of the payment card.

Pattern [0-9]{4}
token (token) token
type
string
required

value: token

value
string
required

The token representing a credit card or a debit card. Used to process refunds to the original form of payment.

Length ≥ 1
passengers_from_ids_exercise_request (passengers_from_ids_exercise_request) passengers_from_ids_exercise_request
type
string
required

value: passengers_from_ids_exercise_request

reason
string
required

Human-readable explanation for why this exercise was performed.

Length ≥ 1
passenger_ids
array of string
required

Partner-defined passenger IDs to exercise. Must contain at least one value.

Items ≥ 1

Used by

PUT/contracts/{id}/exerciseExercise a Contract
Example
{
  "type": "string",
  "payout_information": {
    "type": "provided",
    "amount": "200.00"
  },
  "currency": "CAD",
  "reason": "string"
}