Method: returnpolicy.custombatch

Batches multiple return policy related calls in a single request.

HTTP request

POST https://shoppingcontent.googleapis.com/content/v2.1/returnpolicy/batch

Request body

The request body contains an instance of ReturnpolicyCustomBatchRequest.

Response body

If successful, the response body contains data with the following structure:

JSON representation
{
  "entries": [
    {
      object (ReturnpolicyCustomBatchResponseEntry)
    }
  ],
  "kind": string
}
Fields
entries[]

object (ReturnpolicyCustomBatchResponseEntry)

The result of the execution of the batch requests.

kind

string

Identifies what kind of resource this is. Value: the fixed string "content#returnpolicyCustomBatchResponse".

Authorization scopes

Requires one of the following OAuth scopes:

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

For more information, see the OAuth 2.0 Overview.

ReturnpolicyCustomBatchRequest

JSON representation
{
  "entries": [
    {
      object (ReturnpolicyCustomBatchRequestEntry)
    }
  ]
}
Fields
entries[]

object (ReturnpolicyCustomBatchRequestEntry)

The request entries to be processed in the batch.

ReturnpolicyCustomBatchRequestEntry

JSON representation
{
  "batchId": integer,
  "merchantId": string,
  "method": string,
  "returnPolicyId": string,
  "returnPolicy": {
    object (ReturnPolicy)
  }
}
Fields
batchId

integer (uint32 format)

An entry ID, unique within the batch request.

merchantId

string

The Merchant Center account ID.

method

string

Method of the batch request entry.

Acceptable values are:

  • "delete"
  • "get"
  • "insert"

returnPolicyId

string

The return policy ID. This should be set only if the method is delete or get.

returnPolicy

object (ReturnPolicy)

The return policy to submit. This should be set only if the method is insert.

ReturnpolicyCustomBatchResponseEntry

JSON representation
{
  "batchId": integer,
  "returnPolicy": {
    object (ReturnPolicy)
  },
  "errors": {
    object (Errors)
  },
  "kind": string
}
Fields
batchId

integer (uint32 format)

The ID of the request entry to which this entry responds.

returnPolicy

object (ReturnPolicy)

The retrieved return policy.

errors

object (Errors)

A list of errors defined if, and only if, the request failed.

kind

string

Identifies what kind of resource this is. Value: the fixed string "content#returnpolicyCustomBatchResponseEntry"