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

Campaigns

Designing the earning rules of a programme as campaigns — triggers, conditions, limits and effects — including welcome, birthday and other lifecycle rewards, and showing members how to earn.

Campaigns are the programme's rules: when something happens (a trigger), if it qualifies (conditions), how often (limits), then what the member gets (effects). The integration sends facts — transactions, custom events, profile changes — and campaigns turn them into points, rewards, badges and spins.

For the Admin Panel side, see Campaigns, Creating campaigns and Automation campaigns. Multi-step goals are covered in Challenges & missions; referral programmes in Referrals.

A trigger — a purchase or return transaction, a custom event, an internal event such as member activated or profile or tier updated, or time such as birthday, anniversary or a schedule — leads to conditions on the member, items, event attributes, labels, segment or tier. If the conditions are met and the limits per member, campaign or period aren't reached, the effects run: add units to a wallet, issue a reward or coupon, grant a badge, or give a fortune wheel spin. Otherwise there is no effect.
How a campaign runs

Who does what

Area
Responsibility

Programme / marketing team

Defines the rules, rewards and budgets; configures and simulates campaigns in the Admin Panel

Integration layer

Sends the facts campaigns need (transactions, custom events with the right attributes, profile changes) — no reward logic of its own

Website / app

Shows "ways to earn" from the campaign lists and the member's results from wallet and history

CRM / marketing automation

Sends earn messages from CampaignEffectWasApplied

Design decisions

Decision
Options
Recommendation

Where rules live

Campaigns in Open Loyalty, or code in the integration layer

Campaigns. Marketing can change them without a release, and simulation covers them.

Who a campaign applies to

Conditions, segments, tiers, or member labels

Segments and tiers for audiences that change over time; labels for flags your systems set (opt-ins, brand, migrated).

Trigger for lifecycle rewards

Internal events, automation (time) campaigns, or custom events

Welcome on Member Was Activated; birthday and anniversary as automations; anything your systems decide (newsletter opt-in) as a custom event.

Automation budget

One automation per reward and brand

Only active automation campaigns count towards the tenant's limit, and it's checked on activation. Combine rewards into fewer automations with several rules, rather than one automation per brand and reward.

Limits

None, per member, per campaign, per period

Every campaign on a repeatable action has a per-member limit; costly campaigns also have a global budget. Product promotions with a high reward get a per-rule limit (e.g. 5 pieces of each SKU per member).

Overlapping rules in one campaign

Rewards add up (Sum all), or the first matching rule wins (Priority wins)

Decide per transaction campaign. For "special price for one product inside a category offer", use Priority wins with the product rule above the category rule — see Rule Limits and Rule Resolution.

Content for front ends

Hard-coded in the channel, or stored on the campaign

Store display data (image URL, call to action) in campaign custom attributes, so new campaigns need no release.

Lifecycle rewards

Welcome: registration activates the member, and a Member Was Activated campaign gives welcome points and a badge to members who are not migrated and haven't had it before; a CampaignEffectWasApplied webhook triggers the welcome message. Birthday and membership anniversary: automation campaigns run on birthDate and registeredAt, limited to once per member per calendar year. Later opt-in: the integration layer reads, merges and writes the profile with PUT to set the opt-in label, and a Member Profile Details Updated campaign rewards it once; PATCH doesn't fire this trigger.
Welcome, birthday, anniversary and later opt-in rewards
Reward
Trigger
Conditions and limits

Welcome

Internal event Member Was Activated

Not a migrated member (e.g. label migrated ≠ true); once per member

Birthday

Automation, birthday

Once per member per calendar year; needs birthDate on the profile

Membership anniversary

Automation, registration anniversary

Once per member per calendar year; uses registeredAt (keep the original date when migrating)

Tenure milestone (30, 90, 365 days…)

Daily automation with the Days since registration condition

Equals N days (0–7305); completions per member = 1. Forward-only — members past N at activation aren't rewarded. See Creating automations.

Later opt-in (second brand, marketing consent)

Internal event Member Profile Details Updated

Member has the opt-in label; reward not given before

Newsletter, app download, social connect

Custom event

Once per member — see Custom events

1

Write the rules down

For each earning rule: trigger, conditions, effect, limits, start and end dates, and who it's visible to. Agree budgets with finance.

2

Make sure the facts arrive

Check that every attribute a condition needs is actually sent: item SKU or category on transactions, attributes on custom events, labels on the member.

3

Configure and simulate

Build the campaigns on staging and run them through campaign simulation (Admin Panel, or POST /api/{storeCode}/campaign/simulate) with realistic baskets and members, before any test traffic.

4

Show members how to earn

List campaigns for the member with GET /api/{storeCode}/member/{member}/campaign/visible (what the member may see) or GET /api/{storeCode}/member/{member}/campaign (active campaigns, with limitReached per campaign). Filter by label where several brands or sections share a tenant.

5

Message the result

Subscribe to CampaignEffectWasApplied for earn messages. Show the balance from the wallet, not from the message.

Go-live checklist

Admin Panel

Integration layer

Website / app and CRM

Validation

Key endpoints

Webhooks: CampaignEffectWasApplied, CampaignCreated, CampaignUpdated

Last updated

Was this helpful?