Shopping

Poll for search results

A requestId is needed for polling for search results corresponding to its search request.

post/polls

Request body

requestIdstring required

This is the request ID for which to be polled.

offsetinteger

This is the offset of the results to be polled next.

sizeinteger

This is the maximum number of results to be polled. The actual number of results might be less when there is no more results available at the moment.

Example request

{
  "requestId": "OW|Economy|1-0-0|UnlimitedStarter-UnlimitedCandidate|20210901:@YTO:@AMS"
}

Response

OK

resultCodeinteger

The result code is 200 for a successful poll and it is 400 otherwise.

messagestring

This message contains the reason for a failed poll.

currencyCodestring

This is the 3-letter currency code in which price is provided.

Example response

{
  "resultCode": 200,
  "message": "Any error message goes here.",
  "currencyCode": "EUR",
  "trips": [
    {
      "flights": [
        {
          "segments": [
            {
              "depDate": "20210401",
              "depTime": "12:45",
              "depAirport": "LON",
              "arrDate": "20210401",
              "arrTime": "17:50",
              "arrAirport": "CGN",
              "flightNo": "AC103",
              "carrier": "AC"
            }
          ]
        }
      ],
      "prices": {
        "ADT": {
          "price": 123.45,
          "tax": 6.78,
          "totalPrice": 130.23,
          "seatsStatus": "ENOUGH",
          "currencyCode": "EUR"
        },
        "CHD": {
          "price": 123.45,
          "tax": 6.78,
          "totalPrice": 130.23,
          "seatsStatus": "ENOUGH",
          "currencyCode": "EUR"
        },
        "INF": {
          "price": 123.45,
          "tax": 6.78,
          "totalPrice": 130.23,
          "seatsStatus": "ENOUGH",
          "currencyCode": "EUR"
        },
        "ALL": {
          "price": 123.45,
          "tax": 6.78,
          "totalPrice": 130.23,
          "seatsStatus": "ENOUGH",
          "currencyCode": "EUR"
        }
      }
    }
  ]
}

Changes