Orders: updatemerchantorderid

Requires authorization

Updates the merchant order ID for a given order. Try it now.

Merchant order IDs must be unique for a given merchant center account.

Request

HTTP request

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

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,
  "merchantOrderId": string
}
Property name Value Description Notes
operationId string The ID of the operation. Unique across all operations for a given order.
merchantOrderId string The merchant order id to be assigned to the order. Must be unique per merchant.

Response

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

{
  "kind": "content#ordersUpdateMerchantOrderIdResponse",
  "executionStatus": string
}
Property name Value Description Notes
kind string Identifies what kind of resource this is. Value: the fixed string "content#ordersUpdateMerchantOrderIdResponse".
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.

Send feedback about...

Content API for Shopping