Page Summary
-
Retrieves and updates tax settings for multiple accounts through a single HTTP POST request.
-
The request body should contain an
AccounttaxCustomBatchRequestobject with entries for each account. -
The response includes an
AccounttaxCustomBatchResponsewith the results for each entry, including any errors. -
Requires authorization with the
https://www.googleapis.com/auth/contentscope.
- HTTP request
- Request body
- Response body
- Authorization scopes
- AccounttaxCustomBatchRequest
- AccounttaxCustomBatchRequestEntry
- AccounttaxCustomBatchResponseEntry
- Try it!
Retrieves and updates tax settings of multiple accounts in a single request.
HTTP request
POST https://shoppingcontent.googleapis.com/content/v2.1/accounttax/batch
Request body
The request body contains an instance of AccounttaxCustomBatchRequest
.
Response body
If successful, the response body contains data with the following structure:
| JSON representation |
|---|
{
"entries"
:
[
{
object (
|
| Fields | |
|---|---|
entries[]
|
The result of the execution of the batch requests. |
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 .
AccounttaxCustomBatchRequest
| JSON representation |
|---|
{
"entries"
:
[
{
object (
|
| Fields | |
|---|---|
entries[]
|
The request entries to be processed in the batch. |
AccounttaxCustomBatchRequestEntry
A batch entry encoding a single non-batch accounttax request.
| JSON representation |
|---|
{
"batchId"
:
integer
,
"merchantId"
:
string
,
"method"
:
string
,
"accountId"
:
string
,
"accountTax"
:
{
object (
|
batchId
integer ( uint32
format)
An entry ID, unique within the batch request.
merchantId
string
The ID of the managing account.
method
string
The method of the batch entry.
Acceptable values are:
- "
get" - "
update"
accountId
string
The ID of the account for which to get/update account tax settings.
accountTax
object (
AccountTax
)
The account tax settings to update. Only defined if the method is update
.
AccounttaxCustomBatchResponseEntry
A batch entry encoding a single non-batch accounttax response.
| JSON representation |
|---|
{ "batchId" : integer , "kind" : string , "accountTax" : { object ( |
| Fields | |
|---|---|
batchId
|
The ID of the request entry this entry responds to. |
kind
|
Identifies what kind of resource this is. Value: the fixed string " |
accountTax
|
The retrieved or updated account tax settings. |
errors
|
A list of errors for failed custombatch entries. |

