PerformCancel
[POST] .../v1/docinout/performcancel
Cancels posting of a warehouse goods receipt or write-off document. Cancel posting of a manual warehouse goods receipt/write-off document when inventory movement must be rolled back. The request requires the warehouse goods receipt/write-off 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 sends the posting-canceled webhook; callers usually check the current state with DocInOut/Get before and after cancellation. 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, storage errors 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
}
}