Last updated 3 years ago
This API allows you to fetch all wholesale roles.
GET: /wp-json/wholesale/v1/roles
{ "wholesale_customer": { "roleName": "Wholesale Customer", "desc": "updated desc", "main": true } }
Note: For WWP, it is limited to only 1 role so expect 1 role to be returned.
Method
Endpoint
GET
/wp-json/wholesale/v1/roles