Retrieve Specific Role Discount
This API handles fetching the le general discounts.
Method
Endpoint
GET
/wp-json/wholesale/v1/general-discount
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
}
}Last updated
Was this helpful?