HTS APIs
Every endpoint, schema and error code, rendered from the published OpenAPI files, in the order you integrate them.
create_draft_contract_request
Fields
offer_idPriced offer to be purchased by the user.
currencyCurrency of all pricing fields within the request.
localeThe 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_informationPayment 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.
type:not_provided (not_provided) not_provided
typevalue: not_provided
amountTotal amount of the transaction.
provided (provided) provided
typevalue: provided
payment_methodsList of payment methods used to pay for the booking.
Show fields
type:alternate_payment_method (alternate_payment_method) alternate_payment_method
typeA payment that cannot be tokenized. eg: ApplePay.
amountloyalty_program (loyalty_program) loyalty_program
typevalue: loyalty_program
amountnameThe 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.
unitsThe 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
typeA discount to the booking that won't be refunded if the booking is canceled or CFAR is exercised. eg: $5 off first time booking.
amountnameThe 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.
payment_card (payment_card) payment_card
merchant_of_recordParty responsible for processing the payment for the purchased offers.
partnerhtscontact_infoContact information of the user buying the product(s).
Show fields
email_addressShow fields
type:hashed (hashed) hashed
typevalue: hashed
valueA 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.
literal (literal) literal
typevalue: literal
valueThe actual email address for the user.
^[^@\s]+@[^@\s]+\.[^@\s]+$not_provided (not_provided1) not_provided1
typevalue: not_provided
phone_number^\+[1-9][0-9]{1,14}$additional_recipientsShow fields
email_addressEmail address of the additional recipient to notify.
Show fields
valueThe actual email address for the user.
^[^@\s]+@[^@\s]+\.[^@\s]+$phone_numberSMS notifications are not currently supported; a request that includes a phone number is rejected.
^\+[1-9][0-9]{1,14}$notification_preferencesConsent 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
smsSMS 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.
pushPush consent for the primary booker. Omit = not specified, true = opt-in, false = declined.
paymentsDEPRECATED: 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.
Show fields
type:alternate_payment_method (alternate_payment_method) alternate_payment_method
typeA payment that cannot be tokenized. eg: ApplePay.
amountmethodThe method of payment.
Show fields
The method of payment.
type:apple_pay (apple_pay) apple_pay
typevalue: apple_pay
other (other) other
typevalue: other
nameName of the alternate payment method for unsupported types, e.g. Bank Transfer.
paypal (paypal) paypal
typevalue: paypal
venmo (venmo) venmo
typevalue: venmo
loyalty_program (loyalty_program) loyalty_program
typevalue: loyalty_program
amountnameThe 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.
unitsThe 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
typeA discount to the booking that won't be refunded if the booking is canceled or CFAR is exercised. eg: $5 off first time booking.
amountnameThe 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.
payment_card (payment_card) payment_card
typeA credit or debit card. Must be tokenized (refer to above documentation).
amountidentifierShow fields
type:details (details) details
typevalue: details
last_four_digitsLast four digits of the payment card.
[0-9]{4}expiration_monthTwo digits expiration month of the payment card.
[0-9]{2}expiration_yearFour digits expiration year of the payment card.
[0-9]{4}token (token) token
typevalue: token
valueThe token representing a credit card or a debit card. Used to process refunds to the original form of payment.
billing_infoBilling information of the user buying the product(s). Required if HTS is merchant of record.
Show fields
first_nameFirst name of the customer.
last_nameLast name of the customer.
street_addressStreet address of the customer billing address.
cityCity of the customer billing address.
state_provinceState or province of the customer billing address.
postal_codePostal code of the customer billing address.
countryCountry of the customer billing address.
[A-Z]{2}user_idPartner's unique ID of the user making the purchase. This is used for fraud prevention.
Used by
{
"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"
}