rocket
隆重推出
Merchant API - Content API for Shopping 的正式替代方案。
update
获取最新资讯,了解 Merchant API 的新功能、问题修复和更新。
add_alert
注意:Content API for Shopping 将于 2026 年 8 月 18 日停用。
订单跟踪信号
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
借助订单跟踪信号,您可以向 Google 提供通过商家网站完成的订单的历史订单跟踪数据。这样一来,买家就能获得更精确、更准确的运费估算值。订单跟踪信号还可让您通过“免费快速配送”注释来提升商品详情的效果。
您可以提交通过商家网站完成的订单的数据。您提交的数据可补充您在 Merchant Center 账号设置过程中提供的配送配置信息。例如,如果您向买家提供的预计送达时间为 3-7 天,但您最近的历史订单跟踪数据显示,在某些地区,订单通常会在 3 天内送达,那么 Google 可以更新您的商品详情,以便为客户提供更准确的预计送达时间。
本指南介绍了如何使用 ordertrackingsignals
服务提交历史订单跟踪数据。
使用 ordertrackingsignals
服务
ordertrackingsignals
服务包含一个 create
端点,您可以通过该端点提交历史订单跟踪数据。仅提交已送达订单的数据,以便我们验证配送时间。您可以在每个请求中提交一个订单。您可以在请求正文中提交以下信息:
如需详细了解必需和可选的订单跟踪字段,请参阅 ordertrackingsignals
资源的参考文档。
提交新的订单跟踪信号数据
以下是提交新订单跟踪数据的请求示例:
https://shoppingcontent.googleapis.com/content/v2.1/merchantId/ordertrackingsignals
{
"merchantId": "987654321",
"orderCreatedTime": {
"year": 2020,
"month": 1,
"day": 2,
"hours": 0,
"minutes": 0,
"seconds": 0,
"timeZone": {
"id": "America/Los_Angeles"
}
},
"orderId": "123456789",
"shippingInfo": [
{
"shipmentId": "1",
"trackingId": "100",
"carrierName": "FEDEX",
"carrierServiceName": "GROUND",
"shippedTime": {
"year": 2020,
"month": 1,
"day": 3,
"hours": 0,
"minutes": 0,
"seconds": 0,
"timeZone": {
"id": "America/Los_Angeles"
}
},
"shippingStatus": "DELIVERED"
},
{
"shipmentId": "2",
"earliestDeliveryPromiseTime": {
"year": 2020,
"month": 1,
"day": 4,
"hours": 0,
"minutes": 0,
"seconds": 0,
"timeZone": {
"id": "America/Los_Angeles"
}
},
"latestDeliveryPromiseTime": {
"year": 2020,
"month": 1,
"day": 5,
"hours": 0,
"minutes": 0,
"seconds": 0,
"timeZone": {
"id": "America/Los_Angeles"
}
},
"actualDeliveryTime": {
"year": 2020,
"month": 1,
"day": 5,
"hours": 0,
"minutes": 0,
"seconds": 0,
"timeZone": {
"id": "America/Los_Angeles"
}
},
"shippedTime": {
"year": 2020,
"month": 1,
"day": 3,
"hours": 0,
"minutes": 0,
"seconds": 0,
"timeZone": {
"id": "America/Los_Angeles"
}
},
"shippingStatus": "DELIVERED"
}
],
"lineItems": [
{
"lineItemId": "item1",
"productId": "online:en:US:item1",
"quantity": "3"
},
{
"lineItemId": "item2",
"productId": "online:en:US:item2",
"quantity": "5"
}
],
"shipmentLineItemMapping": [
{
"shipmentId": "1",
"lineItemId": "item1",
"quantity": "1"
},
{
"shipmentId": "2",
"lineItemId": "item1",
"quantity": "2"
},
{
"shipmentId": "1",
"lineItemId": "item2",
"quantity": "4"
},
{
"shipmentId": "2",
"lineItemId": "item2",
"quantity": "1"
}
],
"customerShippingFee": {
"value": "4.5",
"currency": "USD"
},
"deliveryPostalCode": "94043",
"deliveryRegionCode": "US"
}
更新现有订单跟踪信号数据
如需修改已提交的订单跟踪数据,请提交包含相同 orderId
的新数据。对于运费估算和“快速免费”徽章,系统只会使用每个 orderId
最近提交的数据。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-08-13。
[null,null,["最后更新时间 (UTC):2025-08-13。"],[[["\u003cp\u003eThe Merchant API is the new version of the Content API for Shopping and improves integration.\u003c/p\u003e\n"],["\u003cp\u003eOrder tracking signals allow providing Google with historical order tracking data for more accurate shipping estimates and free and fast shipping annotations.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eordertrackingsignals\u003c/code\u003e service enables submitting historical order tracking data for completed orders to enhance shipping estimates.\u003c/p\u003e\n"],["\u003cp\u003eData submission includes order details, shipping costs, carrier information, and line item details.\u003c/p\u003e\n"],["\u003cp\u003eData can be updated by submitting a new request with the same \u003ccode\u003eorderId\u003c/code\u003e, with the most recent data used for shipping estimates.\u003c/p\u003e\n"]]],["The Merchant API's beta version is introduced, alongside the `ordertrackingsignals` service. This service allows merchants to submit historical order tracking data via the `create` endpoint. Submitted data includes order details, shipping costs, shipping information, line items, and shipment mappings. This improves shipping estimates and enables free and fast shipping annotations on listings. Merchants can update data by resubmitting with the same `orderId`. Only delivered orders should be submitted.\n"],null,["# Order tracking signals let you provide Google with your historical order\ntracking data for orders completed through a merchant's site. This provides\nbuyers more precise and accurate shipping estimates. Order tracking signals\nalso let you enhance your listings with [free and fast shipping\nannotations](//support.google.com/merchants/answer/9780562).\n\nYou can submit data for orders completed through a merchant's site.\nThe data that you submit compliments the shipping\nconfiguration information that you provide as part of your Merchant Center\naccount setup. For example, if you provide buyers with shipping estimates of\n3-7 days, but your recent historical order tracking indicates that your orders\ntypically arrive in 3 days in some regions, Google can update your listings to\nprovide customers with a more precise estimate.\n\nThis guide explains how to use the `ordertrackingsignals` service to submit your\nhistorical order tracking data.\n\nUse the `ordertrackingsignals` service\n--------------------------------------\n\nThe `ordertrackingsignals` service includes a single `create` endpoint, which\nallows you to submit your historical order tracking data. Only submit data for\norders that have been delivered, so that we can verify shipping times. You can\nsubmit one order per request. In the request body you can submit the following\ninformation:\n\n- Order information, including the order ID and the order creation time, delivery postal code, and region code\n- Shipping cost charged to the buyer (`customer_shipping_fee`)\n- Shipping information (`shippingInfo`) including the carrier, tracking, origin, destination, and shipping times for each shipment associated with the order\n- Order line item information (`lineItems`), including the products in the order\n- A mapping of the order line items to order shipments (`shipment_line_item_mapping`)\n- The merchant ID of the merchant for which you are submitting data\n (`merchant_id`). This field is optional and allows you to provide data on behalf\n of another merchant. If you do not provide a value for this field, the data is\n associated with the account that submits it.\n\n | **Note:** You must be enabled before you can submit data on behalf of another merchant. To request access, contact us at [OrderTrackingSignals@google.com](mailto:OrderTrackingSignals@google.com).\n\nFor more information on required and optional order tracking fields, see the\nreference documentation for the\n[`ordertrackingsignals`](/shopping-content/reference/rest/v2.1/ordertrackingsignals)\nresource.\n\n### Submit new order tracking signals data\n\nHere's a sample request to submit new order tracking data: \n\n https://shoppingcontent.googleapis.com/content/v2.1/\u003cvar translate=\"no\"\u003e\u003cspan class=\"devsite-syntax-n\"\u003emerchantId\u003c/span\u003e\u003c/var\u003e/ordertrackingsignals\n\n {\n \"merchantId\": \"987654321\",\n \"orderCreatedTime\": {\n \"year\": 2020,\n \"month\": 1,\n \"day\": 2,\n \"hours\": 0,\n \"minutes\": 0,\n \"seconds\": 0,\n \"timeZone\": {\n \"id\": \"America/Los_Angeles\"\n }\n },\n \"orderId\": \"123456789\",\n \"shippingInfo\": [\n {\n \"shipmentId\": \"1\",\n \"trackingId\": \"100\",\n \"carrierName\": \"FEDEX\",\n \"carrierServiceName\": \"GROUND\",\n \"shippedTime\": {\n \"year\": 2020,\n \"month\": 1,\n \"day\": 3,\n \"hours\": 0,\n \"minutes\": 0,\n \"seconds\": 0,\n \"timeZone\": {\n \"id\": \"America/Los_Angeles\"\n }\n },\n \"shippingStatus\": \"DELIVERED\"\n },\n {\n \"shipmentId\": \"2\",\n \"earliestDeliveryPromiseTime\": {\n \"year\": 2020,\n \"month\": 1,\n \"day\": 4,\n \"hours\": 0,\n \"minutes\": 0,\n \"seconds\": 0,\n \"timeZone\": {\n \"id\": \"America/Los_Angeles\"\n }\n },\n \"latestDeliveryPromiseTime\": {\n \"year\": 2020,\n \"month\": 1,\n \"day\": 5,\n \"hours\": 0,\n \"minutes\": 0,\n \"seconds\": 0,\n \"timeZone\": {\n \"id\": \"America/Los_Angeles\"\n }\n },\n \"actualDeliveryTime\": {\n \"year\": 2020,\n \"month\": 1,\n \"day\": 5,\n \"hours\": 0,\n \"minutes\": 0,\n \"seconds\": 0,\n \"timeZone\": {\n \"id\": \"America/Los_Angeles\"\n }\n },\n \"shippedTime\": {\n \"year\": 2020,\n \"month\": 1,\n \"day\": 3,\n \"hours\": 0,\n \"minutes\": 0,\n \"seconds\": 0,\n \"timeZone\": {\n \"id\": \"America/Los_Angeles\"\n }\n },\n \"shippingStatus\": \"DELIVERED\"\n }\n ],\n \"lineItems\": [\n {\n \"lineItemId\": \"item1\",\n \"productId\": \"online:en:US:item1\",\n \"quantity\": \"3\"\n },\n {\n \"lineItemId\": \"item2\",\n \"productId\": \"online:en:US:item2\",\n \"quantity\": \"5\"\n }\n ],\n \"shipmentLineItemMapping\": [\n {\n \"shipmentId\": \"1\",\n \"lineItemId\": \"item1\",\n \"quantity\": \"1\"\n },\n {\n \"shipmentId\": \"2\",\n \"lineItemId\": \"item1\",\n \"quantity\": \"2\"\n },\n {\n \"shipmentId\": \"1\",\n \"lineItemId\": \"item2\",\n \"quantity\": \"4\"\n },\n {\n \"shipmentId\": \"2\",\n \"lineItemId\": \"item2\",\n \"quantity\": \"1\"\n }\n ],\n \"customerShippingFee\": {\n \"value\": \"4.5\",\n \"currency\": \"USD\"\n },\n \"deliveryPostalCode\": \"94043\",\n \"deliveryRegionCode\": \"US\"\n }\n\n### Update existing order tracking signals data\n\nTo modify already submitted order tracking data, submit a request that contains\nnew data with the same `orderId`. For shipping estimates and fast and free\nbadging, only the most recently submitted data for each `orderId` is used."]]