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. 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 segment info per itinerary and multiple fare options per itinerary (economy / premium / business), each with a trip_item_token you pass 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.