PerformCancel

[POST] .../v1/docreturnstopartner/performcancel

Cancels posting of partner return document. Use this destructive method to cancel posting of a return-to-partner 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, database failures, webhook or persistence errors are returned as HTTP 200 ErrorResult business errors.

Request Parameters

Name Type Required Description
id Int64 Required Return-to-partner document ID.

Request Example

{
  "id": 4401
}

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
  }
}