This API allows you to fetch all wholesale roles.
Postman
Fetch all wholesale roles
GET: /wp-json/wholesale/v1/roles
Status: 200 OK
{
"wholesale_customer": {
"roleName": "Wholesale Customer",
"desc": "updated desc test",
"main": true,
"onlyAllowWholesalePurchases": "no"
},
"bronze": {
"roleName": "Bronze",
"desc": "",
"onlyAllowWholesalePurchases": "no"
},
"gold": {
"roleName": "Gold",
"desc": "",
"onlyAllowWholesalePurchases": "no"
},
"platinum": {
"roleName": "Platinum",
"desc": "",
"onlyAllowWholesalePurchases": "no"
}
}