Update Discount
Update an existing discount.
Endpoint
PUT /api/discount/update/?id={id}Request Body
Include only the fields you want to update.
See Create Discount for field details.
Example
json
{
"percentage": 20,
"active": false,
"endDate": "2024-07-31T23:59:59.000Z"
}Response
json
{
"status": "success",
"data": {
"_id": "string",
"percentage": 20,
...
}
}