blob: 660161871451ba5e0a252fe648ea7360b2666076 [file] [log] [blame]
Craig Citroe633be12015-03-02 13:40:36 -08001<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13}
14
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54 margin-top: 0.5em;
55}
56
57.firstline {
58 margin-left: 2 em;
59}
60
61.method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66}
67
68.details {
69 font-weight: bold;
70 font-size: 14px;
71}
72
73</style>
74
75<h1><a href="content_v2.html">Content API for Shopping</a> . <a href="content_v2.accounttax.html">accounttax</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
Nathaniel Manista4f877e52015-06-15 16:44:50 +000078 <code><a href="#custombatch">custombatch(body, dryRun=None)</a></code></p>
Craig Citroe633be12015-03-02 13:40:36 -080079<p class="firstline">Retrieves and updates tax settings of multiple accounts in a single request.</p>
80<p class="toc_element">
81 <code><a href="#get">get(merchantId, accountId)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070082<p class="firstline">Retrieves the tax settings of the account.</p>
Craig Citroe633be12015-03-02 13:40:36 -080083<p class="toc_element">
84 <code><a href="#list">list(merchantId, pageToken=None, maxResults=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070085<p class="firstline">Lists the tax settings of the sub-accounts in your Merchant Center account.</p>
Craig Citroe633be12015-03-02 13:40:36 -080086<p class="toc_element">
87 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
88<p class="firstline">Retrieves the next page of results.</p>
89<p class="toc_element">
Nathaniel Manista4f877e52015-06-15 16:44:50 +000090 <code><a href="#patch">patch(merchantId, accountId, body, dryRun=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070091<p class="firstline">Updates the tax settings of the account. This method supports patch semantics.</p>
Craig Citroe633be12015-03-02 13:40:36 -080092<p class="toc_element">
Nathaniel Manista4f877e52015-06-15 16:44:50 +000093 <code><a href="#update">update(merchantId, accountId, body, dryRun=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070094<p class="firstline">Updates the tax settings of the account.</p>
Craig Citroe633be12015-03-02 13:40:36 -080095<h3>Method Details</h3>
96<div class="method">
Nathaniel Manista4f877e52015-06-15 16:44:50 +000097 <code class="details" id="custombatch">custombatch(body, dryRun=None)</code>
Craig Citroe633be12015-03-02 13:40:36 -080098 <pre>Retrieves and updates tax settings of multiple accounts in a single request.
99
100Args:
101 body: object, The request body. (required)
102 The object takes the form of:
103
104{
105 "entries": [ # The request entries to be processed in the batch.
106 { # A batch entry encoding a single non-batch accounttax request.
107 "batchId": 42, # An entry ID, unique within the batch request.
108 "method": "A String",
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700109 "accountTax": { # The tax settings of a merchant account. All methods require the admin role. # The account tax settings to update. Only defined if the method is update.
Craig Citroe633be12015-03-02 13:40:36 -0800110 "rules": [ # Tax rules. Updating the tax rules will enable US taxes (not reversible). Defining no rules is equivalent to not charging tax at all.
111 { # Tax calculation rule to apply in a state or province (USA only).
112 "country": "A String", # Country code in which tax is applicable.
113 "ratePercent": "A String", # Explicit tax rate in percent, represented as a floating point number without the percentage character. Must not be negative.
114 "shippingTaxed": True or False, # If true, shipping charges are also taxed.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700115 "locationId": "A String", # State (or province) is which the tax is applicable, described by its location ID (also called criteria ID).
Craig Citroe633be12015-03-02 13:40:36 -0800116 "useGlobalRate": True or False, # Whether the tax rate is taken from a global tax table or specified explicitly.
117 },
118 ],
119 "kind": "content#accountTax", # Identifies what kind of resource this is. Value: the fixed string "content#accountTax".
120 "accountId": "A String", # The ID of the account to which these account tax settings belong.
121 },
122 "merchantId": "A String", # The ID of the managing account.
123 "accountId": "A String", # The ID of the account for which to get/update account tax settings.
124 },
125 ],
126 }
127
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700128 dryRun: boolean, 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).
Craig Citroe633be12015-03-02 13:40:36 -0800129
130Returns:
131 An object of the form:
132
133 {
134 "kind": "content#accounttaxCustomBatchResponse", # Identifies what kind of resource this is. Value: the fixed string "content#accounttaxCustomBatchResponse".
135 "entries": [ # The result of the execution of the batch requests.
136 { # A batch entry encoding a single non-batch accounttax response.
137 "batchId": 42, # The ID of the request entry this entry responds to.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700138 "accountTax": { # The tax settings of a merchant account. All methods require the admin role. # The retrieved or updated account tax settings.
Craig Citroe633be12015-03-02 13:40:36 -0800139 "rules": [ # Tax rules. Updating the tax rules will enable US taxes (not reversible). Defining no rules is equivalent to not charging tax at all.
140 { # Tax calculation rule to apply in a state or province (USA only).
141 "country": "A String", # Country code in which tax is applicable.
142 "ratePercent": "A String", # Explicit tax rate in percent, represented as a floating point number without the percentage character. Must not be negative.
143 "shippingTaxed": True or False, # If true, shipping charges are also taxed.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700144 "locationId": "A String", # State (or province) is which the tax is applicable, described by its location ID (also called criteria ID).
Craig Citroe633be12015-03-02 13:40:36 -0800145 "useGlobalRate": True or False, # Whether the tax rate is taken from a global tax table or specified explicitly.
146 },
147 ],
148 "kind": "content#accountTax", # Identifies what kind of resource this is. Value: the fixed string "content#accountTax".
149 "accountId": "A String", # The ID of the account to which these account tax settings belong.
150 },
151 "errors": { # A list of errors returned by a failed batch entry. # A list of errors defined if and only if the request failed.
152 "message": "A String", # The message of the first error in errors.
153 "code": 42, # The HTTP status of the first error in errors.
154 "errors": [ # A list of errors.
155 { # An error returned by the API.
156 "reason": "A String", # The error code.
157 "domain": "A String", # The domain of the error.
158 "message": "A String", # A description of the error.
159 },
160 ],
161 },
162 "kind": "content#accounttaxCustomBatchResponseEntry", # Identifies what kind of resource this is. Value: the fixed string "content#accounttaxCustomBatchResponseEntry".
163 },
164 ],
165 }</pre>
166</div>
167
168<div class="method">
169 <code class="details" id="get">get(merchantId, accountId)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700170 <pre>Retrieves the tax settings of the account.
Craig Citroe633be12015-03-02 13:40:36 -0800171
172Args:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700173 merchantId: string, The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account and accountId must be the ID of a sub-account of this account. (required)
Craig Citroe633be12015-03-02 13:40:36 -0800174 accountId: string, The ID of the account for which to get/update account tax settings. (required)
175
176Returns:
177 An object of the form:
178
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700179 { # The tax settings of a merchant account. All methods require the admin role.
Craig Citroe633be12015-03-02 13:40:36 -0800180 "rules": [ # Tax rules. Updating the tax rules will enable US taxes (not reversible). Defining no rules is equivalent to not charging tax at all.
181 { # Tax calculation rule to apply in a state or province (USA only).
182 "country": "A String", # Country code in which tax is applicable.
183 "ratePercent": "A String", # Explicit tax rate in percent, represented as a floating point number without the percentage character. Must not be negative.
184 "shippingTaxed": True or False, # If true, shipping charges are also taxed.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700185 "locationId": "A String", # State (or province) is which the tax is applicable, described by its location ID (also called criteria ID).
Craig Citroe633be12015-03-02 13:40:36 -0800186 "useGlobalRate": True or False, # Whether the tax rate is taken from a global tax table or specified explicitly.
187 },
188 ],
189 "kind": "content#accountTax", # Identifies what kind of resource this is. Value: the fixed string "content#accountTax".
190 "accountId": "A String", # The ID of the account to which these account tax settings belong.
191 }</pre>
192</div>
193
194<div class="method">
195 <code class="details" id="list">list(merchantId, pageToken=None, maxResults=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700196 <pre>Lists the tax settings of the sub-accounts in your Merchant Center account.
Craig Citroe633be12015-03-02 13:40:36 -0800197
198Args:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700199 merchantId: string, The ID of the managing account. This must be a multi-client account. (required)
Craig Citroe633be12015-03-02 13:40:36 -0800200 pageToken: string, The token returned by the previous request.
201 maxResults: integer, The maximum number of tax settings to return in the response, used for paging.
202
203Returns:
204 An object of the form:
205
206 {
207 "nextPageToken": "A String", # The token for the retrieval of the next page of account tax settings.
208 "kind": "content#accounttaxListResponse", # Identifies what kind of resource this is. Value: the fixed string "content#accounttaxListResponse".
209 "resources": [
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700210 { # The tax settings of a merchant account. All methods require the admin role.
Craig Citroe633be12015-03-02 13:40:36 -0800211 "rules": [ # Tax rules. Updating the tax rules will enable US taxes (not reversible). Defining no rules is equivalent to not charging tax at all.
212 { # Tax calculation rule to apply in a state or province (USA only).
213 "country": "A String", # Country code in which tax is applicable.
214 "ratePercent": "A String", # Explicit tax rate in percent, represented as a floating point number without the percentage character. Must not be negative.
215 "shippingTaxed": True or False, # If true, shipping charges are also taxed.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700216 "locationId": "A String", # State (or province) is which the tax is applicable, described by its location ID (also called criteria ID).
Craig Citroe633be12015-03-02 13:40:36 -0800217 "useGlobalRate": True or False, # Whether the tax rate is taken from a global tax table or specified explicitly.
218 },
219 ],
220 "kind": "content#accountTax", # Identifies what kind of resource this is. Value: the fixed string "content#accountTax".
221 "accountId": "A String", # The ID of the account to which these account tax settings belong.
222 },
223 ],
224 }</pre>
225</div>
226
227<div class="method">
228 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
229 <pre>Retrieves the next page of results.
230
231Args:
232 previous_request: The request for the previous page. (required)
233 previous_response: The response from the request for the previous page. (required)
234
235Returns:
236 A request object that you can call 'execute()' on to request the next
237 page. Returns None if there are no more items in the collection.
238 </pre>
239</div>
240
241<div class="method">
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000242 <code class="details" id="patch">patch(merchantId, accountId, body, dryRun=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700243 <pre>Updates the tax settings of the account. This method supports patch semantics.
Craig Citroe633be12015-03-02 13:40:36 -0800244
245Args:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700246 merchantId: string, The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account and accountId must be the ID of a sub-account of this account. (required)
Craig Citroe633be12015-03-02 13:40:36 -0800247 accountId: string, The ID of the account for which to get/update account tax settings. (required)
248 body: object, The request body. (required)
249 The object takes the form of:
250
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700251{ # The tax settings of a merchant account. All methods require the admin role.
Craig Citroe633be12015-03-02 13:40:36 -0800252 "rules": [ # Tax rules. Updating the tax rules will enable US taxes (not reversible). Defining no rules is equivalent to not charging tax at all.
253 { # Tax calculation rule to apply in a state or province (USA only).
254 "country": "A String", # Country code in which tax is applicable.
255 "ratePercent": "A String", # Explicit tax rate in percent, represented as a floating point number without the percentage character. Must not be negative.
256 "shippingTaxed": True or False, # If true, shipping charges are also taxed.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700257 "locationId": "A String", # State (or province) is which the tax is applicable, described by its location ID (also called criteria ID).
Craig Citroe633be12015-03-02 13:40:36 -0800258 "useGlobalRate": True or False, # Whether the tax rate is taken from a global tax table or specified explicitly.
259 },
260 ],
261 "kind": "content#accountTax", # Identifies what kind of resource this is. Value: the fixed string "content#accountTax".
262 "accountId": "A String", # The ID of the account to which these account tax settings belong.
263}
264
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700265 dryRun: boolean, 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).
Craig Citroe633be12015-03-02 13:40:36 -0800266
267Returns:
268 An object of the form:
269
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700270 { # The tax settings of a merchant account. All methods require the admin role.
Craig Citroe633be12015-03-02 13:40:36 -0800271 "rules": [ # Tax rules. Updating the tax rules will enable US taxes (not reversible). Defining no rules is equivalent to not charging tax at all.
272 { # Tax calculation rule to apply in a state or province (USA only).
273 "country": "A String", # Country code in which tax is applicable.
274 "ratePercent": "A String", # Explicit tax rate in percent, represented as a floating point number without the percentage character. Must not be negative.
275 "shippingTaxed": True or False, # If true, shipping charges are also taxed.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700276 "locationId": "A String", # State (or province) is which the tax is applicable, described by its location ID (also called criteria ID).
Craig Citroe633be12015-03-02 13:40:36 -0800277 "useGlobalRate": True or False, # Whether the tax rate is taken from a global tax table or specified explicitly.
278 },
279 ],
280 "kind": "content#accountTax", # Identifies what kind of resource this is. Value: the fixed string "content#accountTax".
281 "accountId": "A String", # The ID of the account to which these account tax settings belong.
282 }</pre>
283</div>
284
285<div class="method">
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000286 <code class="details" id="update">update(merchantId, accountId, body, dryRun=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700287 <pre>Updates the tax settings of the account.
Craig Citroe633be12015-03-02 13:40:36 -0800288
289Args:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700290 merchantId: string, The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account and accountId must be the ID of a sub-account of this account. (required)
Craig Citroe633be12015-03-02 13:40:36 -0800291 accountId: string, The ID of the account for which to get/update account tax settings. (required)
292 body: object, The request body. (required)
293 The object takes the form of:
294
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700295{ # The tax settings of a merchant account. All methods require the admin role.
Craig Citroe633be12015-03-02 13:40:36 -0800296 "rules": [ # Tax rules. Updating the tax rules will enable US taxes (not reversible). Defining no rules is equivalent to not charging tax at all.
297 { # Tax calculation rule to apply in a state or province (USA only).
298 "country": "A String", # Country code in which tax is applicable.
299 "ratePercent": "A String", # Explicit tax rate in percent, represented as a floating point number without the percentage character. Must not be negative.
300 "shippingTaxed": True or False, # If true, shipping charges are also taxed.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700301 "locationId": "A String", # State (or province) is which the tax is applicable, described by its location ID (also called criteria ID).
Craig Citroe633be12015-03-02 13:40:36 -0800302 "useGlobalRate": True or False, # Whether the tax rate is taken from a global tax table or specified explicitly.
303 },
304 ],
305 "kind": "content#accountTax", # Identifies what kind of resource this is. Value: the fixed string "content#accountTax".
306 "accountId": "A String", # The ID of the account to which these account tax settings belong.
307}
308
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700309 dryRun: boolean, 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).
Craig Citroe633be12015-03-02 13:40:36 -0800310
311Returns:
312 An object of the form:
313
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700314 { # The tax settings of a merchant account. All methods require the admin role.
Craig Citroe633be12015-03-02 13:40:36 -0800315 "rules": [ # Tax rules. Updating the tax rules will enable US taxes (not reversible). Defining no rules is equivalent to not charging tax at all.
316 { # Tax calculation rule to apply in a state or province (USA only).
317 "country": "A String", # Country code in which tax is applicable.
318 "ratePercent": "A String", # Explicit tax rate in percent, represented as a floating point number without the percentage character. Must not be negative.
319 "shippingTaxed": True or False, # If true, shipping charges are also taxed.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700320 "locationId": "A String", # State (or province) is which the tax is applicable, described by its location ID (also called criteria ID).
Craig Citroe633be12015-03-02 13:40:36 -0800321 "useGlobalRate": True or False, # Whether the tax rate is taken from a global tax table or specified explicitly.
322 },
323 ],
324 "kind": "content#accountTax", # Identifies what kind of resource this is. Value: the fixed string "content#accountTax".
325 "accountId": "A String", # The ID of the account to which these account tax settings belong.
326 }</pre>
327</div>
328
329</body></html>