Â
Â
The Loyalty Tiers API allows you to create a levels-based program that assigns loyalty accounts to different tiers based on the amount of points they have earned.
With the Loyalty Tiers API, you can:
For more information about loyalty tiers, see Adding Tiers to Your Loyalty Program.
To use the Loyalty Tiers API, import { tiers }
from the wix-loyalty.v2
module.
1
It's important to note the following points before starting to code:
Note: Currently, tiers cannot be added to Wix Restaurants loyalty programs.
status
must be manually set to ACTIVE
. Use updateTiersProgramSettings()
to update the status
or enable tiers from a site owner's dashboard.0
points, has no tierId
, and is not returned as a tier when listTiers()
is called. When a tiers program status is PAUSED
or DISABLED
all of the loyalty accounts are assigned to the base tier.rollingWindow
. If an account redeems points during that period, the points that were earned still count towards tier assignment even if that leaves the remaining points balance below the tier's required point threshold. Similarly, if the current points balance for a loyalty account is above a tier's required points threshold, but those points were earned in a time period earlier than the rollingWindow
then those points are not considered for tier assignment.