DeleteDiscount

[POST] .../v1/returnstopartneroperation/deletediscount

Deletes discount/allowance partner return document. Use this destructive method to delete one discount or allowance row from a return-to-partner document before posting. The request body must contain the discount/allowance operation id; the controller fills the service document type for return-to-partner 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": 8501
}

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": [
      8501
    ]
  }
}