Fly From To API

Provides the cheapest pricing options for designated city/airport pair within specified time period and desirable minimum/maximum stay days. One (single) request allows to extract data with total length of departure dates range + stay days range up to 20.

Fly From-To OW API request

Sample request (type: GET)

https://api.travelcloudpro.eu/v1/cache/flyfromto?pointOfSale=UA&minDepartureDate=2017-10-01&maxDepartureDate=2017-10-07&origin=IEV&destination=WAW

Request parameters

The following table illustrates the minimum required data for From-To OW request.

Fly From-To OW API response (application/json)

{
    "status": "success",
    "dataAvailable": true,
    "requestId": "742461c6-0e3b-11e7-a5f2-a7bb8199509d",
    "executionTimeInMs": 62,
    "originalRequest": {
        "origin": "IEV",
        "destination": "WAW",
        "pointOfSale": "UA",
        "minDepartureDate": "2017-10-01",
        "maxDepartureDate": "2017-10-07",
        "minStay": null,
        "maxStay": null
    },
    "data": {
    "proposalsCount": 5,
    "compressedDataSize": 358,
    "uncompressedDataSize": 1703,
    "base64GzippedResponse": "H4sIAAAAAAAAA71UW0vDMBj9L3ley/flnrzVKThwbLDqQPGhtN1WqK2knSBj/91UfGzRDBnkKSeXc07OycuJvLdV0692m6wuiSWPCZmRrsxcflgfXNYNcxRQIQAu7p62ydbjt5Ur857YE8mPzpVN/vm9895DfdtndfLWHhuPEzSo/ORHVldF1lfNfp45V5XOQ+uNB+qs65dtUe2qsvi5KAIWUUhBWWosqFhK+exX+gtbVyT7ctEsO2IRNJdGCjjPyLxtGk9nOOFXQoyimCB0k/4PofMswFMW7inXyCYkPKymJGCEIgVtGbegYwQ1IkFIxlEaCibUVMWnGE2bGsgoyFV+QVKFmdIwnVQaoUkpWkb9+8eG6RENdBChJVM61FUuw6MayCjIVXG1/qNOQVpAP3zdRjVoKYSQPNxUJS/ofwihIE/VNf9Un4uhcCwWDMfaZhj4UIirfal/5XN+/QIDob/JpwYAAA=="
    }
}

Response parameters

Please find below response elements for From-To OW API:

Upon decompression of base64GzippedResponse and JSON data display the user should be able to view object contaning the following fields:

Direct pricing option object

Connected pricing option object

Last updated