POST api/2.0/crm/currency/setrates
Sets currency rates to the currency specified in the request.
Name |
Description |
Type |
Example |
currency
sent in body
|
Currency (abbreviation)
Allowed values: EUR, RUB etc. You can get the whole list of available currencies by API
|
string
|
some text
|
rates
sent in body
|
List of currency rates
|
System.Collections.Generic.List{ASC.CRM.Core.CurrencyRate}
|
|
POST api/2.0/crm/currency/setrates
Host: yourportal.onlyoffice.com
Content-Type: application/json
Accept: application/json
{
"currency": "some text",
"rates": null
}
application/json
{
"status": 0,
"response": [
{
"FromCurrency": "EUR",
"ToCurrency": "USD",
"Rate": "1.1",
"id": 1234
}
]
}
text/xml
<result>
<status>0</status>
<response>
<FromCurrency>EUR</FromCurrency>
<ToCurrency>USD</ToCurrency>
<Rate>1.1</Rate>
<id>1234</id>
</response>
</result>