How to Exclude Wholesale Customers From Shopify Discounts

To exclude wholesale customers from Shopify discounts, limit each discount to a customer segment that leaves out your wholesale tag. Shopify says discounts are available for B2B by default and add to catalog prices. Keep wholesale prices in a price list or app rule, and test the cart as a buyer.
This guide belongs to our complete guide to Shopify B2B. It applies to any retail sale, not only Black Friday. Shopify facts come from the Help Center and shopify.dev pages linked in the text, checked November 2026. BSS B2B Solutions makes BSS B2B Solution, the app used for wholesale prices.
Key takeaways
- Shopify discounts reach B2B buyers by default, on top of catalog prices.
- The native fix is eligibility on the discount: a customer segment that excludes the wholesale tag.
- A code made in BSS B2B Solution does not work in the Shopify checkout discount field.
- Inside the app, a price list sets the base price, then quantity breaks, then BOGO, then discount codes.
- Test every sale as a wholesale buyer and as a retail buyer.
Why does a retail sale reach wholesale buyers?
Because a discount applies to every customer its eligibility allows, and in a blended store that includes B2B buyers. Shopify says discounts set to all customers, specific customers or customer segments apply to B2B and D2C customers by default (Shopify Help Center).
| Scenario | What happens | Fix |
|---|---|---|
| Store-wide automatic discount | Applies to B2B and D2C customers by default | Limit eligibility to a segment that excludes the wholesale tag |
| Public code sent to a wholesale buyer | A code open to all customers can be used by anyone who has it | Limit eligibility to a segment or to specific customers |
| Catalog price plus a sale | Discounts apply as additional discounts on top of catalog price adjustments | Exclude wholesale in eligibility, or keep it in on purpose |
| App price plus a Shopify sale | Shopify Help does not say how a native discount combines with a price set by an app | Test the cart as a wholesale buyer |
Example, illustrative numbers. One product sells for $100.00 retail. A 15% sale is running. The wholesale price, taken from a Shopify catalog, is $60.00.
| Step | Retail buyer | Wholesale buyer, sale reaches them | Wholesale buyer, excluded |
|---|---|---|---|
| Price before the sale | $100.00 | $60.00 | $60.00 |
| 15% sale | -$15.00 | -$9.00 | none |
| Buyer pays per unit | $85.00 | $51.00 | $60.00 |
The wholesale buyer who receives the sale pays $9.00 less per unit than your price list says. Over 100 units, that is $900.00.
How do you keep a Shopify discount away from wholesale customers?
Set the discount’s eligibility to a customer segment that does not include the wholesale tag. Shopify’s segment filter supports a NOT CONTAINS operator on customer tags, and tags are not case sensitive.
- Create a customer segment with the filter
customer_tags NOT CONTAINS 'wholesale'(segment query reference). - Open the segment and check that your wholesale customers are not in it.
- Open the discount. Under Eligibility, choose Customer segments, add the segment and save.
- Respect the cap: up to 100 segments on a discount code, up to 5 on an automatic discount (Shopify Help Center).
- Add the discount to a test cart as a wholesale buyer, then as a retail buyer. Log in as each one to check the cart, then run a checkout for each.
We ran this on a Shopify demo store on November 26, 2026. The sale was an automatic 15% discount on five products, limited to a segment that excludes the wholesale tag. The cart held 2 units of House Espresso Beans 1 kg, listed at $24.00 each. For this test, the app's price rule for wholesale buyers was -20%.
- Retail buyer, no tag. The cart shows the label “Harbor Lane 15% sale”, $20.40 per unit and $40.80 for the line.
- Wholesale buyer, tagged wholesale. The cart shows $19.20 per unit and $38.40 for the line. There is no sale label, and Shopify reports a discount total of 0. The wholesale price in the cart is written by BSS B2B Solution.


We did not run checkout, so we do not state what the wholesale buyer pays in total. Only the cart is shown here. Run a full checkout as a wholesale buyer before your sale goes live.

