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

Campaign Simulation

Learn how you can check the expected campaign outcome.

The Campaign simulator runs a scenario — a purchase, a return or an event for a member — against your active campaigns and shows which ones apply: the points per campaign and wallet, the rewards granted and the loyalty cost. Nothing is saved to real members, so you can check that a campaign has the right conditions before members start earning from it.

Go to Campaigns › Direct and click Campaign simulator. The first time you open it, a short tutorial walks you through the page; you can reopen it from the ⋮ menu at the top right.

Campaign simulator with the Trigger section (Purchase, Return, Internal event, Custom event) and the Transaction basket

Results reflect your campaigns as they are on the day you simulate.


🛠️ Build a scenario

1

Pick a trigger

Under Trigger, choose what the simulator sends in:

  • Purchase — a basket that was bought.

  • Return — a basket sent back; its effects reverse.

  • Internal event — an event raised by Open Loyalty.

  • Custom event — an event sent by an integration.

Purchases and returns match campaigns on their basket, events on their name.

2

Build the transaction or event

For a purchase or a return, fill the Basket in one of three ways:

  • Start from a document — pick a real purchase or return from the last 90 days. Its lines become the basket.

  • Add from the catalog — add products from your Product Catalog, searching by SKU.

  • Add line by hand — type a line yourself. Typed lines can use any SKU.

Change a line with Edit, or its quantity with − and +. A basket needs a transaction number and date: a document brings its own, otherwise the simulator asks you to add them. Under Transaction custom attributes, add the data an integration would send with the transaction, such as a promotion code or a store flag.

Basket started from a real purchase: four product lines with prices and quantities, 1,036.00 USD in total

For an internal or custom event, choose the event and fill in its attributes.

3

Describe the member

Under Member, say who the event happened to:

  • Start from a member — search for a real member by first name, last name, email, phone, card number or ID, and copy their details: tier, segments, transaction history, unit balances and agreements.

  • Add details — set only the fields the campaign checks.

You can change any copied field before simulating. Blank fields count as unknown, not as false. Under Member custom attributes, add data an integration stores on the member, such as a partner ID or a signup source.

4

Add the referrer (referral campaigns only)

Under Referrer, add the member who referred the member above. It's only needed when a campaign rewards referrals.

5

Simulate

Click Simulate. The report appears above the scenario, which stays on the page so you can change it and simulate again. Reset clears the whole scenario.


📊 Read the report

Simulation report: total and points loyalty cost tiles, then points per campaign for each wallet
  • Total loyalty cost — the cost of everything the scenario grants, across effects and rewards.

  • Points loyalty cost — the cost of the campaign effects that grant units, across every wallet. Both are calculated from each wallet's cost per unit.

  • One table per wallet — each campaign that applied, with its Points, Multiplier and Total.

  • Rewards granted — the rewards campaigns would issue. Other effects, such as custom attributes set or removed, are listed too.

When several campaigns are activated by the same trigger, they are executed in order of their Campaign Start Date, with the earliest one being executed first.


🕘 History

The History tab lists your last 10 simulations with their trigger, date, member and referrer. Click a run to open it again in the simulator, delete one with the bin icon, or remove them all with Clear all. History is kept in your browser for each tenant, so other admins don't see it.

History tab with one purchase simulation

Through the API, the same simulation is available as POST /api/{storeCode}/campaign/simulate. Include the member's customerId in the payload to use the member details stored in Open Loyalty.

Last updated

Was this helpful?