PerformCancel
[POST] .../v1/docwholesalereturn/performcancel
Cancels posting of a wholesale customer return document. Cancel posting of a wholesale return document when stock and partner balance effects must be rolled back and the document returned to editable state. The request body must contain id and the response returns row_affected for the document row whose performed flag was cleared. The document must be locked by the current request user, not marked for deletion, not deleted and the caller must have posting-cancel permission; closed periods, denied access, lock conflicts, no affected rows, storage errors, webhook or persistence errors are returned as HTTP 200 ErrorResult.
Request Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| id | Int64 | Required | Return-from-partner document ID. |
Request Example
{
"id": 6601
}
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
}
}