API reference

HTS APIs

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

Schema

create_flight_shop_request

Fields

segment_id
string
required

The segment to rebook, identified by the id returned in the rebook eligibility response (slices[].segments[].id). Must reference a rebook-eligible segment of this purchase; HTS derives the search origin/destination and date window from that segment.

checked_bags
boolean
required

Whether the customer has checked bags. If true, additional departure time filtering is applied to allow the customer enough time to retrieve their checked bags before the rebooked flight.

inventory_source
inventory_source · one of 2

Where to source the rebook inventory. Omit (or send type=hts) for standard HTS-sourced shopping. Send type=partner_supplied with raw_itineraries to shop the partner's own pushed inventory; this mode requires the tenant to be allowlisted.

Show fields

Where to source the rebook inventory. Omit (or send type=hts) for standard HTS-sourced shopping. Send type=partner_supplied with raw_itineraries to shop the partner's own pushed inventory; this mode requires the tenant to be allowlisted.

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

value: hts

partner_supplied (partner_supplied) partner_supplied
type
string
required

value: partner_supplied

raw_itineraries
array of shopped_itinerary
required

The partner-supplied itineraries to shop, in the same canonical shape HTS returns from this endpoint. The partner assigns each itinerary a unique id; that id is echoed back in the shop response and is the itinerary_id the partner sends when creating a flight price quote. Each itinerary must end at the final destination of the slice whose segment is disrupted: HTS rebooks through to the slice's final destination rather than replacing only the disrupted segment. For example, for an original slice A->B->C->D where the disrupted segment is B->C, rebook itineraries run from B to D, not B to C. Itineraries that do not end at the slice's final destination are rejected with 400 Bad Request. An empty list yields 204 No Content, the same as an empty HTS shop result. Each itinerary must carry a fare_price (amount and currency); HTS uses it to apply the rebook-allowance filter and to record the redemption amount.

Show fields
Array of shopped_itinerary · The partner-supplied itineraries to shop, in the same canonical shape HTS returns from this endpoint. The partner assigns each itinerary a unique id; that id is echoed back in the shop response and is the itinerary_id the partner sends when creating a flight price quote. Each itinerary must end at the final destination of the slice whose segment is disrupted: HTS rebooks through to the slice's final destination rather than replacing only the disrupted segment. For example, for an original slice A->B->C->D where the disrupted segment is B->C, rebook itineraries run from B to D, not B to C. Itineraries that do not end at the slice's final destination are rejected with 400 Bad Request. An empty list yields 204 No Content, the same as an empty HTS shop result. Each itinerary must carry a fare_price (amount and currency); HTS uses it to apply the rebook-allowance filter and to record the redemption amount.
id
string
required

Unique identifier for this itinerary.

slices
array of shopped_slice
required

The slices (legs) of this itinerary.

Items ≥ 1
Show fields
Array of shopped_slice · The slices (legs) of this itinerary.
Items ≥ 1
segments
array of shopped_segment
required

The segments in this slice.

Items ≥ 1
Show fields
…
fare_brand
string

Name of the fare brand for this slice, if the source provides one.

Length ≥ 1
fare_price
shopped_fare_price

Total price of the fare for this itinerary. Required on each partner-supplied raw itinerary: HTS uses it to apply the rebook-allowance filter and to record the redemption amount. Never present on itineraries in the shop response.

Show fields
amount
string
required

Total fare amount, including taxes. Must be greater than zero.

currency
string
required

Currency of the fare amount, as an ISO 4217 code.

Used by

POST/contracts/{id}/flight_shopsCreate Flight Shop
Example
{
  "segment_id": "seg_1",
  "checked_bags": true,
  "inventory_source": {
    "type": "string"
  }
}