[POST] .../v1/docadditionalexpenses/performcancel
Cancels posting of additional expense document. Use this destructive workflow method to cancel posting of an additional expenses document. The request requires the additional expenses perform-cancel permission; id is required, the document must exist, must not be marked for deletion and must not be deleted. If the document is linked to DocPurchase, the parent purchase must exist, be locked by the current workflow and remain not posted; when the document is already not posted, the persistent returns success without changing a row. Business errors such as missing body, invalid id, denied access, document not found, deletion mark, parent document not found, unsupported or posted parent document, parent lock failure, no affected row, database failures or action log failures are returned as HTTP 200 ErrorResult.
Request Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| id | Int64 | Required | Record ID. |
Request Example
{
"id": 56
}
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
}
}