Orders: createtestreturn

Requires authorization

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

Request

HTTP request

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

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:

{
  "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.

Response

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.

Enviar comentarios sobre…

Content API for Shopping