DeleteMark
[POST] .../v1/docinventory/deletemark
Toggles the deletion mark of an inventory count document. Toggle the deletion mark on an inventory document as the required pre-step before final deletion. The request requires the inventory delete-mark permission and the stock inventory tariff option; id is required, the document must exist, satisfy the document lock contract and remain open, not deleted and updateable. The method changes only deleted_mark and sends the deletion-mark webhook when the update succeeds. Errors such as missing body, invalid id, denied access, disabled tariff option, document not found, lock failure, already closed or 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
}
}