Edit
[POST] .../v1/commercialofferoperation/edit
Updates item lines in a commercial offer document. Update item row quantity, price or VAT value in an editable commercial offer document. The request body is an array, requires the commercial offer operation edit permission, must contain 1 to 250 rows and each row must identify an existing operation id with at least one editable value. All operations in the batch must belong to one commercial offer document and that document must not be deleted or marked for deletion and must satisfy the document lock contract. Errors such as missing body, empty or oversized batch, invalid row fields, no editable values, denied access, operations not found, operations from different documents, deleted or deletion-marked document, lock failure, no affected row, storage errors are returned as HTTP 200 ErrorResult.
Request Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| id | Int64 | Required | Commercial offer document operation ID. |
| order | Int64 | Optional | Operation order inside the document. If null, the stored order is not changed. Ignored for database versions earlier than 407. |
| price | Decimal | Optional | Item price. |
| quantity | Decimal | Optional | Item quantity. |
| vat_value | Decimal | Optional | VAT rate value. |
Request Example
[
{
"id": 1,
"order": 1,
"price": 1.0,
"quantity": 1.0,
"vat_value": 1.0
}
]
Response Parameters
| Name | Type | Description |
|---|---|---|
| ok | Boolean | Indicates whether the request completed successfully. |
| result | Update | Update operation result. |
Response Example
{
"ok": true,
"result": {
"ids": [
null
],
"row_affected": 1
}
}