Lock

[POST] .../v1/docorderdelivery/lock

Locks retail order document for editing. Use this workflow method to lock one or more retail order delivery documents before an editing session. The request requires a non-empty ids array with positive document ids and locks the same ids at the request level. The controller validates the current request body but does not perform an explicit RBAC permission check before calling the persistent lock logic; the response returns row_affected. Business errors such as a missing request body, missing or invalid ids, already locked or invalid document state, database errors or persistence failures are returned as HTTP 200 ErrorResult.

Request Parameters

Name Type Required Description
ids Array of Int64 Required Retail order document ID array.

Request Example

{
  "ids": [
    1
  ]
}

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
  }
}