Retrieve the VIP tier assigned to the currently logged-in customer, along with their progress value toward the next tier.
Usage
MageSDK.getCustomerVipTier().then(function(resp) {
if (resp.success) {
console.log(resp.data.tier);
}
});
Response
Whether the request was successful.
The customer’s current VIP tier, or null if no tier is assigned.
Display name of the tier (e.g. “Gold”).
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.
The customer’s current progress value toward the next tier.
Sample response
{
"success": true,
"data": {
"tier": {
"id": "tier_abc",
"name": "Gold",
"description": "Our most valued customers",
"pointsRequired": 500,
"pointsMultiplier": 1.5,
"badgeImageUrl": null,
"badgeColor": "#FFD700"
},
"tierProgressValue": 1200
}
}