[POST] .../v1/docmovement/delete
Deletes document movement. Deletion is available when the document is marked with deleted_mark = true, for marking on deletion used method DocMovement/DeleteMark. Use this method to permanently delete a movement document after it was marked with deleted_mark by DocMovement/DeleteMark. The request body must contain a positive document id and the document must be locked by the current user, unposted, not deleted and currently marked for deletion. The caller must have document movement delete permission; missing body, invalid id, unavailable tariff, lock conflicts, already posted documents, missing delete mark, 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
}
}