# 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

Fetch all wholesale roles

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

{% endtab %}

{% tab title="Response Example" %}

#### 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"
    }
}
```

{% endtab %}
{% endtabs %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://rymera.gitbook.io/wholesale-suite-api/wholesale-v1-wwpp/wholesale-role/list-wholesale-roles.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
