Badge Assignments: Sample Use Flows

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.

Assign badges for member achievements

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:

  1. Call Create Badge for each achievement level. For example, create badges for "First Purchase", "Loyal Customer", or "Community Helper".
  2. Monitor member activities using relevant Wix APIs such as Orders for purchases or Comments for community participation.
  3. When a member reaches an achievement milestone, check if they already have the badge by calling Query Badge Assignments.
  4. If no existing assignment is found, call Create Badge Assignment to assign the badge.
Did this help?