[POST] .../v1/docorderdelivery/unlock
Unlocks retail order document for editing. Use this workflow method to release edit locks for one or more retail order delivery documents after an editing session or after AddFull recalculation. The request requires a non-empty ids array with positive document ids and locks the same ids at the request level. The method requires the retail order unlock permission, clears eligible locks in the persistent layer and returns row_affected. Business errors such as a missing request body, missing or invalid ids, denied access, invalid lock 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
}
}