When a customer turns points into a reward, most Shopify loyalty apps hand them a discount code. This guide explains how a Shopify discount code for loyalty points works from end to end: who can use it, how many times, which of your other discounts it can sit next to, and what happens when it expires. Shopify's own combination rules are quoted and then applied to one example cart, step by step. The app-specific parts describe Nileva Loyalty Program & Rewards, where percentage, fixed-amount and free-shipping rewards work on every plan and free-gift rewards come with the Pro and Growth plans; the Shopify rules apply to every store.
Key takeaways
- Redeeming points in Loyalty Program & Rewards creates one Shopify discount code for one customer, usable once.
- Shopify sorts every discount into one of three classes: product, order or shipping.
- Two discounts combine only when the setting on each one allows it.
- The app's reward codes combine with product and shipping discounts that also allow it, and never with order discounts.
- A code that expires unused gives its points back, in the app's nightly run a day or so after its end date.
How a Shopify discount code for loyalty points is created
A customer opens the rewards popup on your store, picks a reward and presses "Redeem". They have to be signed in and have joined the program to redeem; customers collect points on paid orders before they join, but they cannot spend them until they do. The popup answers "Your reward is ready" with the code, a "Use by" date and a "Copy" button.
Behind that screen, Loyalty Program & Rewards does four things in order. It takes the points first. It then asks Shopify to create a discount code with these settings:
- For that customer only. The code is limited to the customer who redeemed it, so a friend who copies it cannot use it.
- One use. The usage limit is 1, once per customer.
- An end date. The code ends after the number of days you set on the reward, from 1 to 45 (30 by default).
- A long random code. Your prefix (2 to 8 capital letters or digits, "LR" by default), a dash and 20 random capital letters or digits, such as
LR-7K2Q9M4XB8TZ1W5R3NPD.
If Shopify refuses to create the code, the points come back at once and the customer sees "Your points were returned because this reward couldn't be issued."

The code is a normal Shopify discount. You will find it in your admin's Discounts list with the title "Loyalty reward: " followed by the reward's name, and the tag loyalty. These are the same controls Shopify gives you for any code: its Help Center lists eligibility choices such as "All customers", "Specific customers" and "Customer segments", and the usage limits "Limit number of times this discount can be used in total" and "Limit to one per customer" (Shopify Help Center: amount off discounts). The app picks the strictest of them for every one-time discount code a Shopify customer receives as a reward.
Shopify discount combinations, in plain words
Most worries about reward codes are about stacking: will a member use a reward code on top of your sale? The answer comes from Shopify's combination rules, and those start with three classes of discount. Shopify's Help Center describes them as "Product discounts: Apply to specific items or collections", "Order discounts: Apply to cart subtotals" and "Shipping discounts: Modify shipping costs" (Shopify Help Center: discount combinations).
The same page lists what can go together. All merchants can combine "order discounts with free shipping discounts", "product discounts with free shipping discounts" and "product discounts with other product discounts on separate items". Two more combinations are only for some stores: "product discounts with order discounts (available only to eligible merchants)" and "order discounts with other order discounts (available only to eligible merchants)". The eligibility rules on that page: the store must not use any checkout.liquid customizations or features, or the Licensify app.
| Combination | Allowed? | Shopify's rule |
|---|---|---|
| Product + shipping | Yes, if both allow | All merchants |
| Order + shipping | Yes, if both allow | All merchants |
| Product + product, on separate items | Yes, if both allow | All merchants |
| Product + order | Yes, if both allow | Eligible merchants only |
| Order + order | Yes, if both allow | Eligible merchants only |
| Two shipping discounts | No | One shipping discount per order |
| Codes on one order | Up to 5 product or order codes and 1 shipping code | Code limit |

