API Methods
POST /DocInventory/Unlock
[POST] .../v1/docinventory/unlock
Releases edit locks on inventory count documents. Unlock one or more inventory documents after an editing or close/open workflow finishes. The request requires the inventory unlock permission and the stock inventory tariff option; the body must contain a non-empty ids array with positive document IDs. The response reports how many document lock rows changed and callers can verify the lock state with DocInventory/Get. Errors such as missing body, missing ids, invalid IDs, denied access, disabled tariff option, lock ownership conflicts, storage errors or unlock errors are returned as HTTP 200 ErrorResult.
Request Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| ids | Array of Int64 | Required | Inventory document IDs. |
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
}
}
POST /DocMovement/Unlock
[POST] .../v1/docmovement/unlock
Releases edit locks on warehouse transfer documents. Use this method after finishing edits to release locks on one or more movement documents. The request body must contain a non-empty ids array of positive movement document ids and the response returns row_affected for documents whose lock state changed. The caller must have document movement unlock permission; missing body, invalid ids, unavailable tariff, denied access, storage failures or lock-service errors are returned as HTTP 200 ErrorResult.
Request Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| ids | Array of Int64 | Required | Movement document IDs. The array must contain at least one positive ID. |
Request Example
{
"ids": [
4201
]
}
Response Parameters
| Name | Type | Description |
|---|---|---|
| ok | Boolean | Indicates whether the request completed successfully. |
| result | Update | Update operation result. |
Response Example
{
"ok": true,
"result": {
"row_affected": 1
}
}