← Blog/Discounts

How to Set Up a Percentage Discount for Wholesale Customers in Shopify

Wholesale buyers need their own pricing — without exposing it to retail shoppers. Here's how to create a tag-gated wholesale discount in one message.

July 2, 2026·3 min read

Selling wholesale means offering a different price to a specific group — and crucially, keeping that price away from everyone else. The challenge in Shopify is creating a discount that your approved wholesale accounts can use while retail customers can't even see it, without standing up a whole separate B2B setup.

Why this is fiddly to do safely

A normal discount code can be shared, screenshotted, or found — and the moment it leaks, you're selling at wholesale prices to everyone. Restricting a code to specific customers in Shopify is possible but buried, and getting the eligibility wrong defeats the entire purpose.

Gate it to a customer tag in one step

With Claude MCP Connector, you tie the discount to a tag so only approved accounts qualify:

Claude
Create a 30% off code WHOLESALE30 that only customers tagged 'wholesale' can use, no expiry.
C
Done — wholesale pricing is live:
CodeWHOLESALE30
Discount30% off entire order
Eligiblecustomers tagged 'wholesale' only
Expirynone — ongoing
Locked down: Anyone without the wholesale tag is rejected at checkout, so retail margins stay protected.
See who's tagged wholesale →

Only customers carrying your wholesale tag can use the code; everyone else is rejected at checkout. Your retail margins stay protected, and onboarding a new wholesale account is just a matter of tagging them.

More ways to manage wholesale pricing

Restrict a code to a specific customer tag
Set any wholesale rate — 20%, 30%, 40%
Limit it to certain products or collections
Tag new wholesale accounts as you approve them

Why tag-gating is the trick

Tying wholesale pricing to a customer tag — rather than a shareable code — is what makes it safe to run. Because both the discount and the tagging are quick instructions, you can operate a clean wholesale channel alongside your retail store without extra apps or a separate storefront.

Try it free

Do this in 30 seconds with Claude.

Launching soon on the Shopify App Store. Join the early list to be first in.

Get early access →

Related articles

← Previous

How to Send Account Invites to Customers in Bulk in Shopify

Next →

How to Find Which Discount Codes Are Currently Active in Your Store