Three more sentences from that page decide every real case:
- "Multiple discounts are applied to an order only when the setting on each discount allows the combination." Both discounts have to say yes.
- "Product discounts apply first to individual items." Then "Order discounts apply to the revised subtotal after product discounts", and "Shipping discounts apply last."
- "Customers can use a maximum of 5 product or order discount codes and 1 shipping discount code on the same order."
The same combination rule shows up with automatic discounts too; our guide to the Shopify free shipping bar and badge applies it to an automatic free-shipping discount.
What the app sets on every reward code
Every code Loyalty Program & Rewards creates says yes to product discounts, yes to shipping discounts and no to order discounts. Put next to Shopify's rule, that means:
- A reward code can sit next to a product discount, such as a sale on one collection, if that discount also allows combining with the reward code's class. For a percentage or fixed-amount reward code, which is an order discount, that is the product + order combination, so your store must also be one of the eligible merchants.
- A reward code can sit next to a shipping discount that also allows it.
- A reward code never combines with an order discount, yours or another reward code. That includes free-shipping and free-gift reward codes: none of them can be used with your own order discounts. Two percentage or fixed-amount reward codes (20% and $10, say) never stack on one order.
One cart, three discounts: a worked example
Here is how the rules play out on a single checkout. The store, the products and the automatic discount are an example; the earn rate is 10 points for every $1. The store is one of Shopify's eligible merchants, so a product discount and an order discount can combine.
Example: a customer has a $60.00 jacket and a $40.00 scarf in the cart. The store runs an automatic 10% product discount on jackets, set to combine with order discounts. The customer applies a "20% OFF Entire Order" reward code, then tries a second reward code for $10 off.
| Step | Amount |
|---|---|
| Cart: $60.00 jacket + $40.00 scarf | $100.00 |
| Automatic product discount, 10% on the jacket (allows combining with order discounts) | −$6.00 → $94.00 |
| Reward code "20% OFF Entire Order" (order class) | −$18.80 → $75.20 |
| Second reward code "$10 off" | Not applied: two order-class reward codes never combine |
| Points earned on this order at 10 for every $1 | 752 |
The arithmetic: 60 × 0.10 = 6.00; 100 − 6.00 = 94.00. The product discount applies first, so the 20% comes off the reduced subtotal: 94 × 0.20 = 18.80, and 94 − 18.80 = 75.20.

