> 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/retrieve-a-wholesale-role.md).

# Retrieve a Wholesale Role

This API allows you to fetch specific wholesale role data.

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

| Method | Endpoint                                |
| ------ | --------------------------------------- |
| GET    | /wp-json/wholesale/v1/roles/{role\_key} |

| Path parameters |          |        |                        |
| --------------- | -------- | ------ | ---------------------- |
| role\_key       | required | string | The wholesale role key |
| {% endtab %}    |          |        |                        |

{% tab title="Request Example" %}

#### Postman

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

{% endtab %}

{% tab title="Response Example" %}

#### Status: 200 OK

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

{% endtab %}
{% endtabs %}
