# Discount Allocator

**URL:** <https://community.shopify.dev/t/discount-allocator/19901>\
**Category:** Functions\
**Tags:** discount-functions\
**Created:** [July 24, 2025, 12:53pm UTC](https://community.shopify.dev/t/discount-allocator/19901 "2025-07-24T12:53:30Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![bkspace](https://sea1.discourse-cdn.com/shopifycommunity/user_avatar/community.shopify.dev/bkspace/32/4501_2.png) [@bkspace](https://community.shopify.dev/u/bkspace)\
**Post date:** [July 24, 2025, 12:53pm UTC](https://community.shopify.dev/t/discount-allocator/19901/1 "2025-07-24T12:53:30Z")

</div>

Is there any update on when this might become available in GA? I believe it’s now been in developer preview for 1 year and a half!

> **[Developer previews](https://shopify.dev/docs/api/developer-previews#discounts-allocator-developer-preview)**
>
> Shopify's developer previews provide early access to new features. Learn about the developer previews available and how to test your apps.

I have a sneaking suspicion that the new discount API may make the need for the allocator less important, but does this mean it’s going away?

---

<div class="post-metadata">

**Author:** ![Wes-Dev-Shopify](https://avatars.discourse-cdn.com/v4/letter/w/e68b1a/32.png) [@Wes-Dev-Shopify](https://community.shopify.dev/u/Wes-Dev-Shopify)\
**Post date:** [September 16, 2026, 5:09pm UTC](https://community.shopify.dev/t/discount-allocator/19901/2 "2026-09-16T17:09:51Z")

</div>

Hey @bkspace - just following up on this older thread as there have been some changes. Apologies for not getting back to you sooner.

The Discounts Allocator Function API developer preview has now ended, and the API won’t be released. Shopify’s native discount controls now cover most use cases, so discount allocation will remain with Shopify’s platform logic.

If there’s a use case that the Discounts Allocator Function API covered but the Discount Function API doesn’t, please let us know what you’re trying to achieve.

Full details and any required app changes are in the [changelog](https://shopify.dev/changelog/discounts-allocator-function-api-developer-preview-has-ended).

Hope this helps!

---

<div class="post-metadata">

**Author:** ![Jordan\_King](https://avatars.discourse-cdn.com/v4/letter/j/df705f/32.png) [@Jordan\_King](https://community.shopify.dev/u/Jordan_King)\
**Post date:** [October 5, 2026, 12:17pm UTC](https://community.shopify.dev/t/discount-allocator/19901/3 "2026-10-05T12:17:50Z")

</div>

Hi @Wes-Dev-Shopify,we’re currently looking for a way to have a specific product behave similarly to Shopify gift card products when discounts are applied.

Specifically, we want the product to remain in the cart but be excluded from order-level discount calculations, just as gift cards are. For example, if a customer applies an order discount, the discount should apply to the other eligible products in the cart but not to this specific product.

We’ve looked into several apps, but the solutions we’ve found only prevent customers from using certain discount codes when the product is in the cart. That isn’t quite what we need—we still want customers to be able to use their discounts; we just need this particular product excluded from the discount calculation.

Is there a way to replicate Shopify’s gift card discount behavior for a regular product?

---

<div class="post-metadata">

**Author:** ![bkspace](https://sea1.discourse-cdn.com/shopifycommunity/user_avatar/community.shopify.dev/bkspace/32/4501_2.png) [@bkspace](https://community.shopify.dev/u/bkspace)\
**Post date:** [October 5, 2026, 3:35pm UTC](https://community.shopify.dev/t/discount-allocator/19901/4 "2026-10-05T15:35:21Z")

</div>

Hey @Jordan_King - the only way to do this is by ‘excluding’ the products from the discount in the first place - for example, you could create a collection for ‘All except ’, and only use this when targeting discounts.

---

<div class="post-metadata">

**Author:** ![Wes-Dev-Shopify](https://avatars.discourse-cdn.com/v4/letter/w/e68b1a/32.png) [@Wes-Dev-Shopify](https://community.shopify.dev/u/Wes-Dev-Shopify)\
**Post date:** [October 6, 2026, 6:39pm UTC](https://community.shopify.dev/t/discount-allocator/19901/5 "2026-10-06T18:39:47Z")

</div>

Hey @Jordan_King - as @bkspace mentioned, the exclusion needs to be built into the discount itself. There are two ways to approach this:

- **With native discounts:** Use an “Amount off products” discount targeting a collection containing the eligible products, leaving the protected product out. Native “Amount off orders” discounts don’t offer product exclusions. [Discount setup guidance](https://help.shopify.com/en/manual/discounts/discount-types/percentage-fixed-amount).
- **With an app-managed order discount:** The Discount Function API supports excluding specific cart lines through `orderSubtotal.excludedCartLineIds`. An app implementing this can leave your protected product at full price while applying the order discount to the remaining eligible items. See “Create an order discount with exclusions” in the [API reference](https://shopify.dev/docs/api/functions/2026-10/discount).

These exclusions apply to the discount configured through that approach; they don’t give the product a blanket exemption from other discounts.

Hope this helps!