The second code fails because neither reward code allows order discounts. Shopify's Help Center says that when a customer enters more than one discount code that can't be combined, the message "Discount couldn't be used with your existing discounts." displays. If the jacket discount had not allowed combining with order discounts, the 10% and the 20% could not both apply either; whether to allow that is your decision on your own discount, not the app's.
The last row matters for your margin. In Loyalty Program & Rewards, points are counted on the subtotal after discounts, without tax or shipping, rounded down. The reward code lowers the subtotal, so this order earns 75.20 × 10 = 752 points, not the 1,000 it would earn at full price. How the earn rate and reward costs fit together is worked out in our guide to the value of a point.
Which reward type is which discount class
The app offers four reward types (Free gift on the Pro and Growth plans), and each one becomes a different kind of Shopify code. The class decides which rules above apply.
| Reward | Discount Shopify creates | Applies to |
|---|---|---|
| Percentage off | Code, order class | All items in the order, no minimum purchase |
| Fixed amount off | Code, order class | All items in the order, no minimum purchase |
| Free shipping | Code, shipping class | Every country, no ceiling on the shipping rate |
| Free gift | Code, product class | 100% off one unit of the variant you chose |
Two details follow from the table. First, the percentage and fixed-amount codes have no minimum order, and the app has no setting to add one, so a "20% OFF Entire Order" reward costs more on a bigger cart. Second, the free gift needs its product in the cart. When a customer redeems a free gift in the popup, the app puts the gift in the cart (quantity 1) and applies the code. A gift whose variant is deleted or out of stock stops being offered, and the popup says "This gift is out of stock right now."
Since every reward code says no to order discounts, the order-class codes cannot be used with any other reward code. A free gift code (product class) and a free shipping code (shipping class) are set differently: each one allows the other's class, which is what Shopify's product + shipping rule asks of both discounts. Before you promise customers that pair, try it once at your own checkout. Which rewards to put in your catalogue, and what each one costs you, is the subject of our loyalty reward ideas.
What happens to a code after it is issued
A code has a short life, and each step is visible to the customer.
Issued. The code appears in the popup's "My codes" tab with its "Use by" date. If the "Reward code issued" email is on, the customer also gets it by email; the default subject is "Your reward from {{shop_name}} is ready", which leaves the code out.
Reminded. In the last three days before the end, the "Reward code expiring soon" email goes out once, for codes valid for more than 3 days. Its default subject is "Your {{reward_name}} code expires soon".
Used. Once an order carries the code, "My codes" shows it as Used. If that order is later cancelled or refunded, the points spent on the code do not come back. The points the order itself earned are a separate matter: returned goods take their points back.
Expired unused. A code that reaches its end date without being used gives its points back, but not at once: the app waits 24 hours after the end date, so an order placed at the last minute can arrive first, and then returns the points in its next nightly run. Until then the code still shows its "Use by" date in "My codes". The customer's History then shows "Points returned: reward code expired", and the "Points refunded" email tells them, with the default subject "Your {{points_refunded}} points are back".
Turning a reward off, or deleting it, does not touch codes already issued: they stay valid until used or expired. A move to the Free plan does not either: gift rewards leave the popup and the account page, but gift codes already issued stay valid. While the app is still waiting for Shopify to confirm that the code was created, it shows as Processing and the code itself is not shown yet.
Redeemed points come back only for a code that ends unused. A code used on an order that is then cancelled or refunded keeps its points spent. If your customers return a lot, say so in your returns policy.
Discount codes vs gift cards vs store credit
A reward can, in principle, reach the customer in three Shopify forms. Loyalty Program & Rewards uses only the first.
| Form | How the customer uses it | What Shopify says | In this app |
|---|---|---|---|
| Discount code | Enters the code at checkout | Combination rules by class | Every reward is a discount code |
| Gift card | Enters the gift card code at checkout | "This code can be used at checkout to redeem the gift card's value." | Not available as a reward |
| Store credit | Pays with it when signed in | "Store credit isn't available for legacy customer accounts." | Not available as a reward |
Gift cards are "available on all Shopify subscription plans" (Shopify Help Center: gift cards). Customers can pay with store credit only when signed in through customer accounts (not legacy accounts) or using Shop Pay, and "Customers can't select a partial amount of their store credit to pay for an order" (Shopify Help Center: store credit).
A discount code is the form that lets you control stacking through the combination settings, limit use to one customer and set an end date. The app does not give store credit, gift cards or cashback as rewards, and its rewards cannot be limited to certain products or collections. If those are what you need, this app does not do them. For the rest of the program, from earning to tiers, see how a Shopify loyalty program fits together.
Frequently asked questions
How do customers redeem loyalty points on Shopify?
In Loyalty Program & Rewards, a signed-in member presses "Redeem" on a reward in the popup. The app takes the points and creates a one-time Shopify discount code for that customer.
Can a loyalty discount code be used by someone else?
No. Each code is limited to the customer who redeemed it and can be used once, using Shopify's "Specific customers" eligibility and a usage limit.
Can customers combine a reward code with a sale?
With a product or shipping discount that also allows combining, yes; a percentage or amount-off reward code next to a product discount also needs your store to be one of Shopify's eligible merchants. With another order discount, including a second reward code for a percentage or an amount off, no.
What if the customer never uses the code?
The code ends after the number of days set on the reward, and the points come back to the customer's balance in the app's nightly run, at least 24 hours after the end date. The customer is told in their History and by the "Points refunded" email.
Do points come back if the order is refunded?
Not the points spent on the reward code. The points the order earned are taken back for returned goods.
Try it
See how reward codes are created and combined.