Delete

[POST] .../v1/docinventory/delete

Deletes inventory document. Deletion is available when the document is marked with deleted_mark = true, for marking on deletion used method DocInventory/DeleteMark. Use this destructive method to 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 records the delete action log and webhook; callers should use DocInventory/Get to confirm document state before deletion. Business 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, 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
  }
}