PerformCancel
[POST] .../v1/docadditionalexpenses/performcancel
Cancels posting of an additional expense document. 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 method returns success without changing a row. 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, storage errors 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
}
}