> 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-wwpp/general-discounts/retrieve-specific-role-discount.md).

# Retrieve Specific Role Discount

This API handles fetching the le general discounts.

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

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

{% tab title="Request Example" %}

#### Postman

List all general wholesale discounts:

```javascript
GET: /wp-json/wholesale/v1/general-discount/{wholesale_role_key}
```

{% endtab %}

{% tab title="Response Example" %}

#### Status: 200 OK

Get the general discount for a specific wholesale role.

```
GET: /wp-json/wholesale/v1/general-discount/{wholesale_role_key}

Response:
{
    "wholesale_customer": 11
}
```

#### Status: 200 OK

Invalid wholesale role key.

```
GET: /wp-json/wholesale/v1/general-discount/{wholesale_role_key_invalid}

Response:
{
    "code": "wholesale_rest_general_discount_cannot_view",
    "message": "Invalid Wholesale Role.",
    "data": {
        "status": 400
    }
}
```

{% endtab %}
{% endtabs %}
