Creating a stores-based campaign
After you link stores to your campaign, you can define rules to offer discounts to customers who spend in these stores.
Let's imagine our Application contains stores located in several European cities. We want to give customers a 10% discount when they purchase from stores in a specific location, for example Hamburg. To do this, we create a standard campaign with a promotion rule.
Add stores to your Application programmatically using the Create store endpoint.
Linking stores to the campaign
Let's create a standard campaign and link stores to our campaign to ensure that it's evaluated only for stores located only in Hamburg.
- In your Application, click Create Campaign > From scratch > Standard campaign.
- Under Store-based campaign evaluation, click Specific stores and select stores located in Hamburg to link to your campaign.
- Fill in all the other required campaign details and click Create Campaign.
You can also edit the list of stores linked to your campaign in the campaign's Settings > Stores > Edit Stores section.
Awarding a discount for stores in a specific location
Let's build a rule to issue a 10% discount on the session total for stores in a specific location.
Talon.One evaluates our campaign for only these stores, and we want to offer a discount on all purchases. This means we don't need to set any conditions for this rule.
The storeIntegrationId
of a linked store must be passed at checkout time
(when the customer session closes). This
ensures that the checkout is happening in a store based in Hamburg.
Let's name the rule Hamburg store campaign
. It has one condition and one effect.
Condition
Always trigger effects.
Effect
Discount session total:
- Name is
10% off
- Discount value is
[Session.Total]*10%