API reference

HTS APIs

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

PUT/seatAvailabilityQuote

Get seat maps for a quoted offer

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

Returns available seats for each segment of a quoted offer. Each seat map lists bookable seats with pricing. Occupied or unavailable seats are omitted. Use the seat id in the orderCreate request services[] to select seats.

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

token
string
required

The token from an offerPrice response

Example eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9

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.

seat_maps
array of seat_map
required

One seat map per segment

Show fields
Array of seat_map · One seat map per segment
segment_id
string
required

The segment this seat map belongs to

Example seg_0
seats
array of available_seat
required

Available seats for this segment. Only bookable seats are listed — absence means the seat is occupied or unavailable.

Show fields
Array of available_seat · Available seats for this segment. Only bookable seats are listed — absence means the seat is occupied or unavailable.
id
string
required

Opaque service identifier — use in orderCreate services[] to select this seat

Example svc_seat_2A_seg_0_0
designator
string
required

Seat designator (e.g., '2A', '14F')

Example 2A
price
price
required

Price information for an offer.

Show fields
currency
string
required

ISO 4217 currency code

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

The base fare amount before taxes as a decimal string.

Example 120.00
total_amount
string
required

The total amount as a decimal string (base_amount + taxes_and_fees).

Example 150.00
taxes_and_fees_amount
string
required

The total amount of taxes and fees as a decimal string.

Example 30.00
taxes_and_fees
array of charge
required

Itemized taxes and fees breakdown.

Show fields
Array of charge · Itemized taxes and fees breakdown.
passenger_restrictions
array of passenger_type

When non-empty, only these passenger types can select this seat. Empty or absent means no restrictions.

emergency_exit_rows
array of integer

Row numbers designated as emergency exit rows for this segment

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/seatAvailability" \
  -H "HTS-API-KEY: $HTS_API_KEY" \
  -H "Request-Id: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
  "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9"
}'
Response 200
{
  "seat_maps": [
    {
      "segment_id": "seg_0",
      "seats": [
        {
          "id": "svc_seat_2A_seg_0_0",
          "designator": "2A",
          "price": {
            "currency": "USD",
            "base_amount": "120.00",
            "total_amount": "150.00",
            "taxes_and_fees_amount": "30.00",
            "taxes_and_fees": [
              {}
            ]
          },
          "passenger_restrictions": [
            "adult"
          ]
        }
      ],
      "emergency_exit_rows": [
        14,
        15
      ]
    }
  ]
}

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