Update Exchange Rates
PUT /ws/rest/service/v1/exchange
Purpose:
To add or modify currency rates of active exchange rates set.
Input:
Both input & output in JSON format in the body.
'currency_code' is required in the input request.
Update Exchange Rates input JSON
{
"data":[
{
"currencyid":2,
"rate":110.0,
"currency_name":"Afghani (AFN)",
"currency_code":"AFN"
},
{
"currencyid":3,
"rate":12.0,
"currency_name":"Lek (ALL)",
"currency_code":"ALL"
}
]
}
Output:
JSON object containing 'status', 'data', 'message'
Update Exchange Rates output JSON
{
"data":[
{
"currencyid":2,
"rate":110.0,
"currency_name":"Afghani (AFN)",
"currency_code":"AFN"
},
{
"currencyid":3,
"rate":12.0,
"currency_name":"Lek (ALL)",
"currency_code":"ALL"
}
{
"currencyid":40,
"rate":134.0,
"currency_name":"Algeria Dinar (DZD)",
"currency_code":"DZD"
},
{
"currencyid":12,
"rate":211.0,
"currency_name":"Barbados Dollar (BBD)",
"currency_code":"BBD"
},
],
"message": [
"success"
],
"status": 200
}
Notes:
- Whenever request is made to this service, a new exchange rate will be created (with currencies of currently active exchange rate set), and this new exchange rate will be activated immediately.
- If currency object given in input request does not exist in the active exchange rate set, then this currency object will be added to existing currency list.
- If currency object given in input request exists in currently active exchange rate set, then the currency rate will be modified with the value given in input object.
Status codes are:
1 > 200, for success
Related Topics
Last Published Tuesday, July 1, 2025