Creating a new exchange rate

POST {{api-url}}/currency/{{tenant}}/exchanges

Creates a new exchange rate between two currencies. Both, the source and target currencies must have a code complied with ISO-4217 https://www.iso.org/iso-4217-currency-codes.html and they must be defined in the system.

Request Body

{"sourceCurrency"=>"PLN", "targetCurrency"=>"EUR", "rate"=>"4.8"}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: Created

{"id":"culpa fugiat irure"}