8. GetExchangeRates

Version 6.1 by Giorgi Mdivnishvili on 2024/08/28 19:07

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.

1724857515177-399.png

EndpointURL - [GET]

Request Parameters

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
    },
]

Schema

Success

[ExchangeRate{
id    integer($int32)
convertFrom    string
nullable: true
convertTo    string
nullable: true
rate    number($double)
}]

Response parameters

ParameterexampleDescription
id20569387ID of convertion
convertFromAEDThe currency from which the conversion is made.
convertToUSDThe currency to which the conversion is made.
rate0.2729Given conversion rate.