[POST] .../v1/docinout/perform
Posts a cash in/out document. Use this method to post a manual cash in/out document after its item rows have been prepared with InOutOperation methods. The request requires the cash in/out document perform permission and id is required; the document must satisfy the lock contract, must not be automatic, posted, deleted or marked for deletion and its date must not fall into a closed period. For outcome documents the method checks current stock balances for each row before posting, then marks the document as performed and writes the perform action log plus webhook. Business errors such as missing body, invalid id, denied access, disabled tariff option, lock failure, closed period, automatic-document state, already posted state, deletion mark, deleted state, deleted item rows, insufficient stock quantity, 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 stock receipt/write-off document ID. |
Request Example
{
"id": 42
}
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
}
}