PerformCancel

[POST] .../v1/docproduction/performcancel

Cancels posting of production document. Cancel posting of a production document when its stock movement must be rolled back. Cancellation clears the document performed flag and the database triggers update the linked stock in/out documents created by posting. Production must be enabled, the document must be locked by the current user, outside closed-period restrictions and the current request user must have production document perform-cancel permission. Missing body, invalid id, disabled production, denied access, unavailable tariff, closed-period conflicts, lock conflicts, missing documents, no affected rows, storage errors or webhook failures are returned as HTTP 200 ErrorResult.

Request Parameters

Name Type Required Description
id Int64 Required Record ID.

Request Example

{
  "id": 7401
}

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