> For the complete documentation index, see [llms.txt](https://rymera.gitbook.io/wholesale-suite-api/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://rymera.gitbook.io/wholesale-suite-api/wholesale-v1-wwp/wholesale-role/list-wholesale-roles.md).

# List Wholesale Roles

This API allows you to fetch all wholesale roles.&#x20;

{% tabs %}
{% tab title="Request" %}

| Method       | Endpoint                    |
| ------------ | --------------------------- |
| GET          | /wp-json/wholesale/v1/roles |
| {% endtab %} |                             |

{% tab title="Request Example" %}

#### Postman

```javascript
GET: /wp-json/wholesale/v1/roles
```

{% endtab %}

{% tab title="Response Example" %}

#### Status: 200 OK

```javascript
{
    "wholesale_customer": {
        "roleName": "Wholesale Customer",
        "desc": "updated desc",
        "main": true
    }
}
```

{% endtab %}
{% endtabs %}

**Note:** For WWP, it is limited to only 1 role so expect 1 role to be returned.
