[POST] .../v1/docpayment/delete
Deletes payment document. Deletion is available when the document is marked with deleted_mark = true, for marking on deletion used method DocPayment/DeleteMark. Use this destructive workflow method to soft-delete a payment document that was already marked with DocPayment/DeleteMark. The operation returns row_affected, sets the internal deleted flag, writes an action log entry, sends the DocPaymentDeleted webhook and requires delete permission for the current request user. It can be used only after deleted_mark is true and only while the payment is unposted; use DocPayment/DeleteMark first when the document is not yet marked. Missing body, invalid id, denied permission, disabled payment tariff, posted documents, missing documents, documents not marked for deletion, already deleted rows, transaction failures 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
}
}