版本控制
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
本指南介绍了 Merchant API 如何处理版本控制、发布及其不同版本的生命周期。
版本控制方案
Merchant API 在子 API 级别采用版本控制策略。这意味着,每个 API(例如 Merchant API 中的 Products)都将有自己的版本生命周期。
稳定的子 API 版本:如果子 API 处于稳定版本,则其所有方法都处于稳定版本。稳定的子 API 版本表示为 vX(例如 v1、v2)。这些是可用于生产环境的主要版本。
Alpha 子 API 版本:如果某个子 API 处于 Alpha 阶段,则其所有方法都处于 Alpha 阶段。Alpha 子 API 版本表示为 vXalpha(例如 v1alpha、v2alpha)。它们包含实验性抢先体验功能,旨在用于测试和快速迭代。Alpha 版不保证稳定性,没有明确的生命周期,并且可能会在提前 30 天通知的情况下进行更改或停用。
版本更改
停用政策
我们会定期弃用旧版 Merchant 子 API。我们承诺,对于稳定的主要版本 (vX),自正式宣布弃用之日起,将提供 12 个月的弃用期限。
例如,如果我们于 2026 年 1 月 15 日弃用 Products 子 API 的 v1,则该 API 最早将于 2027 年 1 月 15 日停用。在此日期之后,将无法再使用该子 API 的早期版本。
子 API 版本和生命周期状态
下表列出了 Merchant API 各个子 API 的最新版本:
子 API |
版本 |
状态 |
账号 |
v1 v1beta |
有效 将于 2026 年 2 月 28 日停用 |
转化次数 |
v1 v1beta |
有效 将于 2026 年 2 月 28 日停用 |
数据源 |
v1 v1beta |
有效 将于 2026 年 2 月 28 日停用 |
商品目录 |
v1 v1beta |
有效 将于 2026 年 2 月 28 日停用 |
问题解决情况 |
v1 v1beta |
有效 将于 2026 年 2 月 28 日停用 |
本地 Feed 合作伙伴关系 |
v1 v1beta |
有效 将于 2026 年 2 月 28 日停用 |
通知 |
v1 v1beta |
有效 将于 2026 年 2 月 28 日停用 |
订单跟踪 | v1 v1beta |
有效 将于 2026 年 2 月 28 日停用 |
产品 |
v1 v1beta |
有效 将于 2026 年 2 月 28 日停用 |
Product Studio |
v1alpha |
有效 |
促销活动
|
v1 v1beta |
有效 将于 2026 年 2 月 28 日停用 |
配额 |
v1 v1beta |
有效 将于 2026 年 2 月 28 日停用 |
报告 |
v1 v1beta |
有效 将于 2026 年 2 月 28 日停用 |
评价 |
v1alpha v1 beta |
有效 将于 2026 年 2 月 28 日停用 |
最佳做法
- 请定期查看版本说明和最新更新,了解新版本、重大更新、改进以及有关子 API 启动和弃用的公告。
- 如果某个子 API 有两个或更多稳定版本,我们建议您始终使用最新版本。
- 设计应用时,应使其能够妥善处理各种子 API 错误,包括网络问题、速率限制以及可能随较新的子 API 版本引入的新错误代码或消息。
- 不要等到子 API 版本即将停用时才开始规划升级。在新版本发布后立即开始评估和测试。
- 如果您有功能请求或对子 API 路线图有疑虑,请与我们联系,提出问题或提供反馈。如需了解如何联系 Merchant API 团队以获取技术支持,请参阅获取 Merchant API 方面的帮助。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-08-22。
[null,null,["最后更新时间 (UTC):2025-08-22。"],[],[],null,["# Versioning\n\nThis guide explains how Merchant API handles versioning, releases, and the\nlifecycle of its different versions.\n\nVersioning scheme\n-----------------\n\nMerchant API employs a versioning strategy at the sub-API level. This means that\neach API, for example Products within the Merchant API, will have its own\nversion lifecycle.\n\n### Versioning format and presentation\n\n- **Stable sub-API versions:** If a sub-API is in a stable version then all\n its methods are in a stable version. A stable sub-API version is represented\n as **vX** (for example, **v1** , **v2**). These are production-ready major\n versions.\n\n- **Alpha sub-API versions:** If a sub-API is in an alpha, then all its\n methods are in alpha. An alpha sub-API version is represented as\n **vXalpha** (for example, **v1alpha** , **v2alpha**). They contain\n experimental, early access features intended for testing and rapid\n iteration. Alpha versions come with no stability assurance, have no defined\n lifespan and can be changed or discontinued with a notice period of 30 days.\n\n### Version changes\n\n- **Major version increments** (for example, v1 to v2): These signal\n backward-incompatible and breaking changes, which require developer action.\n Only breaking changes of stable sub-APIs will have a new version number. For\n example, v1 to v2.\n\n- **Minor changes:** Backward compatible additions or fixes are presented as\n changes to the existing major version. Such changes will be detailed in the\n release notes for that major version. Non-breaking additions to a sub-API will\n be released to the alpha channel of the latest stable version or directly to\n the latest stable version.\n\nSunset policy\n-------------\n\nWe periodically sunset older Merchant sub-API versions. We commit to a 12-month\ndeprecation window for stable major versions (vX), starting from the official\ndeprecation announcement.\n\nFor example, if we deprecate v1 of the Products sub-API on January 15, 2026, it\nwill sunset no earlier than January 15, 2027. Beyond this date, the earlier\nversion of the sub-API will no longer be available for use.\n\nSub-API version and lifecycle status\n------------------------------------\n\nThe following table lists the latest versions of each sub-API of Merchant API:\n\n| Sub-API | Versions | Status |\n|-------------------------|----------------|-------------------------------------------|\n| Accounts | v1 v1beta | Active To be discontinued on Feb 28, 2026 |\n| Conversions | v1 v1beta | Active To be discontinued on Feb 28, 2026 |\n| Data sources | v1 v1beta | Active To be discontinued on Feb 28, 2026 |\n| Inventories | v1 v1beta | Active To be discontinued on Feb 28, 2026 |\n| Issue resolution | v1 v1beta | Active To be discontinued on Feb 28, 2026 |\n| Local feeds partnership | v1 v1beta | Active To be discontinued on Feb 28, 2026 |\n| Notifications | v1 v1beta | Active To be discontinued on Feb 28, 2026 |\n| Order tracking | v1 v1beta | Active To be discontinued on Feb 28, 2026 |\n| Products | v1 v1beta | Active To be discontinued on Feb 28, 2026 |\n| Product Studio | v1alpha | Active |\n| Promotions | v1 v1beta | Active To be discontinued on Feb 28, 2026 |\n| Quota | v1 v1beta | Active To be discontinued on Feb 28, 2026 |\n| Reporting | v1 v1beta | Active To be discontinued on Feb 28, 2026 |\n| Reviews | v1alpha v1beta | Active To be discontinued on Feb 28, 2026 |\n\nBest practices\n--------------\n\n- Regularly check the release notes and [latest\n updates](/merchant/api/latest-updates) for new versions, major updates, improvements, and announcements about sub-API launches and deprecations.\n- If a sub-API has two or more stable versions, we suggest using the latest version at all times.\n- Design your application to gracefully handle various sub-API errors, including network issues, rate limits, and the new error codes or messages that might be introduced with newer sub-API versions.\n- Don't wait until a sub-API version is about to be sunset to start planning your upgrade. Begin evaluating and testing new versions as soon as they are available.\n- For feature requests or concerns about a sub-API roadmap, [reach out to us\n with questions or feedback](/merchant/api/support/give-feedback). For information about how to contact the Merchant API team for technical support, see [Get help with Merchant API](/merchant/api/support/get-help)."]]