Retrieving all exchange rates
GET {{api-url}}/currency/{{tenant}}/exchanges?pageNumber=1&pageSize=16
Retrieves all exchange rates.There is a possibility to filter by the source or target currency params.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
pageNumber | number | The page number to be retrieved where the size of the pages must be specified by the pageSize parameter. | |
The number of the first page is 1. | |||
pageSize | number | The number of documents being retrieved on the page. | |
sort | string | Fields to sort the response data by following order of the parameters from left to right. Can contain multiple fields in format: field name:sort direction separated by a comma. The colon with sort direction parameter is redundant and descending order is taken only if it is equal to desc or DESC. Ascending order is considered in any other case. | |
sourceCurrency | string | Returns all exchange definitions for which the source currency match the pattern. The contains operation is used for the parameter. | |
targetCurrency | string | Returns all exchange definitions for which the target currency match the pattern. The contains operation is used for the parameter. |
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
X-Total-Count | boolean | The flag indicates if the total count of items should be returned. The total count will be returned as a value of X-Total-Count header | |
Accept | string |
RESPONSES
status: OK
[{"code":"PLN_EUR","sourceCurrency":"PLN","targetCurrency":"EUR","rate":"0.21"},{"code":"PLN_USD","sourceCurrency":"PLN","targetCurrency":"USD","rate":"0.23"},{"code":"EUR_USD","sourceCurrency":"EUR","targetCurrency":"USD","rate":"1.1"},{"code":"USD_EUR","sourceCurrency":"USD","targetCurrency":"EUR","rate":"0.91"}]