Orders: updatelineitemshippingdetails

Requires authorization

Updates ship by and delivery by dates for a line item. Try it now.

Request

HTTP request

POST https://www.googleapis.com/content/v2/merchantId/orders/orderId/updateLineItemShippingDetails

Parameters

Parameter name Value Description
Path parameters
merchantId unsigned long The ID of the account that manages the order. This cannot be a multi-client account.
orderId string The ID of the order.

Authorization

This request requires authorization with the following scope (read more about authentication and authorization).

Scope
https://www.googleapis.com/auth/content

Request body

In the request body, supply data with the following structure:

{
  "operationId": string,
  "lineItemId": string,
  "productId": string,
  "shipByDate": string,
  "deliverByDate": string
}
Property name Value Description Notes
operationId string The ID of the operation. Unique across all operations for a given order.
lineItemId string The ID of the line item to set metadata. Either lineItemId or productId is required.
productId string The ID of the product to set metadata. This is the REST ID used in the products service. Either lineItemId or productId is required.
shipByDate string Updated ship by date, in ISO 8601 format. If not specified only deliver by date is updated.
deliverByDate string Updated delivery by date, in ISO 8601 format. If not specified only ship by date is updated.

Response

If successful, this method returns a response body with the following structure:

{
  "kind": "content#ordersUpdateLineItemShippingDetailsResponse",
  "executionStatus": string
}
Property name Value Description Notes
kind string Identifies what kind of resource this is. Value: the fixed string "content#ordersUpdateLineItemShippingDetailsResponse".
executionStatus string The status of the execution.

Acceptable values are:
  • "duplicate"
  • "executed"

Try it!

Use the APIs Explorer below to call this method on the Sandbox environment and see the response.
Alternatively, test this on live data.

Enviar comentarios sobre…

Content API for Shopping