# 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 %}
