Retrieve all VIP tiers for the shop, including their requirements and point multipliers.
Usage
MageSDK.getShopVipTiers().then(function(resp) {
if (resp.success) {
resp.data.tiers.forEach(function(tier) {
console.log(tier.name, tier.pointsRequired);
});
}
});
Response
Whether the request was successful.
List of VIP tiers ordered by points required.
Display name of the tier.
Description of the tier, or null if not set.
Points required to reach this tier.
Points earning multiplier for this tier.
URL of the tier badge image, or null if not set.
Hex color code for the tier badge, or null if not set.
Active rewards associated with this tier.
Display name of the reward.
Type of discount applied.
Number of points required to redeem.
Whether the reward is currently active.
How customers qualify for tiers (e.g. "points", "spend", "purchases").
The shop’s currency symbol.
data.pointsMultiplierMode
The multiplier mode, or null if not configured.
Sample response
{
"success": true,
"data": {
"tiers": [
{
"id": "tier_bronze",
"name": "Bronze",
"description": "Welcome to the loyalty program!",
"pointsRequired": 0,
"pointsMultiplier": 1.0,
"badgeImageUrl": null,
"badgeColor": "#CD7F32",
"rewards": []
},
{
"id": "tier_gold",
"name": "Gold",
"description": "Our most valued customers",
"pointsRequired": 500,
"pointsMultiplier": 1.5,
"badgeImageUrl": null,
"badgeColor": "#FFD700",
"rewards": [
{
"id": "reward_gold_1",
"name": "Free shipping",
"discountType": "free_shipping",
"pointsCost": 200,
"discountAmount": null,
"isActive": true
}
]
}
],
"entryMethod": "points",
"currencySymbol": "\u00a3",
"pointsMultiplierMode": null
}
}