Skip to main content

Cabin class and empty live searches

For search, omit cabin_class or send null when the user has not chosen a cabin. Providers search economy by default, and other recognized cabins can still be returned. Send an explicit cabin only when the user requests it: fares must match on the longest segment, while shorter connections may use another cabin. On flights entirely within the United States (including Puerto Rico and the US Virgin Islands), business also returns first fares, because US airlines sell the domestic premium cabin as first; those fares keep cabin first. When the live search finds no matching offers, the tool returns a successful result with status: "empty", reason: "no_matches", and an instruction to explain the outcome: it asks the user which filter to relax when the search sent a narrowing filter, and otherwise whether to try other dates or airports. Do not silently change the cabin or other filters. This holds even when one airline source could not be searched, as long as another answered; results do not say which sources failed. A search where every source failed returns an error result with retry guidance and one of the fixed messages listed in Messages on supplier failures; preserve the filters when retrying later. These rules apply to search. price_check and cache-based discovery keep their existing behavior. Fetch live, bookable pricing for a specific route and date pair. Use it once the user has settled on exact travel dates, for example “Paris to New York departing June 1 returning June 8 in economy”. It also reprices an offer surfaced earlier by the calendar or destination tools so you can confirm availability before adding it to a trip.

Parameters

Examples

Price-check a specific offer from discovery:
Live search by route (no prior discovery):
Live search with passenger mix + max price filter:
The response has detailed segments and fare options for each itinerary. Fare brands can share the same cabin: compare each fare’s brand_name, cabin_class, baggage, refund and change terms. Pass the trip_item_token from the fare the traveler selects to trip(add_item).
If price_check returns status: "offer_unavailable", the selected offer no longer matches. Search again and ask the user to choose an available live fare.