Skip to content
← Marketing Pulse

Ecommerce

Shopify ends the Discounts Allocator Function preview

An affected app can keep its existing release, but the preview function no longer runs and the retired extension target will block the app's next deployment.

Shopify developer changelog showing the ended Discounts Allocator Function API preview and action-required label.
Source page capture: Shopify developer changelog.

The next deployment exposes the retired target

Shopify closed the Discounts Allocator Function API developer preview on September 10 and removed its unstable mutations, documentation, and registered functions. The API will not move to a stable release.

An app that still declares purchase.discounts-allocator.run fails its next Shopify app deployment with an API-not-found error. That failure blocks the whole deployment, including unrelated extension changes.

Existing releases can install while the function stays inactive

Shopify says existing app releases remain installable and other app functions are unaffected. The allocator function itself no longer runs because Shopify unregistered functions created during the preview.

That split can hide the problem until a discount is tested or a new release is attempted. Check behavior in a development store instead of treating an installable release as proof that allocation still works.

Move supported logic before deleting the old target

Shopify points developers to the Discount Function API and newer native discount controls. Map the preview behavior to those supported options before removing the old configuration.

Our recommendation: record the current allocation examples, reproduce each with supported controls, and test stacked product discounts. Remove the target only after the replacement behavior is understood.

For your next work session

What to check next

  1. Search app configuration for purchase.discounts-allocator.run.
  2. List the discount-allocation cases the preview function handled.
  3. Map each case to native controls or the Discount Function API.
  4. Test discount stacking and line allocation in a development store.
  5. Remove the retired target and run a complete app deployment.

Sources and scope

The removed API was never stable. Apps that did not use the preview target are unaffected. Existing releases remain installable, but registered allocator functions were unregistered and no longer run.

The announcement is confirmed by the source below. Practical checks in this article are Stan Consulting's recommendations.

Need help applying this to your business? Shopify marketing support.