blob: a99ed2c6d2656a640d1f8f4289ceb348f1fbac6c [file] [log] [blame]
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001<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_1.html">Content API for Shopping</a> . <a href="content_v2_1.orders.html">orders</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070078 <code><a href="#acknowledge">acknowledge(merchantId, orderId, body=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070079<p class="firstline">Marks an order as acknowledged.</p>
80<p class="toc_element">
81 <code><a href="#advancetestorder">advancetestorder(merchantId, orderId)</a></code></p>
Dan O'Mearadd494642020-05-01 07:42:23 -070082<p class="firstline">Sandbox only. Moves a test order from state "`inProgress`" to state "`pendingShipment`".</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070083<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070084 <code><a href="#cancel">cancel(merchantId, orderId, body=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070085<p class="firstline">Cancels all line items in an order, making a full refund.</p>
86<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070087 <code><a href="#cancellineitem">cancellineitem(merchantId, orderId, body=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070088<p class="firstline">Cancels a line item, making a full refund.</p>
89<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070090 <code><a href="#canceltestorderbycustomer">canceltestorderbycustomer(merchantId, orderId, body=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070091<p class="firstline">Sandbox only. Cancels a test order for customer-initiated cancellation.</p>
92<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070093 <code><a href="#createtestorder">createtestorder(merchantId, body=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070094<p class="firstline">Sandbox only. Creates a test order.</p>
95<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070096 <code><a href="#createtestreturn">createtestreturn(merchantId, orderId, body=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070097<p class="firstline">Sandbox only. Creates a test return.</p>
98<p class="toc_element">
99 <code><a href="#get">get(merchantId, orderId)</a></code></p>
100<p class="firstline">Retrieves an order from your Merchant Center account.</p>
101<p class="toc_element">
102 <code><a href="#getbymerchantorderid">getbymerchantorderid(merchantId, merchantOrderId)</a></code></p>
103<p class="firstline">Retrieves an order using merchant order ID.</p>
104<p class="toc_element">
105 <code><a href="#gettestordertemplate">gettestordertemplate(merchantId, templateName, country=None)</a></code></p>
106<p class="firstline">Sandbox only. Retrieves an order template that can be used to quickly create a new order in sandbox.</p>
107<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700108 <code><a href="#instorerefundlineitem">instorerefundlineitem(merchantId, orderId, body=None)</a></code></p>
109<p class="firstline">Deprecated. Notifies that item return and refund was handled directly by merchant outside of Google payments processing (e.g. cash refund done in store).</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700110<p class="toc_element">
Bu Sun Kim65020912020-05-20 12:08:20 -0700111 <code><a href="#list">list(merchantId, acknowledged=None, maxResults=None, orderBy=None, pageToken=None, placedDateEnd=None, placedDateStart=None, statuses=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700112<p class="firstline">Lists the orders in your Merchant Center account.</p>
113<p class="toc_element">
114 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
115<p class="firstline">Retrieves the next page of results.</p>
116<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700117 <code><a href="#rejectreturnlineitem">rejectreturnlineitem(merchantId, orderId, body=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700118<p class="firstline">Rejects return on an line item.</p>
119<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700120 <code><a href="#returnrefundlineitem">returnrefundlineitem(merchantId, orderId, body=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700121<p class="firstline">Returns and refunds a line item. Note that this method can only be called on fully shipped orders.</p>
122<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700123 <code><a href="#setlineitemmetadata">setlineitemmetadata(merchantId, orderId, body=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700124<p class="firstline">Sets (or overrides if it already exists) merchant provided annotations in the form of key-value pairs. A common use case would be to supply us with additional structured information about a line item that cannot be provided via other methods. Submitted key-value pairs can be retrieved as part of the orders resource.</p>
125<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700126 <code><a href="#shiplineitems">shiplineitems(merchantId, orderId, body=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700127<p class="firstline">Marks line item(s) as shipped.</p>
128<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700129 <code><a href="#updatelineitemshippingdetails">updatelineitemshippingdetails(merchantId, orderId, body=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700130<p class="firstline">Updates ship by and delivery by dates for a line item.</p>
131<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700132 <code><a href="#updatemerchantorderid">updatemerchantorderid(merchantId, orderId, body=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700133<p class="firstline">Updates the merchant order ID for a given order.</p>
134<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700135 <code><a href="#updateshipment">updateshipment(merchantId, orderId, body=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700136<p class="firstline">Updates a shipment's status, carrier, and/or tracking ID.</p>
137<h3>Method Details</h3>
138<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700139 <code class="details" id="acknowledge">acknowledge(merchantId, orderId, body=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700140 <pre>Marks an order as acknowledged.
141
142Args:
143 merchantId: string, The ID of the account that manages the order. This cannot be a multi-client account. (required)
144 orderId: string, The ID of the order. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700145 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700146 The object takes the form of:
147
148{
Bu Sun Kim65020912020-05-20 12:08:20 -0700149 &quot;operationId&quot;: &quot;A String&quot;, # The ID of the operation. Unique across all operations for a given order.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700150 }
151
152
153Returns:
154 An object of the form:
155
156 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700157 &quot;executionStatus&quot;: &quot;A String&quot;, # The status of the execution.
Dan O'Mearadd494642020-05-01 07:42:23 -0700158 #
159 # Acceptable values are:
Bu Sun Kim65020912020-05-20 12:08:20 -0700160 # - &quot;`duplicate`&quot;
161 # - &quot;`executed`&quot;
162 &quot;kind&quot;: &quot;content#ordersAcknowledgeResponse&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;content#ordersAcknowledgeResponse&quot;.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700163 }</pre>
164</div>
165
166<div class="method">
167 <code class="details" id="advancetestorder">advancetestorder(merchantId, orderId)</code>
Bu Sun Kim65020912020-05-20 12:08:20 -0700168 <pre>Sandbox only. Moves a test order from state &quot;`inProgress`&quot; to state &quot;`pendingShipment`&quot;.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700169
170Args:
171 merchantId: string, The ID of the account that manages the order. This cannot be a multi-client account. (required)
172 orderId: string, The ID of the test order to modify. (required)
173
174Returns:
175 An object of the form:
176
177 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700178 &quot;kind&quot;: &quot;content#ordersAdvanceTestOrderResponse&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;content#ordersAdvanceTestOrderResponse&quot;.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700179 }</pre>
180</div>
181
182<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700183 <code class="details" id="cancel">cancel(merchantId, orderId, body=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700184 <pre>Cancels all line items in an order, making a full refund.
185
186Args:
187 merchantId: string, The ID of the account that manages the order. This cannot be a multi-client account. (required)
188 orderId: string, The ID of the order to cancel. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700189 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700190 The object takes the form of:
191
192{
Bu Sun Kim65020912020-05-20 12:08:20 -0700193 &quot;operationId&quot;: &quot;A String&quot;, # The ID of the operation. Unique across all operations for a given order.
194 &quot;reason&quot;: &quot;A String&quot;, # The reason for the cancellation.
Dan O'Mearadd494642020-05-01 07:42:23 -0700195 #
196 # Acceptable values are:
Bu Sun Kim65020912020-05-20 12:08:20 -0700197 # - &quot;`customerInitiatedCancel`&quot;
198 # - &quot;`invalidCoupon`&quot;
199 # - &quot;`malformedShippingAddress`&quot;
200 # - &quot;`noInventory`&quot;
201 # - &quot;`other`&quot;
202 # - &quot;`priceError`&quot;
203 # - &quot;`shippingPriceError`&quot;
204 # - &quot;`taxError`&quot;
205 # - &quot;`undeliverableShippingAddress`&quot;
206 # - &quot;`unsupportedPoBoxAddress`&quot;
207 &quot;reasonText&quot;: &quot;A String&quot;, # The explanation of the reason.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700208 }
209
210
211Returns:
212 An object of the form:
213
214 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700215 &quot;executionStatus&quot;: &quot;A String&quot;, # The status of the execution.
Dan O'Mearadd494642020-05-01 07:42:23 -0700216 #
217 # Acceptable values are:
Bu Sun Kim65020912020-05-20 12:08:20 -0700218 # - &quot;`duplicate`&quot;
219 # - &quot;`executed`&quot;
220 &quot;kind&quot;: &quot;content#ordersCancelResponse&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;content#ordersCancelResponse&quot;.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700221 }</pre>
222</div>
223
224<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700225 <code class="details" id="cancellineitem">cancellineitem(merchantId, orderId, body=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700226 <pre>Cancels a line item, making a full refund.
227
228Args:
229 merchantId: string, The ID of the account that manages the order. This cannot be a multi-client account. (required)
230 orderId: string, The ID of the order. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700231 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700232 The object takes the form of:
233
234{
Bu Sun Kim65020912020-05-20 12:08:20 -0700235 &quot;lineItemId&quot;: &quot;A String&quot;, # The ID of the line item to cancel. Either lineItemId or productId is required.
236 &quot;operationId&quot;: &quot;A String&quot;, # The ID of the operation. Unique across all operations for a given order.
237 &quot;productId&quot;: &quot;A String&quot;, # The ID of the product to cancel. This is the REST ID used in the products service. Either lineItemId or productId is required.
238 &quot;quantity&quot;: 42, # The quantity to cancel.
239 &quot;reason&quot;: &quot;A String&quot;, # The reason for the cancellation.
Dan O'Mearadd494642020-05-01 07:42:23 -0700240 #
241 # Acceptable values are:
Bu Sun Kim65020912020-05-20 12:08:20 -0700242 # - &quot;`customerInitiatedCancel`&quot;
243 # - &quot;`invalidCoupon`&quot;
244 # - &quot;`malformedShippingAddress`&quot;
245 # - &quot;`noInventory`&quot;
246 # - &quot;`other`&quot;
247 # - &quot;`priceError`&quot;
248 # - &quot;`shippingPriceError`&quot;
249 # - &quot;`taxError`&quot;
250 # - &quot;`undeliverableShippingAddress`&quot;
251 # - &quot;`unsupportedPoBoxAddress`&quot;
252 &quot;reasonText&quot;: &quot;A String&quot;, # The explanation of the reason.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700253 }
254
255
256Returns:
257 An object of the form:
258
259 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700260 &quot;executionStatus&quot;: &quot;A String&quot;, # The status of the execution.
Dan O'Mearadd494642020-05-01 07:42:23 -0700261 #
262 # Acceptable values are:
Bu Sun Kim65020912020-05-20 12:08:20 -0700263 # - &quot;`duplicate`&quot;
264 # - &quot;`executed`&quot;
265 &quot;kind&quot;: &quot;content#ordersCancelLineItemResponse&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;content#ordersCancelLineItemResponse&quot;.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700266 }</pre>
267</div>
268
269<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700270 <code class="details" id="canceltestorderbycustomer">canceltestorderbycustomer(merchantId, orderId, body=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700271 <pre>Sandbox only. Cancels a test order for customer-initiated cancellation.
272
273Args:
274 merchantId: string, The ID of the account that manages the order. This cannot be a multi-client account. (required)
275 orderId: string, The ID of the test order to cancel. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700276 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700277 The object takes the form of:
278
279{
Bu Sun Kim65020912020-05-20 12:08:20 -0700280 &quot;reason&quot;: &quot;A String&quot;, # The reason for the cancellation.
Dan O'Mearadd494642020-05-01 07:42:23 -0700281 #
282 # Acceptable values are:
Bu Sun Kim65020912020-05-20 12:08:20 -0700283 # - &quot;`changedMind`&quot;
284 # - &quot;`orderedWrongItem`&quot;
285 # - &quot;`other`&quot;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700286 }
287
288
289Returns:
290 An object of the form:
291
292 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700293 &quot;kind&quot;: &quot;content#ordersCancelTestOrderByCustomerResponse&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;content#ordersCancelTestOrderByCustomerResponse&quot;.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700294 }</pre>
295</div>
296
297<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700298 <code class="details" id="createtestorder">createtestorder(merchantId, body=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700299 <pre>Sandbox only. Creates a test order.
300
301Args:
302 merchantId: string, The ID of the account that should manage the order. This cannot be a multi-client account. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700303 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700304 The object takes the form of:
305
306{
Bu Sun Kim65020912020-05-20 12:08:20 -0700307 &quot;country&quot;: &quot;A String&quot;, # The CLDR territory code of the country of the test order to create. Affects the currency and addresses of orders created via `template_name`, or the addresses of orders created via `test_order`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700308 #
309 # Acceptable values are:
Bu Sun Kim65020912020-05-20 12:08:20 -0700310 # - &quot;`US`&quot;
311 # - &quot;`FR`&quot; Defaults to `US`.
312 &quot;templateName&quot;: &quot;A String&quot;, # The test order template to use. Specify as an alternative to `testOrder` as a shortcut for retrieving a template and then creating an order using that template.
313 #
314 # Acceptable values are:
315 # - &quot;`template1`&quot;
316 # - &quot;`template1a`&quot;
317 # - &quot;`template1b`&quot;
318 # - &quot;`template2`&quot;
319 # - &quot;`template3`&quot;
320 &quot;testOrder&quot;: { # The test order to create.
321 &quot;enableOrderinvoices&quot;: True or False, # Whether the orderinvoices service should support this order.
322 &quot;kind&quot;: &quot;content#testOrder&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#testOrder`&quot;
323 &quot;lineItems&quot;: [ # Required. Line items that are ordered. At least one line item must be provided.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700324 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700325 &quot;product&quot;: { # Required. Product data from the time of the order placement.
326 &quot;brand&quot;: &quot;A String&quot;, # Required. Brand of the item.
327 &quot;condition&quot;: &quot;A String&quot;, # Required. Condition or state of the item.
Dan O'Mearadd494642020-05-01 07:42:23 -0700328 #
329 # Acceptable values are:
Bu Sun Kim65020912020-05-20 12:08:20 -0700330 # - &quot;`new`&quot;
331 &quot;contentLanguage&quot;: &quot;A String&quot;, # Required. The two-letter ISO 639-1 language code for the item.
332 #
333 # Acceptable values are:
334 # - &quot;`en`&quot;
335 # - &quot;`fr`&quot;
336 &quot;fees&quot;: [ # Fees for the item. Optional.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700337 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700338 &quot;amount&quot;: { # Amount of the fee.
339 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
340 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700341 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700342 &quot;name&quot;: &quot;A String&quot;, # Name of the fee.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700343 },
344 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700345 &quot;gtin&quot;: &quot;A String&quot;, # Global Trade Item Number (GTIN) of the item. Optional.
346 &quot;imageLink&quot;: &quot;A String&quot;, # Required. URL of an image of the item.
347 &quot;itemGroupId&quot;: &quot;A String&quot;, # Shared identifier for all variants of the same product. Optional.
348 &quot;mpn&quot;: &quot;A String&quot;, # Manufacturer Part Number (MPN) of the item. Optional.
349 &quot;offerId&quot;: &quot;A String&quot;, # Required. An identifier of the item.
350 &quot;price&quot;: { # Required. The price for the product. Tax is automatically calculated for orders where marketplace facilitator tax laws are applicable. Otherwise, tax settings from Merchant Center are applied.
351 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
352 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700353 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700354 &quot;targetCountry&quot;: &quot;A String&quot;, # Required. The CLDR territory code of the target country of the product.
355 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the product.
356 &quot;variantAttributes&quot;: [ # Variant attributes for the item. Optional.
357 {
358 &quot;dimension&quot;: &quot;A String&quot;, # The dimension of the variant.
359 &quot;value&quot;: &quot;A String&quot;, # The value for the dimension.
360 },
361 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700362 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700363 &quot;quantityOrdered&quot;: 42, # Required. Number of items ordered.
364 &quot;returnInfo&quot;: { # Required. Details of the return policy for the line item.
365 &quot;daysToReturn&quot;: 42, # Required. How many days later the item can be returned.
366 &quot;isReturnable&quot;: True or False, # Required. Whether the item is returnable.
367 &quot;policyUrl&quot;: &quot;A String&quot;, # Required. URL of the item return policy.
368 },
369 &quot;shippingDetails&quot;: { # Required. Details of the requested shipping for the line item.
370 &quot;deliverByDate&quot;: &quot;A String&quot;, # Required. The delivery by date, in ISO 8601 format.
371 &quot;method&quot;: { # Required. Details of the shipping method.
372 &quot;carrier&quot;: &quot;A String&quot;, # The carrier for the shipping. Optional. See `shipments[].carrier` for a list of acceptable values.
373 &quot;maxDaysInTransit&quot;: 42, # Required. Maximum transit time.
374 &quot;methodName&quot;: &quot;A String&quot;, # Required. The name of the shipping method.
375 &quot;minDaysInTransit&quot;: 42, # Required. Minimum transit time.
376 },
377 &quot;shipByDate&quot;: &quot;A String&quot;, # Required. The ship by date, in ISO 8601 format.
378 &quot;type&quot;: &quot;A String&quot;, # Type of shipment. Indicates whether `deliveryDetails` or `pickupDetails` is applicable for this shipment.
Dan O'Mearadd494642020-05-01 07:42:23 -0700379 #
380 # Acceptable values are:
Bu Sun Kim65020912020-05-20 12:08:20 -0700381 # - &quot;`delivery`&quot;
382 # - &quot;`pickup`&quot;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700383 },
384 },
385 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700386 &quot;notificationMode&quot;: &quot;A String&quot;, # Restricted. Do not use.
387 &quot;predefinedBillingAddress&quot;: &quot;A String&quot;, # Required. The billing address.
Dan O'Mearadd494642020-05-01 07:42:23 -0700388 #
389 # Acceptable values are:
Bu Sun Kim65020912020-05-20 12:08:20 -0700390 # - &quot;`dwight`&quot;
391 # - &quot;`jim`&quot;
392 # - &quot;`pam`&quot;
393 &quot;predefinedDeliveryAddress&quot;: &quot;A String&quot;, # Required. Identifier of one of the predefined delivery addresses for the delivery.
Dan O'Mearadd494642020-05-01 07:42:23 -0700394 #
395 # Acceptable values are:
Bu Sun Kim65020912020-05-20 12:08:20 -0700396 # - &quot;`dwight`&quot;
397 # - &quot;`jim`&quot;
398 # - &quot;`pam`&quot;
399 &quot;predefinedEmail&quot;: &quot;A String&quot;, # Required. Email address of the customer.
400 #
401 # Acceptable values are:
402 # - &quot;`pog.dwight.schrute@gmail.com`&quot;
403 # - &quot;`pog.jim.halpert@gmail.com`&quot;
404 # - &quot;`penpog.pam.beesly@gmail.comding`&quot;
405 &quot;predefinedPickupDetails&quot;: &quot;A String&quot;, # Identifier of one of the predefined pickup details. Required for orders containing line items with shipping type `pickup`.
406 #
407 # Acceptable values are:
408 # - &quot;`dwight`&quot;
409 # - &quot;`jim`&quot;
410 # - &quot;`pam`&quot;
411 &quot;promotions&quot;: [ # Promotions associated with the order.
412 {
413 &quot;applicableItems&quot;: [ # Items which this promotion may be applied to. If empty, there are no restrictions on applicable items and quantity.
414 {
415 &quot;lineItemId&quot;: &quot;A String&quot;, # The line item ID of a product. Do not provide for `orders.createtestorder`.
416 &quot;offerId&quot;: &quot;A String&quot;, # Required. Offer ID of a product. Only for `orders.createtestorder`.
417 &quot;productId&quot;: &quot;A String&quot;, # `orders.createtestorder`.
418 &quot;quantity&quot;: 42, # The quantity of the associated product. Do not provide for `orders.createtestorder`.
419 },
420 ],
421 &quot;appliedItems&quot;: [ # Items which this promotion have been applied to. Do not provide for `orders.createtestorder`.
422 {
423 &quot;lineItemId&quot;: &quot;A String&quot;, # The line item ID of a product. Do not provide for `orders.createtestorder`.
424 &quot;offerId&quot;: &quot;A String&quot;, # Required. Offer ID of a product. Only for `orders.createtestorder`.
425 &quot;productId&quot;: &quot;A String&quot;, # `orders.createtestorder`.
426 &quot;quantity&quot;: 42, # The quantity of the associated product. Do not provide for `orders.createtestorder`.
427 },
428 ],
429 &quot;endTime&quot;: &quot;A String&quot;, # Promotion end time in ISO 8601 format. Date, time, and offset required, e.g., &quot;2020-01-02T09:00:00+01:00&quot; or &quot;2020-01-02T09:00:00Z&quot;.
430 &quot;funder&quot;: &quot;A String&quot;, # Required. The party funding the promotion. Only `merchant` is supported for `orders.createtestorder`.
431 #
432 # Acceptable values are:
433 # - &quot;`google`&quot;
434 # - &quot;`merchant`&quot;
435 &quot;merchantPromotionId&quot;: &quot;A String&quot;, # Required. This field is used to identify promotions within merchants&#x27; own systems.
436 &quot;priceValue&quot;: { # Estimated discount applied to price. Amount is pre-tax or post-tax depending on location of order.
437 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
438 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
439 },
440 &quot;shortTitle&quot;: &quot;A String&quot;, # A short title of the promotion to be shown on the checkout page. Do not provide for `orders.createtestorder`.
441 &quot;startTime&quot;: &quot;A String&quot;, # Promotion start time in ISO 8601 format. Date, time, and offset required, e.g., &quot;2020-01-02T09:00:00+01:00&quot; or &quot;2020-01-02T09:00:00Z&quot;.
442 &quot;subtype&quot;: &quot;A String&quot;, # Required. The category of the promotion. Only `moneyOff` is supported for `orders.createtestorder`.
443 #
444 # Acceptable values are:
445 # - &quot;`buyMGetMoneyOff`&quot;
446 # - &quot;`buyMGetNMoneyOff`&quot;
447 # - &quot;`buyMGetNPercentOff`&quot;
448 # - &quot;`buyMGetPercentOff`&quot;
449 # - &quot;`freeGift`&quot;
450 # - &quot;`freeGiftWithItemId`&quot;
451 # - &quot;`freeGiftWithValue`&quot;
452 # - &quot;`freeShippingOvernight`&quot;
453 # - &quot;`freeShippingStandard`&quot;
454 # - &quot;`freeShippingTwoDay`&quot;
455 # - &quot;`moneyOff`&quot;
456 # - &quot;`percentOff`&quot;
457 # - &quot;`rewardPoints`&quot;
458 # - &quot;`salePrice`&quot;
459 &quot;taxValue&quot;: { # Estimated discount applied to tax (if allowed by law). Do not provide for `orders.createtestorder`.
460 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
461 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
462 },
463 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the promotion.
464 &quot;type&quot;: &quot;A String&quot;, # Required. The scope of the promotion. Only `product` is supported for `orders.createtestorder`.
465 #
466 # Acceptable values are:
467 # - &quot;`product`&quot;
468 # - &quot;`shipping`&quot;
469 },
470 ],
471 &quot;shippingCost&quot;: { # Required. The price of shipping for all items. Shipping tax is automatically calculated for orders where marketplace facilitator tax laws are applicable. Otherwise, tax settings from Merchant Center are applied. Note that shipping is not taxed in certain states.
472 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
473 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
474 },
475 &quot;shippingOption&quot;: &quot;A String&quot;, # Required. The requested shipping option.
476 #
477 # Acceptable values are:
478 # - &quot;`economy`&quot;
479 # - &quot;`expedited`&quot;
480 # - &quot;`oneDay`&quot;
481 # - &quot;`sameDay`&quot;
482 # - &quot;`standard`&quot;
483 # - &quot;`twoDay`&quot;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700484 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700485 }
486
487
488Returns:
489 An object of the form:
490
491 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700492 &quot;kind&quot;: &quot;content#ordersCreateTestOrderResponse&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;content#ordersCreateTestOrderResponse&quot;.
493 &quot;orderId&quot;: &quot;A String&quot;, # The ID of the newly created test order.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700494 }</pre>
495</div>
496
497<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700498 <code class="details" id="createtestreturn">createtestreturn(merchantId, orderId, body=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700499 <pre>Sandbox only. Creates a test return.
500
501Args:
502 merchantId: string, The ID of the account that manages the order. This cannot be a multi-client account. (required)
503 orderId: string, The ID of the order. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700504 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700505 The object takes the form of:
506
507{
Bu Sun Kim65020912020-05-20 12:08:20 -0700508 &quot;items&quot;: [ # Returned items.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700509 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700510 &quot;lineItemId&quot;: &quot;A String&quot;, # The ID of the line item to return.
511 &quot;quantity&quot;: 42, # Quantity that is returned.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700512 },
513 ],
514 }
515
516
517Returns:
518 An object of the form:
519
520 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700521 &quot;kind&quot;: &quot;content#ordersCreateTestReturnResponse&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;content#ordersCreateTestReturnResponse&quot;.
522 &quot;returnId&quot;: &quot;A String&quot;, # The ID of the newly created test order return.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700523 }</pre>
524</div>
525
526<div class="method">
527 <code class="details" id="get">get(merchantId, orderId)</code>
528 <pre>Retrieves an order from your Merchant Center account.
529
530Args:
531 merchantId: string, The ID of the account that manages the order. This cannot be a multi-client account. (required)
532 orderId: string, The ID of the order. (required)
533
534Returns:
535 An object of the form:
536
Dan O'Mearadd494642020-05-01 07:42:23 -0700537 { # Order. Production access (all methods) requires the order manager role. Sandbox access does not. (== resource_for v2.orders ==) (== resource_for v2.1.orders ==)
Bu Sun Kim65020912020-05-20 12:08:20 -0700538 &quot;acknowledged&quot;: True or False, # Whether the order was acknowledged.
539 &quot;billingAddress&quot;: { # The billing address.
540 &quot;country&quot;: &quot;A String&quot;, # CLDR country code (e.g. &quot;US&quot;).
541 &quot;fullAddress&quot;: [ # Strings representing the lines of the printed label for mailing the order, for example:
542 # John Smith
543 # 1600 Amphitheatre Parkway
544 # Mountain View, CA, 94043
545 # United States
546 &quot;A String&quot;,
547 ],
548 &quot;isPostOfficeBox&quot;: True or False, # Whether the address is a post office box.
549 &quot;locality&quot;: &quot;A String&quot;, # City, town or commune. May also include dependent localities or sublocalities (e.g. neighborhoods or suburbs).
550 &quot;postalCode&quot;: &quot;A String&quot;, # Postal Code or ZIP (e.g. &quot;94043&quot;).
551 &quot;recipientName&quot;: &quot;A String&quot;, # Name of the recipient.
552 &quot;region&quot;: &quot;A String&quot;, # Top-level administrative subdivision of the country. For example, a state like California (&quot;CA&quot;) or a province like Quebec (&quot;QC&quot;).
553 &quot;streetAddress&quot;: [ # Street-level part of the address.
554 &quot;A String&quot;,
555 ],
556 },
557 &quot;customer&quot;: { # The details of the customer who placed the order.
558 &quot;fullName&quot;: &quot;A String&quot;, # Full name of the customer.
559 &quot;invoiceReceivingEmail&quot;: &quot;A String&quot;, # Email address for the merchant to send value-added tax or invoice documentation of the order. Only the last document sent is made available to the customer. For more information, see About automated VAT invoicing for Shopping Actions.
560 &quot;loyaltyInfo&quot;: { # Loyalty program information.
561 &quot;loyaltyNumber&quot;: &quot;A String&quot;, # The loyalty card/membership number.
562 &quot;name&quot;: &quot;A String&quot;, # Name of card/membership holder, this field will be populated when
Dan O'Mearadd494642020-05-01 07:42:23 -0700563 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700564 &quot;marketingRightsInfo&quot;: { # Customer&#x27;s marketing preferences. Contains the marketing opt-in information that is current at the time that the merchant call. User preference selections can change from one order to the next so preferences must be checked with every order.
565 &quot;explicitMarketingPreference&quot;: &quot;A String&quot;, # Last known customer selection regarding marketing preferences. In certain cases this selection might not be known, so this field would be empty. If a customer selected `granted` in their most recent order, they can be subscribed to marketing emails. Customers who have chosen `denied` must not be subscribed, or must be unsubscribed if already opted-in.
Dan O'Mearadd494642020-05-01 07:42:23 -0700566 #
567 # Acceptable values are:
Bu Sun Kim65020912020-05-20 12:08:20 -0700568 # - &quot;`denied`&quot;
569 # - &quot;`granted`&quot;
570 &quot;lastUpdatedTimestamp&quot;: &quot;A String&quot;, # Timestamp when last time marketing preference was updated. Could be empty, if user wasn&#x27;t offered a selection yet.
571 &quot;marketingEmailAddress&quot;: &quot;A String&quot;, # Email address that can be used for marketing purposes. The field may be empty even if `explicitMarketingPreference` is &#x27;granted&#x27;. This happens when retrieving an old order from the customer who deleted their account.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700572 },
573 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700574 &quot;deliveryDetails&quot;: { # Delivery details for shipments of type `delivery`.
575 &quot;address&quot;: { # The delivery address
576 &quot;country&quot;: &quot;A String&quot;, # CLDR country code (e.g. &quot;US&quot;).
577 &quot;fullAddress&quot;: [ # Strings representing the lines of the printed label for mailing the order, for example:
578 # John Smith
579 # 1600 Amphitheatre Parkway
580 # Mountain View, CA, 94043
581 # United States
582 &quot;A String&quot;,
583 ],
584 &quot;isPostOfficeBox&quot;: True or False, # Whether the address is a post office box.
585 &quot;locality&quot;: &quot;A String&quot;, # City, town or commune. May also include dependent localities or sublocalities (e.g. neighborhoods or suburbs).
586 &quot;postalCode&quot;: &quot;A String&quot;, # Postal Code or ZIP (e.g. &quot;94043&quot;).
587 &quot;recipientName&quot;: &quot;A String&quot;, # Name of the recipient.
588 &quot;region&quot;: &quot;A String&quot;, # Top-level administrative subdivision of the country. For example, a state like California (&quot;CA&quot;) or a province like Quebec (&quot;QC&quot;).
589 &quot;streetAddress&quot;: [ # Street-level part of the address.
590 &quot;A String&quot;,
591 ],
592 },
593 &quot;phoneNumber&quot;: &quot;A String&quot;, # The phone number of the person receiving the delivery.
594 },
595 &quot;id&quot;: &quot;A String&quot;, # The REST ID of the order. Globally unique.
596 &quot;kind&quot;: &quot;content#order&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#order`&quot;
597 &quot;lineItems&quot;: [ # Line items that are ordered.
598 {
599 &quot;adjustments&quot;: [ # Price and tax adjustments applied on the line item.
600 {
601 &quot;priceAdjustment&quot;: { # Adjustment for total price of the line item.
602 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
603 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
604 },
605 &quot;taxAdjustment&quot;: { # Adjustment for total tax of the line item.
606 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
607 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
608 },
609 &quot;type&quot;: &quot;A String&quot;, # Type of this adjustment.
610 #
611 # Acceptable values are:
612 # - &quot;`promotion`&quot;
613 },
614 ],
615 &quot;annotations&quot;: [ # Annotations that are attached to the line item.
616 {
617 &quot;key&quot;: &quot;A String&quot;, # Key for additional merchant provided (as key-value pairs) annotation about the line item.
618 &quot;value&quot;: &quot;A String&quot;, # Value for additional merchant provided (as key-value pairs) annotation about the line item.
619 },
620 ],
621 &quot;cancellations&quot;: [ # Cancellations of the line item.
622 {
623 &quot;actor&quot;: &quot;A String&quot;, # The actor that created the cancellation.
624 #
625 # Acceptable values are:
626 # - &quot;`customer`&quot;
627 # - &quot;`googleBot`&quot;
628 # - &quot;`googleCustomerService`&quot;
629 # - &quot;`googlePayments`&quot;
630 # - &quot;`googleSabre`&quot;
631 # - &quot;`merchant`&quot;
632 &quot;creationDate&quot;: &quot;A String&quot;, # Date on which the cancellation has been created, in ISO 8601 format.
633 &quot;quantity&quot;: 42, # The quantity that was canceled.
634 &quot;reason&quot;: &quot;A String&quot;, # The reason for the cancellation. Orders that are canceled with a noInventory reason will lead to the removal of the product from Shopping Actions until you make an update to that product. This will not affect your Shopping ads.
635 #
636 # Acceptable values are:
637 # - &quot;`autoPostInternal`&quot;
638 # - &quot;`autoPostInvalidBillingAddress`&quot;
639 # - &quot;`autoPostNoInventory`&quot;
640 # - &quot;`autoPostPriceError`&quot;
641 # - &quot;`autoPostUndeliverableShippingAddress`&quot;
642 # - &quot;`couponAbuse`&quot;
643 # - &quot;`customerCanceled`&quot;
644 # - &quot;`customerInitiatedCancel`&quot;
645 # - &quot;`customerSupportRequested`&quot;
646 # - &quot;`failToPushOrderGoogleError`&quot;
647 # - &quot;`failToPushOrderMerchantError`&quot;
648 # - &quot;`failToPushOrderMerchantFulfillmentError`&quot;
649 # - &quot;`failToPushOrderToMerchant`&quot;
650 # - &quot;`failToPushOrderToMerchantOutOfStock`&quot;
651 # - &quot;`invalidCoupon`&quot;
652 # - &quot;`malformedShippingAddress`&quot;
653 # - &quot;`merchantDidNotShipOnTime`&quot;
654 # - &quot;`noInventory`&quot;
655 # - &quot;`orderTimeout`&quot;
656 # - &quot;`other`&quot;
657 # - &quot;`paymentAbuse`&quot;
658 # - &quot;`paymentDeclined`&quot;
659 # - &quot;`priceError`&quot;
660 # - &quot;`returnRefundAbuse`&quot;
661 # - &quot;`shippingPriceError`&quot;
662 # - &quot;`taxError`&quot;
663 # - &quot;`undeliverableShippingAddress`&quot;
664 # - &quot;`unsupportedPoBoxAddress`&quot;
665 &quot;reasonText&quot;: &quot;A String&quot;, # The explanation of the reason.
666 },
667 ],
668 &quot;id&quot;: &quot;A String&quot;, # The ID of the line item.
669 &quot;price&quot;: { # Total price for the line item. For example, if two items for $10 are purchased, the total price will be $20.
670 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
671 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
672 },
673 &quot;product&quot;: { # Product data as seen by customer from the time of the order placement. Note that certain attributes values (e.g. title or gtin) might be reformatted and no longer match values submitted via product feed.
674 &quot;brand&quot;: &quot;A String&quot;, # Brand of the item.
675 &quot;condition&quot;: &quot;A String&quot;, # Condition or state of the item.
676 #
677 # Acceptable values are:
678 # - &quot;`new`&quot;
679 # - &quot;`refurbished`&quot;
680 # - &quot;`used`&quot;
681 &quot;contentLanguage&quot;: &quot;A String&quot;, # The two-letter ISO 639-1 language code for the item.
682 &quot;fees&quot;: [ # Associated fees at order creation time.
683 {
684 &quot;amount&quot;: { # Amount of the fee.
685 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
686 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
687 },
688 &quot;name&quot;: &quot;A String&quot;, # Name of the fee.
689 },
690 ],
691 &quot;gtin&quot;: &quot;A String&quot;, # Global Trade Item Number (GTIN) of the item.
692 &quot;id&quot;: &quot;A String&quot;, # The REST ID of the product.
693 &quot;imageLink&quot;: &quot;A String&quot;, # URL of an image of the item.
694 &quot;itemGroupId&quot;: &quot;A String&quot;, # Shared identifier for all variants of the same product.
695 &quot;mpn&quot;: &quot;A String&quot;, # Manufacturer Part Number (MPN) of the item.
696 &quot;offerId&quot;: &quot;A String&quot;, # An identifier of the item.
697 &quot;price&quot;: { # Price of the item.
698 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
699 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
700 },
701 &quot;shownImage&quot;: &quot;A String&quot;, # URL to the cached image shown to the user when order was placed.
702 &quot;targetCountry&quot;: &quot;A String&quot;, # The CLDR territory code of the target country of the product.
703 &quot;title&quot;: &quot;A String&quot;, # The title of the product.
704 &quot;variantAttributes&quot;: [ # Variant attributes for the item. These are dimensions of the product, such as color, gender, material, pattern, and size. You can find a comprehensive list of variant attributes here.
705 {
706 &quot;dimension&quot;: &quot;A String&quot;, # The dimension of the variant.
707 &quot;value&quot;: &quot;A String&quot;, # The value for the dimension.
708 },
709 ],
710 },
711 &quot;quantityCanceled&quot;: 42, # Number of items canceled.
712 &quot;quantityDelivered&quot;: 42, # Number of items delivered.
713 &quot;quantityOrdered&quot;: 42, # Number of items ordered.
714 &quot;quantityPending&quot;: 42, # Number of items pending.
715 &quot;quantityReadyForPickup&quot;: 42, # Number of items ready for pickup.
716 &quot;quantityReturned&quot;: 42, # Number of items returned.
717 &quot;quantityShipped&quot;: 42, # Number of items shipped.
718 &quot;quantityUndeliverable&quot;: 42, # Number of items undeliverable.
719 &quot;returnInfo&quot;: { # Details of the return policy for the line item.
720 &quot;daysToReturn&quot;: 42, # Required. How many days later the item can be returned.
721 &quot;isReturnable&quot;: True or False, # Required. Whether the item is returnable.
722 &quot;policyUrl&quot;: &quot;A String&quot;, # Required. URL of the item return policy.
723 },
724 &quot;returns&quot;: [ # Returns of the line item.
725 {
726 &quot;actor&quot;: &quot;A String&quot;, # The actor that created the refund.
727 #
728 # Acceptable values are:
729 # - &quot;`customer`&quot;
730 # - &quot;`googleBot`&quot;
731 # - &quot;`googleCustomerService`&quot;
732 # - &quot;`googlePayments`&quot;
733 # - &quot;`googleSabre`&quot;
734 # - &quot;`merchant`&quot;
735 &quot;creationDate&quot;: &quot;A String&quot;, # Date on which the item has been created, in ISO 8601 format.
736 &quot;quantity&quot;: 42, # Quantity that is returned.
737 &quot;reason&quot;: &quot;A String&quot;, # The reason for the return.
738 #
739 # Acceptable values are:
740 # - &quot;`customerDiscretionaryReturn`&quot;
741 # - &quot;`customerInitiatedMerchantCancel`&quot;
742 # - &quot;`deliveredTooLate`&quot;
743 # - &quot;`expiredItem`&quot;
744 # - &quot;`invalidCoupon`&quot;
745 # - &quot;`malformedShippingAddress`&quot;
746 # - &quot;`other`&quot;
747 # - &quot;`productArrivedDamaged`&quot;
748 # - &quot;`productNotAsDescribed`&quot;
749 # - &quot;`qualityNotAsExpected`&quot;
750 # - &quot;`undeliverableShippingAddress`&quot;
751 # - &quot;`unsupportedPoBoxAddress`&quot;
752 # - &quot;`wrongProductShipped`&quot;
753 &quot;reasonText&quot;: &quot;A String&quot;, # The explanation of the reason.
754 },
755 ],
756 &quot;shippingDetails&quot;: { # Details of the requested shipping for the line item.
757 &quot;deliverByDate&quot;: &quot;A String&quot;, # Required. The delivery by date, in ISO 8601 format.
758 &quot;method&quot;: { # Required. Details of the shipping method.
759 &quot;carrier&quot;: &quot;A String&quot;, # The carrier for the shipping. Optional. See `shipments[].carrier` for a list of acceptable values.
760 &quot;maxDaysInTransit&quot;: 42, # Required. Maximum transit time.
761 &quot;methodName&quot;: &quot;A String&quot;, # Required. The name of the shipping method.
762 &quot;minDaysInTransit&quot;: 42, # Required. Minimum transit time.
763 },
764 &quot;shipByDate&quot;: &quot;A String&quot;, # Required. The ship by date, in ISO 8601 format.
765 &quot;type&quot;: &quot;A String&quot;, # Type of shipment. Indicates whether `deliveryDetails` or `pickupDetails` is applicable for this shipment.
766 #
767 # Acceptable values are:
768 # - &quot;`delivery`&quot;
769 # - &quot;`pickup`&quot;
770 },
771 &quot;tax&quot;: { # Total tax amount for the line item. For example, if two items are purchased, and each have a cost tax of $2, the total tax amount will be $4.
772 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
773 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
774 },
775 },
776 ],
777 &quot;merchantId&quot;: &quot;A String&quot;,
778 &quot;merchantOrderId&quot;: &quot;A String&quot;, # Merchant-provided ID of the order.
779 &quot;netPriceAmount&quot;: { # The net amount for the order (price part). For example, if an order was originally for $100 and a refund was issued for $20, the net amount will be $80.
780 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
781 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
782 },
783 &quot;netTaxAmount&quot;: { # The net amount for the order (tax part). Note that in certain cases due to taxable base adjustment `netTaxAmount` might not match to a sum of tax field across all lineItems and refunds.
784 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
785 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
786 },
787 &quot;paymentStatus&quot;: &quot;A String&quot;, # The status of the payment.
788 #
789 # Acceptable values are:
790 # - &quot;`paymentCaptured`&quot;
791 # - &quot;`paymentRejected`&quot;
792 # - &quot;`paymentSecured`&quot;
793 # - &quot;`pendingAuthorization`&quot;
794 &quot;pickupDetails&quot;: { # Pickup details for shipments of type `pickup`.
795 &quot;address&quot;: { # Address of the pickup location where the shipment should be sent. Note that `recipientName` in the address is the name of the business at the pickup location.
796 &quot;country&quot;: &quot;A String&quot;, # CLDR country code (e.g. &quot;US&quot;).
797 &quot;fullAddress&quot;: [ # Strings representing the lines of the printed label for mailing the order, for example:
798 # John Smith
799 # 1600 Amphitheatre Parkway
800 # Mountain View, CA, 94043
801 # United States
802 &quot;A String&quot;,
803 ],
804 &quot;isPostOfficeBox&quot;: True or False, # Whether the address is a post office box.
805 &quot;locality&quot;: &quot;A String&quot;, # City, town or commune. May also include dependent localities or sublocalities (e.g. neighborhoods or suburbs).
806 &quot;postalCode&quot;: &quot;A String&quot;, # Postal Code or ZIP (e.g. &quot;94043&quot;).
807 &quot;recipientName&quot;: &quot;A String&quot;, # Name of the recipient.
808 &quot;region&quot;: &quot;A String&quot;, # Top-level administrative subdivision of the country. For example, a state like California (&quot;CA&quot;) or a province like Quebec (&quot;QC&quot;).
809 &quot;streetAddress&quot;: [ # Street-level part of the address.
810 &quot;A String&quot;,
811 ],
812 },
813 &quot;collectors&quot;: [ # Collectors authorized to pick up shipment from the pickup location.
814 {
815 &quot;name&quot;: &quot;A String&quot;, # Name of the person picking up the shipment.
816 &quot;phoneNumber&quot;: &quot;A String&quot;, # Phone number of the person picking up the shipment.
817 },
818 ],
819 &quot;locationId&quot;: &quot;A String&quot;, # ID of the pickup location.
820 },
821 &quot;placedDate&quot;: &quot;A String&quot;, # The date when the order was placed, in ISO 8601 format.
822 &quot;promotions&quot;: [ # Promotions associated with the order.
Dan O'Mearadd494642020-05-01 07:42:23 -0700823 #
824 # To determine which promotions apply to which products, check the `Promotions[].appliedItems[].lineItemId` field against the `LineItems[].id` field for each promotion. If a promotion is applied to more than 1 offerId, divide the discount value by the number of affected offers to determine how much discount to apply to each offerId.
825 #
826 # Examples:
827 # - To calculate price paid by the customer for a single line item including the discount: For each promotion, subtract the `LineItems[].adjustments[].priceAdjustment.value` amount from the `LineItems[].Price.value`.
828 # - To calculate price paid by the customer for a single line item including the discount in case of multiple quantity: For each promotion, divide the `LineItems[].adjustments[].priceAdjustment.value` by the quantity of products then subtract the resulting value from the `LineItems[].Product.Price.value` for each quantity item.
829 #
830 # Only 1 promotion can be applied to an offerId in a given order. To refund an item which had a promotion applied to it, make sure to refund the amount after first subtracting the promotion discount from the item price.
831 #
832 # More details about the program are here.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700833 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700834 &quot;applicableItems&quot;: [ # Items which this promotion may be applied to. If empty, there are no restrictions on applicable items and quantity.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700835 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700836 &quot;lineItemId&quot;: &quot;A String&quot;, # The line item ID of a product. Do not provide for `orders.createtestorder`.
837 &quot;offerId&quot;: &quot;A String&quot;, # Required. Offer ID of a product. Only for `orders.createtestorder`.
838 &quot;productId&quot;: &quot;A String&quot;, # `orders.createtestorder`.
839 &quot;quantity&quot;: 42, # The quantity of the associated product. Do not provide for `orders.createtestorder`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700840 },
841 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700842 &quot;appliedItems&quot;: [ # Items which this promotion have been applied to. Do not provide for `orders.createtestorder`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700843 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700844 &quot;lineItemId&quot;: &quot;A String&quot;, # The line item ID of a product. Do not provide for `orders.createtestorder`.
845 &quot;offerId&quot;: &quot;A String&quot;, # Required. Offer ID of a product. Only for `orders.createtestorder`.
846 &quot;productId&quot;: &quot;A String&quot;, # `orders.createtestorder`.
847 &quot;quantity&quot;: 42, # The quantity of the associated product. Do not provide for `orders.createtestorder`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700848 },
849 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700850 &quot;endTime&quot;: &quot;A String&quot;, # Promotion end time in ISO 8601 format. Date, time, and offset required, e.g., &quot;2020-01-02T09:00:00+01:00&quot; or &quot;2020-01-02T09:00:00Z&quot;.
851 &quot;funder&quot;: &quot;A String&quot;, # Required. The party funding the promotion. Only `merchant` is supported for `orders.createtestorder`.
Dan O'Mearadd494642020-05-01 07:42:23 -0700852 #
853 # Acceptable values are:
Bu Sun Kim65020912020-05-20 12:08:20 -0700854 # - &quot;`google`&quot;
855 # - &quot;`merchant`&quot;
856 &quot;merchantPromotionId&quot;: &quot;A String&quot;, # Required. This field is used to identify promotions within merchants&#x27; own systems.
857 &quot;priceValue&quot;: { # Estimated discount applied to price. Amount is pre-tax or post-tax depending on location of order.
858 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
859 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
860 },
861 &quot;shortTitle&quot;: &quot;A String&quot;, # A short title of the promotion to be shown on the checkout page. Do not provide for `orders.createtestorder`.
862 &quot;startTime&quot;: &quot;A String&quot;, # Promotion start time in ISO 8601 format. Date, time, and offset required, e.g., &quot;2020-01-02T09:00:00+01:00&quot; or &quot;2020-01-02T09:00:00Z&quot;.
863 &quot;subtype&quot;: &quot;A String&quot;, # Required. The category of the promotion. Only `moneyOff` is supported for `orders.createtestorder`.
Dan O'Mearadd494642020-05-01 07:42:23 -0700864 #
865 # Acceptable values are:
Bu Sun Kim65020912020-05-20 12:08:20 -0700866 # - &quot;`buyMGetMoneyOff`&quot;
867 # - &quot;`buyMGetNMoneyOff`&quot;
868 # - &quot;`buyMGetNPercentOff`&quot;
869 # - &quot;`buyMGetPercentOff`&quot;
870 # - &quot;`freeGift`&quot;
871 # - &quot;`freeGiftWithItemId`&quot;
872 # - &quot;`freeGiftWithValue`&quot;
873 # - &quot;`freeShippingOvernight`&quot;
874 # - &quot;`freeShippingStandard`&quot;
875 # - &quot;`freeShippingTwoDay`&quot;
876 # - &quot;`moneyOff`&quot;
877 # - &quot;`percentOff`&quot;
878 # - &quot;`rewardPoints`&quot;
879 # - &quot;`salePrice`&quot;
880 &quot;taxValue&quot;: { # Estimated discount applied to tax (if allowed by law). Do not provide for `orders.createtestorder`.
881 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
882 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
883 },
884 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the promotion.
885 &quot;type&quot;: &quot;A String&quot;, # Required. The scope of the promotion. Only `product` is supported for `orders.createtestorder`.
886 #
887 # Acceptable values are:
888 # - &quot;`product`&quot;
889 # - &quot;`shipping`&quot;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700890 },
891 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700892 &quot;refunds&quot;: [ # Refunds for the order.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700893 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700894 &quot;actor&quot;: &quot;A String&quot;, # The actor that created the refund.
Dan O'Mearadd494642020-05-01 07:42:23 -0700895 #
896 # Acceptable values are:
Bu Sun Kim65020912020-05-20 12:08:20 -0700897 # - &quot;`customer`&quot;
898 # - &quot;`googleBot`&quot;
899 # - &quot;`googleCustomerService`&quot;
900 # - &quot;`googlePayments`&quot;
901 # - &quot;`googleSabre`&quot;
902 # - &quot;`merchant`&quot;
903 &quot;amount&quot;: { # The amount that is refunded.
904 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
905 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
906 },
907 &quot;creationDate&quot;: &quot;A String&quot;, # Date on which the item has been created, in ISO 8601 format.
908 &quot;reason&quot;: &quot;A String&quot;, # The reason for the refund.
909 #
910 # Acceptable values are:
911 # - &quot;`adjustment`&quot;
912 # - &quot;`autoPostInternal`&quot;
913 # - &quot;`autoPostInvalidBillingAddress`&quot;
914 # - &quot;`autoPostNoInventory`&quot;
915 # - &quot;`autoPostPriceError`&quot;
916 # - &quot;`autoPostUndeliverableShippingAddress`&quot;
917 # - &quot;`couponAbuse`&quot;
918 # - &quot;`courtesyAdjustment`&quot;
919 # - &quot;`customerCanceled`&quot;
920 # - &quot;`customerDiscretionaryReturn`&quot;
921 # - &quot;`customerInitiatedMerchantCancel`&quot;
922 # - &quot;`customerSupportRequested`&quot;
923 # - &quot;`deliveredLateByCarrier`&quot;
924 # - &quot;`deliveredTooLate`&quot;
925 # - &quot;`expiredItem`&quot;
926 # - &quot;`failToPushOrderGoogleError`&quot;
927 # - &quot;`failToPushOrderMerchantError`&quot;
928 # - &quot;`failToPushOrderMerchantFulfillmentError`&quot;
929 # - &quot;`failToPushOrderToMerchant`&quot;
930 # - &quot;`failToPushOrderToMerchantOutOfStock`&quot;
931 # - &quot;`feeAdjustment`&quot;
932 # - &quot;`invalidCoupon`&quot;
933 # - &quot;`lateShipmentCredit`&quot;
934 # - &quot;`malformedShippingAddress`&quot;
935 # - &quot;`merchantDidNotShipOnTime`&quot;
936 # - &quot;`noInventory`&quot;
937 # - &quot;`orderTimeout`&quot;
938 # - &quot;`other`&quot;
939 # - &quot;`paymentAbuse`&quot;
940 # - &quot;`paymentDeclined`&quot;
941 # - &quot;`priceAdjustment`&quot;
942 # - &quot;`priceError`&quot;
943 # - &quot;`productArrivedDamaged`&quot;
944 # - &quot;`productNotAsDescribed`&quot;
945 # - &quot;`promoReallocation`&quot;
946 # - &quot;`qualityNotAsExpected`&quot;
947 # - &quot;`returnRefundAbuse`&quot;
948 # - &quot;`shippingCostAdjustment`&quot;
949 # - &quot;`shippingPriceError`&quot;
950 # - &quot;`taxAdjustment`&quot;
951 # - &quot;`taxError`&quot;
952 # - &quot;`undeliverableShippingAddress`&quot;
953 # - &quot;`unsupportedPoBoxAddress`&quot;
954 # - &quot;`wrongProductShipped`&quot;
955 &quot;reasonText&quot;: &quot;A String&quot;, # The explanation of the reason.
956 },
957 ],
958 &quot;shipments&quot;: [ # Shipments of the order.
959 {
960 &quot;carrier&quot;: &quot;A String&quot;, # The carrier handling the shipment.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700961 #
Dan O'Mearadd494642020-05-01 07:42:23 -0700962 # For supported carriers, Google includes the carrier name and tracking URL in emails to customers. For select supported carriers, Google also automatically updates the shipment status based on the provided shipment ID. Note: You can also use unsupported carriers, but emails to customers will not include the carrier name or tracking URL, and there will be no automatic order status updates.
963 # Supported carriers for US are:
Bu Sun Kim65020912020-05-20 12:08:20 -0700964 # - &quot;`ups`&quot; (United Parcel Service) automatic status updates
965 # - &quot;`usps`&quot; (United States Postal Service) automatic status updates
966 # - &quot;`fedex`&quot; (FedEx) automatic status updates
967 # - &quot;`dhl`&quot; (DHL eCommerce) automatic status updates (US only)
968 # - &quot;`ontrac`&quot; (OnTrac) automatic status updates
969 # - &quot;`dhl express`&quot; (DHL Express)
970 # - &quot;`deliv`&quot; (Deliv)
971 # - &quot;`dynamex`&quot; (TForce)
972 # - &quot;`lasership`&quot; (LaserShip)
973 # - &quot;`mpx`&quot; (Military Parcel Xpress)
974 # - &quot;`uds`&quot; (United Delivery Service)
975 # - &quot;`efw`&quot; (Estes Forwarding Worldwide)
976 # - &quot;`jd logistics`&quot; (JD Logistics)
977 # - &quot;`yunexpress`&quot; (YunExpress)
978 # - &quot;`china post`&quot; (China Post)
979 # - &quot;`china ems`&quot; (China Post Express Mail Service)
980 # - &quot;`singapore post`&quot; (Singapore Post)
981 # - &quot;`pos malaysia`&quot; (Pos Malaysia)
982 # - &quot;`postnl`&quot; (PostNL)
983 # - &quot;`ptt`&quot; (PTT Turkish Post)
984 # - &quot;`eub`&quot; (ePacket)
985 # - &quot;`chukou1`&quot; (Chukou1 Logistics)
Dan O'Mearadd494642020-05-01 07:42:23 -0700986 # Supported carriers for FR are:
Bu Sun Kim65020912020-05-20 12:08:20 -0700987 # - &quot;`la poste`&quot; (La Poste) automatic status updates
988 # - &quot;`colissimo`&quot; (Colissimo by La Poste) automatic status updates
989 # - &quot;`ups`&quot; (United Parcel Service) automatic status updates
990 # - &quot;`chronopost`&quot; (Chronopost by La Poste)
991 # - &quot;`gls`&quot; (General Logistics Systems France)
992 # - &quot;`dpd`&quot; (DPD Group by GeoPost)
993 # - &quot;`bpost`&quot; (Belgian Post Group)
994 # - &quot;`colis prive`&quot; (Colis Privé)
995 # - &quot;`boxtal`&quot; (Boxtal)
996 # - &quot;`geodis`&quot; (GEODIS)
997 # - &quot;`tnt`&quot; (TNT)
998 # - &quot;`db schenker`&quot; (DB Schenker)
999 # - &quot;`aramex`&quot; (Aramex)
1000 &quot;creationDate&quot;: &quot;A String&quot;, # Date on which the shipment has been created, in ISO 8601 format.
1001 &quot;deliveryDate&quot;: &quot;A String&quot;, # Date on which the shipment has been delivered, in ISO 8601 format. Present only if `status` is `delivered`
1002 &quot;id&quot;: &quot;A String&quot;, # The ID of the shipment.
1003 &quot;lineItems&quot;: [ # The line items that are shipped.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001004 {
Bu Sun Kim65020912020-05-20 12:08:20 -07001005 &quot;lineItemId&quot;: &quot;A String&quot;, # The ID of the line item that is shipped. This value is assigned by Google when an order is created. Either lineItemId or productId is required.
1006 &quot;productId&quot;: &quot;A String&quot;, # The ID of the product to ship. This is the REST ID used in the products service. Either lineItemId or productId is required.
1007 &quot;quantity&quot;: 42, # The quantity that is shipped.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001008 },
1009 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001010 &quot;shipmentGroupId&quot;: &quot;A String&quot;, # The shipment group ID of the shipment. This is set in shiplineitems request.
1011 &quot;status&quot;: &quot;A String&quot;, # The status of the shipment.
Dan O'Mearadd494642020-05-01 07:42:23 -07001012 #
1013 # Acceptable values are:
Bu Sun Kim65020912020-05-20 12:08:20 -07001014 # - &quot;`delivered`&quot;
1015 # - &quot;`readyForPickup`&quot;
1016 # - &quot;`shipped`&quot;
1017 # - &quot;`undeliverable`&quot;
1018 &quot;trackingId&quot;: &quot;A String&quot;, # The tracking ID for the shipment.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001019 },
1020 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001021 &quot;shippingCost&quot;: { # The total cost of shipping for all items.
1022 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1023 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1024 },
1025 &quot;shippingCostTax&quot;: { # The tax for the total shipping cost.
1026 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1027 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1028 },
1029 &quot;status&quot;: &quot;A String&quot;, # The status of the order.
Dan O'Mearadd494642020-05-01 07:42:23 -07001030 #
1031 # Acceptable values are:
Bu Sun Kim65020912020-05-20 12:08:20 -07001032 # - &quot;`canceled`&quot;
1033 # - &quot;`delivered`&quot;
1034 # - &quot;`inProgress`&quot;
1035 # - &quot;`partiallyDelivered`&quot;
1036 # - &quot;`partiallyReturned`&quot;
1037 # - &quot;`partiallyShipped`&quot;
1038 # - &quot;`pendingShipment`&quot;
1039 # - &quot;`returned`&quot;
1040 # - &quot;`shipped`&quot;
1041 &quot;taxCollector&quot;: &quot;A String&quot;, # The party responsible for collecting and remitting taxes.
Dan O'Mearadd494642020-05-01 07:42:23 -07001042 #
1043 # Acceptable values are:
Bu Sun Kim65020912020-05-20 12:08:20 -07001044 # - &quot;`marketplaceFacilitator`&quot;
1045 # - &quot;`merchant`&quot;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001046 }</pre>
1047</div>
1048
1049<div class="method">
1050 <code class="details" id="getbymerchantorderid">getbymerchantorderid(merchantId, merchantOrderId)</code>
1051 <pre>Retrieves an order using merchant order ID.
1052
1053Args:
1054 merchantId: string, The ID of the account that manages the order. This cannot be a multi-client account. (required)
1055 merchantOrderId: string, The merchant order ID to be looked for. (required)
1056
1057Returns:
1058 An object of the form:
1059
1060 {
Bu Sun Kim65020912020-05-20 12:08:20 -07001061 &quot;kind&quot;: &quot;content#ordersGetByMerchantOrderIdResponse&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;content#ordersGetByMerchantOrderIdResponse&quot;.
1062 &quot;order&quot;: { # Order. Production access (all methods) requires the order manager role. Sandbox access does not. (== resource_for v2.orders ==) (== resource_for v2.1.orders ==) # The requested order.
1063 &quot;acknowledged&quot;: True or False, # Whether the order was acknowledged.
1064 &quot;billingAddress&quot;: { # The billing address.
1065 &quot;country&quot;: &quot;A String&quot;, # CLDR country code (e.g. &quot;US&quot;).
1066 &quot;fullAddress&quot;: [ # Strings representing the lines of the printed label for mailing the order, for example:
1067 # John Smith
1068 # 1600 Amphitheatre Parkway
1069 # Mountain View, CA, 94043
1070 # United States
1071 &quot;A String&quot;,
1072 ],
1073 &quot;isPostOfficeBox&quot;: True or False, # Whether the address is a post office box.
1074 &quot;locality&quot;: &quot;A String&quot;, # City, town or commune. May also include dependent localities or sublocalities (e.g. neighborhoods or suburbs).
1075 &quot;postalCode&quot;: &quot;A String&quot;, # Postal Code or ZIP (e.g. &quot;94043&quot;).
1076 &quot;recipientName&quot;: &quot;A String&quot;, # Name of the recipient.
1077 &quot;region&quot;: &quot;A String&quot;, # Top-level administrative subdivision of the country. For example, a state like California (&quot;CA&quot;) or a province like Quebec (&quot;QC&quot;).
1078 &quot;streetAddress&quot;: [ # Street-level part of the address.
1079 &quot;A String&quot;,
1080 ],
1081 },
1082 &quot;customer&quot;: { # The details of the customer who placed the order.
1083 &quot;fullName&quot;: &quot;A String&quot;, # Full name of the customer.
1084 &quot;invoiceReceivingEmail&quot;: &quot;A String&quot;, # Email address for the merchant to send value-added tax or invoice documentation of the order. Only the last document sent is made available to the customer. For more information, see About automated VAT invoicing for Shopping Actions.
1085 &quot;loyaltyInfo&quot;: { # Loyalty program information.
1086 &quot;loyaltyNumber&quot;: &quot;A String&quot;, # The loyalty card/membership number.
1087 &quot;name&quot;: &quot;A String&quot;, # Name of card/membership holder, this field will be populated when
Dan O'Mearadd494642020-05-01 07:42:23 -07001088 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001089 &quot;marketingRightsInfo&quot;: { # Customer&#x27;s marketing preferences. Contains the marketing opt-in information that is current at the time that the merchant call. User preference selections can change from one order to the next so preferences must be checked with every order.
1090 &quot;explicitMarketingPreference&quot;: &quot;A String&quot;, # Last known customer selection regarding marketing preferences. In certain cases this selection might not be known, so this field would be empty. If a customer selected `granted` in their most recent order, they can be subscribed to marketing emails. Customers who have chosen `denied` must not be subscribed, or must be unsubscribed if already opted-in.
Dan O'Mearadd494642020-05-01 07:42:23 -07001091 #
1092 # Acceptable values are:
Bu Sun Kim65020912020-05-20 12:08:20 -07001093 # - &quot;`denied`&quot;
1094 # - &quot;`granted`&quot;
1095 &quot;lastUpdatedTimestamp&quot;: &quot;A String&quot;, # Timestamp when last time marketing preference was updated. Could be empty, if user wasn&#x27;t offered a selection yet.
1096 &quot;marketingEmailAddress&quot;: &quot;A String&quot;, # Email address that can be used for marketing purposes. The field may be empty even if `explicitMarketingPreference` is &#x27;granted&#x27;. This happens when retrieving an old order from the customer who deleted their account.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001097 },
1098 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001099 &quot;deliveryDetails&quot;: { # Delivery details for shipments of type `delivery`.
1100 &quot;address&quot;: { # The delivery address
1101 &quot;country&quot;: &quot;A String&quot;, # CLDR country code (e.g. &quot;US&quot;).
1102 &quot;fullAddress&quot;: [ # Strings representing the lines of the printed label for mailing the order, for example:
1103 # John Smith
1104 # 1600 Amphitheatre Parkway
1105 # Mountain View, CA, 94043
1106 # United States
1107 &quot;A String&quot;,
1108 ],
1109 &quot;isPostOfficeBox&quot;: True or False, # Whether the address is a post office box.
1110 &quot;locality&quot;: &quot;A String&quot;, # City, town or commune. May also include dependent localities or sublocalities (e.g. neighborhoods or suburbs).
1111 &quot;postalCode&quot;: &quot;A String&quot;, # Postal Code or ZIP (e.g. &quot;94043&quot;).
1112 &quot;recipientName&quot;: &quot;A String&quot;, # Name of the recipient.
1113 &quot;region&quot;: &quot;A String&quot;, # Top-level administrative subdivision of the country. For example, a state like California (&quot;CA&quot;) or a province like Quebec (&quot;QC&quot;).
1114 &quot;streetAddress&quot;: [ # Street-level part of the address.
1115 &quot;A String&quot;,
1116 ],
1117 },
1118 &quot;phoneNumber&quot;: &quot;A String&quot;, # The phone number of the person receiving the delivery.
1119 },
1120 &quot;id&quot;: &quot;A String&quot;, # The REST ID of the order. Globally unique.
1121 &quot;kind&quot;: &quot;content#order&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#order`&quot;
1122 &quot;lineItems&quot;: [ # Line items that are ordered.
1123 {
1124 &quot;adjustments&quot;: [ # Price and tax adjustments applied on the line item.
1125 {
1126 &quot;priceAdjustment&quot;: { # Adjustment for total price of the line item.
1127 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1128 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1129 },
1130 &quot;taxAdjustment&quot;: { # Adjustment for total tax of the line item.
1131 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1132 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1133 },
1134 &quot;type&quot;: &quot;A String&quot;, # Type of this adjustment.
1135 #
1136 # Acceptable values are:
1137 # - &quot;`promotion`&quot;
1138 },
1139 ],
1140 &quot;annotations&quot;: [ # Annotations that are attached to the line item.
1141 {
1142 &quot;key&quot;: &quot;A String&quot;, # Key for additional merchant provided (as key-value pairs) annotation about the line item.
1143 &quot;value&quot;: &quot;A String&quot;, # Value for additional merchant provided (as key-value pairs) annotation about the line item.
1144 },
1145 ],
1146 &quot;cancellations&quot;: [ # Cancellations of the line item.
1147 {
1148 &quot;actor&quot;: &quot;A String&quot;, # The actor that created the cancellation.
1149 #
1150 # Acceptable values are:
1151 # - &quot;`customer`&quot;
1152 # - &quot;`googleBot`&quot;
1153 # - &quot;`googleCustomerService`&quot;
1154 # - &quot;`googlePayments`&quot;
1155 # - &quot;`googleSabre`&quot;
1156 # - &quot;`merchant`&quot;
1157 &quot;creationDate&quot;: &quot;A String&quot;, # Date on which the cancellation has been created, in ISO 8601 format.
1158 &quot;quantity&quot;: 42, # The quantity that was canceled.
1159 &quot;reason&quot;: &quot;A String&quot;, # The reason for the cancellation. Orders that are canceled with a noInventory reason will lead to the removal of the product from Shopping Actions until you make an update to that product. This will not affect your Shopping ads.
1160 #
1161 # Acceptable values are:
1162 # - &quot;`autoPostInternal`&quot;
1163 # - &quot;`autoPostInvalidBillingAddress`&quot;
1164 # - &quot;`autoPostNoInventory`&quot;
1165 # - &quot;`autoPostPriceError`&quot;
1166 # - &quot;`autoPostUndeliverableShippingAddress`&quot;
1167 # - &quot;`couponAbuse`&quot;
1168 # - &quot;`customerCanceled`&quot;
1169 # - &quot;`customerInitiatedCancel`&quot;
1170 # - &quot;`customerSupportRequested`&quot;
1171 # - &quot;`failToPushOrderGoogleError`&quot;
1172 # - &quot;`failToPushOrderMerchantError`&quot;
1173 # - &quot;`failToPushOrderMerchantFulfillmentError`&quot;
1174 # - &quot;`failToPushOrderToMerchant`&quot;
1175 # - &quot;`failToPushOrderToMerchantOutOfStock`&quot;
1176 # - &quot;`invalidCoupon`&quot;
1177 # - &quot;`malformedShippingAddress`&quot;
1178 # - &quot;`merchantDidNotShipOnTime`&quot;
1179 # - &quot;`noInventory`&quot;
1180 # - &quot;`orderTimeout`&quot;
1181 # - &quot;`other`&quot;
1182 # - &quot;`paymentAbuse`&quot;
1183 # - &quot;`paymentDeclined`&quot;
1184 # - &quot;`priceError`&quot;
1185 # - &quot;`returnRefundAbuse`&quot;
1186 # - &quot;`shippingPriceError`&quot;
1187 # - &quot;`taxError`&quot;
1188 # - &quot;`undeliverableShippingAddress`&quot;
1189 # - &quot;`unsupportedPoBoxAddress`&quot;
1190 &quot;reasonText&quot;: &quot;A String&quot;, # The explanation of the reason.
1191 },
1192 ],
1193 &quot;id&quot;: &quot;A String&quot;, # The ID of the line item.
1194 &quot;price&quot;: { # Total price for the line item. For example, if two items for $10 are purchased, the total price will be $20.
1195 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1196 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1197 },
1198 &quot;product&quot;: { # Product data as seen by customer from the time of the order placement. Note that certain attributes values (e.g. title or gtin) might be reformatted and no longer match values submitted via product feed.
1199 &quot;brand&quot;: &quot;A String&quot;, # Brand of the item.
1200 &quot;condition&quot;: &quot;A String&quot;, # Condition or state of the item.
1201 #
1202 # Acceptable values are:
1203 # - &quot;`new`&quot;
1204 # - &quot;`refurbished`&quot;
1205 # - &quot;`used`&quot;
1206 &quot;contentLanguage&quot;: &quot;A String&quot;, # The two-letter ISO 639-1 language code for the item.
1207 &quot;fees&quot;: [ # Associated fees at order creation time.
1208 {
1209 &quot;amount&quot;: { # Amount of the fee.
1210 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1211 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1212 },
1213 &quot;name&quot;: &quot;A String&quot;, # Name of the fee.
1214 },
1215 ],
1216 &quot;gtin&quot;: &quot;A String&quot;, # Global Trade Item Number (GTIN) of the item.
1217 &quot;id&quot;: &quot;A String&quot;, # The REST ID of the product.
1218 &quot;imageLink&quot;: &quot;A String&quot;, # URL of an image of the item.
1219 &quot;itemGroupId&quot;: &quot;A String&quot;, # Shared identifier for all variants of the same product.
1220 &quot;mpn&quot;: &quot;A String&quot;, # Manufacturer Part Number (MPN) of the item.
1221 &quot;offerId&quot;: &quot;A String&quot;, # An identifier of the item.
1222 &quot;price&quot;: { # Price of the item.
1223 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1224 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1225 },
1226 &quot;shownImage&quot;: &quot;A String&quot;, # URL to the cached image shown to the user when order was placed.
1227 &quot;targetCountry&quot;: &quot;A String&quot;, # The CLDR territory code of the target country of the product.
1228 &quot;title&quot;: &quot;A String&quot;, # The title of the product.
1229 &quot;variantAttributes&quot;: [ # Variant attributes for the item. These are dimensions of the product, such as color, gender, material, pattern, and size. You can find a comprehensive list of variant attributes here.
1230 {
1231 &quot;dimension&quot;: &quot;A String&quot;, # The dimension of the variant.
1232 &quot;value&quot;: &quot;A String&quot;, # The value for the dimension.
1233 },
1234 ],
1235 },
1236 &quot;quantityCanceled&quot;: 42, # Number of items canceled.
1237 &quot;quantityDelivered&quot;: 42, # Number of items delivered.
1238 &quot;quantityOrdered&quot;: 42, # Number of items ordered.
1239 &quot;quantityPending&quot;: 42, # Number of items pending.
1240 &quot;quantityReadyForPickup&quot;: 42, # Number of items ready for pickup.
1241 &quot;quantityReturned&quot;: 42, # Number of items returned.
1242 &quot;quantityShipped&quot;: 42, # Number of items shipped.
1243 &quot;quantityUndeliverable&quot;: 42, # Number of items undeliverable.
1244 &quot;returnInfo&quot;: { # Details of the return policy for the line item.
1245 &quot;daysToReturn&quot;: 42, # Required. How many days later the item can be returned.
1246 &quot;isReturnable&quot;: True or False, # Required. Whether the item is returnable.
1247 &quot;policyUrl&quot;: &quot;A String&quot;, # Required. URL of the item return policy.
1248 },
1249 &quot;returns&quot;: [ # Returns of the line item.
1250 {
1251 &quot;actor&quot;: &quot;A String&quot;, # The actor that created the refund.
1252 #
1253 # Acceptable values are:
1254 # - &quot;`customer`&quot;
1255 # - &quot;`googleBot`&quot;
1256 # - &quot;`googleCustomerService`&quot;
1257 # - &quot;`googlePayments`&quot;
1258 # - &quot;`googleSabre`&quot;
1259 # - &quot;`merchant`&quot;
1260 &quot;creationDate&quot;: &quot;A String&quot;, # Date on which the item has been created, in ISO 8601 format.
1261 &quot;quantity&quot;: 42, # Quantity that is returned.
1262 &quot;reason&quot;: &quot;A String&quot;, # The reason for the return.
1263 #
1264 # Acceptable values are:
1265 # - &quot;`customerDiscretionaryReturn`&quot;
1266 # - &quot;`customerInitiatedMerchantCancel`&quot;
1267 # - &quot;`deliveredTooLate`&quot;
1268 # - &quot;`expiredItem`&quot;
1269 # - &quot;`invalidCoupon`&quot;
1270 # - &quot;`malformedShippingAddress`&quot;
1271 # - &quot;`other`&quot;
1272 # - &quot;`productArrivedDamaged`&quot;
1273 # - &quot;`productNotAsDescribed`&quot;
1274 # - &quot;`qualityNotAsExpected`&quot;
1275 # - &quot;`undeliverableShippingAddress`&quot;
1276 # - &quot;`unsupportedPoBoxAddress`&quot;
1277 # - &quot;`wrongProductShipped`&quot;
1278 &quot;reasonText&quot;: &quot;A String&quot;, # The explanation of the reason.
1279 },
1280 ],
1281 &quot;shippingDetails&quot;: { # Details of the requested shipping for the line item.
1282 &quot;deliverByDate&quot;: &quot;A String&quot;, # Required. The delivery by date, in ISO 8601 format.
1283 &quot;method&quot;: { # Required. Details of the shipping method.
1284 &quot;carrier&quot;: &quot;A String&quot;, # The carrier for the shipping. Optional. See `shipments[].carrier` for a list of acceptable values.
1285 &quot;maxDaysInTransit&quot;: 42, # Required. Maximum transit time.
1286 &quot;methodName&quot;: &quot;A String&quot;, # Required. The name of the shipping method.
1287 &quot;minDaysInTransit&quot;: 42, # Required. Minimum transit time.
1288 },
1289 &quot;shipByDate&quot;: &quot;A String&quot;, # Required. The ship by date, in ISO 8601 format.
1290 &quot;type&quot;: &quot;A String&quot;, # Type of shipment. Indicates whether `deliveryDetails` or `pickupDetails` is applicable for this shipment.
1291 #
1292 # Acceptable values are:
1293 # - &quot;`delivery`&quot;
1294 # - &quot;`pickup`&quot;
1295 },
1296 &quot;tax&quot;: { # Total tax amount for the line item. For example, if two items are purchased, and each have a cost tax of $2, the total tax amount will be $4.
1297 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1298 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1299 },
1300 },
1301 ],
1302 &quot;merchantId&quot;: &quot;A String&quot;,
1303 &quot;merchantOrderId&quot;: &quot;A String&quot;, # Merchant-provided ID of the order.
1304 &quot;netPriceAmount&quot;: { # The net amount for the order (price part). For example, if an order was originally for $100 and a refund was issued for $20, the net amount will be $80.
1305 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1306 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1307 },
1308 &quot;netTaxAmount&quot;: { # The net amount for the order (tax part). Note that in certain cases due to taxable base adjustment `netTaxAmount` might not match to a sum of tax field across all lineItems and refunds.
1309 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1310 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1311 },
1312 &quot;paymentStatus&quot;: &quot;A String&quot;, # The status of the payment.
1313 #
1314 # Acceptable values are:
1315 # - &quot;`paymentCaptured`&quot;
1316 # - &quot;`paymentRejected`&quot;
1317 # - &quot;`paymentSecured`&quot;
1318 # - &quot;`pendingAuthorization`&quot;
1319 &quot;pickupDetails&quot;: { # Pickup details for shipments of type `pickup`.
1320 &quot;address&quot;: { # Address of the pickup location where the shipment should be sent. Note that `recipientName` in the address is the name of the business at the pickup location.
1321 &quot;country&quot;: &quot;A String&quot;, # CLDR country code (e.g. &quot;US&quot;).
1322 &quot;fullAddress&quot;: [ # Strings representing the lines of the printed label for mailing the order, for example:
1323 # John Smith
1324 # 1600 Amphitheatre Parkway
1325 # Mountain View, CA, 94043
1326 # United States
1327 &quot;A String&quot;,
1328 ],
1329 &quot;isPostOfficeBox&quot;: True or False, # Whether the address is a post office box.
1330 &quot;locality&quot;: &quot;A String&quot;, # City, town or commune. May also include dependent localities or sublocalities (e.g. neighborhoods or suburbs).
1331 &quot;postalCode&quot;: &quot;A String&quot;, # Postal Code or ZIP (e.g. &quot;94043&quot;).
1332 &quot;recipientName&quot;: &quot;A String&quot;, # Name of the recipient.
1333 &quot;region&quot;: &quot;A String&quot;, # Top-level administrative subdivision of the country. For example, a state like California (&quot;CA&quot;) or a province like Quebec (&quot;QC&quot;).
1334 &quot;streetAddress&quot;: [ # Street-level part of the address.
1335 &quot;A String&quot;,
1336 ],
1337 },
1338 &quot;collectors&quot;: [ # Collectors authorized to pick up shipment from the pickup location.
1339 {
1340 &quot;name&quot;: &quot;A String&quot;, # Name of the person picking up the shipment.
1341 &quot;phoneNumber&quot;: &quot;A String&quot;, # Phone number of the person picking up the shipment.
1342 },
1343 ],
1344 &quot;locationId&quot;: &quot;A String&quot;, # ID of the pickup location.
1345 },
1346 &quot;placedDate&quot;: &quot;A String&quot;, # The date when the order was placed, in ISO 8601 format.
1347 &quot;promotions&quot;: [ # Promotions associated with the order.
Dan O'Mearadd494642020-05-01 07:42:23 -07001348 #
1349 # To determine which promotions apply to which products, check the `Promotions[].appliedItems[].lineItemId` field against the `LineItems[].id` field for each promotion. If a promotion is applied to more than 1 offerId, divide the discount value by the number of affected offers to determine how much discount to apply to each offerId.
1350 #
1351 # Examples:
1352 # - To calculate price paid by the customer for a single line item including the discount: For each promotion, subtract the `LineItems[].adjustments[].priceAdjustment.value` amount from the `LineItems[].Price.value`.
1353 # - To calculate price paid by the customer for a single line item including the discount in case of multiple quantity: For each promotion, divide the `LineItems[].adjustments[].priceAdjustment.value` by the quantity of products then subtract the resulting value from the `LineItems[].Product.Price.value` for each quantity item.
1354 #
1355 # Only 1 promotion can be applied to an offerId in a given order. To refund an item which had a promotion applied to it, make sure to refund the amount after first subtracting the promotion discount from the item price.
1356 #
1357 # More details about the program are here.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001358 {
Bu Sun Kim65020912020-05-20 12:08:20 -07001359 &quot;applicableItems&quot;: [ # Items which this promotion may be applied to. If empty, there are no restrictions on applicable items and quantity.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001360 {
Bu Sun Kim65020912020-05-20 12:08:20 -07001361 &quot;lineItemId&quot;: &quot;A String&quot;, # The line item ID of a product. Do not provide for `orders.createtestorder`.
1362 &quot;offerId&quot;: &quot;A String&quot;, # Required. Offer ID of a product. Only for `orders.createtestorder`.
1363 &quot;productId&quot;: &quot;A String&quot;, # `orders.createtestorder`.
1364 &quot;quantity&quot;: 42, # The quantity of the associated product. Do not provide for `orders.createtestorder`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001365 },
1366 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001367 &quot;appliedItems&quot;: [ # Items which this promotion have been applied to. Do not provide for `orders.createtestorder`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001368 {
Bu Sun Kim65020912020-05-20 12:08:20 -07001369 &quot;lineItemId&quot;: &quot;A String&quot;, # The line item ID of a product. Do not provide for `orders.createtestorder`.
1370 &quot;offerId&quot;: &quot;A String&quot;, # Required. Offer ID of a product. Only for `orders.createtestorder`.
1371 &quot;productId&quot;: &quot;A String&quot;, # `orders.createtestorder`.
1372 &quot;quantity&quot;: 42, # The quantity of the associated product. Do not provide for `orders.createtestorder`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001373 },
1374 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001375 &quot;endTime&quot;: &quot;A String&quot;, # Promotion end time in ISO 8601 format. Date, time, and offset required, e.g., &quot;2020-01-02T09:00:00+01:00&quot; or &quot;2020-01-02T09:00:00Z&quot;.
1376 &quot;funder&quot;: &quot;A String&quot;, # Required. The party funding the promotion. Only `merchant` is supported for `orders.createtestorder`.
Dan O'Mearadd494642020-05-01 07:42:23 -07001377 #
1378 # Acceptable values are:
Bu Sun Kim65020912020-05-20 12:08:20 -07001379 # - &quot;`google`&quot;
1380 # - &quot;`merchant`&quot;
1381 &quot;merchantPromotionId&quot;: &quot;A String&quot;, # Required. This field is used to identify promotions within merchants&#x27; own systems.
1382 &quot;priceValue&quot;: { # Estimated discount applied to price. Amount is pre-tax or post-tax depending on location of order.
1383 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1384 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1385 },
1386 &quot;shortTitle&quot;: &quot;A String&quot;, # A short title of the promotion to be shown on the checkout page. Do not provide for `orders.createtestorder`.
1387 &quot;startTime&quot;: &quot;A String&quot;, # Promotion start time in ISO 8601 format. Date, time, and offset required, e.g., &quot;2020-01-02T09:00:00+01:00&quot; or &quot;2020-01-02T09:00:00Z&quot;.
1388 &quot;subtype&quot;: &quot;A String&quot;, # Required. The category of the promotion. Only `moneyOff` is supported for `orders.createtestorder`.
Dan O'Mearadd494642020-05-01 07:42:23 -07001389 #
1390 # Acceptable values are:
Bu Sun Kim65020912020-05-20 12:08:20 -07001391 # - &quot;`buyMGetMoneyOff`&quot;
1392 # - &quot;`buyMGetNMoneyOff`&quot;
1393 # - &quot;`buyMGetNPercentOff`&quot;
1394 # - &quot;`buyMGetPercentOff`&quot;
1395 # - &quot;`freeGift`&quot;
1396 # - &quot;`freeGiftWithItemId`&quot;
1397 # - &quot;`freeGiftWithValue`&quot;
1398 # - &quot;`freeShippingOvernight`&quot;
1399 # - &quot;`freeShippingStandard`&quot;
1400 # - &quot;`freeShippingTwoDay`&quot;
1401 # - &quot;`moneyOff`&quot;
1402 # - &quot;`percentOff`&quot;
1403 # - &quot;`rewardPoints`&quot;
1404 # - &quot;`salePrice`&quot;
1405 &quot;taxValue&quot;: { # Estimated discount applied to tax (if allowed by law). Do not provide for `orders.createtestorder`.
1406 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1407 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1408 },
1409 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the promotion.
1410 &quot;type&quot;: &quot;A String&quot;, # Required. The scope of the promotion. Only `product` is supported for `orders.createtestorder`.
1411 #
1412 # Acceptable values are:
1413 # - &quot;`product`&quot;
1414 # - &quot;`shipping`&quot;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001415 },
1416 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001417 &quot;refunds&quot;: [ # Refunds for the order.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001418 {
Bu Sun Kim65020912020-05-20 12:08:20 -07001419 &quot;actor&quot;: &quot;A String&quot;, # The actor that created the refund.
Dan O'Mearadd494642020-05-01 07:42:23 -07001420 #
1421 # Acceptable values are:
Bu Sun Kim65020912020-05-20 12:08:20 -07001422 # - &quot;`customer`&quot;
1423 # - &quot;`googleBot`&quot;
1424 # - &quot;`googleCustomerService`&quot;
1425 # - &quot;`googlePayments`&quot;
1426 # - &quot;`googleSabre`&quot;
1427 # - &quot;`merchant`&quot;
1428 &quot;amount&quot;: { # The amount that is refunded.
1429 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1430 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1431 },
1432 &quot;creationDate&quot;: &quot;A String&quot;, # Date on which the item has been created, in ISO 8601 format.
1433 &quot;reason&quot;: &quot;A String&quot;, # The reason for the refund.
1434 #
1435 # Acceptable values are:
1436 # - &quot;`adjustment`&quot;
1437 # - &quot;`autoPostInternal`&quot;
1438 # - &quot;`autoPostInvalidBillingAddress`&quot;
1439 # - &quot;`autoPostNoInventory`&quot;
1440 # - &quot;`autoPostPriceError`&quot;
1441 # - &quot;`autoPostUndeliverableShippingAddress`&quot;
1442 # - &quot;`couponAbuse`&quot;
1443 # - &quot;`courtesyAdjustment`&quot;
1444 # - &quot;`customerCanceled`&quot;
1445 # - &quot;`customerDiscretionaryReturn`&quot;
1446 # - &quot;`customerInitiatedMerchantCancel`&quot;
1447 # - &quot;`customerSupportRequested`&quot;
1448 # - &quot;`deliveredLateByCarrier`&quot;
1449 # - &quot;`deliveredTooLate`&quot;
1450 # - &quot;`expiredItem`&quot;
1451 # - &quot;`failToPushOrderGoogleError`&quot;
1452 # - &quot;`failToPushOrderMerchantError`&quot;
1453 # - &quot;`failToPushOrderMerchantFulfillmentError`&quot;
1454 # - &quot;`failToPushOrderToMerchant`&quot;
1455 # - &quot;`failToPushOrderToMerchantOutOfStock`&quot;
1456 # - &quot;`feeAdjustment`&quot;
1457 # - &quot;`invalidCoupon`&quot;
1458 # - &quot;`lateShipmentCredit`&quot;
1459 # - &quot;`malformedShippingAddress`&quot;
1460 # - &quot;`merchantDidNotShipOnTime`&quot;
1461 # - &quot;`noInventory`&quot;
1462 # - &quot;`orderTimeout`&quot;
1463 # - &quot;`other`&quot;
1464 # - &quot;`paymentAbuse`&quot;
1465 # - &quot;`paymentDeclined`&quot;
1466 # - &quot;`priceAdjustment`&quot;
1467 # - &quot;`priceError`&quot;
1468 # - &quot;`productArrivedDamaged`&quot;
1469 # - &quot;`productNotAsDescribed`&quot;
1470 # - &quot;`promoReallocation`&quot;
1471 # - &quot;`qualityNotAsExpected`&quot;
1472 # - &quot;`returnRefundAbuse`&quot;
1473 # - &quot;`shippingCostAdjustment`&quot;
1474 # - &quot;`shippingPriceError`&quot;
1475 # - &quot;`taxAdjustment`&quot;
1476 # - &quot;`taxError`&quot;
1477 # - &quot;`undeliverableShippingAddress`&quot;
1478 # - &quot;`unsupportedPoBoxAddress`&quot;
1479 # - &quot;`wrongProductShipped`&quot;
1480 &quot;reasonText&quot;: &quot;A String&quot;, # The explanation of the reason.
1481 },
1482 ],
1483 &quot;shipments&quot;: [ # Shipments of the order.
1484 {
1485 &quot;carrier&quot;: &quot;A String&quot;, # The carrier handling the shipment.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001486 #
Dan O'Mearadd494642020-05-01 07:42:23 -07001487 # For supported carriers, Google includes the carrier name and tracking URL in emails to customers. For select supported carriers, Google also automatically updates the shipment status based on the provided shipment ID. Note: You can also use unsupported carriers, but emails to customers will not include the carrier name or tracking URL, and there will be no automatic order status updates.
1488 # Supported carriers for US are:
Bu Sun Kim65020912020-05-20 12:08:20 -07001489 # - &quot;`ups`&quot; (United Parcel Service) automatic status updates
1490 # - &quot;`usps`&quot; (United States Postal Service) automatic status updates
1491 # - &quot;`fedex`&quot; (FedEx) automatic status updates
1492 # - &quot;`dhl`&quot; (DHL eCommerce) automatic status updates (US only)
1493 # - &quot;`ontrac`&quot; (OnTrac) automatic status updates
1494 # - &quot;`dhl express`&quot; (DHL Express)
1495 # - &quot;`deliv`&quot; (Deliv)
1496 # - &quot;`dynamex`&quot; (TForce)
1497 # - &quot;`lasership`&quot; (LaserShip)
1498 # - &quot;`mpx`&quot; (Military Parcel Xpress)
1499 # - &quot;`uds`&quot; (United Delivery Service)
1500 # - &quot;`efw`&quot; (Estes Forwarding Worldwide)
1501 # - &quot;`jd logistics`&quot; (JD Logistics)
1502 # - &quot;`yunexpress`&quot; (YunExpress)
1503 # - &quot;`china post`&quot; (China Post)
1504 # - &quot;`china ems`&quot; (China Post Express Mail Service)
1505 # - &quot;`singapore post`&quot; (Singapore Post)
1506 # - &quot;`pos malaysia`&quot; (Pos Malaysia)
1507 # - &quot;`postnl`&quot; (PostNL)
1508 # - &quot;`ptt`&quot; (PTT Turkish Post)
1509 # - &quot;`eub`&quot; (ePacket)
1510 # - &quot;`chukou1`&quot; (Chukou1 Logistics)
Dan O'Mearadd494642020-05-01 07:42:23 -07001511 # Supported carriers for FR are:
Bu Sun Kim65020912020-05-20 12:08:20 -07001512 # - &quot;`la poste`&quot; (La Poste) automatic status updates
1513 # - &quot;`colissimo`&quot; (Colissimo by La Poste) automatic status updates
1514 # - &quot;`ups`&quot; (United Parcel Service) automatic status updates
1515 # - &quot;`chronopost`&quot; (Chronopost by La Poste)
1516 # - &quot;`gls`&quot; (General Logistics Systems France)
1517 # - &quot;`dpd`&quot; (DPD Group by GeoPost)
1518 # - &quot;`bpost`&quot; (Belgian Post Group)
1519 # - &quot;`colis prive`&quot; (Colis Privé)
1520 # - &quot;`boxtal`&quot; (Boxtal)
1521 # - &quot;`geodis`&quot; (GEODIS)
1522 # - &quot;`tnt`&quot; (TNT)
1523 # - &quot;`db schenker`&quot; (DB Schenker)
1524 # - &quot;`aramex`&quot; (Aramex)
1525 &quot;creationDate&quot;: &quot;A String&quot;, # Date on which the shipment has been created, in ISO 8601 format.
1526 &quot;deliveryDate&quot;: &quot;A String&quot;, # Date on which the shipment has been delivered, in ISO 8601 format. Present only if `status` is `delivered`
1527 &quot;id&quot;: &quot;A String&quot;, # The ID of the shipment.
1528 &quot;lineItems&quot;: [ # The line items that are shipped.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001529 {
Bu Sun Kim65020912020-05-20 12:08:20 -07001530 &quot;lineItemId&quot;: &quot;A String&quot;, # The ID of the line item that is shipped. This value is assigned by Google when an order is created. Either lineItemId or productId is required.
1531 &quot;productId&quot;: &quot;A String&quot;, # The ID of the product to ship. This is the REST ID used in the products service. Either lineItemId or productId is required.
1532 &quot;quantity&quot;: 42, # The quantity that is shipped.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001533 },
1534 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001535 &quot;shipmentGroupId&quot;: &quot;A String&quot;, # The shipment group ID of the shipment. This is set in shiplineitems request.
1536 &quot;status&quot;: &quot;A String&quot;, # The status of the shipment.
Dan O'Mearadd494642020-05-01 07:42:23 -07001537 #
1538 # Acceptable values are:
Bu Sun Kim65020912020-05-20 12:08:20 -07001539 # - &quot;`delivered`&quot;
1540 # - &quot;`readyForPickup`&quot;
1541 # - &quot;`shipped`&quot;
1542 # - &quot;`undeliverable`&quot;
1543 &quot;trackingId&quot;: &quot;A String&quot;, # The tracking ID for the shipment.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001544 },
1545 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001546 &quot;shippingCost&quot;: { # The total cost of shipping for all items.
1547 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1548 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1549 },
1550 &quot;shippingCostTax&quot;: { # The tax for the total shipping cost.
1551 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1552 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1553 },
1554 &quot;status&quot;: &quot;A String&quot;, # The status of the order.
Dan O'Mearadd494642020-05-01 07:42:23 -07001555 #
1556 # Acceptable values are:
Bu Sun Kim65020912020-05-20 12:08:20 -07001557 # - &quot;`canceled`&quot;
1558 # - &quot;`delivered`&quot;
1559 # - &quot;`inProgress`&quot;
1560 # - &quot;`partiallyDelivered`&quot;
1561 # - &quot;`partiallyReturned`&quot;
1562 # - &quot;`partiallyShipped`&quot;
1563 # - &quot;`pendingShipment`&quot;
1564 # - &quot;`returned`&quot;
1565 # - &quot;`shipped`&quot;
1566 &quot;taxCollector&quot;: &quot;A String&quot;, # The party responsible for collecting and remitting taxes.
Dan O'Mearadd494642020-05-01 07:42:23 -07001567 #
1568 # Acceptable values are:
Bu Sun Kim65020912020-05-20 12:08:20 -07001569 # - &quot;`marketplaceFacilitator`&quot;
1570 # - &quot;`merchant`&quot;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001571 },
1572 }</pre>
1573</div>
1574
1575<div class="method">
1576 <code class="details" id="gettestordertemplate">gettestordertemplate(merchantId, templateName, country=None)</code>
1577 <pre>Sandbox only. Retrieves an order template that can be used to quickly create a new order in sandbox.
1578
1579Args:
1580 merchantId: string, The ID of the account that should manage the order. This cannot be a multi-client account. (required)
1581 templateName: string, The name of the template to retrieve. (required)
1582 Allowed values
1583 template1 -
1584 template1a -
1585 template1b -
1586 template2 -
Dan O'Mearadd494642020-05-01 07:42:23 -07001587 template3 -
1588 country: string, The country of the template to retrieve. Defaults to `US`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001589
1590Returns:
1591 An object of the form:
1592
1593 {
Bu Sun Kim65020912020-05-20 12:08:20 -07001594 &quot;kind&quot;: &quot;content#ordersGetTestOrderTemplateResponse&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;content#ordersGetTestOrderTemplateResponse&quot;.
1595 &quot;template&quot;: { # The requested test order template.
1596 &quot;enableOrderinvoices&quot;: True or False, # Whether the orderinvoices service should support this order.
1597 &quot;kind&quot;: &quot;content#testOrder&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#testOrder`&quot;
1598 &quot;lineItems&quot;: [ # Required. Line items that are ordered. At least one line item must be provided.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001599 {
Bu Sun Kim65020912020-05-20 12:08:20 -07001600 &quot;product&quot;: { # Required. Product data from the time of the order placement.
1601 &quot;brand&quot;: &quot;A String&quot;, # Required. Brand of the item.
1602 &quot;condition&quot;: &quot;A String&quot;, # Required. Condition or state of the item.
Dan O'Mearadd494642020-05-01 07:42:23 -07001603 #
1604 # Acceptable values are:
Bu Sun Kim65020912020-05-20 12:08:20 -07001605 # - &quot;`new`&quot;
1606 &quot;contentLanguage&quot;: &quot;A String&quot;, # Required. The two-letter ISO 639-1 language code for the item.
1607 #
1608 # Acceptable values are:
1609 # - &quot;`en`&quot;
1610 # - &quot;`fr`&quot;
1611 &quot;fees&quot;: [ # Fees for the item. Optional.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001612 {
Bu Sun Kim65020912020-05-20 12:08:20 -07001613 &quot;amount&quot;: { # Amount of the fee.
1614 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1615 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001616 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001617 &quot;name&quot;: &quot;A String&quot;, # Name of the fee.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001618 },
1619 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001620 &quot;gtin&quot;: &quot;A String&quot;, # Global Trade Item Number (GTIN) of the item. Optional.
1621 &quot;imageLink&quot;: &quot;A String&quot;, # Required. URL of an image of the item.
1622 &quot;itemGroupId&quot;: &quot;A String&quot;, # Shared identifier for all variants of the same product. Optional.
1623 &quot;mpn&quot;: &quot;A String&quot;, # Manufacturer Part Number (MPN) of the item. Optional.
1624 &quot;offerId&quot;: &quot;A String&quot;, # Required. An identifier of the item.
1625 &quot;price&quot;: { # Required. The price for the product. Tax is automatically calculated for orders where marketplace facilitator tax laws are applicable. Otherwise, tax settings from Merchant Center are applied.
1626 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1627 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001628 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001629 &quot;targetCountry&quot;: &quot;A String&quot;, # Required. The CLDR territory code of the target country of the product.
1630 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the product.
1631 &quot;variantAttributes&quot;: [ # Variant attributes for the item. Optional.
1632 {
1633 &quot;dimension&quot;: &quot;A String&quot;, # The dimension of the variant.
1634 &quot;value&quot;: &quot;A String&quot;, # The value for the dimension.
1635 },
1636 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001637 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001638 &quot;quantityOrdered&quot;: 42, # Required. Number of items ordered.
1639 &quot;returnInfo&quot;: { # Required. Details of the return policy for the line item.
1640 &quot;daysToReturn&quot;: 42, # Required. How many days later the item can be returned.
1641 &quot;isReturnable&quot;: True or False, # Required. Whether the item is returnable.
1642 &quot;policyUrl&quot;: &quot;A String&quot;, # Required. URL of the item return policy.
1643 },
1644 &quot;shippingDetails&quot;: { # Required. Details of the requested shipping for the line item.
1645 &quot;deliverByDate&quot;: &quot;A String&quot;, # Required. The delivery by date, in ISO 8601 format.
1646 &quot;method&quot;: { # Required. Details of the shipping method.
1647 &quot;carrier&quot;: &quot;A String&quot;, # The carrier for the shipping. Optional. See `shipments[].carrier` for a list of acceptable values.
1648 &quot;maxDaysInTransit&quot;: 42, # Required. Maximum transit time.
1649 &quot;methodName&quot;: &quot;A String&quot;, # Required. The name of the shipping method.
1650 &quot;minDaysInTransit&quot;: 42, # Required. Minimum transit time.
1651 },
1652 &quot;shipByDate&quot;: &quot;A String&quot;, # Required. The ship by date, in ISO 8601 format.
1653 &quot;type&quot;: &quot;A String&quot;, # Type of shipment. Indicates whether `deliveryDetails` or `pickupDetails` is applicable for this shipment.
Dan O'Mearadd494642020-05-01 07:42:23 -07001654 #
1655 # Acceptable values are:
Bu Sun Kim65020912020-05-20 12:08:20 -07001656 # - &quot;`delivery`&quot;
1657 # - &quot;`pickup`&quot;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001658 },
1659 },
1660 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001661 &quot;notificationMode&quot;: &quot;A String&quot;, # Restricted. Do not use.
1662 &quot;predefinedBillingAddress&quot;: &quot;A String&quot;, # Required. The billing address.
Dan O'Mearadd494642020-05-01 07:42:23 -07001663 #
1664 # Acceptable values are:
Bu Sun Kim65020912020-05-20 12:08:20 -07001665 # - &quot;`dwight`&quot;
1666 # - &quot;`jim`&quot;
1667 # - &quot;`pam`&quot;
1668 &quot;predefinedDeliveryAddress&quot;: &quot;A String&quot;, # Required. Identifier of one of the predefined delivery addresses for the delivery.
Dan O'Mearadd494642020-05-01 07:42:23 -07001669 #
1670 # Acceptable values are:
Bu Sun Kim65020912020-05-20 12:08:20 -07001671 # - &quot;`dwight`&quot;
1672 # - &quot;`jim`&quot;
1673 # - &quot;`pam`&quot;
1674 &quot;predefinedEmail&quot;: &quot;A String&quot;, # Required. Email address of the customer.
1675 #
1676 # Acceptable values are:
1677 # - &quot;`pog.dwight.schrute@gmail.com`&quot;
1678 # - &quot;`pog.jim.halpert@gmail.com`&quot;
1679 # - &quot;`penpog.pam.beesly@gmail.comding`&quot;
1680 &quot;predefinedPickupDetails&quot;: &quot;A String&quot;, # Identifier of one of the predefined pickup details. Required for orders containing line items with shipping type `pickup`.
1681 #
1682 # Acceptable values are:
1683 # - &quot;`dwight`&quot;
1684 # - &quot;`jim`&quot;
1685 # - &quot;`pam`&quot;
1686 &quot;promotions&quot;: [ # Promotions associated with the order.
1687 {
1688 &quot;applicableItems&quot;: [ # Items which this promotion may be applied to. If empty, there are no restrictions on applicable items and quantity.
1689 {
1690 &quot;lineItemId&quot;: &quot;A String&quot;, # The line item ID of a product. Do not provide for `orders.createtestorder`.
1691 &quot;offerId&quot;: &quot;A String&quot;, # Required. Offer ID of a product. Only for `orders.createtestorder`.
1692 &quot;productId&quot;: &quot;A String&quot;, # `orders.createtestorder`.
1693 &quot;quantity&quot;: 42, # The quantity of the associated product. Do not provide for `orders.createtestorder`.
1694 },
1695 ],
1696 &quot;appliedItems&quot;: [ # Items which this promotion have been applied to. Do not provide for `orders.createtestorder`.
1697 {
1698 &quot;lineItemId&quot;: &quot;A String&quot;, # The line item ID of a product. Do not provide for `orders.createtestorder`.
1699 &quot;offerId&quot;: &quot;A String&quot;, # Required. Offer ID of a product. Only for `orders.createtestorder`.
1700 &quot;productId&quot;: &quot;A String&quot;, # `orders.createtestorder`.
1701 &quot;quantity&quot;: 42, # The quantity of the associated product. Do not provide for `orders.createtestorder`.
1702 },
1703 ],
1704 &quot;endTime&quot;: &quot;A String&quot;, # Promotion end time in ISO 8601 format. Date, time, and offset required, e.g., &quot;2020-01-02T09:00:00+01:00&quot; or &quot;2020-01-02T09:00:00Z&quot;.
1705 &quot;funder&quot;: &quot;A String&quot;, # Required. The party funding the promotion. Only `merchant` is supported for `orders.createtestorder`.
1706 #
1707 # Acceptable values are:
1708 # - &quot;`google`&quot;
1709 # - &quot;`merchant`&quot;
1710 &quot;merchantPromotionId&quot;: &quot;A String&quot;, # Required. This field is used to identify promotions within merchants&#x27; own systems.
1711 &quot;priceValue&quot;: { # Estimated discount applied to price. Amount is pre-tax or post-tax depending on location of order.
1712 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1713 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1714 },
1715 &quot;shortTitle&quot;: &quot;A String&quot;, # A short title of the promotion to be shown on the checkout page. Do not provide for `orders.createtestorder`.
1716 &quot;startTime&quot;: &quot;A String&quot;, # Promotion start time in ISO 8601 format. Date, time, and offset required, e.g., &quot;2020-01-02T09:00:00+01:00&quot; or &quot;2020-01-02T09:00:00Z&quot;.
1717 &quot;subtype&quot;: &quot;A String&quot;, # Required. The category of the promotion. Only `moneyOff` is supported for `orders.createtestorder`.
1718 #
1719 # Acceptable values are:
1720 # - &quot;`buyMGetMoneyOff`&quot;
1721 # - &quot;`buyMGetNMoneyOff`&quot;
1722 # - &quot;`buyMGetNPercentOff`&quot;
1723 # - &quot;`buyMGetPercentOff`&quot;
1724 # - &quot;`freeGift`&quot;
1725 # - &quot;`freeGiftWithItemId`&quot;
1726 # - &quot;`freeGiftWithValue`&quot;
1727 # - &quot;`freeShippingOvernight`&quot;
1728 # - &quot;`freeShippingStandard`&quot;
1729 # - &quot;`freeShippingTwoDay`&quot;
1730 # - &quot;`moneyOff`&quot;
1731 # - &quot;`percentOff`&quot;
1732 # - &quot;`rewardPoints`&quot;
1733 # - &quot;`salePrice`&quot;
1734 &quot;taxValue&quot;: { # Estimated discount applied to tax (if allowed by law). Do not provide for `orders.createtestorder`.
1735 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1736 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1737 },
1738 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the promotion.
1739 &quot;type&quot;: &quot;A String&quot;, # Required. The scope of the promotion. Only `product` is supported for `orders.createtestorder`.
1740 #
1741 # Acceptable values are:
1742 # - &quot;`product`&quot;
1743 # - &quot;`shipping`&quot;
1744 },
1745 ],
1746 &quot;shippingCost&quot;: { # Required. The price of shipping for all items. Shipping tax is automatically calculated for orders where marketplace facilitator tax laws are applicable. Otherwise, tax settings from Merchant Center are applied. Note that shipping is not taxed in certain states.
1747 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1748 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1749 },
1750 &quot;shippingOption&quot;: &quot;A String&quot;, # Required. The requested shipping option.
1751 #
1752 # Acceptable values are:
1753 # - &quot;`economy`&quot;
1754 # - &quot;`expedited`&quot;
1755 # - &quot;`oneDay`&quot;
1756 # - &quot;`sameDay`&quot;
1757 # - &quot;`standard`&quot;
1758 # - &quot;`twoDay`&quot;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001759 },
1760 }</pre>
1761</div>
1762
1763<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07001764 <code class="details" id="instorerefundlineitem">instorerefundlineitem(merchantId, orderId, body=None)</code>
1765 <pre>Deprecated. Notifies that item return and refund was handled directly by merchant outside of Google payments processing (e.g. cash refund done in store).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001766Note: We recommend calling the returnrefundlineitem method to refund in-store returns. We will issue the refund directly to the customer. This helps to prevent possible differences arising between merchant and Google transaction records. We also recommend having the point of sale system communicate with Google to ensure that customers do not receive a double refund by first refunding via Google then via an in-store return.
1767
1768Args:
1769 merchantId: string, The ID of the account that manages the order. This cannot be a multi-client account. (required)
1770 orderId: string, The ID of the order. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001771 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001772 The object takes the form of:
1773
1774{
Bu Sun Kim65020912020-05-20 12:08:20 -07001775 &quot;lineItemId&quot;: &quot;A String&quot;, # The ID of the line item to return. Either lineItemId or productId is required.
1776 &quot;operationId&quot;: &quot;A String&quot;, # The ID of the operation. Unique across all operations for a given order.
1777 &quot;priceAmount&quot;: { # The amount to be refunded. This may be pre-tax or post-tax depending on the location of the order. Required.
1778 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1779 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001780 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001781 &quot;productId&quot;: &quot;A String&quot;, # The ID of the product to return. This is the REST ID used in the products service. Either lineItemId or productId is required.
1782 &quot;quantity&quot;: 42, # The quantity to return and refund.
1783 &quot;reason&quot;: &quot;A String&quot;, # The reason for the return.
Dan O'Mearadd494642020-05-01 07:42:23 -07001784 #
1785 # Acceptable values are:
Bu Sun Kim65020912020-05-20 12:08:20 -07001786 # - &quot;`customerDiscretionaryReturn`&quot;
1787 # - &quot;`customerInitiatedMerchantCancel`&quot;
1788 # - &quot;`deliveredTooLate`&quot;
1789 # - &quot;`expiredItem`&quot;
1790 # - &quot;`invalidCoupon`&quot;
1791 # - &quot;`malformedShippingAddress`&quot;
1792 # - &quot;`other`&quot;
1793 # - &quot;`productArrivedDamaged`&quot;
1794 # - &quot;`productNotAsDescribed`&quot;
1795 # - &quot;`qualityNotAsExpected`&quot;
1796 # - &quot;`undeliverableShippingAddress`&quot;
1797 # - &quot;`unsupportedPoBoxAddress`&quot;
1798 # - &quot;`wrongProductShipped`&quot;
1799 &quot;reasonText&quot;: &quot;A String&quot;, # The explanation of the reason.
1800 &quot;taxAmount&quot;: { # The amount of tax to be refunded. Required.
1801 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1802 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1803 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001804 }
1805
1806
1807Returns:
1808 An object of the form:
1809
1810 {
Bu Sun Kim65020912020-05-20 12:08:20 -07001811 &quot;executionStatus&quot;: &quot;A String&quot;, # The status of the execution.
Dan O'Mearadd494642020-05-01 07:42:23 -07001812 #
1813 # Acceptable values are:
Bu Sun Kim65020912020-05-20 12:08:20 -07001814 # - &quot;`duplicate`&quot;
1815 # - &quot;`executed`&quot;
1816 &quot;kind&quot;: &quot;content#ordersInStoreRefundLineItemResponse&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;content#ordersInStoreRefundLineItemResponse&quot;.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001817 }</pre>
1818</div>
1819
1820<div class="method">
Bu Sun Kim65020912020-05-20 12:08:20 -07001821 <code class="details" id="list">list(merchantId, acknowledged=None, maxResults=None, orderBy=None, pageToken=None, placedDateEnd=None, placedDateStart=None, statuses=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001822 <pre>Lists the orders in your Merchant Center account.
1823
1824Args:
1825 merchantId: string, The ID of the account that manages the order. This cannot be a multi-client account. (required)
Bu Sun Kim65020912020-05-20 12:08:20 -07001826 acknowledged: boolean, Obtains orders that match the acknowledgement status. When set to true, obtains orders that have been acknowledged. When false, obtains orders that have not been acknowledged.
1827We recommend using this filter set to `false`, in conjunction with the `acknowledge` call, such that only un-acknowledged orders are returned.
1828 maxResults: integer, The maximum number of orders to return in the response, used for paging. The default value is 25 orders per page, and the maximum allowed value is 250 orders per page.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001829 orderBy: string, Order results by placement date in descending or ascending order.
1830
1831Acceptable values are:
1832- placedDateAsc
1833- placedDateDesc
1834 pageToken: string, The token returned by the previous request.
1835 placedDateEnd: string, Obtains orders placed before this date (exclusively), in ISO 8601 format.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001836 placedDateStart: string, Obtains orders placed after this date (inclusively), in ISO 8601 format.
Dan O'Mearadd494642020-05-01 07:42:23 -07001837 statuses: string, Obtains orders that match any of the specified statuses. Please note that `active` is a shortcut for `pendingShipment` and `partiallyShipped`, and `completed` is a shortcut for `shipped`, `partiallyDelivered`, `delivered`, `partiallyReturned`, `returned`, and `canceled`. (repeated)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001838 Allowed values
1839 active -
1840 canceled -
1841 completed -
1842 delivered -
1843 inProgress -
1844 partiallyDelivered -
1845 partiallyReturned -
1846 partiallyShipped -
1847 pendingShipment -
1848 returned -
1849 shipped -
1850
1851Returns:
1852 An object of the form:
1853
1854 {
Bu Sun Kim65020912020-05-20 12:08:20 -07001855 &quot;kind&quot;: &quot;content#ordersListResponse&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;content#ordersListResponse&quot;.
1856 &quot;nextPageToken&quot;: &quot;A String&quot;, # The token for the retrieval of the next page of orders.
1857 &quot;resources&quot;: [
Dan O'Mearadd494642020-05-01 07:42:23 -07001858 { # Order. Production access (all methods) requires the order manager role. Sandbox access does not. (== resource_for v2.orders ==) (== resource_for v2.1.orders ==)
Bu Sun Kim65020912020-05-20 12:08:20 -07001859 &quot;acknowledged&quot;: True or False, # Whether the order was acknowledged.
1860 &quot;billingAddress&quot;: { # The billing address.
1861 &quot;country&quot;: &quot;A String&quot;, # CLDR country code (e.g. &quot;US&quot;).
1862 &quot;fullAddress&quot;: [ # Strings representing the lines of the printed label for mailing the order, for example:
1863 # John Smith
1864 # 1600 Amphitheatre Parkway
1865 # Mountain View, CA, 94043
1866 # United States
1867 &quot;A String&quot;,
1868 ],
1869 &quot;isPostOfficeBox&quot;: True or False, # Whether the address is a post office box.
1870 &quot;locality&quot;: &quot;A String&quot;, # City, town or commune. May also include dependent localities or sublocalities (e.g. neighborhoods or suburbs).
1871 &quot;postalCode&quot;: &quot;A String&quot;, # Postal Code or ZIP (e.g. &quot;94043&quot;).
1872 &quot;recipientName&quot;: &quot;A String&quot;, # Name of the recipient.
1873 &quot;region&quot;: &quot;A String&quot;, # Top-level administrative subdivision of the country. For example, a state like California (&quot;CA&quot;) or a province like Quebec (&quot;QC&quot;).
1874 &quot;streetAddress&quot;: [ # Street-level part of the address.
1875 &quot;A String&quot;,
1876 ],
1877 },
1878 &quot;customer&quot;: { # The details of the customer who placed the order.
1879 &quot;fullName&quot;: &quot;A String&quot;, # Full name of the customer.
1880 &quot;invoiceReceivingEmail&quot;: &quot;A String&quot;, # Email address for the merchant to send value-added tax or invoice documentation of the order. Only the last document sent is made available to the customer. For more information, see About automated VAT invoicing for Shopping Actions.
1881 &quot;loyaltyInfo&quot;: { # Loyalty program information.
1882 &quot;loyaltyNumber&quot;: &quot;A String&quot;, # The loyalty card/membership number.
1883 &quot;name&quot;: &quot;A String&quot;, # Name of card/membership holder, this field will be populated when
Dan O'Mearadd494642020-05-01 07:42:23 -07001884 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001885 &quot;marketingRightsInfo&quot;: { # Customer&#x27;s marketing preferences. Contains the marketing opt-in information that is current at the time that the merchant call. User preference selections can change from one order to the next so preferences must be checked with every order.
1886 &quot;explicitMarketingPreference&quot;: &quot;A String&quot;, # Last known customer selection regarding marketing preferences. In certain cases this selection might not be known, so this field would be empty. If a customer selected `granted` in their most recent order, they can be subscribed to marketing emails. Customers who have chosen `denied` must not be subscribed, or must be unsubscribed if already opted-in.
Dan O'Mearadd494642020-05-01 07:42:23 -07001887 #
1888 # Acceptable values are:
Bu Sun Kim65020912020-05-20 12:08:20 -07001889 # - &quot;`denied`&quot;
1890 # - &quot;`granted`&quot;
1891 &quot;lastUpdatedTimestamp&quot;: &quot;A String&quot;, # Timestamp when last time marketing preference was updated. Could be empty, if user wasn&#x27;t offered a selection yet.
1892 &quot;marketingEmailAddress&quot;: &quot;A String&quot;, # Email address that can be used for marketing purposes. The field may be empty even if `explicitMarketingPreference` is &#x27;granted&#x27;. This happens when retrieving an old order from the customer who deleted their account.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001893 },
1894 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001895 &quot;deliveryDetails&quot;: { # Delivery details for shipments of type `delivery`.
1896 &quot;address&quot;: { # The delivery address
1897 &quot;country&quot;: &quot;A String&quot;, # CLDR country code (e.g. &quot;US&quot;).
1898 &quot;fullAddress&quot;: [ # Strings representing the lines of the printed label for mailing the order, for example:
1899 # John Smith
1900 # 1600 Amphitheatre Parkway
1901 # Mountain View, CA, 94043
1902 # United States
1903 &quot;A String&quot;,
1904 ],
1905 &quot;isPostOfficeBox&quot;: True or False, # Whether the address is a post office box.
1906 &quot;locality&quot;: &quot;A String&quot;, # City, town or commune. May also include dependent localities or sublocalities (e.g. neighborhoods or suburbs).
1907 &quot;postalCode&quot;: &quot;A String&quot;, # Postal Code or ZIP (e.g. &quot;94043&quot;).
1908 &quot;recipientName&quot;: &quot;A String&quot;, # Name of the recipient.
1909 &quot;region&quot;: &quot;A String&quot;, # Top-level administrative subdivision of the country. For example, a state like California (&quot;CA&quot;) or a province like Quebec (&quot;QC&quot;).
1910 &quot;streetAddress&quot;: [ # Street-level part of the address.
1911 &quot;A String&quot;,
1912 ],
1913 },
1914 &quot;phoneNumber&quot;: &quot;A String&quot;, # The phone number of the person receiving the delivery.
1915 },
1916 &quot;id&quot;: &quot;A String&quot;, # The REST ID of the order. Globally unique.
1917 &quot;kind&quot;: &quot;content#order&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#order`&quot;
1918 &quot;lineItems&quot;: [ # Line items that are ordered.
1919 {
1920 &quot;adjustments&quot;: [ # Price and tax adjustments applied on the line item.
1921 {
1922 &quot;priceAdjustment&quot;: { # Adjustment for total price of the line item.
1923 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1924 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1925 },
1926 &quot;taxAdjustment&quot;: { # Adjustment for total tax of the line item.
1927 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1928 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1929 },
1930 &quot;type&quot;: &quot;A String&quot;, # Type of this adjustment.
1931 #
1932 # Acceptable values are:
1933 # - &quot;`promotion`&quot;
1934 },
1935 ],
1936 &quot;annotations&quot;: [ # Annotations that are attached to the line item.
1937 {
1938 &quot;key&quot;: &quot;A String&quot;, # Key for additional merchant provided (as key-value pairs) annotation about the line item.
1939 &quot;value&quot;: &quot;A String&quot;, # Value for additional merchant provided (as key-value pairs) annotation about the line item.
1940 },
1941 ],
1942 &quot;cancellations&quot;: [ # Cancellations of the line item.
1943 {
1944 &quot;actor&quot;: &quot;A String&quot;, # The actor that created the cancellation.
1945 #
1946 # Acceptable values are:
1947 # - &quot;`customer`&quot;
1948 # - &quot;`googleBot`&quot;
1949 # - &quot;`googleCustomerService`&quot;
1950 # - &quot;`googlePayments`&quot;
1951 # - &quot;`googleSabre`&quot;
1952 # - &quot;`merchant`&quot;
1953 &quot;creationDate&quot;: &quot;A String&quot;, # Date on which the cancellation has been created, in ISO 8601 format.
1954 &quot;quantity&quot;: 42, # The quantity that was canceled.
1955 &quot;reason&quot;: &quot;A String&quot;, # The reason for the cancellation. Orders that are canceled with a noInventory reason will lead to the removal of the product from Shopping Actions until you make an update to that product. This will not affect your Shopping ads.
1956 #
1957 # Acceptable values are:
1958 # - &quot;`autoPostInternal`&quot;
1959 # - &quot;`autoPostInvalidBillingAddress`&quot;
1960 # - &quot;`autoPostNoInventory`&quot;
1961 # - &quot;`autoPostPriceError`&quot;
1962 # - &quot;`autoPostUndeliverableShippingAddress`&quot;
1963 # - &quot;`couponAbuse`&quot;
1964 # - &quot;`customerCanceled`&quot;
1965 # - &quot;`customerInitiatedCancel`&quot;
1966 # - &quot;`customerSupportRequested`&quot;
1967 # - &quot;`failToPushOrderGoogleError`&quot;
1968 # - &quot;`failToPushOrderMerchantError`&quot;
1969 # - &quot;`failToPushOrderMerchantFulfillmentError`&quot;
1970 # - &quot;`failToPushOrderToMerchant`&quot;
1971 # - &quot;`failToPushOrderToMerchantOutOfStock`&quot;
1972 # - &quot;`invalidCoupon`&quot;
1973 # - &quot;`malformedShippingAddress`&quot;
1974 # - &quot;`merchantDidNotShipOnTime`&quot;
1975 # - &quot;`noInventory`&quot;
1976 # - &quot;`orderTimeout`&quot;
1977 # - &quot;`other`&quot;
1978 # - &quot;`paymentAbuse`&quot;
1979 # - &quot;`paymentDeclined`&quot;
1980 # - &quot;`priceError`&quot;
1981 # - &quot;`returnRefundAbuse`&quot;
1982 # - &quot;`shippingPriceError`&quot;
1983 # - &quot;`taxError`&quot;
1984 # - &quot;`undeliverableShippingAddress`&quot;
1985 # - &quot;`unsupportedPoBoxAddress`&quot;
1986 &quot;reasonText&quot;: &quot;A String&quot;, # The explanation of the reason.
1987 },
1988 ],
1989 &quot;id&quot;: &quot;A String&quot;, # The ID of the line item.
1990 &quot;price&quot;: { # Total price for the line item. For example, if two items for $10 are purchased, the total price will be $20.
1991 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1992 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1993 },
1994 &quot;product&quot;: { # Product data as seen by customer from the time of the order placement. Note that certain attributes values (e.g. title or gtin) might be reformatted and no longer match values submitted via product feed.
1995 &quot;brand&quot;: &quot;A String&quot;, # Brand of the item.
1996 &quot;condition&quot;: &quot;A String&quot;, # Condition or state of the item.
1997 #
1998 # Acceptable values are:
1999 # - &quot;`new`&quot;
2000 # - &quot;`refurbished`&quot;
2001 # - &quot;`used`&quot;
2002 &quot;contentLanguage&quot;: &quot;A String&quot;, # The two-letter ISO 639-1 language code for the item.
2003 &quot;fees&quot;: [ # Associated fees at order creation time.
2004 {
2005 &quot;amount&quot;: { # Amount of the fee.
2006 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
2007 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
2008 },
2009 &quot;name&quot;: &quot;A String&quot;, # Name of the fee.
2010 },
2011 ],
2012 &quot;gtin&quot;: &quot;A String&quot;, # Global Trade Item Number (GTIN) of the item.
2013 &quot;id&quot;: &quot;A String&quot;, # The REST ID of the product.
2014 &quot;imageLink&quot;: &quot;A String&quot;, # URL of an image of the item.
2015 &quot;itemGroupId&quot;: &quot;A String&quot;, # Shared identifier for all variants of the same product.
2016 &quot;mpn&quot;: &quot;A String&quot;, # Manufacturer Part Number (MPN) of the item.
2017 &quot;offerId&quot;: &quot;A String&quot;, # An identifier of the item.
2018 &quot;price&quot;: { # Price of the item.
2019 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
2020 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
2021 },
2022 &quot;shownImage&quot;: &quot;A String&quot;, # URL to the cached image shown to the user when order was placed.
2023 &quot;targetCountry&quot;: &quot;A String&quot;, # The CLDR territory code of the target country of the product.
2024 &quot;title&quot;: &quot;A String&quot;, # The title of the product.
2025 &quot;variantAttributes&quot;: [ # Variant attributes for the item. These are dimensions of the product, such as color, gender, material, pattern, and size. You can find a comprehensive list of variant attributes here.
2026 {
2027 &quot;dimension&quot;: &quot;A String&quot;, # The dimension of the variant.
2028 &quot;value&quot;: &quot;A String&quot;, # The value for the dimension.
2029 },
2030 ],
2031 },
2032 &quot;quantityCanceled&quot;: 42, # Number of items canceled.
2033 &quot;quantityDelivered&quot;: 42, # Number of items delivered.
2034 &quot;quantityOrdered&quot;: 42, # Number of items ordered.
2035 &quot;quantityPending&quot;: 42, # Number of items pending.
2036 &quot;quantityReadyForPickup&quot;: 42, # Number of items ready for pickup.
2037 &quot;quantityReturned&quot;: 42, # Number of items returned.
2038 &quot;quantityShipped&quot;: 42, # Number of items shipped.
2039 &quot;quantityUndeliverable&quot;: 42, # Number of items undeliverable.
2040 &quot;returnInfo&quot;: { # Details of the return policy for the line item.
2041 &quot;daysToReturn&quot;: 42, # Required. How many days later the item can be returned.
2042 &quot;isReturnable&quot;: True or False, # Required. Whether the item is returnable.
2043 &quot;policyUrl&quot;: &quot;A String&quot;, # Required. URL of the item return policy.
2044 },
2045 &quot;returns&quot;: [ # Returns of the line item.
2046 {
2047 &quot;actor&quot;: &quot;A String&quot;, # The actor that created the refund.
2048 #
2049 # Acceptable values are:
2050 # - &quot;`customer`&quot;
2051 # - &quot;`googleBot`&quot;
2052 # - &quot;`googleCustomerService`&quot;
2053 # - &quot;`googlePayments`&quot;
2054 # - &quot;`googleSabre`&quot;
2055 # - &quot;`merchant`&quot;
2056 &quot;creationDate&quot;: &quot;A String&quot;, # Date on which the item has been created, in ISO 8601 format.
2057 &quot;quantity&quot;: 42, # Quantity that is returned.
2058 &quot;reason&quot;: &quot;A String&quot;, # The reason for the return.
2059 #
2060 # Acceptable values are:
2061 # - &quot;`customerDiscretionaryReturn`&quot;
2062 # - &quot;`customerInitiatedMerchantCancel`&quot;
2063 # - &quot;`deliveredTooLate`&quot;
2064 # - &quot;`expiredItem`&quot;
2065 # - &quot;`invalidCoupon`&quot;
2066 # - &quot;`malformedShippingAddress`&quot;
2067 # - &quot;`other`&quot;
2068 # - &quot;`productArrivedDamaged`&quot;
2069 # - &quot;`productNotAsDescribed`&quot;
2070 # - &quot;`qualityNotAsExpected`&quot;
2071 # - &quot;`undeliverableShippingAddress`&quot;
2072 # - &quot;`unsupportedPoBoxAddress`&quot;
2073 # - &quot;`wrongProductShipped`&quot;
2074 &quot;reasonText&quot;: &quot;A String&quot;, # The explanation of the reason.
2075 },
2076 ],
2077 &quot;shippingDetails&quot;: { # Details of the requested shipping for the line item.
2078 &quot;deliverByDate&quot;: &quot;A String&quot;, # Required. The delivery by date, in ISO 8601 format.
2079 &quot;method&quot;: { # Required. Details of the shipping method.
2080 &quot;carrier&quot;: &quot;A String&quot;, # The carrier for the shipping. Optional. See `shipments[].carrier` for a list of acceptable values.
2081 &quot;maxDaysInTransit&quot;: 42, # Required. Maximum transit time.
2082 &quot;methodName&quot;: &quot;A String&quot;, # Required. The name of the shipping method.
2083 &quot;minDaysInTransit&quot;: 42, # Required. Minimum transit time.
2084 },
2085 &quot;shipByDate&quot;: &quot;A String&quot;, # Required. The ship by date, in ISO 8601 format.
2086 &quot;type&quot;: &quot;A String&quot;, # Type of shipment. Indicates whether `deliveryDetails` or `pickupDetails` is applicable for this shipment.
2087 #
2088 # Acceptable values are:
2089 # - &quot;`delivery`&quot;
2090 # - &quot;`pickup`&quot;
2091 },
2092 &quot;tax&quot;: { # Total tax amount for the line item. For example, if two items are purchased, and each have a cost tax of $2, the total tax amount will be $4.
2093 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
2094 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
2095 },
2096 },
2097 ],
2098 &quot;merchantId&quot;: &quot;A String&quot;,
2099 &quot;merchantOrderId&quot;: &quot;A String&quot;, # Merchant-provided ID of the order.
2100 &quot;netPriceAmount&quot;: { # The net amount for the order (price part). For example, if an order was originally for $100 and a refund was issued for $20, the net amount will be $80.
2101 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
2102 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
2103 },
2104 &quot;netTaxAmount&quot;: { # The net amount for the order (tax part). Note that in certain cases due to taxable base adjustment `netTaxAmount` might not match to a sum of tax field across all lineItems and refunds.
2105 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
2106 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
2107 },
2108 &quot;paymentStatus&quot;: &quot;A String&quot;, # The status of the payment.
2109 #
2110 # Acceptable values are:
2111 # - &quot;`paymentCaptured`&quot;
2112 # - &quot;`paymentRejected`&quot;
2113 # - &quot;`paymentSecured`&quot;
2114 # - &quot;`pendingAuthorization`&quot;
2115 &quot;pickupDetails&quot;: { # Pickup details for shipments of type `pickup`.
2116 &quot;address&quot;: { # Address of the pickup location where the shipment should be sent. Note that `recipientName` in the address is the name of the business at the pickup location.
2117 &quot;country&quot;: &quot;A String&quot;, # CLDR country code (e.g. &quot;US&quot;).
2118 &quot;fullAddress&quot;: [ # Strings representing the lines of the printed label for mailing the order, for example:
2119 # John Smith
2120 # 1600 Amphitheatre Parkway
2121 # Mountain View, CA, 94043
2122 # United States
2123 &quot;A String&quot;,
2124 ],
2125 &quot;isPostOfficeBox&quot;: True or False, # Whether the address is a post office box.
2126 &quot;locality&quot;: &quot;A String&quot;, # City, town or commune. May also include dependent localities or sublocalities (e.g. neighborhoods or suburbs).
2127 &quot;postalCode&quot;: &quot;A String&quot;, # Postal Code or ZIP (e.g. &quot;94043&quot;).
2128 &quot;recipientName&quot;: &quot;A String&quot;, # Name of the recipient.
2129 &quot;region&quot;: &quot;A String&quot;, # Top-level administrative subdivision of the country. For example, a state like California (&quot;CA&quot;) or a province like Quebec (&quot;QC&quot;).
2130 &quot;streetAddress&quot;: [ # Street-level part of the address.
2131 &quot;A String&quot;,
2132 ],
2133 },
2134 &quot;collectors&quot;: [ # Collectors authorized to pick up shipment from the pickup location.
2135 {
2136 &quot;name&quot;: &quot;A String&quot;, # Name of the person picking up the shipment.
2137 &quot;phoneNumber&quot;: &quot;A String&quot;, # Phone number of the person picking up the shipment.
2138 },
2139 ],
2140 &quot;locationId&quot;: &quot;A String&quot;, # ID of the pickup location.
2141 },
2142 &quot;placedDate&quot;: &quot;A String&quot;, # The date when the order was placed, in ISO 8601 format.
2143 &quot;promotions&quot;: [ # Promotions associated with the order.
Dan O'Mearadd494642020-05-01 07:42:23 -07002144 #
2145 # To determine which promotions apply to which products, check the `Promotions[].appliedItems[].lineItemId` field against the `LineItems[].id` field for each promotion. If a promotion is applied to more than 1 offerId, divide the discount value by the number of affected offers to determine how much discount to apply to each offerId.
2146 #
2147 # Examples:
2148 # - To calculate price paid by the customer for a single line item including the discount: For each promotion, subtract the `LineItems[].adjustments[].priceAdjustment.value` amount from the `LineItems[].Price.value`.
2149 # - To calculate price paid by the customer for a single line item including the discount in case of multiple quantity: For each promotion, divide the `LineItems[].adjustments[].priceAdjustment.value` by the quantity of products then subtract the resulting value from the `LineItems[].Product.Price.value` for each quantity item.
2150 #
2151 # Only 1 promotion can be applied to an offerId in a given order. To refund an item which had a promotion applied to it, make sure to refund the amount after first subtracting the promotion discount from the item price.
2152 #
2153 # More details about the program are here.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002154 {
Bu Sun Kim65020912020-05-20 12:08:20 -07002155 &quot;applicableItems&quot;: [ # Items which this promotion may be applied to. If empty, there are no restrictions on applicable items and quantity.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002156 {
Bu Sun Kim65020912020-05-20 12:08:20 -07002157 &quot;lineItemId&quot;: &quot;A String&quot;, # The line item ID of a product. Do not provide for `orders.createtestorder`.
2158 &quot;offerId&quot;: &quot;A String&quot;, # Required. Offer ID of a product. Only for `orders.createtestorder`.
2159 &quot;productId&quot;: &quot;A String&quot;, # `orders.createtestorder`.
2160 &quot;quantity&quot;: 42, # The quantity of the associated product. Do not provide for `orders.createtestorder`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002161 },
2162 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002163 &quot;appliedItems&quot;: [ # Items which this promotion have been applied to. Do not provide for `orders.createtestorder`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002164 {
Bu Sun Kim65020912020-05-20 12:08:20 -07002165 &quot;lineItemId&quot;: &quot;A String&quot;, # The line item ID of a product. Do not provide for `orders.createtestorder`.
2166 &quot;offerId&quot;: &quot;A String&quot;, # Required. Offer ID of a product. Only for `orders.createtestorder`.
2167 &quot;productId&quot;: &quot;A String&quot;, # `orders.createtestorder`.
2168 &quot;quantity&quot;: 42, # The quantity of the associated product. Do not provide for `orders.createtestorder`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002169 },
2170 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002171 &quot;endTime&quot;: &quot;A String&quot;, # Promotion end time in ISO 8601 format. Date, time, and offset required, e.g., &quot;2020-01-02T09:00:00+01:00&quot; or &quot;2020-01-02T09:00:00Z&quot;.
2172 &quot;funder&quot;: &quot;A String&quot;, # Required. The party funding the promotion. Only `merchant` is supported for `orders.createtestorder`.
Dan O'Mearadd494642020-05-01 07:42:23 -07002173 #
2174 # Acceptable values are:
Bu Sun Kim65020912020-05-20 12:08:20 -07002175 # - &quot;`google`&quot;
2176 # - &quot;`merchant`&quot;
2177 &quot;merchantPromotionId&quot;: &quot;A String&quot;, # Required. This field is used to identify promotions within merchants&#x27; own systems.
2178 &quot;priceValue&quot;: { # Estimated discount applied to price. Amount is pre-tax or post-tax depending on location of order.
2179 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
2180 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
2181 },
2182 &quot;shortTitle&quot;: &quot;A String&quot;, # A short title of the promotion to be shown on the checkout page. Do not provide for `orders.createtestorder`.
2183 &quot;startTime&quot;: &quot;A String&quot;, # Promotion start time in ISO 8601 format. Date, time, and offset required, e.g., &quot;2020-01-02T09:00:00+01:00&quot; or &quot;2020-01-02T09:00:00Z&quot;.
2184 &quot;subtype&quot;: &quot;A String&quot;, # Required. The category of the promotion. Only `moneyOff` is supported for `orders.createtestorder`.
Dan O'Mearadd494642020-05-01 07:42:23 -07002185 #
2186 # Acceptable values are:
Bu Sun Kim65020912020-05-20 12:08:20 -07002187 # - &quot;`buyMGetMoneyOff`&quot;
2188 # - &quot;`buyMGetNMoneyOff`&quot;
2189 # - &quot;`buyMGetNPercentOff`&quot;
2190 # - &quot;`buyMGetPercentOff`&quot;
2191 # - &quot;`freeGift`&quot;
2192 # - &quot;`freeGiftWithItemId`&quot;
2193 # - &quot;`freeGiftWithValue`&quot;
2194 # - &quot;`freeShippingOvernight`&quot;
2195 # - &quot;`freeShippingStandard`&quot;
2196 # - &quot;`freeShippingTwoDay`&quot;
2197 # - &quot;`moneyOff`&quot;
2198 # - &quot;`percentOff`&quot;
2199 # - &quot;`rewardPoints`&quot;
2200 # - &quot;`salePrice`&quot;
2201 &quot;taxValue&quot;: { # Estimated discount applied to tax (if allowed by law). Do not provide for `orders.createtestorder`.
2202 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
2203 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
2204 },
2205 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the promotion.
2206 &quot;type&quot;: &quot;A String&quot;, # Required. The scope of the promotion. Only `product` is supported for `orders.createtestorder`.
2207 #
2208 # Acceptable values are:
2209 # - &quot;`product`&quot;
2210 # - &quot;`shipping`&quot;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002211 },
2212 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002213 &quot;refunds&quot;: [ # Refunds for the order.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002214 {
Bu Sun Kim65020912020-05-20 12:08:20 -07002215 &quot;actor&quot;: &quot;A String&quot;, # The actor that created the refund.
Dan O'Mearadd494642020-05-01 07:42:23 -07002216 #
2217 # Acceptable values are:
Bu Sun Kim65020912020-05-20 12:08:20 -07002218 # - &quot;`customer`&quot;
2219 # - &quot;`googleBot`&quot;
2220 # - &quot;`googleCustomerService`&quot;
2221 # - &quot;`googlePayments`&quot;
2222 # - &quot;`googleSabre`&quot;
2223 # - &quot;`merchant`&quot;
2224 &quot;amount&quot;: { # The amount that is refunded.
2225 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
2226 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
2227 },
2228 &quot;creationDate&quot;: &quot;A String&quot;, # Date on which the item has been created, in ISO 8601 format.
2229 &quot;reason&quot;: &quot;A String&quot;, # The reason for the refund.
2230 #
2231 # Acceptable values are:
2232 # - &quot;`adjustment`&quot;
2233 # - &quot;`autoPostInternal`&quot;
2234 # - &quot;`autoPostInvalidBillingAddress`&quot;
2235 # - &quot;`autoPostNoInventory`&quot;
2236 # - &quot;`autoPostPriceError`&quot;
2237 # - &quot;`autoPostUndeliverableShippingAddress`&quot;
2238 # - &quot;`couponAbuse`&quot;
2239 # - &quot;`courtesyAdjustment`&quot;
2240 # - &quot;`customerCanceled`&quot;
2241 # - &quot;`customerDiscretionaryReturn`&quot;
2242 # - &quot;`customerInitiatedMerchantCancel`&quot;
2243 # - &quot;`customerSupportRequested`&quot;
2244 # - &quot;`deliveredLateByCarrier`&quot;
2245 # - &quot;`deliveredTooLate`&quot;
2246 # - &quot;`expiredItem`&quot;
2247 # - &quot;`failToPushOrderGoogleError`&quot;
2248 # - &quot;`failToPushOrderMerchantError`&quot;
2249 # - &quot;`failToPushOrderMerchantFulfillmentError`&quot;
2250 # - &quot;`failToPushOrderToMerchant`&quot;
2251 # - &quot;`failToPushOrderToMerchantOutOfStock`&quot;
2252 # - &quot;`feeAdjustment`&quot;
2253 # - &quot;`invalidCoupon`&quot;
2254 # - &quot;`lateShipmentCredit`&quot;
2255 # - &quot;`malformedShippingAddress`&quot;
2256 # - &quot;`merchantDidNotShipOnTime`&quot;
2257 # - &quot;`noInventory`&quot;
2258 # - &quot;`orderTimeout`&quot;
2259 # - &quot;`other`&quot;
2260 # - &quot;`paymentAbuse`&quot;
2261 # - &quot;`paymentDeclined`&quot;
2262 # - &quot;`priceAdjustment`&quot;
2263 # - &quot;`priceError`&quot;
2264 # - &quot;`productArrivedDamaged`&quot;
2265 # - &quot;`productNotAsDescribed`&quot;
2266 # - &quot;`promoReallocation`&quot;
2267 # - &quot;`qualityNotAsExpected`&quot;
2268 # - &quot;`returnRefundAbuse`&quot;
2269 # - &quot;`shippingCostAdjustment`&quot;
2270 # - &quot;`shippingPriceError`&quot;
2271 # - &quot;`taxAdjustment`&quot;
2272 # - &quot;`taxError`&quot;
2273 # - &quot;`undeliverableShippingAddress`&quot;
2274 # - &quot;`unsupportedPoBoxAddress`&quot;
2275 # - &quot;`wrongProductShipped`&quot;
2276 &quot;reasonText&quot;: &quot;A String&quot;, # The explanation of the reason.
2277 },
2278 ],
2279 &quot;shipments&quot;: [ # Shipments of the order.
2280 {
2281 &quot;carrier&quot;: &quot;A String&quot;, # The carrier handling the shipment.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002282 #
Dan O'Mearadd494642020-05-01 07:42:23 -07002283 # For supported carriers, Google includes the carrier name and tracking URL in emails to customers. For select supported carriers, Google also automatically updates the shipment status based on the provided shipment ID. Note: You can also use unsupported carriers, but emails to customers will not include the carrier name or tracking URL, and there will be no automatic order status updates.
2284 # Supported carriers for US are:
Bu Sun Kim65020912020-05-20 12:08:20 -07002285 # - &quot;`ups`&quot; (United Parcel Service) automatic status updates
2286 # - &quot;`usps`&quot; (United States Postal Service) automatic status updates
2287 # - &quot;`fedex`&quot; (FedEx) automatic status updates
2288 # - &quot;`dhl`&quot; (DHL eCommerce) automatic status updates (US only)
2289 # - &quot;`ontrac`&quot; (OnTrac) automatic status updates
2290 # - &quot;`dhl express`&quot; (DHL Express)
2291 # - &quot;`deliv`&quot; (Deliv)
2292 # - &quot;`dynamex`&quot; (TForce)
2293 # - &quot;`lasership`&quot; (LaserShip)
2294 # - &quot;`mpx`&quot; (Military Parcel Xpress)
2295 # - &quot;`uds`&quot; (United Delivery Service)
2296 # - &quot;`efw`&quot; (Estes Forwarding Worldwide)
2297 # - &quot;`jd logistics`&quot; (JD Logistics)
2298 # - &quot;`yunexpress`&quot; (YunExpress)
2299 # - &quot;`china post`&quot; (China Post)
2300 # - &quot;`china ems`&quot; (China Post Express Mail Service)
2301 # - &quot;`singapore post`&quot; (Singapore Post)
2302 # - &quot;`pos malaysia`&quot; (Pos Malaysia)
2303 # - &quot;`postnl`&quot; (PostNL)
2304 # - &quot;`ptt`&quot; (PTT Turkish Post)
2305 # - &quot;`eub`&quot; (ePacket)
2306 # - &quot;`chukou1`&quot; (Chukou1 Logistics)
Dan O'Mearadd494642020-05-01 07:42:23 -07002307 # Supported carriers for FR are:
Bu Sun Kim65020912020-05-20 12:08:20 -07002308 # - &quot;`la poste`&quot; (La Poste) automatic status updates
2309 # - &quot;`colissimo`&quot; (Colissimo by La Poste) automatic status updates
2310 # - &quot;`ups`&quot; (United Parcel Service) automatic status updates
2311 # - &quot;`chronopost`&quot; (Chronopost by La Poste)
2312 # - &quot;`gls`&quot; (General Logistics Systems France)
2313 # - &quot;`dpd`&quot; (DPD Group by GeoPost)
2314 # - &quot;`bpost`&quot; (Belgian Post Group)
2315 # - &quot;`colis prive`&quot; (Colis Privé)
2316 # - &quot;`boxtal`&quot; (Boxtal)
2317 # - &quot;`geodis`&quot; (GEODIS)
2318 # - &quot;`tnt`&quot; (TNT)
2319 # - &quot;`db schenker`&quot; (DB Schenker)
2320 # - &quot;`aramex`&quot; (Aramex)
2321 &quot;creationDate&quot;: &quot;A String&quot;, # Date on which the shipment has been created, in ISO 8601 format.
2322 &quot;deliveryDate&quot;: &quot;A String&quot;, # Date on which the shipment has been delivered, in ISO 8601 format. Present only if `status` is `delivered`
2323 &quot;id&quot;: &quot;A String&quot;, # The ID of the shipment.
2324 &quot;lineItems&quot;: [ # The line items that are shipped.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002325 {
Bu Sun Kim65020912020-05-20 12:08:20 -07002326 &quot;lineItemId&quot;: &quot;A String&quot;, # The ID of the line item that is shipped. This value is assigned by Google when an order is created. Either lineItemId or productId is required.
2327 &quot;productId&quot;: &quot;A String&quot;, # The ID of the product to ship. This is the REST ID used in the products service. Either lineItemId or productId is required.
2328 &quot;quantity&quot;: 42, # The quantity that is shipped.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002329 },
2330 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002331 &quot;shipmentGroupId&quot;: &quot;A String&quot;, # The shipment group ID of the shipment. This is set in shiplineitems request.
2332 &quot;status&quot;: &quot;A String&quot;, # The status of the shipment.
Dan O'Mearadd494642020-05-01 07:42:23 -07002333 #
2334 # Acceptable values are:
Bu Sun Kim65020912020-05-20 12:08:20 -07002335 # - &quot;`delivered`&quot;
2336 # - &quot;`readyForPickup`&quot;
2337 # - &quot;`shipped`&quot;
2338 # - &quot;`undeliverable`&quot;
2339 &quot;trackingId&quot;: &quot;A String&quot;, # The tracking ID for the shipment.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002340 },
2341 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002342 &quot;shippingCost&quot;: { # The total cost of shipping for all items.
2343 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
2344 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
2345 },
2346 &quot;shippingCostTax&quot;: { # The tax for the total shipping cost.
2347 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
2348 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
2349 },
2350 &quot;status&quot;: &quot;A String&quot;, # The status of the order.
Dan O'Mearadd494642020-05-01 07:42:23 -07002351 #
2352 # Acceptable values are:
Bu Sun Kim65020912020-05-20 12:08:20 -07002353 # - &quot;`canceled`&quot;
2354 # - &quot;`delivered`&quot;
2355 # - &quot;`inProgress`&quot;
2356 # - &quot;`partiallyDelivered`&quot;
2357 # - &quot;`partiallyReturned`&quot;
2358 # - &quot;`partiallyShipped`&quot;
2359 # - &quot;`pendingShipment`&quot;
2360 # - &quot;`returned`&quot;
2361 # - &quot;`shipped`&quot;
2362 &quot;taxCollector&quot;: &quot;A String&quot;, # The party responsible for collecting and remitting taxes.
Dan O'Mearadd494642020-05-01 07:42:23 -07002363 #
2364 # Acceptable values are:
Bu Sun Kim65020912020-05-20 12:08:20 -07002365 # - &quot;`marketplaceFacilitator`&quot;
2366 # - &quot;`merchant`&quot;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002367 },
2368 ],
2369 }</pre>
2370</div>
2371
2372<div class="method">
2373 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
2374 <pre>Retrieves the next page of results.
2375
2376Args:
2377 previous_request: The request for the previous page. (required)
2378 previous_response: The response from the request for the previous page. (required)
2379
2380Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -07002381 A request object that you can call &#x27;execute()&#x27; on to request the next
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002382 page. Returns None if there are no more items in the collection.
2383 </pre>
2384</div>
2385
2386<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07002387 <code class="details" id="rejectreturnlineitem">rejectreturnlineitem(merchantId, orderId, body=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002388 <pre>Rejects return on an line item.
2389
2390Args:
2391 merchantId: string, The ID of the account that manages the order. This cannot be a multi-client account. (required)
2392 orderId: string, The ID of the order. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07002393 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002394 The object takes the form of:
2395
2396{
Bu Sun Kim65020912020-05-20 12:08:20 -07002397 &quot;lineItemId&quot;: &quot;A String&quot;, # The ID of the line item to return. Either lineItemId or productId is required.
2398 &quot;operationId&quot;: &quot;A String&quot;, # The ID of the operation. Unique across all operations for a given order.
2399 &quot;productId&quot;: &quot;A String&quot;, # The ID of the product to return. This is the REST ID used in the products service. Either lineItemId or productId is required.
2400 &quot;quantity&quot;: 42, # The quantity to return and refund.
2401 &quot;reason&quot;: &quot;A String&quot;, # The reason for the return.
Dan O'Mearadd494642020-05-01 07:42:23 -07002402 #
2403 # Acceptable values are:
Bu Sun Kim65020912020-05-20 12:08:20 -07002404 # - &quot;`damagedOrUsed`&quot;
2405 # - &quot;`missingComponent`&quot;
2406 # - &quot;`notEligible`&quot;
2407 # - &quot;`other`&quot;
2408 # - &quot;`outOfReturnWindow`&quot;
2409 &quot;reasonText&quot;: &quot;A String&quot;, # The explanation of the reason.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002410 }
2411
2412
2413Returns:
2414 An object of the form:
2415
2416 {
Bu Sun Kim65020912020-05-20 12:08:20 -07002417 &quot;executionStatus&quot;: &quot;A String&quot;, # The status of the execution.
Dan O'Mearadd494642020-05-01 07:42:23 -07002418 #
2419 # Acceptable values are:
Bu Sun Kim65020912020-05-20 12:08:20 -07002420 # - &quot;`duplicate`&quot;
2421 # - &quot;`executed`&quot;
2422 &quot;kind&quot;: &quot;content#ordersRejectReturnLineItemResponse&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;content#ordersRejectReturnLineItemResponse&quot;.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002423 }</pre>
2424</div>
2425
2426<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07002427 <code class="details" id="returnrefundlineitem">returnrefundlineitem(merchantId, orderId, body=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002428 <pre>Returns and refunds a line item. Note that this method can only be called on fully shipped orders.
2429
2430Args:
2431 merchantId: string, The ID of the account that manages the order. This cannot be a multi-client account. (required)
2432 orderId: string, The ID of the order. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07002433 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002434 The object takes the form of:
2435
2436{
Bu Sun Kim65020912020-05-20 12:08:20 -07002437 &quot;lineItemId&quot;: &quot;A String&quot;, # The ID of the line item to return. Either lineItemId or productId is required.
2438 &quot;operationId&quot;: &quot;A String&quot;, # The ID of the operation. Unique across all operations for a given order.
2439 &quot;priceAmount&quot;: { # The amount to be refunded. This may be pre-tax or post-tax depending on the location of the order. If omitted, refundless return is assumed.
2440 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
2441 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002442 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002443 &quot;productId&quot;: &quot;A String&quot;, # The ID of the product to return. This is the REST ID used in the products service. Either lineItemId or productId is required.
2444 &quot;quantity&quot;: 42, # The quantity to return and refund.
2445 &quot;reason&quot;: &quot;A String&quot;, # The reason for the return.
Dan O'Mearadd494642020-05-01 07:42:23 -07002446 #
2447 # Acceptable values are:
Bu Sun Kim65020912020-05-20 12:08:20 -07002448 # - &quot;`customerDiscretionaryReturn`&quot;
2449 # - &quot;`customerInitiatedMerchantCancel`&quot;
2450 # - &quot;`deliveredTooLate`&quot;
2451 # - &quot;`expiredItem`&quot;
2452 # - &quot;`invalidCoupon`&quot;
2453 # - &quot;`malformedShippingAddress`&quot;
2454 # - &quot;`other`&quot;
2455 # - &quot;`productArrivedDamaged`&quot;
2456 # - &quot;`productNotAsDescribed`&quot;
2457 # - &quot;`qualityNotAsExpected`&quot;
2458 # - &quot;`undeliverableShippingAddress`&quot;
2459 # - &quot;`unsupportedPoBoxAddress`&quot;
2460 # - &quot;`wrongProductShipped`&quot;
2461 &quot;reasonText&quot;: &quot;A String&quot;, # The explanation of the reason.
2462 &quot;taxAmount&quot;: { # The amount of tax to be refunded. Optional, but if filled, then priceAmount must be set. Calculated automatically if not provided.
2463 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
2464 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
2465 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002466 }
2467
2468
2469Returns:
2470 An object of the form:
2471
2472 {
Bu Sun Kim65020912020-05-20 12:08:20 -07002473 &quot;executionStatus&quot;: &quot;A String&quot;, # The status of the execution.
Dan O'Mearadd494642020-05-01 07:42:23 -07002474 #
2475 # Acceptable values are:
Bu Sun Kim65020912020-05-20 12:08:20 -07002476 # - &quot;`duplicate`&quot;
2477 # - &quot;`executed`&quot;
2478 &quot;kind&quot;: &quot;content#ordersReturnRefundLineItemResponse&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;content#ordersReturnRefundLineItemResponse&quot;.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002479 }</pre>
2480</div>
2481
2482<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07002483 <code class="details" id="setlineitemmetadata">setlineitemmetadata(merchantId, orderId, body=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002484 <pre>Sets (or overrides if it already exists) merchant provided annotations in the form of key-value pairs. A common use case would be to supply us with additional structured information about a line item that cannot be provided via other methods. Submitted key-value pairs can be retrieved as part of the orders resource.
2485
2486Args:
2487 merchantId: string, The ID of the account that manages the order. This cannot be a multi-client account. (required)
2488 orderId: string, The ID of the order. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07002489 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002490 The object takes the form of:
2491
2492{
Bu Sun Kim65020912020-05-20 12:08:20 -07002493 &quot;annotations&quot;: [
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002494 {
Bu Sun Kim65020912020-05-20 12:08:20 -07002495 &quot;key&quot;: &quot;A String&quot;, # Key for additional merchant provided (as key-value pairs) annotation about the line item.
2496 &quot;value&quot;: &quot;A String&quot;, # Value for additional merchant provided (as key-value pairs) annotation about the line item.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002497 },
2498 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002499 &quot;lineItemId&quot;: &quot;A String&quot;, # The ID of the line item to set metadata. Either lineItemId or productId is required.
2500 &quot;operationId&quot;: &quot;A String&quot;, # The ID of the operation. Unique across all operations for a given order.
2501 &quot;productId&quot;: &quot;A String&quot;, # The ID of the product to set metadata. This is the REST ID used in the products service. Either lineItemId or productId is required.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002502 }
2503
2504
2505Returns:
2506 An object of the form:
2507
2508 {
Bu Sun Kim65020912020-05-20 12:08:20 -07002509 &quot;executionStatus&quot;: &quot;A String&quot;, # The status of the execution.
Dan O'Mearadd494642020-05-01 07:42:23 -07002510 #
2511 # Acceptable values are:
Bu Sun Kim65020912020-05-20 12:08:20 -07002512 # - &quot;`duplicate`&quot;
2513 # - &quot;`executed`&quot;
2514 &quot;kind&quot;: &quot;content#ordersSetLineItemMetadataResponse&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;content#ordersSetLineItemMetadataResponse&quot;.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002515 }</pre>
2516</div>
2517
2518<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07002519 <code class="details" id="shiplineitems">shiplineitems(merchantId, orderId, body=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002520 <pre>Marks line item(s) as shipped.
2521
2522Args:
2523 merchantId: string, The ID of the account that manages the order. This cannot be a multi-client account. (required)
2524 orderId: string, The ID of the order. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07002525 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002526 The object takes the form of:
2527
2528{
Bu Sun Kim65020912020-05-20 12:08:20 -07002529 &quot;lineItems&quot;: [ # Line items to ship.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002530 {
Bu Sun Kim65020912020-05-20 12:08:20 -07002531 &quot;lineItemId&quot;: &quot;A String&quot;, # The ID of the line item that is shipped. This value is assigned by Google when an order is created. Either lineItemId or productId is required.
2532 &quot;productId&quot;: &quot;A String&quot;, # The ID of the product to ship. This is the REST ID used in the products service. Either lineItemId or productId is required.
2533 &quot;quantity&quot;: 42, # The quantity that is shipped.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002534 },
2535 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002536 &quot;operationId&quot;: &quot;A String&quot;, # The ID of the operation. Unique across all operations for a given order.
2537 &quot;shipmentGroupId&quot;: &quot;A String&quot;, # ID of the shipment group. Required for orders that use the orderinvoices service.
2538 &quot;shipmentInfos&quot;: [ # Shipment information. This field is repeated because a single line item can be shipped in several packages (and have several tracking IDs).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002539 {
Bu Sun Kim65020912020-05-20 12:08:20 -07002540 &quot;carrier&quot;: &quot;A String&quot;, # The carrier handling the shipment. See `shipments[].carrier` in the Orders resource representation for a list of acceptable values.
2541 &quot;shipmentId&quot;: &quot;A String&quot;, # Required. The ID of the shipment. This is assigned by the merchant and is unique to each shipment.
2542 &quot;trackingId&quot;: &quot;A String&quot;, # The tracking ID for the shipment.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002543 },
2544 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002545 }
2546
2547
2548Returns:
2549 An object of the form:
2550
2551 {
Bu Sun Kim65020912020-05-20 12:08:20 -07002552 &quot;executionStatus&quot;: &quot;A String&quot;, # The status of the execution.
Dan O'Mearadd494642020-05-01 07:42:23 -07002553 #
2554 # Acceptable values are:
Bu Sun Kim65020912020-05-20 12:08:20 -07002555 # - &quot;`duplicate`&quot;
2556 # - &quot;`executed`&quot;
2557 &quot;kind&quot;: &quot;content#ordersShipLineItemsResponse&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;content#ordersShipLineItemsResponse&quot;.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002558 }</pre>
2559</div>
2560
2561<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07002562 <code class="details" id="updatelineitemshippingdetails">updatelineitemshippingdetails(merchantId, orderId, body=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002563 <pre>Updates ship by and delivery by dates for a line item.
2564
2565Args:
2566 merchantId: string, The ID of the account that manages the order. This cannot be a multi-client account. (required)
2567 orderId: string, The ID of the order. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07002568 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002569 The object takes the form of:
2570
2571{
Bu Sun Kim65020912020-05-20 12:08:20 -07002572 &quot;deliverByDate&quot;: &quot;A String&quot;, # Updated delivery by date, in ISO 8601 format. If not specified only ship by date is updated.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002573 #
2574 # Provided date should be within 1 year timeframe and can not be a date in the past.
Bu Sun Kim65020912020-05-20 12:08:20 -07002575 &quot;lineItemId&quot;: &quot;A String&quot;, # The ID of the line item to set metadata. Either lineItemId or productId is required.
2576 &quot;operationId&quot;: &quot;A String&quot;, # The ID of the operation. Unique across all operations for a given order.
2577 &quot;productId&quot;: &quot;A String&quot;, # The ID of the product to set metadata. This is the REST ID used in the products service. Either lineItemId or productId is required.
2578 &quot;shipByDate&quot;: &quot;A String&quot;, # Updated ship by date, in ISO 8601 format. If not specified only deliver by date is updated.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002579 #
2580 # Provided date should be within 1 year timeframe and can not be a date in the past.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002581 }
2582
2583
2584Returns:
2585 An object of the form:
2586
2587 {
Bu Sun Kim65020912020-05-20 12:08:20 -07002588 &quot;executionStatus&quot;: &quot;A String&quot;, # The status of the execution.
Dan O'Mearadd494642020-05-01 07:42:23 -07002589 #
2590 # Acceptable values are:
Bu Sun Kim65020912020-05-20 12:08:20 -07002591 # - &quot;`duplicate`&quot;
2592 # - &quot;`executed`&quot;
2593 &quot;kind&quot;: &quot;content#ordersUpdateLineItemShippingDetailsResponse&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;content#ordersUpdateLineItemShippingDetailsResponse&quot;.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002594 }</pre>
2595</div>
2596
2597<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07002598 <code class="details" id="updatemerchantorderid">updatemerchantorderid(merchantId, orderId, body=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002599 <pre>Updates the merchant order ID for a given order.
2600
2601Args:
2602 merchantId: string, The ID of the account that manages the order. This cannot be a multi-client account. (required)
2603 orderId: string, The ID of the order. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07002604 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002605 The object takes the form of:
2606
2607{
Bu Sun Kim65020912020-05-20 12:08:20 -07002608 &quot;merchantOrderId&quot;: &quot;A String&quot;, # The merchant order id to be assigned to the order. Must be unique per merchant.
2609 &quot;operationId&quot;: &quot;A String&quot;, # The ID of the operation. Unique across all operations for a given order.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002610 }
2611
2612
2613Returns:
2614 An object of the form:
2615
2616 {
Bu Sun Kim65020912020-05-20 12:08:20 -07002617 &quot;executionStatus&quot;: &quot;A String&quot;, # The status of the execution.
Dan O'Mearadd494642020-05-01 07:42:23 -07002618 #
2619 # Acceptable values are:
Bu Sun Kim65020912020-05-20 12:08:20 -07002620 # - &quot;`duplicate`&quot;
2621 # - &quot;`executed`&quot;
2622 &quot;kind&quot;: &quot;content#ordersUpdateMerchantOrderIdResponse&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;content#ordersUpdateMerchantOrderIdResponse&quot;.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002623 }</pre>
2624</div>
2625
2626<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07002627 <code class="details" id="updateshipment">updateshipment(merchantId, orderId, body=None)</code>
Bu Sun Kim65020912020-05-20 12:08:20 -07002628 <pre>Updates a shipment&#x27;s status, carrier, and/or tracking ID.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002629
2630Args:
2631 merchantId: string, The ID of the account that manages the order. This cannot be a multi-client account. (required)
2632 orderId: string, The ID of the order. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07002633 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002634 The object takes the form of:
2635
2636{
Bu Sun Kim65020912020-05-20 12:08:20 -07002637 &quot;carrier&quot;: &quot;A String&quot;, # The carrier handling the shipment. Not updated if missing. See `shipments[].carrier` in the Orders resource representation for a list of acceptable values.
2638 &quot;deliveryDate&quot;: &quot;A String&quot;, # Date on which the shipment has been delivered, in ISO 8601 format. Optional and can be provided only if `status` is `delivered`.
2639 &quot;operationId&quot;: &quot;A String&quot;, # The ID of the operation. Unique across all operations for a given order.
2640 &quot;shipmentId&quot;: &quot;A String&quot;, # The ID of the shipment.
2641 &quot;status&quot;: &quot;A String&quot;, # New status for the shipment. Not updated if missing.
Dan O'Mearadd494642020-05-01 07:42:23 -07002642 #
2643 # Acceptable values are:
Bu Sun Kim65020912020-05-20 12:08:20 -07002644 # - &quot;`delivered`&quot;
2645 # - &quot;`undeliverable`&quot;
2646 &quot;trackingId&quot;: &quot;A String&quot;, # The tracking ID for the shipment. Not updated if missing.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002647 }
2648
2649
2650Returns:
2651 An object of the form:
2652
2653 {
Bu Sun Kim65020912020-05-20 12:08:20 -07002654 &quot;executionStatus&quot;: &quot;A String&quot;, # The status of the execution.
Dan O'Mearadd494642020-05-01 07:42:23 -07002655 #
2656 # Acceptable values are:
Bu Sun Kim65020912020-05-20 12:08:20 -07002657 # - &quot;`duplicate`&quot;
2658 # - &quot;`executed`&quot;
2659 &quot;kind&quot;: &quot;content#ordersUpdateShipmentResponse&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;content#ordersUpdateShipmentResponse&quot;.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002660 }</pre>
2661</div>
2662
2663</body></html>