Delete
[POST] .../v1/docpayment/delete
Deletes payment document. Soft-delete a payment document that was already marked with DocPayment/DeleteMark. The operation returns row_affected, sets the internal deleted flag 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, storage errors 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
}
}