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

Description

Creates a new currency rate with the parameters specified in the request.

Parameters
Name Description Type Example
fromCurrency
sent in body
Currency to convert string some text
toCurrency
sent in body
Currency into which the original currency will be converted string some text
rate
sent in body
Exchange rate decimal 1.1
Example
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": 1.1
}
Returns

Currency rate

Example Response

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>