[POST] .../v1/docorderdelivery/deletemark
Toggles deleted_mark for retail order document. Use this destructive workflow method to mark a retail order delivery document for deletion or clear that deletion mark before permanent deletion. The request requires id and locks the document by id while the deletion mark is changed. The method requires the retail order delete-mark permission, updates deleted_mark, writes the action log, sends the delete-marked webhook and returns row_affected. Business errors such as a missing request body, invalid id, denied access, disabled tariff, locked or invalid document state, missing active row or persistence failures are returned as HTTP 200 ErrorResult.
Request Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| id | Int64 | Required | Retail order 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
}
}