Usage
Response
boolean
Whether the request was successful.
object | null
The customer’s current VIP tier, or
null if no tier is assigned.number
The customer’s current progress value toward the next tier.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Retrieve the current VIP tier for the logged-in customer.
MageSDK.getCustomerVipTier().then(function(resp) {
if (resp.success) {
console.log(resp.data.tier);
}
});
null if no tier is assigned.Show Tier properties
null if not set.null if not set.null if not set.{
"success": true,
"data": {
"tier": {
"id": "tier_abc",
"name": "Gold",
"description": "Our most valued customers",
"threshold": 500,
"pointsMultiplier": 1.5,
"badgeImageUrl": null,
"badgeColor": "#FFD700"
},
"tierProgressValue": 1200
}
}