Get Started
Usage API
More information

POST api/2.0/crm/currency/setrates This function requires authentication

Description

Sets rates to the currency specified in the request.

Parameters
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`1[ASC.CRM.Core.CurrencyRate]
Example
POST api/2.0/crm/currency/setrates
Host: yourportal.onlyoffice.com
Content-Type: application/json
Accept: application/json

{
  "currency": "some text",
  "rates": [
    {
      "fromCurrency": null,
      "toCurrency": null,
      "rate": 0.0,
      "id": 0
    }
  ]
}
Returns

Currency information

Example Response

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>