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": 3,
"name": "Gold",
"threshold": 1250,
"perks": [],
"icon_url": null,
"desc": null,
"rewards": [
{
"id": 8,
"name": "22% off coupon"
}
]
},
"highest_tier": true,
"achieved_until": "",
"next_tier": null,
"next_tier_desc": ""
}
Updated about 2 months ago