DeleteMark
[POST] .../v1/docadditionalexpenses/deletemark
Toggles the deletion mark of an additional expense document. Toggle the deletion mark on an additional expenses document before final deletion. The request requires the additional expenses delete-mark permission; id is required, the document must exist, must not be posted, must not be deleted and must satisfy the document lock contract. If the document is linked to a parent DocPurchase, the parent must exist, be locked by the current workflow and remain not posted. Errors such as missing body, invalid id, denied access, document not found, already posted or blocked state, 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
}
}