[POST] .../v1/wholesalereturnoperation/deletediscount
Deletes discount/allowance document return to partner. Use this destructive method to delete one discount or allowance row from a wholesale return document before posting. The request body must contain the discount/allowance operation id; the controller fills the service document type for wholesale return discounts before calling the persistent layer. Missing body, invalid id, denied access, document state conflicts, no affected rows or persistence errors are returned as HTTP 200 ErrorResult business errors.
Request Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| _document_typeid | Int64 | Optional | Service document type ID filled by the controller. |
| id | Int64 | Required | Discount/allowance operation ID. |
Request Example
{
"id": 9701
}
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": [
9701
]
}
}