Points on every purchase

The base campaign of most loyalty programs, which gives members points on every purchase.

This campaign gives members 2 points for every 100 they spend. You need a wallet type for the points first. See Manage wallet types.

1. General

Go to Campaigns and click New Campaign. Name the campaign, for example Points on purchases, and set Visibility to Everyone and Channel to All. Set Start time to today and leave End time empty.

2. Type and trigger

Choose the Direct type and the Purchase Transaction trigger.

3. Rule

Leave the rule without conditions, so every purchase counts. Add the Add units effect, choose your points wallet, click Σ and enter items.total * 0.02.

4. Limits

You can leave every limit at Unlimited, or cap what one member can earn, for example Units issued per member, Per day, 5000.

5. Status

Turn on Active and click Submit.

Test it

Record a purchase for a test member:

curl -X POST https://api.production.scops-loyalty.com/transactions \
  -H "X-Api-Key: $SCOPS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "type": "purchase",
    "email": "test.member@example.com",
    "documentIdentifier": "TEST-0001",
    "grossValue": 5000,
    "products": [
      { "name": "Running shoes", "sku": "SH-100", "quantity": 1, "price": 5000, "grossValue": 5000 }
    ]
  }'

Open the member in the dashboard. The Wallets tab shows 100 new points, and the History tab shows that the campaign ran.

Variations

You wantChange
A fixed amount per purchaseEnter 50 instead of a formula.
1 point per full 100 spentfloor(items.total / 100)
More points for higher tiersAdd one rule per tier, each with the condition Tier equals that tier and its own formula.
Points only above a basket valueAdd the condition Transaction value Greater than 3000.
Points only after the return periodAdd a 30-day delay to the effect. See Return campaign.
Points that expireClick the timer icon on the effect and set Expires at.