UT Currency Code
|
URL |
Verbs |
Function |
Available |
|
/CurrencyCode |
GET |
Query a list of all Currency Codes |
2018.1.0 |
|
/CurrencyCode/<code> |
GET |
Query a single Currency Code |
2018.1.0 |
Supported modifiers
|
Query String |
Definition |
Sample
|
Available |
|---|---|---|---|
|
convertTo |
Returns a currency conversion rate from the source currency code to the nominated To currency |
convertTo=USD | 2019.3 |
| convertFrom | Returns a currency conversion rate to the source currency code to the nominated From currency | convertFrom=NZD | 2019.3 |
| date | Used for the currency conversion calculation for date based rates, default will be the current server date | date=2019-04-21 | 2019.3 |
Security Linked Menu
|
Menu Item
|
Located
|
|---|---|
| Currency Maintenance | System / Foreign Currency |
Sample XML Response
<?xml version="1.0" encoding="UTF-8"?>
<CurrencyCode>
<Code>AUD</Code>
<Description>Australian Dollar</Description>
<Edition>16</Edition>
</CurrencyCode>
Sample XML Response from requesting a currency conversion
For example, http://server:port/01/CurrencyCode/USD?convertTo=AUD&date=2018-05-21
<?xml version="1.0" encoding="UTF-8"?>
<CurrencyConversion>
<FromCurrency>USD</FromCurrency>
<ToCurrency>AUD</ToCurrency>
<Date>2018-05-21</Date>
<IsCurrencyRateMultiply>true</IsCurrencyRateMultiply>
<CurrencyRate>1.81801654</CurrencyRate>
</CurrencyConversion>