[POST] .../v1/docaccountmovement/performcancel
Cancels posting of an account transfer document Use this destructive workflow method to cancel posting of an already posted account transfer document. The request requires the account movement perform-cancel permission and the finance account movement tariff option; id is required, the document must currently have performed = true, must not be marked for deletion and must not be deleted. The method sets performed = false and writes the cancel-posting action log and webhook, making the document editable again through DocAccountMovement/Edit. Business errors such as missing body, invalid id, denied access, disabled tariff option, document not posted, deletion mark, already deleted state, 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
}
}