getCustomerVipTier

Retrieve the current VIP Tier for a logged-in customer

RivoJS.getCustomerVipTier().then(function(resp){
  console.log(resp)
});

Sample response

{
    "success": true,
    "tier": {
        "id": 54321,
        "name": "Silver",
        "threshold": 500,
        "perks": [],
        "icon_url": null,
        "desc": null,
        "rewards": [
            {
                "id": 12345,
                "name": "$5 off coupon"
            }
        ]
    },
    "highest_tier": false,
    "achieved_until": "",
    "next_tier": {
        "id": 54322,
        "name": "Gold",
        "threshold": 1250,
        "to_spend_or_earn": 275
    },
    "next_tier_desc": "<span>Earn 275 Points to unlock Gold</span>"
}