Delete

[POST] .../v1/movementoperation/delete

Deletes operations movement. Use this destructive method to delete one or more item movement lines from a DocMovement document when the lines were added by mistake or should no longer participate in posting. The request body is a JSON array batch where every item must contain an operation id and deleting a movement operation also marks its paired stock operation row as deleted. The operation must be a main DocMovement operation, the parent document must be locked by the current user and eligible for editing and the caller must have delete permission; null, empty or oversized arrays, missing ids, denied access, already posted or deleted documents or persistent storage failures are returned as HTTP 200 ErrorResult business errors.

Request Parameters

Name Type Required Description
id Int64 Required Movement operation ID to delete.

Request Example

[
  {
    "id": 8201
  }
]

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,
    "ids": [
      8201
    ]
  }
}