content.accounttax.custombatch
POST {{baseUrl}}/content/v2/accounttax/batch?dryRun=<boolean>&$.xgafv=<string>&access_token=<string>&alt=<string>&callback=<string>&fields=<string>&key=<string>&oauth_token=<string>&prettyPrint=<boolean>"aUser=<string>&upload_protocol=<string>&uploadType=<string>
Retrieves and updates tax settings of multiple accounts in a single request.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
dryRun | string | Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the validity of the request and returns errors (if any). | |
$.xgafv | string | V1 error format. | |
access_token | string | OAuth access token. | |
alt | string | Data format for response. | |
callback | string | JSONP | |
fields | string | Selector specifying which fields to include in a partial response. | |
key | string | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. | |
oauth_token | string | OAuth 2.0 token for the current user. | |
prettyPrint | string | Returns response with indentations and line breaks. | |
quotaUser | string | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. | |
upload_protocol | string | Upload protocol for media (e.g. "raw", "multipart"). | |
uploadType | string | Legacy upload protocol for media (e.g. "media", "multipart"). |
Request Body
{"entries"=>[{"accountId"=>"<uint64>", "accountTax"=>{"accountId"=>"<uint64>", "kind"=>"<string>", "rules"=>[{"country"=>"<string>", "locationId"=>"<uint64>", "ratePercent"=>"<string>", "shippingTaxed"=>"<boolean>", "useGlobalRate"=>"<boolean>"}, {"country"=>"<string>", "locationId"=>"<uint64>", "ratePercent"=>"<string>", "shippingTaxed"=>"<boolean>", "useGlobalRate"=>"<boolean>"}]}, "batchId"=>"<uint32>", "merchantId"=>"<uint64>", "method"=>"<string>"}, {"accountId"=>"<uint64>", "accountTax"=>{"accountId"=>"<uint64>", "kind"=>"<string>", "rules"=>[{"country"=>"<string>", "locationId"=>"<uint64>", "ratePercent"=>"<string>", "shippingTaxed"=>"<boolean>", "useGlobalRate"=>"<boolean>"}, {"country"=>"<string>", "locationId"=>"<uint64>", "ratePercent"=>"<string>", "shippingTaxed"=>"<boolean>", "useGlobalRate"=>"<boolean>"}]}, "batchId"=>"<uint32>", "merchantId"=>"<uint64>", "method"=>"<string>"}]}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string |
RESPONSES
status: OK
{"entries":[{"accountTax":{"accountId":"\u003cuint64\u003e","kind":"\u003cstring\u003e","rules":[{"country":"\u003cstring\u003e","locationId":"\u003cuint64\u003e","ratePercent":"\u003cstring\u003e","shippingTaxed":"\u003cboolean\u003e","useGlobalRate":"\u003cboolean\u003e"},{"country":"\u003cstring\u003e","locationId":"\u003cuint64\u003e","ratePercent":"\u003cstring\u003e","shippingTaxed":"\u003cboolean\u003e","useGlobalRate":"\u003cboolean\u003e"}]},"batchId":-89623471,"errors":{"code":-2842375,"errors":[{"domain":"dolor","message":"nisi in Duis ad","reason":"Lorem aliqua "},{"domain":"qui ipsum","message":"eu reprehenderit sed officia ad","reason":"qui consequat ipsum in"}],"message":"cillum "},"kind":"ipsum"},{"accountTax":{"accountId":"\u003cuint64\u003e","kind":"\u003cstring\u003e","rules":[{"country":"\u003cstring\u003e","locationId":"\u003cuint64\u003e","ratePercent":"\u003cstring\u003e","shippingTaxed":"\u003cboolean\u003e","useGlobalRate":"\u003cboolean\u003e"},{"country":"\u003cstring\u003e","locationId":"\u003cuint64\u003e","ratePercent":"\u003cstring\u003e","shippingTaxed":"\u003cboolean\u003e","useGlobalRate":"\u003cboolean\u003e"}]},"batchId":54132587,"errors":{"code":96654449,"errors":[{"domain":"ad","message":"enim fugiat aliqua sed","reason":"ut laboris nulla ut"},{"domain":"elit aliqua","message":"sit","reason":"in culpa ut"}],"message":"cillum minim irure"},"kind":"reprehenderit irure incididunt sed"}],"kind":"irure fugiat Ut"}