VIP tiers
Returns every VIP tier configured for your shop. Takes no arguments.
Returns a non-null list of non-null Tier objects ([Tier!]!).
Returns / Fields
Section titled “Returns / Fields”| Field | Type | Description |
|---|---|---|
id | ID! | Unique identifier. |
name | String | Tier name. |
milestone | Int | Stamps required to reach the tier. |
multiplier | Float | Stamp-earning multiplier for members. |
iconUrl | String | Icon URL. |
benefits | String | Description of the tier’s benefits. |
rewards | [Reward!]! | Reward products granted by this tier. |
Example
Section titled “Example”query { tiers { id name milestone rewards { id name price } }}{ "data": { "tiers": [ { "id": "3", "name": "Gold", "milestone": 100, "rewards": [ { "id": "12", "name": "Free coffee", "price": 50 } ] } ] }}tier(id)
Section titled “tier(id)”Returns a single VIP tier by its ID.
Arguments
Section titled “Arguments”| Name | Type | Required | Description |
|---|---|---|---|
id | ID! | Yes | The record’s ID. |
Returns a Tier object (nullable, null if not found).
Returns / Fields
Section titled “Returns / Fields”| Field | Type | Description |
|---|---|---|
id | ID! | Unique identifier. |
name | String | Tier name. |
milestone | Int | Stamps required to reach the tier. |
multiplier | Float | Stamp-earning multiplier for members. |
iconUrl | String | Icon URL. |
benefits | String | Description of the tier’s benefits. |
rewards | [Reward!]! | Reward products granted by this tier. |
Example
Section titled “Example”query ($id: ID!) { tier(id: $id) { id name milestone rewards { id name price } }}{ "data": { "tier": { "id": "3", "name": "Gold", "milestone": 100, "rewards": [ { "id": "12", "name": "Free coffee", "price": 50 } ] } }}