For the complete documentation index, see llms.txt. This page is also available as Markdown.

Badges

Recognising members with badges: designing badge types, granting them from campaigns and challenges, using them in rules, and showing earned and locked badges.

A badge recognises something a member did or is — "First purchase", "Explorer", "Early adopter". Campaigns and challenges grant them automatically; your support team can also grant them by hand. Badges can be shown in the member's profile and used as conditions in other rules.

For the Admin Panel side, see Creating badges, Using badges in campaigns and Granting badges to members.

Who does what

Area
Responsibility

Admin Panel

Badge types (name, permanent system code); "grant badge" effects on campaigns and challenge milestones

Integration layer

Reads earned badges and badge types for the channels; grants badges from back-office tools if needed

Website / app and CMS

Badge images and copy, keyed by system code; earned and locked states

CRM / marketing automation

"You earned a badge" messages from webhooks

Design decisions

Decision
Options
Recommendation

System codes

Free text, or a naming scheme

A scheme you can read in a year: {area}_{name}_{level} (e.g. scan_explorer_2). The system code can't be changed after creation.

Images and copy

In Open Loyalty, or in your CMS

Badge types have no image field. Keep images and copy in your CMS, keyed by system code.

One-off or repeatable

Granted once, or counted each time

Repeatable badges count up (completedCount); decide per badge whether the UI shows the count.

Levels

One badge with a count, or one badge type per level

One type per level (bronze, silver, gold) when each level has its own image or reward.

Badges in rules

Display only, or also conditions

Use a badge as a "has done this before" flag — e.g. give a welcome reward only if the member has no Welcome badge yet.

1

Create the badge types

Create each badge type in the Admin Panel with its system code. Add matching images and copy in your CMS under the same code.

2

Grant them from rules

Add a grant badge effect to the campaign or challenge milestone that should award it. For one-off grants by support, use the Admin Panel or POST /api/{storeCode}/member/{member}/badge.

3

Show earned and locked badges

Read the member's badges with GET /api/{storeCode}/member/{member}/badge (system code, name, completedCount, dates) and all badge types with GET /api/{storeCode}/badge-type (cache it). Badge types the member hasn't earned are shown as locked.

4

Message the member

Use CampaignEffectWasApplied to announce a new badge. For the latest badges on a dashboard, read member history type BadgeCompleted.

Sequence diagram

Earn: member activity reaches Open Loyalty; a campaign or challenge rule matches and its grant badge effect increases the badge's completed count; a CampaignEffectWasApplied webhook lets CRM send a badge message. Display: the channel asks for the member's badges; the integration layer reads the member's badges with system code, name and count, and the cached list of all badge types to show unearned ones as locked; the channel takes images and copy from the CMS by system code.
Earning and displaying badges

Deactivating a badge type stops new grants. If a campaign uses that badge in a condition or effect, review the campaign first — deactivation can break its logic.

Go-live checklist

Admin Panel

Integration layer and CMS

Website / app

Validation

Key endpoints

Webhooks: CampaignEffectWasApplied

Last updated

Was this helpful?