返回情报首页
平台更新全球适用

Shopify 终止 Discounts Allocator Function API 开发者预览

使用已废弃扩展目标的应用需要尽快清理配置,否则应用部署可能受阻;普通商家通常无需直接调整折扣设置。

Ecomwith Editorial电商情报编辑部

首次发布
最后更新
风险等级
low

来源中的信息

发生了什么

Shopify 官方确认,Discounts Allocator Function API 的开发者预览已关闭,该 API 已移除且不会正式发布。来源:shopify-changelog;证据 ID:evidence:f14eed4b9e1d525b96ce8ad9。

仍声明 purchase.discounts-allocator.run 扩展目标的应用需要移除该配置;在移除前,应用部署会失败,包括其他扩展的变更部署。受影响的是仍保留该扩展目标的应用

预览期间注册的 Function 会由 Shopify 自动取消注册;discountsAllocatorFunctionRegister 和 discountsAllocatorFunctionUnregister mutation 已从 unstable 版 Admin GraphQL API 移除,且从未进入稳定版本。

需要继续通过 Function 创建折扣时,官方指向 Discount Function API;未使用 Discounts Allocator Function API 或相关扩展目标的应用不受影响。

经营影响

为什么重要

对 Shopify 应用开发者而言,这不是版本兼容性提示,而是已终止路线:继续保留旧扩展目标可能阻塞整个应用的部署流程。

对商家而言,直接影响范围主要取决于所使用的折扣应用是否参与过该开发者预览;未使用相关应用的店铺无需因本次更新重做折扣配置。

编辑观察

分析判断

  1. Shopify 将折扣分配继续留在平台逻辑中,并以原生折扣机制覆盖更多用例,说明依赖自定义跨购物车行分配逻辑的应用需要重新评估产品设计,而不是等待该 API 转为稳定版。

  2. 由于该 API 从未进入稳定版本,迁移优先级应按应用配置和部署风险排序:先排查扩展目标,再判断是否需要改用 Discount Function API。

  3. 这项更新对普通卖家的短期经营影响有限,但若折扣应用无法部署新版本,后续折扣规则维护或其他扩展发布可能受到牵连。

适用范围

对卖家的影响

未使用相关预览功能的 Shopify 商家通常无需采取行动。

正在使用参与过该预览的折扣应用的商家,应确认应用方是否已移除 purchase.discounts-allocator.run;在应用方完成处理前,不要假设其后续更新可以正常发布。

行动建议

现在应该做什么

  1. 1

    检查应用配置中的旧扩展目标

    now

    如果你维护 Shopify 应用,搜索并移除 purchase.discounts-allocator.run,并确认应用配置中不再依赖 Discounts Allocator Function。

  2. 2

    验证部署与折扣流程

    this-week

    完成配置清理后重新执行应用部署,并检查现有折扣创建和结算流程;如仍需通过 Function 创建折扣,评估 Discount Function API。

  3. 3

    向应用供应商确认影响范围

    monitor

    如果你是商家而非应用开发者,向折扣应用供应商确认其是否参与过开发者预览,以及是否已经移除旧扩展目标。

暂时不要做什么

  • 不要仅因本次公告就重建所有店铺折扣或更换应用;先确认应用是否声明 purchase.discounts-allocator.run。
  • 不要继续等待 Discounts Allocator Function API 正式发布,也不要把其视为稳定版 API。

来源与依据

证据与来源

来源可能仅提供标题或摘要。请结合下方具体证据范围阅读;链接与流程校验不等于独立事实核验。内部置信值是工作流信号,不代表事实正确的概率。

  1. 01

    The Discounts Allocator Function API, available only through the Discounts Allocator developer preview, has been removed and won’t be released. The developer preview is closed. Most developers don’t need to take action. The one exception is an app that still declares the purchase.discounts-allocator.run extension target. What changed The Discounts Allocator Function API let an app control how discounts were allocated across cart lines. Since the preview opened, native control over how discounts apply has improved, including stacking multiple product discounts on the same line. We believe the majority of use cases are now served by these mechanisms, so it no longer makes sense to carry the Discounts Allocator API forward as a long-term Function API. Discount allocation stays with Shopify’s platform logic. This change includes: The discountsAllocatorFunctionRegister and discountsAllocatorFunctionUnregister mutations are removed from the unstable version of the Admin GraphQL API. They were never available in a stable version. Functions registered during the preview are unregistered for you. The API reference and the “Build a discounts allocator” tutorial are removed from https://shopi

    Shopify Developer Changelog · 流程状态: single-source

    来源链接

    获取时间: 2026年9月10日 16:07 UTC

    Claim is bounded to the ingested title or summary; no source body or quotation is retained.

Shopify 终止 Discounts Allocator Function API 开发者预览 - Ecomwith Intelligence