Discounts Allocator Function API Preview Ends – Immediate Actions for Developers

The Discounts Allocator Function API preview is over and the API has been removed. Learn what changed, who is impacted, and how to update your app configuration to keep deployments running smoothly.

Discounts Allocator Function API Preview Ends – Immediate Actions for Developers
5 sections

Shopify has officially closed the Discounts Allocator Function API developer preview. While most merchants won’t feel any difference, developers who experimented with this preview must act now to avoid deployment failures. This post breaks down the change, who it affects, and the exact steps you need to take to keep your app running without hiccups.

What Changed

The Discounts Allocator Function API allowed apps to dictate how discounts were allocated across cart lines. Since the preview opened, Shopify has enhanced its native discount‑allocation logic—supporting stacking multiple product discounts on the same line—so the custom function is no longer necessary. Consequently, the following have been removed:

• The discountsAllocatorFunctionRegister and discountsAllocatorFunctionUnregister mutations from the unstable Admin GraphQL API (they never reached a stable release).• All Functions registered during the preview have been automatically unregistered.• The API reference and “Build a discounts allocator” tutorial from shopify.dev.

If you still need to create custom discount logic, you should switch to the official Discount Function API described in the Discounts developer documentation.

Who Is Affected

Only apps that participated in the preview and declared the purchase.discounts-allocator.run extension target are impacted. There are three scenarios:

  • Apps that never used the Discounts Allocator API – no action required.2. Apps that used the API but have already migrated to the new Discount Function API – also fine.3. Apps that still list the purchase.discounts-allocator.run extension in their app configuration – these will see deployment failures until the extension is removed.
  • Required Action

    If your app’s shopify.app.toml or extension manifest still includes the purchase.discounts-allocator.run extension, you must delete it. Until you do, any shopify app deploy command will abort with an “API not found for target: purchase.discounts-allocator.run” error, blocking updates to all other extensions as well.

    Example removal from a typical shopify.app.toml:

    toml

    # Before – problematic extension

    [[extensions]]

    name = "discounts-allocator"

    type = "purchase.discounts-allocator.run"

    # ...other extension definitions...

    After removal:

    toml

    # The purchase.discounts-allocator.run block has been deleted.

    [[extensions]]

    name = "my-other-extension"

    type = "checkout_ui_extension"

    # ...rest of the config...

    Once the extension is removed, run shopify app deploy again. The deployment should succeed, and your other extensions will continue to update as expected. Existing releases of your app remain installable, but any Discounts Allocator Functions they contain will no longer execute.

    Next Steps & Resources

  • Review your app’s manifest files for the purchase.discounts-allocator.run target and delete it if present.2. Test a fresh deployment locally to confirm the error is resolved.3. If you need custom discount logic, start building with the Discount Function API: https://shopify.dev/docs/apps/build/discounts
  • Conclusion

    The end of the Discounts Allocator Function API preview simplifies Shopify’s discount engine and removes a layer of custom code for most merchants. For developers, the only immediate task is to clean up any lingering purchase.discounts-allocator.run extensions to keep deployments smooth. Embrace the newer Discount Function API for any advanced discount scenarios, and you’ll be well‑positioned for future Shopify updates.

    Ready to update your app? Start by checking your shopify.app.toml today and keep your checkout experience friction‑free.

    Tags
    Sources

    Related Articles

    Guaranteed Flat‑Rate Shipping Goes Global with Managed Markets

    Guaranteed Flat‑Rate Shipping Goes Global with Managed Markets

    Shopify’s new Managed Markets feature adds duty‑inclusive, guaranteed flat‑rate shipping to international markets, automating rates and protecting merchants from label‑cost surprises. Learn what’s changed, who it impacts, and how to enable it.

    October 24, 20264 min
    Create Transparent‑Background Images Directly in Shopify Sidekick

    Create Transparent‑Background Images Directly in Shopify Sidekick

    Shopify Sidekick now lets merchants generate illustrations, icons, and graphics with transparent backgrounds using AI prompts—no extra design tools required. Learn how it works, who benefits, and how to get started today.

    October 24, 20264 min
    UK VAT Gets Smarter: Fulfillment Location Drives Accurate Tax on Orders Over £135

    UK VAT Gets Smarter: Fulfillment Location Drives Accurate Tax on Orders Over £135

    Shopify now calculates UK VAT based on the fulfillment location chosen by your order‑routing rules. Orders over £135 that ship from outside the UK are treated as imports, removing VAT at checkout. Learn what this means for merchants and developers and how to update your routing settings.

    October 23, 20264 min
    Schedule and Test Catalog Changes with Rollouts: A Deep Dive

    Schedule and Test Catalog Changes with Rollouts: A Deep Dive

    Shopify Rollouts now lets merchants schedule catalog availability and pricing by market, and lets developers test those changes before they go live. Learn what’s new, who it impacts, and step‑by‑step actions to start using Rollouts today.

    October 23, 20264 min