| Discount | How to exclude wholesale | Limit |
|---|---|---|
| Shopify discount code | Eligibility: customer segment without the wholesale tag | Up to 100 segments per discount |
| Shopify automatic discount | Same eligibility setting | Up to 5 segments per discount |
| Offer for B2B buyers only | Create a B2B market and assign it to the discount’s eligibility settings | Limits a discount to B2B. It does not exclude B2B |
Need to group wholesale customers first? See companies and catalogs versus customer tags and the wholesale price by customer tag setup.
What price does a wholesale buyer pay when several rules apply in BSS B2B Solution?
The app starts from a Price List or Custom Pricing price. Quantity breaks apply on that price, then BOGO, then discount codes. Priority runs from 0 to 99, the lower number wins, and it is compared only inside one module.
This order belongs to the app. It does not change how Shopify’s own discounts work. For rules that overlap, read which B2B rule wins.
Example, illustrative numbers. Retail price $100.00, Price List $60.00, a 10% quantity break at 50 units, then a 5% wholesale code.
| Step | Rule | Arithmetic | Price per unit |
|---|---|---|---|
| 1 | Price List | Set price | $60.00 |
| 2 | Quantity break, 10% at 50 units | 60.00 x 0.90 | $54.00 |
| 3 | Wholesale code, 5% | 54.00 x 0.95 | $51.30 |
A Shopify sale that reaches this buyer is a separate step. Shopify Help does not say how it combines with a price set by an app, so test it in a cart.
For setup of the pricing side, see wholesale pricing on Shopify.
How do you run a discount code for wholesale buyers only?
Use the Discount Code module of BSS B2B Solution. A rule targets customer tags such as wholesale, and it can exclude customers or tags. It needs a paid plan, which you can try during the 14-day free trial.
Per the BSS B2B Solution Discount Codes page, last reviewed October 11, 2026, a rule can target everyone, logged-in buyers, guests, named customers or customer tags. You choose the discount type, a minimum purchase and usage limits. Exclusions win over targeting.
Three limits matter here:
- A code made in the app does not work in the Shopify checkout discount field.
- Buy it now, express checkout buttons and direct checkout links can skip it.
- It is not applied at Shopify POS.
See BSS B2B Solution pricing for plans.
What goes wrong most often?
Most leaks trace to one cause: the buyer who receives the sale is not the buyer you pictured when you set it up. Check each of these four before the sale goes live.
- Tag spelling. Shopify matches the exact tag and ignores case.
wholesalerdoes not matchwholesale. - Guest checkout. In our cart test, a logged-out buyer saw the sale price while eligibility was All customers. After we switched eligibility to the segment, the same cart showed the list price and no sale. Shopify says segment customers can be identified at checkout by email address or phone number, so test a guest checkout as well.
- Shared links. A sale link or code in an email works for anyone it is open to.
- Admin-only tests. A discount that looks right in admin can differ in a buyer’s cart.
Checklist before your next sale
Run these five checks before every sale, in this order. Do the two test carts last, because they only prove the earlier steps worked. Fix any failed check, then run the list again from the top.
- Your wholesale customers carry the same tag, spelled the same way.
- The discount’s eligibility is a segment that excludes that tag.
- A wholesale test account shows the wholesale price only.
- A retail test account shows the sale price.
- The code you email is limited to the group you meant.
Running retail and wholesale in one store? Read how to run B2B and B2C on one Shopify store.
Frequently asked questions
Can wholesale customers use my retail discount codes?
Yes, if the code’s eligibility allows them. A code open to all customers works for anyone who has it, and Shopify says discounts apply to both B2B and D2C customers by default. Limit eligibility to a segment that leaves out the wholesale tag.
How do I exclude a customer tag from a Shopify automatic discount?
Create a customer segment with customer_tags NOT CONTAINS 'wholesale', then set the discount’s eligibility to that segment. An automatic discount accepts up to 5 segments. Shopify matches the exact tag and ignores case, so check your tag spelling before you save.
Do BSS B2B Solution discount codes work in the Shopify checkout box?
No. Per the BSS B2B Solution Discount Codes page, a code made in the app does not work in the Shopify checkout discount field. Buy it now, express checkout buttons and direct checkout links can skip it, and it is not applied at Shopify POS.
Which BSS B2B Solution plan has Discount Code?
Discount Code needs a paid BSS B2B Solution plan. Plan names and prices change, so the pricing page has the current list. Once the plan is active, a Discount Code rule can target customer tags, and an exclusion wins over targeting, as in the wholesale-only example above.
Set wholesale prices, quantity breaks and wholesale-only discount codes in one app. 14-day free trial on paid plans.
Install BSS B2B Solution See the appSources
Shopify pages checked on November 26, 2026. BSS facts come from the BSS B2B Solution Discount Codes page (last reviewed October 11, 2026) and the rule priority guide.
- Shopify Help Center: Discounts for B2B
- Shopify Help Center: Managing discount codes
- Shopify Help Center: Segment filters reference
- shopify.dev: Segment query language reference


