When we are creating a store, to test the Discounts Allocator Function API, it was mentioned to enable ‘Discounts Allocator Feature Preview’ in the list.
But it is not availabe.
The Discount Allocator Function API preview isn’t currently available for new adoption on development stores.
Could you share the use cases you were hoping to solve with it? We’ve recently launched new Discounts Function API capabilities that may cover some of those scenarios.
Hi, I would like to implement a use case where a maximum discount can be applied to the cart. The Discount Allocator Function documentation mentions that this is one of its supported use cases, so I wanted to try implementing it.
Hi @lodel your reply conflicts with your colleague’s @MunaAtShopify in this thread https://community.shopify.dev/t/what-is-the-current-state-of-discount-allocator-functions/
Could you clarify if Discount Allocator Functions are going to be released or merged into the Discount API Functions?
Specifically I get questions weekly about merchants wanting to limit discount codes if a specific item is added to a cart whilst allowing it to be applied to other items. This functionality is available in Discount Allocator but not Discount API
You’re right that the Discount Allocator API documents this as a supported use case. Unfortunately, the dev preview isn’t currently available for new dev shops, so you can’t test it there at the moment. That said, here are two workarounds worth exploring :
App discount + metafield cap — Store your max discount threshold in a metafield on the discount node, then read it in your Function to cap the discount candidates returned. Just keep in mind the caveat: this cap is scoped only to the candidates your app discount returns. It won’t account for other native or app discounts that may also be applied.
Cart and Checkout Validation Function — As of the 2026-04 API version, you can now read discountApplications in the cart input. You could use this to block checkout when the total discount exceeds your threshold. The caveat here is that this approach can only block checkout: it can’t actively reduce applied discounts to bring them back down to the limit.
Re: the apparent conflict with the reply from the other thread
Totally understand the confusion — let me try to untangle these two statements:
What I said here: the Discount Allocator dev preview can’t be enabled on new dev stores right now.
What Muna said in the other thread: there’s no public guidance yet on if or when the Discount Allocator API will be promoted to GA or merged into the Discount Function API.
Both of these are true. Unfortunately, I’m not in a position to confirm any timeline or direction for that yet.