> ## Documentation Index
> Fetch the complete documentation index at: https://developers.mageloyalty.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Retrieve a VIP tier

> Fetch a single VIP tier by ID.

Fetch a single VIP tier by its ID.

## Response

Returns the [VIP tier object](/api-reference/vip-tiers/object) including its `threshold`, its `position` (1-indexed by `threshold` ascending), and any tier-exclusive rewards.

<RequestExample>
  ```bash cURL theme={null}
  curl --request GET \
    --url https://api.mageloyalty.com/v1/vip-tiers/tier_gold \
    --header 'Authorization: <api-key>'
  ```

  ```javascript Node theme={null}
  const response = await fetch(
    "https://api.mageloyalty.com/v1/vip-tiers/tier_gold",
    {
      method: "GET",
      headers: {
        Authorization: "<api-key>",
      },
    }
  );

  const data = await response.json();
  ```

  ```python Python theme={null}
  import requests

  response = requests.get(
      "https://api.mageloyalty.com/v1/vip-tiers/tier_gold",
      headers={"Authorization": "<api-key>"},
  )

  data = response.json()
  ```

  ```php PHP theme={null}
  <?php
  $ch = curl_init("https://api.mageloyalty.com/v1/vip-tiers/tier_gold");
  curl_setopt_array($ch, [
      CURLOPT_RETURNTRANSFER => true,
      CURLOPT_HTTPHEADER => [
          "Authorization: <api-key>",
      ],
  ]);
  $data = json_decode(curl_exec($ch), true);
  ```
</RequestExample>

<ResponseExample>
  ```json 200 OK theme={null}
  {
    "data": {
      "type": "vip_tier",
      "id": "tier_gold",
      "attributes": {
        "name": "Gold",
        "description": "Premium tier",
        "threshold": 500,
        "threshold_points": null,
        "threshold_spend": null,
        "threshold_orders": null,
        "points_multiplier": 1.5,
        "position": 2,
        "badge_image_url": null,
        "badge_color": "#FFD700",
        "rewards": [
          {
            "id": "reward_abc",
            "name": "£5 off your next order",
            "description": null,
            "discount_type": "fixed",
            "reward_type": "vip",
            "points_cost": 500,
            "discount_amount": 5.00,
            "minimum_spend": 20.00,
            "is_active": true,
            "max_redemptions": null,
            "expiry_days": 30,
            "created_at": "2024-01-01T00:00:00.000Z",
            "updated_at": "2024-01-01T00:00:00.000Z"
          }
        ],
        "created_at": "2024-01-01T00:00:00.000Z",
        "updated_at": "2024-01-01T00:00:00.000Z"
      }
    }
  }
  ```

  ```json 404 Not Found theme={null}
  {
    "errors": [
      {
        "status": "404",
        "title": "Not Found",
        "detail": "VIP tier 'tier_gold' not found"
      }
    ]
  }
  ```
</ResponseExample>

## Errors

| Status | Scenario           |
| ------ | ------------------ |
| `404`  | VIP tier not found |
