Campaigns

Overview

How campaigns react to member activity, which types and triggers exist, and what every part of a campaign controls.

A campaign is an automated rule. When something happens to a member (the trigger) and the member and the event match the conditions, Scops Loyalty applies the effects, for example adding points, issuing a reward or updating the member's tier.

Active campaigns run on their own. Your integration only reports what happens by creating members and recording transactions, and every campaign that matches an event runs on it.

Campaigns

Parts of a campaign

PartWhat it controls
GeneralName, description, who the campaign targets (visibility), the channels it runs on, and the start and end time.
TypeDirect, Referral or Time-based. The type decides which triggers you can choose.
TriggerThe event that starts the campaign, for example a purchase or a registration.
ScheduleTime-based campaigns only. The days and hours when the campaign is active.
RulesOne or more rules, each with conditions and effects. See Rules and effects.
LimitsCaps on how many units and rewards the campaign gives out, in total and per member.
StatusA campaign runs only while it is Active.

Types and triggers

TypeTriggersTypical use
DirectPurchase Transaction, Return Transaction, Registration, Member Tier Updated, Member UpdatedPoints on purchases, taking them back on returns, welcome bonuses, tier-upgrade gifts
ReferralPurchase Transaction, RegistrationRewarding members who bring in new members
Time-basedPurchase Transaction, Birthday, Member yearly anniversary, RegistrationHappy hours and weekend bonuses, birthday and anniversary gifts

Triggers

  • Purchase Transaction runs when a purchase is recorded and matched with a member.
  • Return Transaction runs when a return is recorded and matched with a member. Its conditions can also check the original purchase, and the Cancel unit transfer effect reverses the points that purchase earned. See Return campaign.
  • Registration runs when a new member is created.
  • Member Tier Updated runs when a member moves to a different tier. You pick the tier set in Tier to watch, and the campaign gets one rule per tier, so each tier can give something different. With Reward on every tier update on, the member is rewarded every time they level up; with it off, only the first time they reach a tier.
  • Member Updated runs when a member's profile changes, for example after PATCH /members/{id}.
  • Birthday runs on the member's birthday.
  • Member yearly anniversary runs every year on the date the member registered.

Direct campaigns

Direct campaigns react immediately to a single event. The most common one is a points campaign: the Purchase Transaction trigger, one rule, and the Add units effect with a formula such as items.total * 0.02, which gives 2 points for every 100 spent.

Referral campaigns

Scops Loyalty gives every member a personal referral token when the member is created. To credit a referral, your integration sends the referrer's token in the referredBy field when it creates the new member:

POST /members
{
  "email": "new.member@example.com",
  "referredBy": "EHOTWZVJS",
  "legalAgreement": true,
  "marketingAgreement": false,
  "dataProcessingAgreement": true
}

If the token doesn't belong to any member, the request fails with 404. GET /members/{identifier}/referrals returns a member's token and the members they referred.

A referral campaign rewards the referrer when the referred member registers or makes a purchase, depending on the trigger. The rule marked Referred By holds the effects for the referrer, the member who shared the token. Turning on Reward both participants? adds a second rule, Referred, with the effects for the new member.

For example, when a referred member makes their first purchase, the referrer gets 500 points and the new member gets a welcome coupon. See Refer a friend.

Time-based campaigns

Birthday and Member yearly anniversary campaigns run once a year for each member, on the member's own date. Purchase Transaction and Registration campaigns of this type count events only while their schedule is active.

Schedule

A schedule has two parts: the Activation schedule switches the campaign on and the Deactivation schedule switches it off. Each repeats Every day, Every week on the days you pick, or Every month on the dates you pick, at the hour and minute you choose.

For double points every Saturday from 18:00 to 20:00, set the activation to Every week, Saturday, 18:00 and the deactivation to Every week, Saturday, 20:00. The campaign ignores purchases outside that window.

Schedules run on Central European time (Europe/Belgrade).

Targeting

In the General section you decide who the campaign is for and where it runs.

Visibility is Everyone, a Specific segment or a Specific tier. Turn on Exclude selected to target everyone except the selected segments or tiers. Specific tier isn't available for the Member Tier Updated trigger.

Channel is All channels, or only the channels you pick.

Start time and End time set the period in which the campaign can run. Leave the end time empty to run the campaign until you turn it off.

Limits

Limits keep a campaign within budget. They are available for the Purchase Transaction trigger, and for the Registration trigger in time-based campaigns.

LimitWhat it caps
Units issued by campaignUnits the campaign gives to all members combined.
Units issued per memberUnits one member can get from the campaign.
Rewards issued by campaignRewards the campaign gives to all members combined.
Rewards issued per memberRewards one member can get from the campaign.
Campaign completion per memberHow many times one member can complete the campaign.

Each limit is Unlimited, or a Value for a period: Total (the whole campaign), Per hour, Per day, Per week, Per month or Per year. For example, Units issued per member, Per month, 2000 means no member gets more than 2,000 points a month from the campaign.

Next steps