> ## 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.

# getShopRewards

> List all available rewards for the shop.

Retrieve all rewards configured for the shop, split into regular rewards and tiered rewards (rewards locked behind VIP tiers). The response also carries the shop's loyalty mode and currency so you can format costs correctly.

## Usage

```javascript theme={null}
MageSDK.getShopRewards().then(function(resp) {
  if (resp.success) {
    console.log(resp.data.regularRewards);
    console.log(resp.data.tieredRewards);
  }
});
```

## Response

**success** `boolean`

Whether the request was successful.

**data.regularRewards** `array`

Rewards available to all customers.

**Reward properties**

**id** `string`

The reward ID.

**name** `string`

Display name of the reward.

**description** `string`

Description of what the reward provides.

**descriptionRequirements** `array`

Requirement lines to render under the description, each `{ type, text }` (for example a minimum spend note).

**pointsCost** `number`

Cost to redeem, in the shop's loyalty unit. For flexible rewards this is the starting or minimum cost.

**category** `string`

Reward category (e.g. `"fixed"`, `"percentage"`, `"free_shipping"`).

**discountType** `string | null`

Type of discount applied.

**discountAmount** `number | null`

Raw discount value from the reward (fixed amount or percentage), or `null` for types without a scalar value.

**iconUrl** `string | null`

URL of the reward icon, or `null`.

**redemptionMode** `string`

`"fixed"` (spend a set cost) or `"flexible"` (the customer chooses an amount). Flexible rewards redeem through [redeemFlexible](https://developers.mageloyalty.com/js-sdk/rewards/redeem-flexible.md).

**flexibleConfig** `object | null`

Present for flexible rewards. Defines the redemption bounds.

**Flexible config properties**

**conversionRate** `number`

Cash discount produced per `perPoints` spent.

**perPoints** `number`

The points unit the `conversionRate` applies to.

**minPoints** `number`

Minimum amount the customer can redeem.

**maxPoints** `number`

Maximum amount the customer can redeem.

**purchaseType** `string`

`"ONE_TIME"`, `"SUBSCRIPTION"`, or `"BOTH"`. Gates whether the reward can apply to a subscription.

**recurringCycleLimit** `number | null`

For subscription discounts, the number of renewals the discount applies to. `null` means all renewals.

**tier** `object | null`

VIP tier required to redeem, or `null` if available to all.

**minimumSpend** `string | null`

Formatted minimum spend required to use the discount.

**productMetadata** `object | null`

Product or collection metadata for free-product rewards, or `null` for non-product rewards.

**data.tieredRewards** `array`

Rewards restricted to specific VIP tiers. Same shape as `regularRewards`.

**data.currencySymbol** `string`

The shop's currency symbol, e.g. `"$"`.

**data.subscriptionsProvider** `string | null`

The subscription app powering "apply to subscription", or `null` when none is connected.

**data.loyaltyMode** `string`

`"points"` or `"store_credit"`. In store-credit mode `pointsCost` values are minor currency units. See [Loyalty modes](https://developers.mageloyalty.com/js-sdk/loyalty-modes.md).

**data.currency** `string`

The shop's ISO currency code.

## Sample response

```json theme={null}
{
  "success": true,
  "data": {
    "regularRewards": [
      {
        "id": "reward_abc",
        "name": "£5 off your next order",
        "description": "£5 off your order",
        "descriptionRequirements": [],
        "pointsCost": 500,
        "category": "fixed",
        "discountType": "fixed",
        "discountAmount": 5,
        "iconUrl": null,
        "redemptionMode": "fixed",
        "purchaseType": "ONE_TIME",
        "recurringCycleLimit": null,
        "flexibleConfig": null,
        "tier": null,
        "minimumSpend": "£20"
      }
    ],
    "tieredRewards": [],
    "currencySymbol": "£",
    "subscriptionsProvider": null,
    "loyaltyMode": "points",
    "currency": "GBP"
  }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.