All things Shopify and commerce
Hi everyone,
I’m using Shopify in Storefront API mode with a custom frontend, and I'm generating the checkout via the checkoutUrl. I want to apply volume-based discounts (e.g., buy 5+, get 10% off), but I’ve run into a major limitation:
Shopify only allows up to 25 discount codes per checkout, which makes it impossible to apply item-specific volume discounts across multiple product lines using separate codes.
I’m looking for a solution that:
Works outside the Online Store / theme (so NOT relying on theme Liquid code)
Is compatible with the Storefront API
Works with the checkoutUrl, or is otherwise applicable in a headless setup
Allows for dynamic discount logic (ideally based on cart content and quantity)
Is there a Shopify app that supports this use case in a headless / Storefront API setup?
Are there workarounds or best practices to apply dynamic volume discounts via a single discount code (e.g., generated via Admin API)?
Does Shopify Functions or checkout extensions provide a path forward here (if I'm not on Plus)?
Any tips or insights would be super appreciated. Thanks!
Thank you!
This is a good way to handle it indeed, and i tried doing so.
It works, the only cons are:
- i only get a total discount (for the total sum), and not a detailed discount per product in the checkout (important for some clients)
- pretty much workload for a quick fix
i found it worked very good with Orichi - Bundle
free to use App and the discounts are applied correctly in checkout (still in testing phase, but looks very promising)
@JohaBu We've been working with a few plus merchants who run headless storefronts and help them with solving for extended discount functionality through Shopify functions.
Here's how your config would look like on our app's backend. Just as an example for illustration purposes.
Answers for your questions
No - Shopify's discount codes are designed to solve much more basic use cases and are single purpose in nature. Ie one code only does one logic. Functions extends this capability and lets you overcome these limitations.
Questions for you
Thank you and wish you a great day 🙂
Founder
• Dollarlabs: Ultimate Discounts (5★) – If you can think of a discount, you can build it
• Dollarback: Cashback & Loyalty (5★) – Simple cashback. Powerful loyalty.
Hi @JohaBu , wanted to check and see if you found a solution / fixed the issue you mentioned.
If so - can you share your solution / mark a solution here so that others may find value from the answer as well.
Thank you 🙂
Founder
• Dollarlabs: Ultimate Discounts (5★) – If you can think of a discount, you can build it
• Dollarback: Cashback & Loyalty (5★) – Simple cashback. Powerful loyalty.
Discover how to increase customer engagement on your store with articles from Shopify A...
By Jacqui Apr 23, 2025Hey Community 👋 Did you know that March 15th is National Everything You Think Is W...
By JasonH Apr 1, 2025Discover how to increase the efficiency of commerce operations with Shopify Academy's l...
By Jacqui Mar 26, 2025