Reward discount codes instead of store credit
Any cashback program can pay out a discount code instead of store credit. This is useful when you'd rather fund a next-purchase incentive than a spendable balance. This page covers switching a program over, how the reward itself is defined, how codes are delivered, and the stacking caveat you must know before going live.
Prerequisites
A cashback program of any type (Set up purchase cashback or any other)
A reward built on the Reward marketplace page with Cashback triggers enabled under its Available in setting; see Set up the reward marketplace
The "Discount code earned" email enabled in DollarBack admin β Notifications, so customers actually receive their codes
Step 1: Switch the reward kind
Open DollarBack admin β Home, select the Cashback tab, click Manage configurations and open the program.
Change Reward kind from Store credit to Discount code.
Under Reward to give, pick the reward this program should issue. The list shows your marketplace rewards; builds and edits live on the Reward marketplace page. If the list is empty, create a reward there first.
Optionally set Limit issues per customer to cap how many codes this program gives one customer. Leave it blank for unlimited. See Limit issues per customer below.
Save. From now on, when this program triggers, the customer gets a unique code instead of credit.

What the code grants (product, order, and/or shipping discounts, caps, cart-group targeting, redemption rules) all comes from the reward's definition, so several programs can hand out the same reward, and editing the reward updates them all. See Cart groups, redemption rules & rejection messages for the gating options.
How the codes work
One unique code per event, formatted
{prefix}-{random}-{discriminator}. The discriminator ties every code back to the program that issued it; that's how per-program analytics (issued / used / value) are tracked.Expiry comes from the reward (its Expires after (days) setting bakes an expiry into each minted code); how many codes one customer gets comes from the program (its Limit issues per customer field). The reward's Max redemptions / customer field only caps marketplace redemptions, not earned codes.
Codes from orders wait for the holding period. If Settings β Trigger & Timing β Holding period is set, a code earned on an order is issued when the hold ends, like store credit. See When credit is issued.
Earned codes are issued free: the customer's credit balance is not touched, whatever the reward's marketplace credit cost is.
All codes hang off one shared Shopify discount whose parent code is
RDM-(DO NOT DELETE). Next to it, DollarBack keeps an automatic discount named Redemption code validator (DO NOT DELETE), which rejects codes that break your redemption rules. See DollarBack items in your Shopify admin.
Limit issues per customer
Limit issues per customer caps how many codes this program gives one customer, over the customer's whole history with the program. There is no time window: it is not "once a month", it is "this many, ever".
Blank means no cap.
A code that is revoked frees its slot, so the customer can earn another. DollarBack revokes a code when its order is cancelled, but only if your plan includes Auto-adjust on refunds and edits and Enable order edit tracking is on in Settings β Advanced (off by default). See When credit is issued.
A code the customer has used still counts. Using a code doesn't make room for a new one.
The cap counts only codes from this program. Other programs, and codes bought in the reward marketplace, don't count toward it.
Minimum quantity and spend (purchase programs)
A purchase program that gives a discount code has two optional thresholds under Reward. They decide which orders earn the code:
Min. order quantity (Min. quantity of matched products when the program targets products, collections or variants)
The number of matching items in the order.
Min. order spend (Min. spend on matched products for a targeted program)
The value of the matching items: item price Γ quantity, in your store currency, before discounts.
Either threshold is enough. If you set both, an order that meets one of them earns the code.
0 or blank means no threshold. With both at 0, any order with at least one matching item earns the code.
A targeted program only counts the products, collections or variants it targets. Other items in the cart don't help reach the threshold.
For example, with Min. order quantity 3 and Min. order spend $100 on an all-products program, an order of 3 items for $45 earns the code, and so does an order of 1 item for $120. An order of 2 items for $60 does not.
Stacking with other discounts
Combination rules (whether reward codes can be used together with order / product / shipping discounts) are set store-wide on the shared discount. Individual programs cannot have independent stacking rules, and changing the rules affects all outstanding codes immediately, including ones customers are already holding. Configure and test this deliberately: Discount combination rules.
How the customer gets the code
When a code is issued:
The "Discount code earned" email fires automatically (default subject: "Your {storeName} reward: {rewardSummary}"), carrying the code and a summary of what it grants.
The Discount Code Credited event syncs to connected integrations: Klaviyo and Omnisend receive the code, reward summary, and program name for your own flows. See Klaviyo integration.
The code also surfaces in the widgets' reward messages on the storefront.

Analytics
Every issuance is logged with the program name and code under DollarBack admin β Analytics β Activity (the Discount codes view), and the Campaigns tab tracks the aggregates per program thanks to the discriminator: codes issued, codes used, conversion, and discount value given.

Verify it works
Trigger the program with a test customer (e.g. place a qualifying order).
Check the inbox. The code email should arrive with the code.
Apply the code on a new checkout and confirm it grants the configured discount.
Confirm the Earned and Used rows in Analytics β Activity, under the Discount codes view.
Common issues
Code won't apply at checkout: expired, already used, or blocked by combination rules; walk A reward discount code isn't working.
No email arrived: check the template is enabled, then Emails aren't arriving.
Code applies but stacks unexpectedly with other discounts: combination rules are store-wide; review Discount combination rules.
Related articles
Last updated