[POST] .../v1/docinout/performcancel
Cancels posting of cash in/out document. Use this destructive workflow method to cancel posting of a manual cash in/out document when inventory movement must be rolled back. The request requires the cash in/out document perform-cancel permission and id is required; the document must satisfy the lock contract, must not be automatic, must not be deleted or marked for deletion and its date must not fall into a closed period. The method clears the performed flag and writes the perform-cancel action log plus webhook; callers usually check the current state with DocInOut/Get before and after cancellation. Business errors such as missing body, invalid id, denied access, disabled tariff option, lock failure, closed period, automatic-document state, deleted or deletion-mark state, 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
}
}