Index
OrderTrackingSignalsService
(interface)CreateOrderTrackingSignalRequest
(message)OrderTrackingSignal
(message)OrderTrackingSignal.LineItemDetails
(message)OrderTrackingSignal.ShipmentLineItemMapping
(message)OrderTrackingSignal.ShippingInfo
(message)OrderTrackingSignal.ShippingInfo.ShippingState
(enum)
OrderTrackingSignalsService
Service to serve order tracking signals public API.
CreateOrderTrackingSignal |
---|
Creates new order tracking signal.
|
CreateOrderTrackingSignalRequest
Signals only can be created but not updated. Businesses need to call this API only when the order is completely shipped. Creates new order signal.
Fields | |
---|---|
parent |
Required. The account of the business for which the order signal is created. Format: accounts/{account} |
order_tracking_signal_id |
Output only. The ID that uniquely identifies this order tracking signal. |
order_tracking_signal |
Required. The order signal to be created. |
OrderTrackingSignal
Represents a business trade from which signals are extracted, such as shipping.
Fields | |
---|---|
order_tracking_signal_id |
Output only. The ID that uniquely identifies this order tracking signal. |
merchant_id |
Optional. The Google Merchant Center ID of this order tracking signal. This value is optional. If left unset, the caller's Merchant Center ID is used. You must request access in order to provide data on behalf of another business. For more information, see Submitting Order Tracking Signals. |
order_created_time |
Required. The time when the order was created on the businesses side. Include the year and timezone string, if available. |
order_id |
Required. The ID of the order on the businesses side. This field will be hashed in returned OrderTrackingSignal creation response. |
shipping_info[] |
Required. The shipping information for the order. |
line_items[] |
Required. Information about line items in the order. |
shipment_line_item_mapping[] |
Optional. The mapping of the line items to the shipment information. |
delivery_postal_code |
Optional. The delivery postal code, as a continuous string without spaces or dashes, for example "95016". This field will be anonymized in returned OrderTrackingSignal creation response. |
delivery_region_code |
Optional. The CLDR territory code for the shipping destination. |
customer_shipping_fee |
Optional. The shipping fee of the order; this value should be set to zero in the case of free shipping. |
LineItemDetails
The line items of the order.
Fields | |
---|---|
line_item_id |
Required. The ID for this line item. |
product_id |
Required. The Content API REST ID of the product, in the form channel:contentLanguage:targetCountry:offerId. |
gtin |
Optional. The Global Trade Item Number. |
mpn |
Optional. The manufacturer part number. |
quantity |
Required. The quantity of the line item in the order. |
product_title |
Optional. Plain text title of this product. |
brand |
Optional. Brand of the product. |
ShipmentLineItemMapping
Represents how many items are in the shipment for the given shipment_id and line_item_id.
Fields | |
---|---|
shipment_id |
Required. The shipment ID. This field will be hashed in returned OrderTrackingSignal creation response. |
line_item_id |
Required. The line item ID. |
quantity |
Required. The line item quantity in the shipment. |
ShippingInfo
The shipping information for the order.
Fields | |
---|---|
shipment_id |
Required. The shipment ID. This field will be hashed in returned OrderTrackingSignal creation response. |
tracking_id |
Optional. The tracking ID of the shipment. This field is required if one of the following fields is absent: earliest_delivery_promise_time, latest_delivery_promise_time, and actual_delivery_time. |
carrier |
Optional. The name of the shipping carrier for the delivery. This field is required if one of the following fields is absent: earliest_delivery_promise_time, latest_delivery_promise_time, and actual_delivery_time. |
carrier_service |
Optional. The service type for fulfillment, such as GROUND, FIRST_CLASS, etc. |
shipped_time |
Optional. The time when the shipment was shipped. Include the year and timezone string, if available. |
earliest_delivery_promise_time |
Optional. The earliest delivery promised time. Include the year and timezone string, if available. This field is required, if one of the following fields is absent: tracking_id or carrier_name. |
latest_delivery_promise_time |
Optional. The latest delivery promised time. Include the year and timezone string, if available. This field is required, if one of the following fields is absent: tracking_id or carrier_name. |
actual_delivery_time |
Optional. The time when the shipment was actually delivered. Include the year and timezone string, if available. This field is required, if one of the following fields is absent: tracking_id or carrier_name. |
shipping_status |
Required. The status of the shipment. |
origin_postal_code |
Required. The origin postal code, as a continuous string without spaces or dashes, for example "95016". This field will be anonymized in returned OrderTrackingSignal creation response. |
origin_region_code |
Required. The CLDR territory code for the shipping origin. |
ShippingState
The current status of the shipments.
Enums | |
---|---|
SHIPPING_STATE_UNSPECIFIED |
The shipping status is not known to business. |
SHIPPED |
All items are shipped. |
DELIVERED |
The shipment is already delivered. |