DeleteDiscount
[POST] .../v1/orderfrompartneroperation/deletediscount
Deletes discounts or allowances from a customer order document. 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 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.
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
]
}
}