getUserTier
Get the current Tier of the connected user
This method is useful only if your loyalty program is tiered.
Description
Get the current Tier of the connected user.
Response
Returns a Promise
containing the current tier object. Example :
{
benefits: [
"-10% toutes les 2 commandes",
"Avantage anniversaire : 100 points offerts"
],
downgrade_threshold: 200,
entry_threshold: 0,
image_url: "{{tierImageUrl}}",
is_current_tier: true,
missing_points: null,
multiplier_nqpoints: 1,
multiplier_qpoints: 1,
name: "Bronze",
nextTierPoints: 300,
rank: 1
}
Code example
splioSDK.getUserTier().then((userTier) => {
console.log('First Benefit', userTier.benefits[0]);
console.log('Current Tier Name', userTier.name);
});
Updated over 1 year ago