Edit
[POST] .../v1/orderdeliveryoperation/edit
Updates item lines in a retail order document. Edit existing item rows of a retail order delivery document. The request body is an array of one to 250 rows; each row must contain id and may provide quantity and/or price, with values inside the same quantity, price and total amount limits used when adding operations. The method requires the retail order operation edit permission, locks the owning document resolved from operation ids, verifies all operations belong to one valid editable document, applies changed fields, updates the document amount and returns row_affected with ids. Errors such as a missing or empty array body, batch-size violations, invalid ids, invalid quantity or price, no changed fields, denied access, invalid document state, missing operations, missing active rows, storage errors are returned as HTTP 200 ErrorResult.
Request Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| id | Int64 | Required | Retail order 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. |
Request Example
[
{
"id": 1,
"order": 1,
"price": 1.0,
"quantity": 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
}
}