API reference

HTS APIs

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

Schema

create_draft_contract_request

Fields

offer_id
string
required

Priced offer to be purchased by the user.

currency
string
required

Currency of all pricing fields within the request.

locale
string
required

The user's locale, as an IETF BCP 47 language tag in {language}-{region} form, where region is an ISO 3166-1 alpha-2 country code or a UN M.49 macro-region code (e.g. en-US, es-419). Determines the language of user-facing content.

payment_information
payment_information · one of 2
required

Payment information for the contract. Either a detailed breakdown of payment methods (Provided) or a signal that no payment details are available (NotProvided). Payments should equate to the total amount for which a partner is the MoR, e.g. if the partner is collecting the ancillary price, the total of the payments should be inclusive of the price. Must include a tokenized payment card if HTS is merchant of record. If both payments and payment_information are provided, payment_information takes precedence.

Show fields

Payment information for the contract. Either a detailed breakdown of payment methods (Provided) or a signal that no payment details are available (NotProvided). Payments should equate to the total amount for which a partner is the MoR, e.g. if the partner is collecting the ancillary price, the total of the payments should be inclusive of the price. Must include a tokenized payment card if HTS is merchant of record. If both payments and payment_information are provided, payment_information takes precedence.

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

value: not_provided

amount
string
required

Total amount of the transaction.

provided (provided) provided
type
string
required

value: provided

payment_methods
array of provided_payment
required

List of payment methods used to pay for the booking.

Items ≥ 1
Show fields
Array of provided_payment · one of 4 · List of payment methods used to pay for the booking.
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
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.

non_refundable_discounts (non_refundable_discounts) non_refundable_discounts
type
string
required

A discount to the booking that won't be refunded if the booking is canceled or CFAR is exercised. eg: $5 off first time booking.

amount
string
required
name
string
required

The name of the non-refundable discount, e.g. first time booker incentive, etc. Set if useful for refund during exercise, e.g. for display, book keeping, etc.

Length ≥ 1
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
merchant_of_record
string enum
required

Party responsible for processing the payment for the purchased offers.

Values partnerhts
contact_info
contact_info
required

Contact information of the user buying the product(s).

Show fields
email_address
email_address · one of 3
required
Show fields
Exactly one of the following, selected by type:
hashed (hashed) hashed
type
string
required

value: hashed

value
string
required

A stable hash of the user's email address. Must be stable across different API calls and different bookings. Used for transaction correlation for fraud analysis.

Length ≥ 1
literal (literal) literal
type
string
required

value: literal

value
string
required

The actual email address for the user.

Pattern ^[^@\s]+@[^@\s]+\.[^@\s]+$
not_provided (not_provided1) not_provided1
type
string
required

value: not_provided

phone_number
string
Pattern ^\+[1-9][0-9]{1,14}$
additional_recipients
array of additional_contact_info
Show fields
Array of additional_contact_info
email_address
literal1

Email address of the additional recipient to notify.

Show fields
value
string
required

The actual email address for the user.

Pattern ^[^@\s]+@[^@\s]+\.[^@\s]+$
phone_number
string

SMS notifications are not currently supported; a request that includes a phone number is rejected.

Pattern ^\+[1-9][0-9]{1,14}$
notification_preferences
notification_preferences

Consent for the PRIMARY BOOKER (the email_address / phone_number on this contact_info) to receive disruption notifications via SMS/push. Applies to the primary booker only: additional_recipients never receive SMS or push (they are email-only, notification-only). Captured per offer at purchase; does not persist across offers. Recording consent does not trigger delivery.

Show fields
sms
boolean

SMS consent for the primary booker's phone_number. Omit = not specified, true = opt-in, false = declined. Requires phone_number to be present; the request is rejected if sms=true and phone_number is absent.

push
boolean

Push consent for the primary booker. Omit = not specified, true = opt-in, false = declined.

payments
array of provided_payment
deprecated

DEPRECATED: Use payment_information instead. List of payment methods used to pay for the booking (includes flights and ancillaries). Payments should equate to the total amount for which a partner is the MoR, e.g. if the partner is collecting the ancillary price, the total of the payments should be inclusive of the price. Must include a tokenized payment card if HTS is merchant of record.

Items ≥ 1
Show fields
Array of provided_payment · one of 4 · DEPRECATED: Use payment_information instead. List of payment methods used to pay for the booking (includes flights and ancillaries). Payments should equate to the total amount for which a partner is the MoR, e.g. if the partner is collecting the ancillary price, the total of the payments should be inclusive of the price. Must include a tokenized payment card if HTS is merchant of record.
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.

non_refundable_discounts (non_refundable_discounts) non_refundable_discounts
type
string
required

A discount to the booking that won't be refunded if the booking is canceled or CFAR is exercised. eg: $5 off first time booking.

amount
string
required
name
string
required

The name of the non-refundable discount, e.g. first time booker incentive, etc. Set if useful for refund during exercise, e.g. for display, book keeping, etc.

Length ≥ 1
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
billing_info
billing_info

Billing information of the user buying the product(s). Required if HTS is merchant of record.

Show fields
first_name
string
required

First name of the customer.

Length ≥ 1
last_name
string
required

Last name of the customer.

Length ≥ 1
street_address
string
required

Street address of the customer billing address.

Length ≥ 1
city
string
required

City of the customer billing address.

Length ≥ 1
state_province
string
required

State or province of the customer billing address.

Length ≥ 1
postal_code
string
required

Postal code of the customer billing address.

Length ≥ 1
country
string
required

Country of the customer billing address.

Pattern [A-Z]{2}
user_id
string

Partner's unique ID of the user making the purchase. This is used for fraud prevention.

Used by

POST/contractsCreate Draft Contract
Example
{
  "offer_id": "string",
  "currency": "CAD",
  "locale": "en-US",
  "payment_information": {
    "type": "provided",
    "amount": "200.00"
  },
  "merchant_of_record": "partner",
  "contact_info": {
    "email_address": {
      "type": "string",
      "value": "a8cfcd74832004951b4408cdb0a5dbcd8c7e5243f7fe-244bf72058205241da"
    },
    "phone_number": "string",
    "additional_recipients": [
      {
        "email_address": {
          "value": "john@email.com"
        },
        "phone_number": "string"
      }
    ],
    "notification_preferences": {
      "sms": true,
      "push": true
    }
  },
  "billing_info": {
    "first_name": "string",
    "last_name": "string",
    "street_address": "string",
    "city": "string",
    "state_province": "string",
    "postal_code": "string",
    "country": "US"
  },
  "user_id": "33bb4eb2-2937-4bd3-97b1-7796206712f0"
}