API reference

HTS APIs

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

PUT/offerConditionsQuote

Get amenities, UTAs, and policies for offers

https://travel-distribution.staging.htsapis.com/api/flights/v1/offerConditions

Returns amenities (seat, wifi, power, etc.), UTAs (baggage, change/cancel policies, etc.), and fare policies for one or more offers identified by their tokens. Tokens may come from the shopping response or orderReshop exchange offers.

Parameters

Request-Id
header · string · uuid

Optional client-supplied UUID to correlate this request across your systems and ours. When provided, the same value is echoed back in the Request-Id response header and used in logs and traces. When omitted, the server generates one automatically. Must be a valid UUID; invalid values are rejected with 400 Bad Request.

Example d290f1ee-6c54-4b01-90e6-d701748f0851

Request body application/json · required

offers
array of offer_conditions_offer
required

Offers to look up conditions for.

Items ≥ 1, ≤ 50
Show fields
Array of offer_conditions_offer · Offers to look up conditions for.
Items ≥ 1, ≤ 50
token
string
required

Opaque token from a shopping or orderReshop offer response.

Length ≥ 1, ≤ 1024 · Example eyJhbGciOiJIUzI1NiJ9...
currency
string
required

ISO 4217 currency code

Length ≥ 3, ≤ 3 · Pattern ^[A-Z]{3}$ · Example USD
locale
string
required

Language tag for localized content (e.g., en-US).

Length ≤ 35 · Pattern ^[a-zA-Z]{2,3}(-[a-zA-Z0-9]{2,8})*$ · Example en-US

Responses

200OK
Request-Id
response header

UUID that uniquely identifies this request. If a valid Request-Id was sent in the request header, this echoes that value; otherwise a server-generated UUID is returned. Include this value when contacting support to help correlate logs and traces.

conditions
array of offer_conditions
required
Show fields
Array of offer_conditions
token
string
required

The token that was used to look up these conditions.

slices
array of condition_slice

Per-slice conditions. Each entry corresponds to a slice from the shopping response, identified by slice_id.

Show fields
Array of condition_slice · Per-slice conditions. Each entry corresponds to a slice from the shopping response, identified by `slice_id`.
slice_id
string
required

Slice identifier matching the shopping or orderReshop response.

Example sli_0
amenities
array of condition_amenity

Flight amenities for this slice.

Show fields
Array of condition_amenity · Flight amenities for this slice.
description
string
required

Human-readable description of the amenity.

Example Streaming Capable Wi-Fi
category
string enum
Values seatwifipowerentertainmentfresh_foodbeveragelayoutaircraft · Example wifi
assessment
string enum

Qualitative assessment of a fare attribute or policy.

Values neutralbenefitrestrictionfee · Example benefit
utas
array of condition_uta
Show fields
Array of condition_uta
description
string
required

Detailed explanation of the attribute.

Example First checked bag up to 23kg is included in your fare.
category
string enum
Values advance_changeboarding_prioritycancellationcarry_on_allowancecheck_in_prioritychecked_bag_allowancelounge_accesssame_day_changeseat_selectionupgrade_eligibilityrefundable_farepersonal_item · Example checked_bag_allowance
assessment
string enum

Qualitative assessment of a fare attribute or policy.

Values neutralbenefitrestrictionfee · Example benefit
change_policy
condition_multi_policy

Change or cancellation policy with time-based breakdown.

Show fields
before_departure
condition_policy

A single change or cancellation policy.

Show fields
description
string
required

Detailed policy explanation.

assessment
string enum

Qualitative assessment of a fare attribute or policy.

Values neutralbenefitrestrictionfee · Example benefit
fee
condition_fee

A fee associated with a policy.

Show fields
refund_method
string enum

How the refund will be issued to the customer.

  • original_form_of_payment: Refund to the original payment method.
  • voucher: Airline-issued travel voucher or future travel credit.
Values original_form_of_paymentvoucher · Example original_form_of_payment
after_departure
condition_policy

A single change or cancellation policy.

Show fields
description
string
required

Detailed policy explanation.

assessment
string enum

Qualitative assessment of a fare attribute or policy.

Values neutralbenefitrestrictionfee · Example benefit
fee
condition_fee

A fee associated with a policy.

Show fields
refund_method
string enum

How the refund will be issued to the customer.

  • original_form_of_payment: Refund to the original payment method.
  • voucher: Airline-issued travel voucher or future travel credit.
Values original_form_of_paymentvoucher · Example original_form_of_payment
anytime
condition_policy

A single change or cancellation policy.

Show fields
description
string
required

Detailed policy explanation.

assessment
string enum

Qualitative assessment of a fare attribute or policy.

Values neutralbenefitrestrictionfee · Example benefit
fee
condition_fee

A fee associated with a policy.

Show fields
refund_method
string enum

How the refund will be issued to the customer.

  • original_form_of_payment: Refund to the original payment method.
  • voucher: Airline-issued travel voucher or future travel credit.
Values original_form_of_paymentvoucher · Example original_form_of_payment
cancellation_policy
condition_multi_policy

Change or cancellation policy with time-based breakdown.

Show fields
before_departure
condition_policy

A single change or cancellation policy.

Show fields
description
string
required

Detailed policy explanation.

assessment
string enum

Qualitative assessment of a fare attribute or policy.

Values neutralbenefitrestrictionfee · Example benefit
fee
condition_fee

A fee associated with a policy.

Show fields
refund_method
string enum

How the refund will be issued to the customer.

  • original_form_of_payment: Refund to the original payment method.
  • voucher: Airline-issued travel voucher or future travel credit.
