PerformCancel

[POST] .../v1/docmovement/performcancel

Cancels posting of document movement. Use this method to cancel posting of a movement document when the stock movement must return to editable draft state. The request body must contain a positive document id, the document must be locked by the current user and the document date must not be blocked by a closed accounting period for the sender firm. The caller must have document movement perform-cancel permission; missing body, invalid id, unavailable tariff, lock conflicts, closed accounting period, denied access, no affected rows or database failures are returned as HTTP 200 ErrorResult business errors.

Request Parameters

Name Type Required Description
id Int64 Required Movement document ID.

Request Example

{
  "id": 4201
}

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