getShopVipTier

Retrieve a specific VIP Tier for the Shop.

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

Parameters

ParameterTypeDescription
vipTierIdNumberThe unique identifier of the VIP tier to be retrieved.

Sample response

{
    "success": true,
    "tier": {
        "id": 54321,
        "name": "Silver",
        "threshold": 500,
        "perks": ["Sample perk"],
        "icon_url": null,
        "desc": "<span>Earn 500 Points </span>",
        "rewards": [
            {
                "id": 654321,
                "name": "$5 off coupon"
            }
        ]
    }
}