Flex API
Provides ability to get the cheapest pricing option within pre-defined date range
Flex API request
Sample request (type: GET)
https://api.travelcloudpro.eu/v1/cache/flex?searchPhrase=20170501IEVWAW20170508WAWIEV&pointOfSale=UA
Request parameters:
Name | Example | Description |
searchPhrase | 20170501IEVWAW20170508WAWIEV | Departure and arrival date ranges whithin which cheapest options are received for a range dates before and/or after the requested flight date up to a maximum of three days. City IATA code required (do not use airport code). |
pointOfSale | UA | Country ISO code where shopping request was generated. |
Flex API response (application/json)
Response parameters:
Name | Data type | Description |
status | string | Can be "success" or "error". Indicates an error while validating input params and while processing warehouse response. If the status is "error" then errorMessage is provided |
dataAvailable | boolean | If value false is returned data is not avialable either because too distant dates indicated or some mandatory parameters not specified. In the latter case errorMessage is provided |
requestId | string | Provides id for a API call |
executionTimeInMs | number | Indicates execution time on amazon servers without time taken to transfer data in and out |
originalRequest | object | Indicates parsed request from user |
pointOfSale | string | Country ISO code where shopping request was generated. |
data | response object | Appears only if status is "success" and dataAvailable is true |
proposalsCount | number | |
compressedDataSize | compressed data size in bytes | |
uncompressedDataSize | uncompressed data size in bytes | |
base64GzippedResponse | gzipped response in base64 format |
Upon decompression of base64GzippedResponse and JSON data display the user should be able to view object contaning the following fields:
Name | Example | Description |
PointOfSale | UA | Destination code |
searchPhrase | 20170428IEVWAW20170508WAWIEV | Indicates whether proposal contains direct or connected flights |
Direct | Indicates that pricing option contains only direct flight | |
Connected | Shows that pricing option contains connecting flights | |
Currency | UAH | Pricing offer currency |
TotalAmount | 15766 | Fare amount for the cheapest option, including taxes in PointofSale currency |
ValidatingCarrier | LO | IATA code of the plating carrier |
Last updated