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

    Capture WhatsApp Opt‑Ins Directly at Checkout
    Platform Updates

    Capture WhatsApp Opt‑Ins Directly at Checkout

    Shopify now lets merchants gather WhatsApp marketing consent right at checkout, turning every purchase into a lead‑generation opportunity. Learn how to enable the feature, what developers need to know, and best practices for turning opt‑ins into revenue.

    September 10, 20264 min
    Create and Delete Dev Stores Directly from Shopify CLI 4.8
    Platform Updates

    Create and Delete Dev Stores Directly from Shopify CLI 4.8

    Shopify CLI 4.8 introduces terminal commands to create, list, inspect, and delete development stores, giving developers full control over their Dev Dashboard environments. Learn what changed, who it impacts, and how to automate store cleanup before hitting the new 250‑store limit.

    September 9, 20264 min
    Multiple Barcodes per Variant: What Shopify Merchants and Developers Need to Know
    Platform Updates

    Multiple Barcodes per Variant: What Shopify Merchants and Developers Need to Know

    Shopify now lets each product variant hold up to 20 barcodes, simplifying inventory across UPCs, EANs, ASINs, and custom codes. Learn how this change impacts your store, the API, CSV workflows, and the steps to start using it.

    September 8, 20264 min
    Meta Joins Your AI Channels: What Shopify Merchants Need to Know
    Platform Updates

    Meta Joins Your AI Channels: What Shopify Merchants Need to Know

    Meta is now an AI channel in the Shopify admin, letting merchants sync products, enable direct checkout, and track performance alongside other AI channels. Learn what changed, who’s affected, and the exact steps to configure Meta for your store.

    September 8, 20265 min