DELETE: /wp-json/coupons/v1/bulk/virtualcoupons
Requirements:
user role with manage_woocommerce
user capability
Bulk delete virtual coupons
DELETE: http://example.com/wp-json/coupons/v1/bulk/virtualcoupons/
JSON Body:
{
"coupon_id": 207,
"ids": [64,65,67,57,56,53,50,49,48,47]
}
Status: 200 OK
Bulk delete virtual coupons
{
"message": "10 virtual coupon codes have been deleted.",
"count":10,
"total":144
}
Status: 403 Forbidden
{
"code": "rest_forbidden_context",
"message": "Sorry, you are not allowed access to this endpoint.",
"data": {
"status": 401
}
}