[POST] .../v1/orderfrompartneroperation/deletediscount
Deletes discount/allowance order-from-partner document. Use this destructive method to remove a discount or allowance operation from a DocOrderFromPartner customer order and recalculate the affected operation prices. The request body must contain the discount operation id; the controller sets the document type internally for order-from-partner documents. The parent document must be locked by the current user and eligible for editing and the caller must have order-from-partner discount write permission; missing body, invalid id, denied access, lock conflicts, missing discount, non-editable state or storage failures 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": 9101
}
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": [
9101
]
}
}