[POST] .../v1/docinventory/deletemark
Toggles deleted_mark for inventory document. Use this method to 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 writes the inventory delete-mark action log and webhook when the update succeeds. Business 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, database failures or action log failures 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
}
}