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

KeyDatatypeRequiredDescription
pageNumbernumberThe 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.
pageSizenumberThe number of documents being retrieved on the page.
sortstringFields 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.
sourceCurrencystringReturns all exchange definitions for which the source currency match the pattern. The contains operation is used for the parameter.
targetCurrencystringReturns all exchange definitions for which the target currency match the pattern. The contains operation is used for the parameter.

HEADERS

KeyDatatypeRequiredDescription
X-Total-CountbooleanThe 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
Acceptstring

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