Delete

[POST] .../v1/docinout/delete

Deletes cash in/out document. Deletion is available when the document is marked with deleted_mark = true, for marking on deletion used method DocInOut/DeleteMark. Use this destructive method to final-delete a manual cash in/out document after it has already been marked for deletion with DocInOut/DeleteMark. The request requires the cash in/out document delete permission and id is required; the document must exist, satisfy the lock contract, be marked with deleted_mark = true, remain not posted and must not be automatically created. The method sets the internal deleted flag and writes the delete action log plus webhook when the update succeeds; callers should confirm state with DocInOut/Get before deletion. Business errors such as missing body, invalid id, denied access, disabled tariff option, document not found, lock failure, posted document state, automatic-document state, missing deletion mark, no affected row, database failures or action log failures are returned as HTTP 200 ErrorResult.

Request Parameters

Name Type Required Description
id Int64 Required Required stock receipt/write-off document ID. The document must already have deleted_mark = true.

Request Example

{
  "id": 42
}

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
  }
}