API reference

HTS APIs

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

POST/contractsOther

Create Draft Contract

https://fintech.staging.htsapis.com/flights-dafar/v2/contracts

Create a draft contract for a customer's chosen offer.

HTS uses an external payment gateway to tokenize payment cards as well as process payments and payouts. When HTS is the Merchant of Record (MOR) for the purchase of the order or remitting any product payout to a customer's credit card, HTS requires a tokenized credit card to be present in the payments array in the request below.

Expand this section for instructions about testing and Spreedly integration.

The returned payment method token MxyYEhDK12CUAA18bJDkAq0ab3y (from the sample response below) should be passed in the payment_card type with a token identifier as a part of the payments array in the request below.

When using the staging environment, make sure to use one of Adyen's test credit card numbers.

Tokenization URL: https://core.spreedly.com/v1/payment_methods.json

Example Tokenization Request:

curl --request POST --url https://core.spreedly.com/v1/payment_methods.json --header 'content-type: application/json' -u  "login:password" --data '{
	"payment_method": {
		"email": "aaa@bbb.com",
		"credit_card": {
			"number": "4000020000000000",
			"month": "03",
			"year": "2030",
			"first_name": "John",
			"last_name": "Smith",
			"address1": "123 12th St",
			"address2": "Building B",
			"city": "Boston",
			"state": "MA",
			"zip": "02121",
			"country": "US",
			"verification_value": "737"
		}
	}
}'

Example Tokenization Response:

{
	"transaction": {
		"token": "KtToV20m9qT1Yi8pbTeLNz0Ypns",
		"created_at": "2023-11-29T13:31:56Z",
		"updated_at": "2023-11-29T13:31:56Z",
		"succeeded": true,
		"transaction_type": "AddPaymentMethod",
		"retained": false,
		"state": "succeeded",
		"message_key": "messages.transaction_succeeded",
		"message": "Succeeded!",
		"payment_method": {
			"token": "MxyYEhDK12CUAA18bJDkAq0ab3y",
			"created_at": "2023-11-29T13:31:56Z",
			"updated_at": "2023-11-29T13:31:56Z",
			"email": "aaa@bbb.com",
			"data": null,
			"storage_state": "cached",
			"test": true,
			"metadata": null,
			"callback_url": null,
            "last_four_digits": "0000",
            "first_six_digits": "400002",
			"card_type": "visa",
			"first_name": "John",
			"last_name": "Smith",
			"month": 3,
			"year": 2030,
			"address1": "123 12th St",
			"address2": "Building B",
            "city": "Boston",
            "state": "MA",
            "zip": "02121",
            "country": "US",
			"phone_number": null,
			"company": null,
			"full_name": "John Smith",
			"eligible_for_card_updater": true,
			"shipping_address1": null,
			"shipping_address2": null,
			"shipping_city": null,
			"shipping_state": null,
			"shipping_zip": null,
			"shipping_country": null,
			"shipping_phone_number": null,
			"issuer_identification_number": "40000200",
			"click_to_pay": false,
			"managed": true,
			"payment_method_type": "credit_card",
			"errors": [],
			"bin_metadata": {
				"message": "BIN Metadata is available only to Advanced Vault enrolled customers and payment methods. Reach out to your account representative for more details."
			},
			"fingerprint": "7ccffcf38900f224fc946cf2a9c8e260072b",
			"verification_value": "XXX",
			"number": "XXXX-XXXX-XXXX-0000"
		}
	}
}

Parameters

Idempotency-Key
header · string · uuid
required

Unique key that makes resource creation idempotent. Send the same value when retrying a request to avoid creating duplicate resources. Send a new key to create a new resource.

Request body application/json · required

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.

Responses

201The created contract
id
string
required

Unique identifier for a contract.

status
string enum
required

Current status of the contract.

Values canceledconfirmeddraftedexercise_eligibleexpiredexercisedvoided
price
contract_price
required

The price breakdown of the product.

Show fields
total_amount
string
required

Total amount to be paid for the product, including taxes.

Range ≥ 0
base_amount
string
required

Amount to be paid for the product, excluding taxes.

