This article presents possible use cases and corresponding sample flows that you can support. This can be a helpful jumping off point as you plan your implementation.
You can automatically assign badges to members when they reach specific milestones or complete certain activities on a site. This is useful for creating loyalty programs or recognition systems.
To assign badges based on member achievements:
- Call Create Badge for each achievement level. For example, create badges for "First Purchase", "Loyal Customer", or "Community Helper".
- Monitor member activities using relevant Wix APIs such as Orders for purchases or Comments for community participation.
- When a member reaches an achievement milestone, check if they already have the badge by calling Query Badge Assignments.
- If no existing assignment is found, call Create Badge Assignment to assign the badge.