POST api/2.0/crm/currency/rates
Creates a new currency rate with the parameters specified in the request.
Name |
Description |
Type |
Example |
fromCurrency
sent in body
|
Original currency
|
string
|
some text
|
toCurrency
sent in body
|
Converted currency
|
string
|
some text
|
rate
sent in body
|
Currency rate
|
System.Decimal
|
|
POST api/2.0/crm/currency/rates
Host: yourportal.onlyoffice.com
Content-Type: application/json
Accept: application/json
{
"fromCurrency": "some text",
"toCurrency": "some text",
"rate": 0.0
}
application/json
{
"status": 0,
"response": {
"fromCurrency": "EUR",
"toCurrency": "USD",
"rate": 1.1,
"id": 1
}
}
text/xml
<result>
<status>0</status>
<response>
<fromCurrency>EUR</fromCurrency>
<toCurrency>USD</toCurrency>
<rate>1.1</rate>
<id>1</id>
</response>
</result>