This API handles fetching the le general discounts.
Postman
List all general wholesale discounts:
GET: /wp-json/wholesale/v1/general-discount/{wholesale_role_key}
Status: 200 OK
Get the general discount for a specific wholesale role.
GET: /wp-json/wholesale/v1/general-discount/{wholesale_role_key}
Response:
{
"wholesale_customer": 11
}
Status: 200 OK
Invalid wholesale role key.
GET: /wp-json/wholesale/v1/general-discount/{wholesale_role_key_invalid}
Response:
{
"code": "wholesale_rest_general_discount_cannot_view",
"message": "Invalid Wholesale Role.",
"data": {
"status": 400
}
}