Orders: createtestreturn

Requires authorization

Sandbox only. Creates a test return. Try it now.


HTTP request

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


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.


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


Request body

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

  "items": [
      "lineItemId": string,
      "quantity": unsigned integer
Property name Value Description Notes
items[] list Returned items.
items[].lineItemId string The ID of the line item to return.
items[].quantity unsigned integer Quantity that is returned.


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

  "kind": "content#ordersCreateTestReturnResponse",
  "returnId": string
Property name Value Description Notes
kind string Identifies what kind of resource this is. Value: the fixed string "content#ordersCreateTestReturnResponse".
returnId string The ID of the newly created test order return.

Send feedback about...

Content API for Shopping