DeleteMark

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

Toggles the deletion mark of a warehouse goods receipt or write-off document. Use this destructive-state method to toggle the deletion mark on a manual warehouse goods receipt/write-off document as the required pre-step before final deletion. The request requires the warehouse goods receipt/write-off 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 sends the deletion-mark webhook when the update succeeds. Errors such as missing body, invalid id, denied access, disabled tariff option, lock failure, posted document state, automatic-document state, 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.

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