Range ≥ 0
taxes
array of tax
Items ≥ 1
Show fields
Array of tax
Items ≥ 1
code
string
required

Code representing this tax.

Length ≥ 1
amount
string
required

Total amount of the tax.

eligible_disruptions
eligible_disruptions
required

The disruption events which allow a customer to exercise their product.

Show fields
flight_cancellation
flight_cancellation

The product becomes exercise eligible in the event of a flight cancellation.

flight_delay
flight_delay

The product becomes exercise eligible in the event of a flight delay.

Show fields
delay_minutes_threshold
integer · int32
required

The number of minutes a flight must be delayed to qualify for disruption exercise eligibility.

missed_connection
missed_connection

The product becomes exercise eligible in the event of a missed connection.

Show fields
minimum_connection_minutes_threshold
integer · int32
required

The minimum number of minutes between connections for which the product will consider a connection missed in the event of a disruption.

rebooking_allowance_per_passenger
string
required

Total monetary allowance per passenger for rebooking a flight in case a disruption occurs.

Range ≥ 0
window_minutes_before_departure
integer · int32
required

The number of minutes before departure of each slice from which a purchased contract would be eligible for exercise in the event of a disruption.

currency
string
required

Currency of all pricing fields within the contract.

expires_at
string · date-time
required

Date and time at which the contract will expire, once purchased, as a UTC RFC3339 formatted datetime.

booking_references
map_string
required

Record locators if PSS, Order ID if OMS, etc. Used to retrieve the flight booking later. It's a dictionary of key/value pairs. The keys can be anything, but they are referenced in the configuration when retrieving the booking, so those must align.

exercises
array of dafar_exercise
required

Details of how this contract was exercised (payout and/or rebook). Always present as a list. Populated when exercised, empty otherwise.

Show fields
Array of dafar_exercise · one of 2 · Details of how this contract was exercised (payout and/or rebook). Always present as a list. Populated when exercised, empty otherwise.
Exactly one of the following, selected by type:
payout (payout1) payout1
type
string
required

value: payout

id
string
required

Unique identifier for this exercise.

contract_id
string
required

The contract that was exercised.

payouts
array of exercise_payout
required

The payouts issued to the customer.

Items ≥ 1
Show fields
Array of exercise_payout · one of 1 · The payouts issued to the customer.
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
rebook (rebook) rebook
type
string
required

value: rebook

id
string
required

Unique identifier for this exercise.

contract_id
string
required

The contract that was exercised.

rebooked_segments
array of itinerary_slice_segment
required

The new flight segments the customer was rebooked on.

Items ≥ 1
Show fields
Array of itinerary_slice_segment · The new flight segments the customer was rebooked on.
Items ≥ 1
origin_airport
string
required

IATA airport code of origin.

Pattern [A-Z]{3}
destination_airport
string
required

IATA airport code of destination.

Pattern [A-Z]{3}
departure_date_time
string
required

Local date and time of departure, in ISO 8601 format.

arrival_date_time
string
required

Local date and time of arrival, in ISO 8601 format.

cabin
string enum
required

Cabin of the segment.

Values economypremium_economybusinessfirst
marketing_carrier_code
string
required

IATA airline code of the marketing carrier for this segment.

Pattern [A-Z0-9]{2}
marketing_flight_number
string
required

Flight number for the marketing carrier.

Pattern [0-9]{1,4}
reservation_booking_designator
string

Reservation Booking Designator (RBD) for this segment: the booking code the airline sold the seat under, one uppercase letter and an optional second letter or digit. Also known as booking class, booking code, class of service, or fare class (e.g. Y, B, M, Q, N, J, F, E1). Pass the code exactly as it appears on the ticket/PNR.

Pattern ^[A-Z][A-Z0-9]?$
operating_carrier_code
string

IATA airline code of the operating carrier for this segment. Assumed to be the same asmarketing_carrier_code if not set.

Pattern [A-Z0-9]{2}
operating_flight_number
string

Flight number for the operating carrier. Assumed to be the same asmarketing_flight_number if not set.

Pattern [0-9]{1,4}
itinerary
confirmed_itinerary
required