Values original_form_of_paymentvoucher · Example original_form_of_payment
after_departure
condition_policy

A single change or cancellation policy.

Show fields
description
string
required

Detailed policy explanation.

assessment
string enum

Qualitative assessment of a fare attribute or policy.

Values neutralbenefitrestrictionfee · Example benefit
fee
condition_fee

A fee associated with a policy.

Show fields
refund_method
string enum

How the refund will be issued to the customer.

  • original_form_of_payment: Refund to the original payment method.
  • voucher: Airline-issued travel voucher or future travel credit.
Values original_form_of_paymentvoucher · Example original_form_of_payment
anytime
condition_policy

A single change or cancellation policy.

Show fields
description
string
required

Detailed policy explanation.

assessment
string enum

Qualitative assessment of a fare attribute or policy.

Values neutralbenefitrestrictionfee · Example benefit
fee
condition_fee

A fee associated with a policy.

Show fields
refund_method
string enum

How the refund will be issued to the customer.

  • original_form_of_payment: Refund to the original payment method.
  • voucher: Airline-issued travel voucher or future travel credit.
Values original_form_of_paymentvoucher · Example original_form_of_payment
error
object

Per-token error when the token is invalid or the upstream lookup fails.

Show fields
code
string
required

A machine-readable snake_case string for programmatic handling.

Example parameter_missing
message
string
required

A human-readable description for the developer.

Example The 'passengers' parameter is required to create a booking.
param
string

The specific request parameter that caused the error.

Example passengers
400Bad Request
Request-Id
response header

UUID that uniquely identifies this request. If a valid Request-Id was sent in the request header, this echoes that value; otherwise a server-generated UUID is returned. Include this value when contacting support to help correlate logs and traces.

error
error_detail
required
Show fields
code
string
required

A machine-readable snake_case string for programmatic handling.

Example parameter_missing
message
string
required

A human-readable description for the developer.

Example The 'passengers' parameter is required to create a booking.
param
string

The specific request parameter that caused the error.

Example passengers
Example
{
  "error": {
    "code": "parameter_missing",
    "message": "The 'passengers' parameter is required to create a booking.",
    "param": "passengers"
  }
}
422Unprocessable Entity
Request-Id
response header

UUID that uniquely identifies this request. If a valid Request-Id was sent in the request header, this echoes that value; otherwise a server-generated UUID is returned. Include this value when contacting support to help correlate logs and traces.

error
error_detail
required
Show fields
code
string
required

A machine-readable snake_case string for programmatic handling.

Example parameter_missing
message
string
required

A human-readable description for the developer.

Example The 'passengers' parameter is required to create a booking.
param
string

The specific request parameter that caused the error.

Example passengers
Example
{
  "error": {
    "code": "parameter_missing",
    "message": "The 'passengers' parameter is required to create a booking.",
    "param": "passengers"
  }
}
500Internal Server Error
Request-Id
response header

UUID that uniquely identifies this request. If a valid Request-Id was sent in the request header, this echoes that value; otherwise a server-generated UUID is returned. Include this value when contacting support to help correlate logs and traces.

error
error_detail
required
Show fields
code
string
required

A machine-readable snake_case string for programmatic handling.

Example parameter_missing
message
string
required

A human-readable description for the developer.

Example The 'passengers' parameter is required to create a booking.
param
string

The specific request parameter that caused the error.

Example passengers
Example
{
  "error": {
    "code": "parameter_missing",
    "message": "The 'passengers' parameter is required to create a booking.",
    "param": "passengers"
  }
}
Request
curl -X PUT "https://travel-distribution.staging.htsapis.com/api/flights/v1/offerConditions" \
  -H "HTS-API-KEY: $HTS_API_KEY" \
  -H "Request-Id: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
  "offers": [
    {
      "token": "eyJhbGciOiJIUzI1NiJ9..."
    }
  ],
  "currency": "USD",
  "locale": "en-US"
}'
Response 200
{
  "conditions": [
    {
      "token": "string",
      "slices": [
        {
          "slice_id": "sli_0",
          "amenities": [
            {
              "category": "wifi",
              "description": "Streaming Capable Wi-Fi",
              "assessment": "benefit"
            }
          ],
          "utas": [
            {
              "description": "First checked bag up to 23kg is included in your fare.",
              "category": "checked_bag_allowance",
              "assessment": "benefit"
            }
          ],
          "change_policy": {
            "before_departure": {
              "description": "string",
              "assessment": "benefit",
              "fee": {},
              "refund_method": "original_form_of_payment"
            },
            "after_departure": {
              "description": "string",
              "assessment": "benefit",
              "fee": {},
              "refund_method": "original_form_of_payment"
            },
            "anytime": {
              "description": "string",
              "assessment": "benefit",
              "fee": {},
              "refund_method": "original_form_of_payment"
            }
          },
          "cancellation_policy": {
            "before_departure": {
              "description": "string",
              "assessment": "benefit",
              "fee": {},
              "refund_method": "original_form_of_payment"
            },
            "after_departure": {
              "description": "string",
              "assessment": "benefit",
              "fee": {},
              "refund_method": "original_form_of_payment"
            },
            "anytime": {
              "description": "string",
              "assessment": "benefit",
              "fee": {},
              "refund_method": "original_form_of_payment"
            }
          }
        }
      ],
      "error": {
        "code": "parameter_missing",
        "message": "The 'passengers' parameter is required to create a booking.",
        "param": "passengers"
      }
    }
  ]
}

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