[POST] .../v1/docpayment/deletemark
Toggles deleted_mark for payment document. Use this workflow method to mark an unposted payment for deletion or remove that mark before final deletion. The operation returns row_affected, toggles deleted_mark, writes an action log entry, sends the DocPaymentDeleteMarked webhook and requires delete-mark permission for the current request user. It can be used only for an existing unposted payment document that is not already deleted; posted documents must be cancelled before they can be marked. After a document is marked with deleted_mark = true, call DocPayment/Delete to soft-delete it. Missing body, invalid id, denied permission, disabled payment tariff, posted documents, missing documents, already deleted rows and storage conflicts are returned as HTTP 200 ErrorResult business errors.
Request Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| id | Int64 | Required | Required payment 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
}
}