Rewards
rewards
Section titled “rewards”Returns every reward configured for your shop, the things customers can redeem stamps for. Takes no arguments.
Returns a non-null list of non-null Reward objects ([Reward!]!).
Returns / Fields
Section titled “Returns / Fields”| Field | Type | Description |
|---|---|---|
id | ID! | Unique identifier. |
name | String | Display name (branded/translated). |
price | Int | Cost in stamps. |
exchangeType | String | How the reward is exchanged. |
iconUrl | String | Icon URL if set. |
Example
Section titled “Example”query { rewards { id name price exchangeType iconUrl }}{ "data": { "rewards": [ { "id": "44", "name": "Free coffee", "price": 10, "exchangeType": "free_product", "iconUrl": "https://cdn.appydesign.io/icons/coffee.svg" } ] }}reward(id)
Section titled “reward(id)”Returns a single reward by its ID.
Arguments
Section titled “Arguments”| Name | Type | Required | Description |
|---|---|---|---|
id | ID! | Yes | The record’s ID. |
Returns a Reward object (nullable, null if not found).
Returns / Fields
Section titled “Returns / Fields”| Field | Type | Description |
|---|---|---|
id | ID! | Unique identifier. |
name | String | Display name (branded/translated). |
price | Int | Cost in stamps. |
exchangeType | String | How the reward is exchanged. |
iconUrl | String | Icon URL if set. |
Example
Section titled “Example”query ($id: ID!) { reward(id: $id) { id name price exchangeType }}{ "data": { "reward": { "id": "44", "name": "Free coffee", "price": 10, "exchangeType": "free_product" } }}