Table of Contents | ||
---|---|---|
|
Note |
---|
Note: this doc is NOT finalized. |
...
Sanity Setup - Loyalty
Note |
---|
The Loyalty Offer contained in the Promo Code has to be a Systemwide Loyalty Offer. |
Set up the
...
Systemwide Loyalty Offer, refer to this doc Systemwide Offers
...
Because this Loyalty Offer is only assigned to the users having Promo Code, this Offer wouldn’t be shown in Offer list, in the Sanity setup, need to toggle the button
Hide This Offer from Offers List
, to hide it from Offer list.Get the sanity id of the Offer
Voucherify Setup
Log into Voucherify instance https://app.voucherify.io/#/app/core/welcome
This can be different for different markets
In the left sidebar click ‘Campaign Hub - Campaigns’ and click the
Create campaign
in the top right to create a new campaignSelect Discount Coupons.
Determine if you want bulk codes or a standalone code. Add a name and description for the campaign. This will only be visible for voucherify users. Confirm redemption limits and the number of codes to generate. You can also define the Code format(e.g. length and pattern) in
Advanced code settings
section. Click Next Step when done.
See Voucherify documentation for more detail https://support.voucherify.io/article/17-how-do-i-create-my-first-campaignSet the time duration if required. Click Next Step when done.
Note that the time limit you set in Voucherify will control when promo codes are valid and redeemable.
See Voucherify documentation for more detail https://support.voucherify.io/article/17-how-do-i-create-my-first-campaign
Set the discount to
Rewards
, and set theFree product
andUnits quantity
. Do not need to add any validation rules. Click Next Step when done.Set up Metadata
To add or edit the metadata. Paste keep theKey
assanityId
, and paste the sanity_id from Sanity to fill theValue
. This is required for the promo code to work. Click Next Step when done.For example, in this above case, the sanity id is
8eb47981-xxxxxx
in Sanity, theValue
should be set as8eb47981-xxxxxx
...