[POST] .../v1/docaccountmovement/delete
Deletes an account transfer document. Deletion is available when the document is marked with deleted_mark = true, for marking on deletion used method DocAccountMovement/DeleteMark Use this destructive method to final-delete an account transfer document after it has already been marked for deletion with DocAccountMovement/DeleteMark. The request requires the account movement delete permission and the finance account movement tariff option; id is required, the document must exist, must not be posted, must not already be deleted and must have deleted_mark = true. The method sets the internal deleted flag and writes the delete action log and webhook; callers should use DocAccountMovement/Get to verify performed and deleted_mark state before deletion. Business errors such as missing body, invalid id, denied access, disabled tariff option, document not found, already posted document, missing deletion mark, no affected row, database failures or action log failures are returned as HTTP 200 ErrorResult.
Request Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| id | Int64 | Required | Required account movement document ID. |
Request Example
{
"id": 31
}
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
}
}