API reference

HTS APIs

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

Schema

user_payouts_response

Fields

currency
string
required

The currency all payout amounts are in.

contract_ids
array of string
required

The contracts included in this projection. With full_order, contracts that cannot be projected (exercised, voided, cancelled, expired or not purchased) are left out.

Items ≥ 1
user_outcome
user_outcome
required

The projected outcome for the user across all included contracts, in the same shape as an exercise quote's user_outcome. Legs refunded on the same payment method are combined into one entry, the same way the exercise quote combines them: a payment card is matched on its token, or on its last four digits and expiration if no token was given; a loyalty program on its name, with units summed; an alternate payment method on its method; reseller-controlled and not-provided legs are each combined into one entry.

Show fields
total_payout_amount
string
required

Total amount user will receive upon exercising CFAR. Sum of all other payments in this model.

Range ≥ 0
payouts_from_partner
array of refundable_payment
required

Payments that will be paid out by the partner.

Show fields
Array of refundable_payment · one of 5 · Payments that will be paid out by the partner.
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.

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
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
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
payout_from_hts
payout_from_hts

Payment that will be paid out by HTS.

Show fields
amount
string
payout_from_lodging
string

Payment that will be paid out by the lodging property directly to the user. This may only be defined if merchant_of_record_on_reservation is lodging.

Used by

POST/orders/{id}/user_projected_payoutsGet User Projected Payouts
Example
{
  "currency": "USD",
  "contract_ids": [
    "string"
  ],
  "user_outcome": {
    "total_payout_amount": "173.24",
    "payouts_from_partner": [
      {
        "type": "alternate_payment_method",
        "amount": "173.24",
        "method": {
          "type": "string"
        }
      }
    ],
    "payout_from_hts": {
      "amount": "string"
    },
    "payout_from_lodging": "string"
  }
}