Delete
[POST] .../v1/docinventory/delete
Deletes an inventory count document. Final-delete an inventory document after it has already been marked for deletion with DocInventory/DeleteMark. The request requires the inventory delete permission and the stock inventory tariff option; id is required, the document must exist, satisfy the document lock contract and have deleted_mark = true while not already deleted. The method sets the internal deleted flag and sends the deleted webhook; callers should use DocInventory/Get to confirm document state before deletion. Errors such as missing body, invalid id, denied access, disabled tariff option, document not found, lock failure, missing deletion mark, already deleted state, no affected row, storage errors are returned as HTTP 200 ErrorResult.
Request Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| id | Int64 | Required | Inventory document ID. |
Request Example
{
"id": 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
}
}