DeleteMark
[POST] .../v1/docpayment/deletemark
Toggles deleted_mark for payment document. Mark an unposted payment for deletion or remove that mark before final deletion. The operation returns row_affected, toggles deleted_mark 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.
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
}
}