Edit

[POST] .../v1/orderdeliveryoperation/edit

Edits operations retail order. Use this batch method to 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. Business 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, database errors or persistence failures are returned as HTTP 200 ErrorResult.

Request Parameters

Name Type Required Description
id Int64 Required Retail order operation ID.
price Decimal Optional Item price.
quantity Decimal Optional Item quantity.

Request Example

[
  {
    "id": 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
  }
}