The new itinerary details.

Show fields
currency
string
required
slices
array of itinerary_slice
required

List of slices of the itinerary; 1 (one way), 2 (round trip), or up to 10 (multi-destination) slices are allowed

Items ≥ 1
Show fields
Array of itinerary_slice · List of slices of the itinerary; 1 (one way), 2 (round trip), or up to 10 (multi-destination) slices are allowed
Items ≥ 1
segments
array of itinerary_slice_segment
required

A list of segments which make up the slice.

Items ≥ 1
Show fields
…
fare_brand
string
required

Name of the brand for the fare of the slice.

Length ≥ 1
alternative_fares
array of fare

A list of alternative fares which were also available to the user in the same cabin.

Items ≥ 1
Show fields
…
fare_rules
fare_rules

The fare rules for the slice detailing cancel and change policies with associated penalties and refund methods. Fare rules which are not sent are assumed to be unknown.

Show fields
void_policy
void_policy · one of 4

The void policy for the slice, describing whether and how long a booking can be voided after purchase. If not specified, the void policy is unknown.

Show fields
passengers
array of confirmed_itinerary_passenger
required

List of passengers on the itinerary.

Items ≥ 1
Show fields
Array of confirmed_itinerary_passenger · List of passengers on the itinerary.
Items ≥ 1
type
string enum
required

Type of passenger:
* adult - 12+ years of age
* child - 2-11 years of age
* seated_infant - < 2 years of age, in their own seat
* lap_infant - < 2 years of age, not in their own seat

Values adultchildseated_infantlap_infant
fare_amount
string
required

Total price of the fare for this passenger

Range ≥ 0
booking_references
map_string
required
user_id
string

User ID in the partner system.

payout
payout

If the product is eligible for payout, the payout to be issued upon exercise.

Show fields
amount
string
required

The total amount to be paid out upon exercise.

Range ≥ 0
percentage
integer · int32
required

The percentage of the booking to be paid out upon exercise.

Range ≥ 0, ≤ 100
itinerary
contract_itinerary

The trip as purchased, with each slice's exercise eligibility and each segment's rebook eligibility and disruption. It doesn't change after a rebook; the rebooked flights are in that rebook's exercise. Populated on Get Contract and the contract webhooks; absent on Create Contract.

Show fields
slices
array of contract_itinerary_slice
required

The slices of the trip as purchased, in purchase order.

Items ≥ 1
Show fields
Array of contract_itinerary_slice · The slices of the trip as purchased, in purchase order.
Items ≥ 1
segments
array of contract_itinerary_segment
required

The ordered list of segments that make up this slice.

Items ≥ 1
Show fields
Array of contract_itinerary_segment · The ordered list of segments that make up this slice.
Items ≥ 1
id
string
required

Base64-encoded string of ":", both zero-based. The encoding is padded, so some ids end in =; treat the id as an opaque string.

origin_airport
string
required

IATA airport code of origin.

Pattern [A-Z]{3}
destination_airport
string
required

IATA airport code of destination.

Pattern [A-Z]{3}
departure_date_time
string
required

Local date and time of departure, in ISO 8601 format.

arrival_date_time
string
required

Local date and time of arrival, in ISO 8601 format.

cabin
string enum
required

Cabin of the segment.

Values economypremium_economybusinessfirst
marketing_carrier_code
string
required

IATA airline code of the marketing carrier for this segment.

Pattern [A-Z0-9]{2}
marketing_flight_number
string
required

Flight number for the marketing carrier.

Pattern [0-9]{1,4}
rebook_eligibility
rebook_eligibility · one of 2
required

Whether a rebook can start from this segment, with the search criteria when it can.

Show fields

Whether a rebook can start from this segment, with the search criteria when it can.

Exactly one of the following, selected by type:
eligible (eligible) eligible
ineligible (ineligible) ineligible
reservation_booking_designator
string

Reservation Booking Designator (RBD) for this segment: the booking code the airline sold the seat under, one uppercase letter and an optional second letter or digit. Also known as booking class, booking code, class of service, or fare class (e.g. Y, B, M, Q, N, J, F, E1). Pass the code exactly as it appears on the ticket/PNR.

