[POST] .../v1/stock/deletemark
Marks a stock as deleted. Use this destructive method to set or toggle the deletion mark for a stock without physically removing the stock record. It requires a positive id and returns row_affected after validating current-user context and stock delete-mark permission; the operation fails when the stock is linked to an active cash register. Missing body, invalid id, invalid current user, denied access, missing records, linked-cash restrictions and storage errors are returned as HTTP 200 ErrorResult business errors.
Request Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| id | Int64 | Required | Stock ID. |
Request Example
{
"id": 8
}
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
}
}