Delete Category Discount
This API allows you to delete a wholesale discount of a wholesale roles on a specific category.
Method
Endpoint
DELETE
/wp-json/wholesale/v1/category-discount/{category_id}
Status: 200 OK
List all wholesale role discounts from a specific category.
After deleting, it will list down the remaining wholesale discounts.
DELETE: /wp-json/wholesale/v1/category-discount/{category_id}
JSON Body:
{
"wholesale_customer"
}
Response:
{
"message": "Successfully deleted category discount.",
"data": {
"Wholesale_bronze_wholesale_discount": 10
}
}Status: 400 Bad Request
The category id does not exist.
Status: 400 Bad Request
The wholesale role is invalid.
Last updated
Was this helpful?