Pattern ^[A-Z][A-Z0-9]?$
operating_carrier_code
string

IATA airline code of the operating carrier for this segment. Assumed to be the same as marketing_carrier_code if not set.

Pattern [A-Z0-9]{2}
operating_flight_number
string

Flight number for the operating carrier. Assumed to be the same as marketing_flight_number if not set.

Pattern [0-9]{1,4}
disruption
disruption_reason · one of 3

The disruption on this segment. Absent when the segment has not been disrupted.

Show fields

The disruption on this segment. Absent when the segment has not been disrupted.

Exactly one of the following, selected by type:
canceled (canceled) canceled
delayed (delayed) delayed
missed_connection (missed_connection1) missed_connection1
fare_brand
string
required

Name of the brand for the fare of the slice.

Length ≥ 1
exercise_eligibility
exercise_eligibility · one of 2
required

Whether this slice can be exercised, and how.

Show fields

Whether this slice can be exercised, and how.

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

value: eligible

exercise_options
array of exercise_option
required

The ways the slice can be exercised.

Items ≥ 1
ineligible (ineligible1) ineligible1
type
string
required

value: ineligible

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.
422Semantic errors were encountered while handling the request
Array of dafar_create_draft_contract_error · one of 6
Items ≥ 1
Exactly one of the following, selected by code:
idempotency_key_reused (idempotency_key_reused) idempotency_key_reused
message
string
required

A human-readable message describing the error

code
string
required
invalid_email (invalid_email) invalid_email
message
string
required

A human-readable message describing the error

code
string
required
offer_not_found (offer_not_found2) offer_not_found2
message
string
required

A human-readable message describing the error

code
string
required
order_already_exists (order_already_exists) order_already_exists
message
string
required

A human-readable message describing the error

code
string
required
payment_authorization_failure (payment_authorization_failure) payment_authorization_failure
message
string
required

A human-readable message describing the error

code
string
required
unsupported_trip_type (unsupported_trip_type) unsupported_trip_type
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" \
  -H "X-Api-Key: $HTS_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
  "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"
}'
Response 201
{
  "id": "string",
  "user_id": "33bb4eb2-2937-4bd3-97b1-7796206712f0",
  "status": "Confirmed",
  "price": {
    "total_amount": "40.80",
    "base_amount": "30.20",
    "taxes": [
      {
        "code": "VAT",
        "amount": "20.00"
      }
    ]
  },
  "eligible_disruptions": {
    "flight_cancellation": {},
    "flight_delay": {
      "delay_minutes_threshold": 120
    },
    "missed_connection": {
      "minimum_connection_minutes_threshold": 120
    }
  },
  "payout": {
    "amount": "400.00",
    "percentage": 100
  },
  "rebooking_allowance_per_passenger": "1000.00",
  "window_minutes_before_departure": 1440,
  "currency": "CAD",
  "expires_at": "2020-12-20T12:15:48Z",
  "booking_references": {},
  "itinerary": {
    "slices": [
      {
        "segments": [
          {
            "id": "MDow",
            "origin_airport": "YUL",
            "destination_airport": "SFO",
            "departure_date_time": "2026-11-15T08:00",
            "arrival_date_time": "2026-11-15T11:15",
            "cabin": "Economy",
            "reservation_booking_designator": "Y",
            "marketing_carrier_code": "AC",
            "marketing_flight_number": "759",
            "operating_carrier_code": "AC",
            "operating_flight_number": "759",
            "rebook_eligibility": {
              "type": "eligible"
            },
            "disruption": {
              "type": "canceled"
            }
          }
        ],
        "fare_brand": "Standard",
        "exercise_eligibility": {
          "type": "string",
          "exercise_options": [
            "payout"
          ]
        }
      }
    ]
  },
  "exercises": [
    {
      "type": "string",
      "id": "string",
      "contract_id": "string",
      "payouts": [
        {
          "type": "string"
        }
      ]
    }
  ]
}

Examples are generated from the schema where the spec publishes none; field values are illustrative.