[POST] .../v1/docadditionalexpenses/perform
Posts additional expense document. Use this workflow method to post an additional expenses document after its service rows are ready. The request requires the additional expenses perform permission; id is required, the document must exist, must not already be posted, 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, remain not posted and contain purchase operations with non-zero cost; posting also rejects closed periods and deleted-mark items in additional expenses rows. Business errors such as missing body, invalid id, denied access, document not found, already posted state, deletion mark, parent document not found, unsupported or posted parent document, parent lock failure, missing or zero-cost purchase operations, closed period, deleted items in operations, 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
}
}