v1
latestOpenAPI 3.0.32026-07-14133451.7 KBIncremental poll for search results (BETA)
A IncrementalPollResponse will be returned, given a IncrementalPollRequest including a requestId, and zero or more flightKey values corresponding to zero or more selected flights from previous IncrementalPollResponse if applicable.
Unlike regular poll above, incremental poll returns results based on flights previously selected by client. It can provide a better experience for the client by making incremental choices.
Before the IncrementalPollResponse of entire Trip, which is a Trip that includes all Flight records, is returned,
- segmentGroups will be empty, because it is not ready for booking.
- prices will be the lowest of all Trip records matching the selected Flight records.
For example, to search for a round-trip, in other words, a Trip of an departure Flight and a return Flight,
First call to this endpoint without any flightKey would result in a list of Trip records with only an outbound Flight in each.
Secong call to this endpoint with the flightKey of a selected outbound Flight, would result in a list of Trip records with both Flight records in each, which forms a round-trip.
Corresponding response status code indicates whether another poll is neccessary until results are returned.
Request body
Example request
{
"requestId": "OW|Economy|1-0-0|UnlimitedStarter-UnlimitedCandidate|20210901:@YTO:@AMS",
"flightKeys": [
"20211128:1740:HEL:CPH:AY959-20211129:1100:CPH:BCN:VY1871-20211129:1850:BCN:CDG:VY8240"
],
"currency": "USD"
}Response
OK
This is the last IncrementalPollResponse for the current IncrementalPollRequest. There is no more available.
(If a non-existing requestId or flightKey was provided, a IncrementalPollResponse with empty result set will be returned.)