Delete

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

Deletes a warehouse goods receipt or write-off document. Final-delete a manual warehouse goods receipt/write-off document after it has already been marked for deletion with DocInOut/DeleteMark. The request requires the warehouse goods receipt/write-off 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 sends the deleted webhook when the update succeeds; callers should confirm state with DocInOut/Get before deletion. 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, storage errors 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
  }
}