[POST] .../v1/currency/editexchangerate
Sets the currency exchange rate relative to the base currency Use this method to update the exchange rate of a currency relative to the base currency for pricing, reports and document amount calculations. It returns row_affected and validates positive id, positive exchange_rate and decimal(18,8) bounds before applying the change. The caller must have currency exchange-rate edit permission; missing body, invalid rate, denied access, missing currency and storage errors are returned as HTTP 200 ErrorResult business errors.
Request Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| exchange_rate | Decimal | Required | Exchange rate relative to the base currency. |
| id | Int64 | Required | Currency ID. |
Request Example
{
"id": 840,
"exchange_rate": 12600.25000000
}
Response Parameters
| Name | Type | Description |
|---|---|---|
| ok | Boolean | Indicates whether the request completed successfully. |
| result | Update | Update operation result. |
Response Example
{
"ok": true,
"result": {
"row_affected": 1
}
}