- HTTP request
- Path parameters
- Request body
- Response body
- Authorization Scopes
- OrdersCreateTestOrderRequest
- Try it!
Sandbox only. Creates a test order.
HTTP request
POST https://shoppingcontent.googleapis.com/content/v2.1sandbox/{merchantId}/testorders
Path parameters
Parameters | |
---|---|
merchantId |
The ID of the account that should manage the order. This cannot be a multi-client account. |
Request body
The request body contains an instance of OrdersCreateTestOrderRequest
.
Response body
If successful, the response body contains data with the following structure:
JSON representation |
---|
{ "orderId": string, "kind": string } |
Fields | |
---|---|
orderId |
The ID of the newly created test order. |
kind |
Identifies what kind of resource this is. Value: the fixed string " |
Authorization Scopes
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/content
For more information, see the OAuth 2.0 Overview.
OrdersCreateTestOrderRequest
JSON representation |
---|
{
"testOrder": {
object ( |
Fields | |
---|---|
testOrder |
The test order to create. |
templateName |
The test order template to use. Specify as an alternative to Acceptable values are:
|
country |
The CLDR territory code of the country of the test order to create. Affects the currency and addresses of orders created through Acceptable values are:
US ".
|