DeleteMark

[POST] .../v1/docinout/deletemark

Toggles deleted_mark for cash in/out document. Use this destructive-state method to toggle the deletion mark on a manual cash in/out document as the required pre-step before final deletion. The request requires the cash in/out document delete-mark permission and id is required; the document must satisfy the lock contract, remain not posted and not deleted and must not be an automatically created document. The method changes only deleted_mark and writes the delete-mark action log plus webhook when the update succeeds. Business errors such as missing body, invalid id, denied access, disabled tariff option, lock failure, posted document state, automatic-document 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 Required stock receipt/write-off document ID.

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