8. GetExchangeRates
Last modified by Giorgi Mdivnishvili on 2024/08/29 16:51
Contents
Method Description
Using this method, you can retrieve information about the currencies available in the system and their exchange rates.
Using this method, you can individually retrieve information about the currencies available in the system and their exchange rates. However, when searching for tour packages, if you provide the currency, you can pass the currency code, and the response will include the conversion rate alongside the requested data.
Based on the example provided in the image, it is evident that if you pass "searchCurrency": "USD", you will receive the exchange rate between Euro and USD, as the search is for a destination in Turkey where the default pricing is given in Euros. This example is illustrated using the tour package search method.
EndpointURL - [GET]
Request Body
none
Response example data
[
{
"id": 20569387,
"convertFrom": "AED",
"convertTo": "USD",
"rate": 0.2729
},
{
"id": 20569388,
"convertFrom": "EUR",
"convertTo": "USD",
"rate": 1.1168
},
{
"id": 20569389,
"convertFrom": "AZN",
"convertTo": "USD",
"rate": 0.5863
},
{
"id": 20569390,
"convertFrom": "TRY",
"convertTo": "USD",
"rate": 0.2353
},
{
"id": 20569391,
"convertFrom": "QAR",
"convertTo": "USD",
"rate": 0.2762
},
]
{
"id": 20569387,
"convertFrom": "AED",
"convertTo": "USD",
"rate": 0.2729
},
{
"id": 20569388,
"convertFrom": "EUR",
"convertTo": "USD",
"rate": 1.1168
},
{
"id": 20569389,
"convertFrom": "AZN",
"convertTo": "USD",
"rate": 0.5863
},
{
"id": 20569390,
"convertFrom": "TRY",
"convertTo": "USD",
"rate": 0.2353
},
{
"id": 20569391,
"convertFrom": "QAR",
"convertTo": "USD",
"rate": 0.2762
},
]
Schema
Response parameters
Parameter | example | Description |
---|---|---|
id | 20569387 | ID of convertion |
convertFrom | AED | The currency from which the conversion is made. |
convertTo | USD | The currency to which the conversion is made. |
rate | 0.2729 | Given conversion rate. |