A new easier method to use the Currency endpoint

API: Currency Management Version 8.60

The currency endpoints have been changed and a new version 2 added for Exchange rate and Rate type.

GET api/v1/currency and
GET /api/v1/currency/{curyId}has been extended with new columns
“symbol”: “string”,
“isBaseCurrency”: true, - is only returned on the currency that is the base currency.
“decimalPrecision”: 0,
“isUsedForAccounting”: true

New version 2 of Currency rates
GET /api/v2/currencyrate with parameter
fromDate
toDate
fromCurrency
toCurrency
rateType

Returning
“id”: 0,
“fromCurrencyId”: “string”,
“toCurrencyId”: “string”,
“rateType”: “string”,
“rate”: 0,
“effectiveDate”: “2021-08-04T00:00:00”,
“multDiv”: “string”,
“rateReciprocal”: 0

For POST the CurrencyRateID is removed as parameter and From and To Currency is part of the request.
POST /api/v2/currencyrate
“fromCurrencyId”: “string”
“toCurrencyId”: “string”
“rateType”: “string”
“effectiveDate”: “2021-08-04”
“rate”: 0
“multDiv”: “Multiply”

For PUT the request only contain Rate and MultiDiv to avoid updating an existing Rate for a other currency/ratetype by mistake.
PUT /api/v2/currencyrate with parameter
currencyRateId
“rate”: 0
“multDiv”: “Multiply”

New API’s for Currency rate type:
GET /api/v2/currencyratetype
“id”: “string”,
“description”: “string”,
“daysEffective”: 0

POST /api/v2/currencyratetype
“id”: “string”
“description”: “string”
“daysEffective”: 0