Skip to main content
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

success
boolean
Whether the request was successful.
data.tier
object | null
The customer’s current VIP tier, or null if no tier is assigned.
data.tierProgressValue
number
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
  }
}