1<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">
78  <code><a href="#acknowledge">acknowledge(merchantId, orderId, body=None, x__xgafv=None)</a></code></p>
79<p class="firstline">Marks an order as acknowledged.</p>
80<p class="toc_element">
81  <code><a href="#advancetestorder">advancetestorder(merchantId, orderId, x__xgafv=None)</a></code></p>
82<p class="firstline">Sandbox only. Moves a test order from state "`inProgress`" to state "`pendingShipment`".</p>
83<p class="toc_element">
84  <code><a href="#cancel">cancel(merchantId, orderId, body=None, x__xgafv=None)</a></code></p>
85<p class="firstline">Cancels all line items in an order, making a full refund.</p>
86<p class="toc_element">
87  <code><a href="#cancellineitem">cancellineitem(merchantId, orderId, body=None, x__xgafv=None)</a></code></p>
88<p class="firstline">Cancels a line item, making a full refund.</p>
89<p class="toc_element">
90  <code><a href="#canceltestorderbycustomer">canceltestorderbycustomer(merchantId, orderId, body=None, x__xgafv=None)</a></code></p>
91<p class="firstline">Sandbox only. Cancels a test order for customer-initiated cancellation.</p>
92<p class="toc_element">
93  <code><a href="#captureOrder">captureOrder(merchantId, orderId, body=None, x__xgafv=None)</a></code></p>
94<p class="firstline">Capture funds from the customer for the current order total. This method should be called after the merchant verifies that they are able and ready to start shipping the order. This method blocks until a response is received from the payment processsor. If this method succeeds, the merchant is guaranteed to receive funds for the order after shipment. If the request fails, it can be retried or the order may be cancelled. This method cannot be called after the entire order is already shipped. A rejected error code is returned when the payment service provider has declined the charge. This indicates a problem between the PSP and either the merchant's or customer's account. Sometimes this error will be resolved by the customer. We recommend retrying these errors once per day or cancelling the order with reason `failedToCaptureFunds` if the items cannot be held.</p>
95<p class="toc_element">
96  <code><a href="#close">close()</a></code></p>
97<p class="firstline">Close httplib2 connections.</p>
98<p class="toc_element">
99  <code><a href="#createtestorder">createtestorder(merchantId, body=None, x__xgafv=None)</a></code></p>
100<p class="firstline">Sandbox only. Creates a test order.</p>
101<p class="toc_element">
102  <code><a href="#createtestreturn">createtestreturn(merchantId, orderId, body=None, x__xgafv=None)</a></code></p>
103<p class="firstline">Sandbox only. Creates a test return.</p>
104<p class="toc_element">
105  <code><a href="#get">get(merchantId, orderId, x__xgafv=None)</a></code></p>
106<p class="firstline">Retrieves an order from your Merchant Center account.</p>
107<p class="toc_element">
108  <code><a href="#getbymerchantorderid">getbymerchantorderid(merchantId, merchantOrderId, x__xgafv=None)</a></code></p>
109<p class="firstline">Retrieves an order using merchant order ID.</p>
110<p class="toc_element">
111  <code><a href="#gettestordertemplate">gettestordertemplate(merchantId, templateName, country=None, x__xgafv=None)</a></code></p>
112<p class="firstline">Sandbox only. Retrieves an order template that can be used to quickly create a new order in sandbox.</p>
113<p class="toc_element">
114  <code><a href="#instorerefundlineitem">instorerefundlineitem(merchantId, orderId, body=None, x__xgafv=None)</a></code></p>
115<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). Note: 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.</p>
116<p class="toc_element">
117  <code><a href="#list">list(merchantId, acknowledged=None, maxResults=None, orderBy=None, pageToken=None, placedDateEnd=None, placedDateStart=None, statuses=None, x__xgafv=None)</a></code></p>
118<p class="firstline">Lists the orders in your Merchant Center account.</p>
119<p class="toc_element">
120  <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
121<p class="firstline">Retrieves the next page of results.</p>
122<p class="toc_element">
123  <code><a href="#refunditem">refunditem(merchantId, orderId, body=None, x__xgafv=None)</a></code></p>
124<p class="firstline">Issues a partial or total refund for items and shipment.</p>
125<p class="toc_element">
126  <code><a href="#refundorder">refundorder(merchantId, orderId, body=None, x__xgafv=None)</a></code></p>
127<p class="firstline">Issues a partial or total refund for an order.</p>
128<p class="toc_element">
129  <code><a href="#rejectreturnlineitem">rejectreturnlineitem(merchantId, orderId, body=None, x__xgafv=None)</a></code></p>
130<p class="firstline">Rejects return on an line item.</p>
131<p class="toc_element">
132  <code><a href="#returnrefundlineitem">returnrefundlineitem(merchantId, orderId, body=None, x__xgafv=None)</a></code></p>
133<p class="firstline">Returns and refunds a line item. Note that this method can only be called on fully shipped orders. Please also note that the Orderreturns API is the preferred way to handle returns after you receive a return from a customer. You can use Orderreturns.list or Orderreturns.get to search for the return, and then use Orderreturns.processreturn to issue the refund. If the return cannot be found, then we recommend using this API to issue a refund.</p>
134<p class="toc_element">
135  <code><a href="#setlineitemmetadata">setlineitemmetadata(merchantId, orderId, body=None, x__xgafv=None)</a></code></p>
136<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>
137<p class="toc_element">
138  <code><a href="#shiplineitems">shiplineitems(merchantId, orderId, body=None, x__xgafv=None)</a></code></p>
139<p class="firstline">Marks line item(s) as shipped.</p>
140<p class="toc_element">
141  <code><a href="#updatelineitemshippingdetails">updatelineitemshippingdetails(merchantId, orderId, body=None, x__xgafv=None)</a></code></p>
142<p class="firstline">Updates ship by and delivery by dates for a line item.</p>
143<p class="toc_element">
144  <code><a href="#updatemerchantorderid">updatemerchantorderid(merchantId, orderId, body=None, x__xgafv=None)</a></code></p>
145<p class="firstline">Updates the merchant order ID for a given order.</p>
146<p class="toc_element">
147  <code><a href="#updateshipment">updateshipment(merchantId, orderId, body=None, x__xgafv=None)</a></code></p>
148<p class="firstline">Updates a shipment's status, carrier, and/or tracking ID.</p>
149<h3>Method Details</h3>
150<div class="method">
151    <code class="details" id="acknowledge">acknowledge(merchantId, orderId, body=None, x__xgafv=None)</code>
152  <pre>Marks an order as acknowledged.
153
154Args:
155  merchantId: string, The ID of the account that manages the order. This cannot be a multi-client account. (required)
156  orderId: string, The ID of the order. (required)
157  body: object, The request body.
158    The object takes the form of:
159
160{
161  &quot;operationId&quot;: &quot;A String&quot;, # The ID of the operation. Unique across all operations for a given order.
162}
163
164  x__xgafv: string, V1 error format.
165    Allowed values
166      1 - v1 error format
167      2 - v2 error format
168
169Returns:
170  An object of the form:
171
172    {
173  &quot;executionStatus&quot;: &quot;A String&quot;, # The status of the execution. Acceptable values are: - &quot;`duplicate`&quot; - &quot;`executed`&quot;
174  &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#ordersAcknowledgeResponse`&quot;.
175}</pre>
176</div>
177
178<div class="method">
179    <code class="details" id="advancetestorder">advancetestorder(merchantId, orderId, x__xgafv=None)</code>
180  <pre>Sandbox only. Moves a test order from state &quot;`inProgress`&quot; to state &quot;`pendingShipment`&quot;.
181
182Args:
183  merchantId: string, The ID of the account that manages the order. This cannot be a multi-client account. (required)
184  orderId: string, The ID of the test order to modify. (required)
185  x__xgafv: string, V1 error format.
186    Allowed values
187      1 - v1 error format
188      2 - v2 error format
189
190Returns:
191  An object of the form:
192
193    {
194  &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#ordersAdvanceTestOrderResponse`&quot;.
195}</pre>
196</div>
197
198<div class="method">
199    <code class="details" id="cancel">cancel(merchantId, orderId, body=None, x__xgafv=None)</code>
200  <pre>Cancels all line items in an order, making a full refund.
201
202Args:
203  merchantId: string, The ID of the account that manages the order. This cannot be a multi-client account. (required)
204  orderId: string, The ID of the order to cancel. (required)
205  body: object, The request body.
206    The object takes the form of:
207
208{
209  &quot;operationId&quot;: &quot;A String&quot;, # The ID of the operation. Unique across all operations for a given order.
210  &quot;reason&quot;: &quot;A String&quot;, # The reason for the cancellation. Acceptable values are: - &quot;`customerInitiatedCancel`&quot; - &quot;`invalidCoupon`&quot; - &quot;`malformedShippingAddress`&quot; - &quot;`noInventory`&quot; - &quot;`other`&quot; - &quot;`priceError`&quot; - &quot;`shippingPriceError`&quot; - &quot;`taxError`&quot; - &quot;`undeliverableShippingAddress`&quot; - &quot;`unsupportedPoBoxAddress`&quot; - &quot;`failedToCaptureFunds`&quot;
211  &quot;reasonText&quot;: &quot;A String&quot;, # The explanation of the reason.
212}
213
214  x__xgafv: string, V1 error format.
215    Allowed values
216      1 - v1 error format
217      2 - v2 error format
218
219Returns:
220  An object of the form:
221
222    {
223  &quot;executionStatus&quot;: &quot;A String&quot;, # The status of the execution. Acceptable values are: - &quot;`duplicate`&quot; - &quot;`executed`&quot;
224  &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#ordersCancelResponse`&quot;.
225}</pre>
226</div>
227
228<div class="method">
229    <code class="details" id="cancellineitem">cancellineitem(merchantId, orderId, body=None, x__xgafv=None)</code>
230  <pre>Cancels a line item, making a full refund.
231
232Args:
233  merchantId: string, The ID of the account that manages the order. This cannot be a multi-client account. (required)
234  orderId: string, The ID of the order. (required)
235  body: object, The request body.
236    The object takes the form of:
237
238{
239  &quot;lineItemId&quot;: &quot;A String&quot;, # The ID of the line item to cancel. Either lineItemId or productId is required.
240  &quot;operationId&quot;: &quot;A String&quot;, # The ID of the operation. Unique across all operations for a given order.
241  &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.
242  &quot;quantity&quot;: 42, # The quantity to cancel.
243  &quot;reason&quot;: &quot;A String&quot;, # The reason for the cancellation. Acceptable values are: - &quot;`customerInitiatedCancel`&quot; - &quot;`invalidCoupon`&quot; - &quot;`malformedShippingAddress`&quot; - &quot;`noInventory`&quot; - &quot;`other`&quot; - &quot;`priceError`&quot; - &quot;`shippingPriceError`&quot; - &quot;`taxError`&quot; - &quot;`undeliverableShippingAddress`&quot; - &quot;`unsupportedPoBoxAddress`&quot; - &quot;`failedToCaptureFunds`&quot;
244  &quot;reasonText&quot;: &quot;A String&quot;, # The explanation of the reason.
245}
246
247  x__xgafv: string, V1 error format.
248    Allowed values
249      1 - v1 error format
250      2 - v2 error format
251
252Returns:
253  An object of the form:
254
255    {
256  &quot;executionStatus&quot;: &quot;A String&quot;, # The status of the execution. Acceptable values are: - &quot;`duplicate`&quot; - &quot;`executed`&quot;
257  &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#ordersCancelLineItemResponse`&quot;.
258}</pre>
259</div>
260
261<div class="method">
262    <code class="details" id="canceltestorderbycustomer">canceltestorderbycustomer(merchantId, orderId, body=None, x__xgafv=None)</code>
263  <pre>Sandbox only. Cancels a test order for customer-initiated cancellation.
264
265Args:
266  merchantId: string, The ID of the account that manages the order. This cannot be a multi-client account. (required)
267  orderId: string, The ID of the test order to cancel. (required)
268  body: object, The request body.
269    The object takes the form of:
270
271{
272  &quot;reason&quot;: &quot;A String&quot;, # The reason for the cancellation. Acceptable values are: - &quot;`changedMind`&quot; - &quot;`orderedWrongItem`&quot; - &quot;`other`&quot;
273}
274
275  x__xgafv: string, V1 error format.
276    Allowed values
277      1 - v1 error format
278      2 - v2 error format
279
280Returns:
281  An object of the form:
282
283    {
284  &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#ordersCancelTestOrderByCustomerResponse`&quot;.
285}</pre>
286</div>
287
288<div class="method">
289    <code class="details" id="captureOrder">captureOrder(merchantId, orderId, body=None, x__xgafv=None)</code>
290  <pre>Capture funds from the customer for the current order total. This method should be called after the merchant verifies that they are able and ready to start shipping the order. This method blocks until a response is received from the payment processsor. If this method succeeds, the merchant is guaranteed to receive funds for the order after shipment. If the request fails, it can be retried or the order may be cancelled. This method cannot be called after the entire order is already shipped. A rejected error code is returned when the payment service provider has declined the charge. This indicates a problem between the PSP and either the merchant&#x27;s or customer&#x27;s account. Sometimes this error will be resolved by the customer. We recommend retrying these errors once per day or cancelling the order with reason `failedToCaptureFunds` if the items cannot be held.
291
292Args:
293  merchantId: string, Required. The ID of the account that manages the order. This cannot be a multi-client account. (required)
294  orderId: string, Required. The ID of the Order. (required)
295  body: object, The request body.
296    The object takes the form of:
297
298{ # Request message for the CaptureOrder method.
299}
300
301  x__xgafv: string, V1 error format.
302    Allowed values
303      1 - v1 error format
304      2 - v2 error format
305
306Returns:
307  An object of the form:
308
309    { # Response message for the CaptureOrder method.
310  &quot;executionStatus&quot;: &quot;A String&quot;, # The status of the execution. Only defined if the request was successful. Acceptable values are: * &quot;duplicate&quot; * &quot;executed&quot;
311}</pre>
312</div>
313
314<div class="method">
315    <code class="details" id="close">close()</code>
316  <pre>Close httplib2 connections.</pre>
317</div>
318
319<div class="method">
320    <code class="details" id="createtestorder">createtestorder(merchantId, body=None, x__xgafv=None)</code>
321  <pre>Sandbox only. Creates a test order.
322
323Args:
324  merchantId: string, The ID of the account that should manage the order. This cannot be a multi-client account. (required)
325  body: object, The request body.
326    The object takes the form of:
327
328{
329  &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`. Acceptable values are: - &quot;`US`&quot; - &quot;`FR`&quot; Defaults to `US`.
330  &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. Acceptable values are: - &quot;`template1`&quot; - &quot;`template1a`&quot; - &quot;`template1b`&quot; - &quot;`template2`&quot; - &quot;`template3`&quot;
331  &quot;testOrder&quot;: { # The test order to create.
332    &quot;deliveryDetails&quot;: { # Overrides the predefined delivery details if provided.
333      &quot;address&quot;: { # The delivery address
334        &quot;country&quot;: &quot;A String&quot;, # CLDR country code (e.g. &quot;US&quot;).
335        &quot;fullAddress&quot;: [ # Strings representing the lines of the printed label for mailing the order, for example: John Smith 1600 Amphitheatre Parkway Mountain View, CA, 94043 United States
336          &quot;A String&quot;,
337        ],
338        &quot;isPostOfficeBox&quot;: True or False, # Whether the address is a post office box.
339        &quot;locality&quot;: &quot;A String&quot;, # City, town or commune. May also include dependent localities or sublocalities (e.g. neighborhoods or suburbs).
340        &quot;postalCode&quot;: &quot;A String&quot;, # Postal Code or ZIP (e.g. &quot;94043&quot;).
341        &quot;recipientName&quot;: &quot;A String&quot;, # Name of the recipient.
342        &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;).
343        &quot;streetAddress&quot;: [ # Street-level part of the address.
344          &quot;A String&quot;,
345        ],
346      },
347      &quot;isScheduledDelivery&quot;: True or False, # Whether the order is scheduled delivery order.
348      &quot;phoneNumber&quot;: &quot;A String&quot;, # The phone number of the person receiving the delivery.
349    },
350    &quot;enableOrderinvoices&quot;: True or False, # Whether the orderinvoices service should support this order.
351    &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#testOrder`&quot;
352    &quot;lineItems&quot;: [ # Required. Line items that are ordered. At least one line item must be provided.
353      {
354        &quot;product&quot;: { # Required. Product data from the time of the order placement.
355          &quot;brand&quot;: &quot;A String&quot;, # Required. Brand of the item.
356          &quot;condition&quot;: &quot;A String&quot;, # Required. Condition or state of the item. Acceptable values are: - &quot;`new`&quot;
357          &quot;contentLanguage&quot;: &quot;A String&quot;, # Required. The two-letter ISO 639-1 language code for the item. Acceptable values are: - &quot;`en`&quot; - &quot;`fr`&quot;
358          &quot;fees&quot;: [ # Fees for the item. Optional.
359            {
360              &quot;amount&quot;: { # Amount of the fee.
361                &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
362                &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
363              },
364              &quot;name&quot;: &quot;A String&quot;, # Name of the fee.
365            },
366          ],
367          &quot;gtin&quot;: &quot;A String&quot;, # Global Trade Item Number (GTIN) of the item. Optional.
368          &quot;imageLink&quot;: &quot;A String&quot;, # Required. URL of an image of the item.
369          &quot;itemGroupId&quot;: &quot;A String&quot;, # Shared identifier for all variants of the same product. Optional.
370          &quot;mpn&quot;: &quot;A String&quot;, # Manufacturer Part Number (MPN) of the item. Optional.
371          &quot;offerId&quot;: &quot;A String&quot;, # Required. An identifier of the item.
372          &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.
373            &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
374            &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
375          },
376          &quot;targetCountry&quot;: &quot;A String&quot;, # Required. The CLDR territory // code of the target country of the product.
377          &quot;title&quot;: &quot;A String&quot;, # Required. The title of the product.
378          &quot;variantAttributes&quot;: [ # Variant attributes for the item. Optional.
379            {
380              &quot;dimension&quot;: &quot;A String&quot;, # The dimension of the variant.
381              &quot;value&quot;: &quot;A String&quot;, # The value for the dimension.
382            },
383          ],
384        },
385        &quot;quantityOrdered&quot;: 42, # Required. Number of items ordered.
386        &quot;returnInfo&quot;: { # Required. Details of the return policy for the line item.
387          &quot;daysToReturn&quot;: 42, # Required. How many days later the item can be returned.
388          &quot;isReturnable&quot;: True or False, # Required. Whether the item is returnable.
389          &quot;policyUrl&quot;: &quot;A String&quot;, # Required. URL of the item return policy.
390        },
391        &quot;shippingDetails&quot;: { # Required. Details of the requested shipping for the line item.
392          &quot;deliverByDate&quot;: &quot;A String&quot;, # Required. The delivery by date, in ISO 8601 format.
393          &quot;method&quot;: { # Required. Details of the shipping method.
394            &quot;carrier&quot;: &quot;A String&quot;, # The carrier for the shipping. Optional. See `shipments[].carrier` for a list of acceptable values.
395            &quot;maxDaysInTransit&quot;: 42, # Required. Maximum transit time.
396            &quot;methodName&quot;: &quot;A String&quot;, # Required. The name of the shipping method.
397            &quot;minDaysInTransit&quot;: 42, # Required. Minimum transit time.
398          },
399          &quot;pickupPromiseInMinutes&quot;: 42, # The promised time in minutes in which the order will be ready for pickup. This only applies to buy-online-pickup-in-store same-day order.
400          &quot;shipByDate&quot;: &quot;A String&quot;, # Required. The ship by date, in ISO 8601 format.
401          &quot;type&quot;: &quot;A String&quot;, # Type of shipment. Indicates whether `deliveryDetails` or `pickupDetails` is applicable for this shipment. Acceptable values are: - &quot;`delivery`&quot; - &quot;`pickup`&quot;
402        },
403      },
404    ],
405    &quot;notificationMode&quot;: &quot;A String&quot;, # Restricted. Do not use.
406    &quot;pickupDetails&quot;: { # Overrides the predefined pickup details if provided.
407      &quot;locationCode&quot;: &quot;A String&quot;, # Required. Code of the location defined by provider or merchant.
408      &quot;pickupLocationAddress&quot;: { # Required. Pickup location address.
409        &quot;country&quot;: &quot;A String&quot;, # CLDR country code (e.g. &quot;US&quot;).
410        &quot;fullAddress&quot;: [ # Strings representing the lines of the printed label for mailing the order, for example: John Smith 1600 Amphitheatre Parkway Mountain View, CA, 94043 United States
411          &quot;A String&quot;,
412        ],
413        &quot;isPostOfficeBox&quot;: True or False, # Whether the address is a post office box.
414        &quot;locality&quot;: &quot;A String&quot;, # City, town or commune. May also include dependent localities or sublocalities (e.g. neighborhoods or suburbs).
415        &quot;postalCode&quot;: &quot;A String&quot;, # Postal Code or ZIP (e.g. &quot;94043&quot;).
416        &quot;recipientName&quot;: &quot;A String&quot;, # Name of the recipient.
417        &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;).
418        &quot;streetAddress&quot;: [ # Street-level part of the address.
419          &quot;A String&quot;,
420        ],
421      },
422      &quot;pickupLocationType&quot;: &quot;A String&quot;, # Pickup location type. Acceptable values are: - &quot;`locker`&quot; - &quot;`store`&quot; - &quot;`curbside`&quot;
423      &quot;pickupPersons&quot;: [ # Required. all pickup persons set by users.
424        {
425          &quot;name&quot;: &quot;A String&quot;, # Required. Full name of the pickup person.
426          &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number of the person picking up the items.
427        },
428      ],
429    },
430    &quot;predefinedBillingAddress&quot;: &quot;A String&quot;, # Required. The billing address. Acceptable values are: - &quot;`dwight`&quot; - &quot;`jim`&quot; - &quot;`pam`&quot;
431    &quot;predefinedDeliveryAddress&quot;: &quot;A String&quot;, # Required. Identifier of one of the predefined delivery addresses for the delivery. Acceptable values are: - &quot;`dwight`&quot; - &quot;`jim`&quot; - &quot;`pam`&quot;
432    &quot;predefinedEmail&quot;: &quot;A String&quot;, # Required. Email address of the customer. Acceptable values are: - &quot;`[email protected]`&quot; - &quot;`[email protected]`&quot; - &quot;`[email protected]`&quot;
433    &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`. Acceptable values are: - &quot;`dwight`&quot; - &quot;`jim`&quot; - &quot;`pam`&quot;
434    &quot;promotions&quot;: [ # Promotions associated with the order.
435      {
436        &quot;applicableItems&quot;: [ # Items that this promotion may be applied to. If empty, there are no restrictions on applicable items and quantity. This field will also be empty for shipping promotions because shipping is not tied to any specific item.
437          {
438            &quot;lineItemId&quot;: &quot;A String&quot;, # The line item ID of a product. Do not provide for `orders.createtestorder`.
439            &quot;offerId&quot;: &quot;A String&quot;, # Required. Offer ID of a product. Only for `orders.createtestorder`.
440            &quot;productId&quot;: &quot;A String&quot;, # `orders.createtestorder`.
441            &quot;quantity&quot;: 42, # The quantity of the associated product. Do not provide for `orders.createtestorder`.
442          },
443        ],
444        &quot;appliedItems&quot;: [ # Items that this promotion have been applied to. Do not provide for `orders.createtestorder`. This field will be empty for shipping promotions because shipping is not tied to any specific item.
445          {
446            &quot;lineItemId&quot;: &quot;A String&quot;, # The line item ID of a product. Do not provide for `orders.createtestorder`.
447            &quot;offerId&quot;: &quot;A String&quot;, # Required. Offer ID of a product. Only for `orders.createtestorder`.
448            &quot;productId&quot;: &quot;A String&quot;, # `orders.createtestorder`.
449            &quot;quantity&quot;: 42, # The quantity of the associated product. Do not provide for `orders.createtestorder`.
450          },
451        ],
452        &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;.
453        &quot;funder&quot;: &quot;A String&quot;, # Required. The party funding the promotion. Only `merchant` is supported for `orders.createtestorder`. Acceptable values are: - &quot;`google`&quot; - &quot;`merchant`&quot;
454        &quot;merchantPromotionId&quot;: &quot;A String&quot;, # Required. This field is used to identify promotions within merchants&#x27; own systems.
455        &quot;priceValue&quot;: { # Estimated discount applied to price. Amount is pre-tax or post-tax depending on location of order.
456          &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
457          &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
458        },
459        &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`.
460        &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;.
461        &quot;subtype&quot;: &quot;A String&quot;, # Required. The category of the promotion. Only `moneyOff` is supported for `orders.createtestorder`. Acceptable values are: - &quot;`buyMGetMoneyOff`&quot; - &quot;`buyMGetNMoneyOff`&quot; - &quot;`buyMGetNPercentOff`&quot; - &quot;`buyMGetPercentOff`&quot; - &quot;`freeGift`&quot; - &quot;`freeGiftWithItemId`&quot; - &quot;`freeGiftWithValue`&quot; - &quot;`freeShippingOvernight`&quot; - &quot;`freeShippingStandard`&quot; - &quot;`freeShippingTwoDay`&quot; - &quot;`moneyOff`&quot; - &quot;`percentOff`&quot; - &quot;`rewardPoints`&quot; - &quot;`salePrice`&quot;
462        &quot;taxValue&quot;: { # Estimated discount applied to tax (if allowed by law). Do not provide for `orders.createtestorder`.
463          &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
464          &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
465        },
466        &quot;title&quot;: &quot;A String&quot;, # Required. The title of the promotion.
467        &quot;type&quot;: &quot;A String&quot;, # Required. The scope of the promotion. Only `product` is supported for `orders.createtestorder`. Acceptable values are: - &quot;`product`&quot; - &quot;`shipping`&quot;
468      },
469    ],
470    &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.
471      &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
472      &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
473    },
474    &quot;shippingOption&quot;: &quot;A String&quot;, # Required. The requested shipping option. Acceptable values are: - &quot;`economy`&quot; - &quot;`expedited`&quot; - &quot;`oneDay`&quot; - &quot;`sameDay`&quot; - &quot;`standard`&quot; - &quot;`twoDay`&quot;
475  },
476}
477
478  x__xgafv: string, V1 error format.
479    Allowed values
480      1 - v1 error format
481      2 - v2 error format
482
483Returns:
484  An object of the form:
485
486    {
487  &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#ordersCreateTestOrderResponse`&quot;.
488  &quot;orderId&quot;: &quot;A String&quot;, # The ID of the newly created test order.
489}</pre>
490</div>
491
492<div class="method">
493    <code class="details" id="createtestreturn">createtestreturn(merchantId, orderId, body=None, x__xgafv=None)</code>
494  <pre>Sandbox only. Creates a test return.
495
496Args:
497  merchantId: string, The ID of the account that manages the order. This cannot be a multi-client account. (required)
498  orderId: string, The ID of the order. (required)
499  body: object, The request body.
500    The object takes the form of:
501
502{
503  &quot;items&quot;: [ # Returned items.
504    {
505      &quot;lineItemId&quot;: &quot;A String&quot;, # The ID of the line item to return.
506      &quot;quantity&quot;: 42, # Quantity that is returned.
507    },
508  ],
509}
510
511  x__xgafv: string, V1 error format.
512    Allowed values
513      1 - v1 error format
514      2 - v2 error format
515
516Returns:
517  An object of the form:
518
519    {
520  &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#ordersCreateTestReturnResponse`&quot;.
521  &quot;returnId&quot;: &quot;A String&quot;, # The ID of the newly created test order return.
522}</pre>
523</div>
524
525<div class="method">
526    <code class="details" id="get">get(merchantId, orderId, x__xgafv=None)</code>
527  <pre>Retrieves an order from your Merchant Center account.
528
529Args:
530  merchantId: string, The ID of the account that manages the order. This cannot be a multi-client account. (required)
531  orderId: string, The ID of the order. (required)
532  x__xgafv: string, V1 error format.
533    Allowed values
534      1 - v1 error format
535      2 - v2 error format
536
537Returns:
538  An object of the form:
539
540    { # Order. Production access (all methods) requires the order manager role. Sandbox access does not.
541  &quot;acknowledged&quot;: True or False, # Whether the order was acknowledged.
542  &quot;annotations&quot;: [ # List of key-value pairs that are attached to a given order.
543    {
544      &quot;key&quot;: &quot;A String&quot;, # Key for additional google provided (as key-value pairs) annotation.
545      &quot;value&quot;: &quot;A String&quot;, # Value for additional google provided (as key-value pairs) annotation.
546    },
547  ],
548  &quot;billingAddress&quot;: { # The billing address.
549    &quot;country&quot;: &quot;A String&quot;, # CLDR country code (e.g. &quot;US&quot;).
550    &quot;fullAddress&quot;: [ # Strings representing the lines of the printed label for mailing the order, for example: John Smith 1600 Amphitheatre Parkway Mountain View, CA, 94043 United States
551      &quot;A String&quot;,
552    ],
553    &quot;isPostOfficeBox&quot;: True or False, # Whether the address is a post office box.
554    &quot;locality&quot;: &quot;A String&quot;, # City, town or commune. May also include dependent localities or sublocalities (e.g. neighborhoods or suburbs).
555    &quot;postalCode&quot;: &quot;A String&quot;, # Postal Code or ZIP (e.g. &quot;94043&quot;).
556    &quot;recipientName&quot;: &quot;A String&quot;, # Name of the recipient.
557    &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;).
558    &quot;streetAddress&quot;: [ # Street-level part of the address.
559      &quot;A String&quot;,
560    ],
561  },
562  &quot;customer&quot;: { # The details of the customer who placed the order.
563    &quot;fullName&quot;: &quot;A String&quot;, # Full name of the customer.
564    &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 Buy on Google.
565    &quot;loyaltyInfo&quot;: { # Loyalty program information.
566      &quot;loyaltyNumber&quot;: &quot;A String&quot;, # The loyalty card/membership number.
567      &quot;name&quot;: &quot;A String&quot;, # Name of card/membership holder, this field will be populated when
568    },
569    &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.
570      &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. Acceptable values are: - &quot;`denied`&quot; - &quot;`granted`&quot;
571      &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.
572      &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.
573    },
574  },
575  &quot;deliveryDetails&quot;: { # Delivery details for shipments of type `delivery`.
576    &quot;address&quot;: { # The delivery address
577      &quot;country&quot;: &quot;A String&quot;, # CLDR country code (e.g. &quot;US&quot;).
578      &quot;fullAddress&quot;: [ # Strings representing the lines of the printed label for mailing the order, for example: John Smith 1600 Amphitheatre Parkway Mountain View, CA, 94043 United States
579        &quot;A String&quot;,
580      ],
581      &quot;isPostOfficeBox&quot;: True or False, # Whether the address is a post office box.
582      &quot;locality&quot;: &quot;A String&quot;, # City, town or commune. May also include dependent localities or sublocalities (e.g. neighborhoods or suburbs).
583      &quot;postalCode&quot;: &quot;A String&quot;, # Postal Code or ZIP (e.g. &quot;94043&quot;).
584      &quot;recipientName&quot;: &quot;A String&quot;, # Name of the recipient.
585      &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;).
586      &quot;streetAddress&quot;: [ # Street-level part of the address.
587        &quot;A String&quot;,
588      ],
589    },
590    &quot;phoneNumber&quot;: &quot;A String&quot;, # The phone number of the person receiving the delivery.
591  },
592  &quot;id&quot;: &quot;A String&quot;, # The REST ID of the order. Globally unique.
593  &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#order`&quot;
594  &quot;lineItems&quot;: [ # Line items that are ordered.
595    {
596      &quot;adjustments&quot;: [ # Price and tax adjustments applied on the line item.
597        {
598          &quot;priceAdjustment&quot;: { # Adjustment for total price of the line item.
599            &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
600            &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
601          },
602          &quot;taxAdjustment&quot;: { # Adjustment for total tax of the line item.
603            &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
604            &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
605          },
606          &quot;type&quot;: &quot;A String&quot;, # Type of this adjustment. Acceptable values are: - &quot;`promotion`&quot;
607        },
608      ],
609      &quot;annotations&quot;: [ # Annotations that are attached to the line item.
610        {
611          &quot;key&quot;: &quot;A String&quot;, # Key for additional merchant provided (as key-value pairs) annotation about the line item.
612          &quot;value&quot;: &quot;A String&quot;, # Value for additional merchant provided (as key-value pairs) annotation about the line item.
613        },
614      ],
615      &quot;cancellations&quot;: [ # Cancellations of the line item.
616        {
617          &quot;actor&quot;: &quot;A String&quot;, # The actor that created the cancellation. Acceptable values are: - &quot;`customer`&quot; - &quot;`googleBot`&quot; - &quot;`googleCustomerService`&quot; - &quot;`googlePayments`&quot; - &quot;`googleSabre`&quot; - &quot;`merchant`&quot;
618          &quot;creationDate&quot;: &quot;A String&quot;, # Date on which the cancellation has been created, in ISO 8601 format.
619          &quot;quantity&quot;: 42, # The quantity that was canceled.
620          &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 Buy on Google until you make an update to that product. This will not affect your Shopping ads. Acceptable values are: - &quot;`autoPostInternal`&quot; - &quot;`autoPostInvalidBillingAddress`&quot; - &quot;`autoPostNoInventory`&quot; - &quot;`autoPostPriceError`&quot; - &quot;`autoPostUndeliverableShippingAddress`&quot; - &quot;`couponAbuse`&quot; - &quot;`customerCanceled`&quot; - &quot;`customerInitiatedCancel`&quot; - &quot;`customerSupportRequested`&quot; - &quot;`failToPushOrderGoogleError`&quot; - &quot;`failToPushOrderMerchantError`&quot; - &quot;`failToPushOrderMerchantFulfillmentError`&quot; - &quot;`failToPushOrderToMerchant`&quot; - &quot;`failToPushOrderToMerchantOutOfStock`&quot; - &quot;`invalidCoupon`&quot; - &quot;`malformedShippingAddress`&quot; - &quot;`merchantDidNotShipOnTime`&quot; - &quot;`noInventory`&quot; - &quot;`orderTimeout`&quot; - &quot;`other`&quot; - &quot;`paymentAbuse`&quot; - &quot;`paymentDeclined`&quot; - &quot;`priceError`&quot; - &quot;`returnRefundAbuse`&quot; - &quot;`shippingPriceError`&quot; - &quot;`taxError`&quot; - &quot;`undeliverableShippingAddress`&quot; - &quot;`unsupportedPoBoxAddress`&quot; - &quot;`failedToCaptureFunds`&quot;
621          &quot;reasonText&quot;: &quot;A String&quot;, # The explanation of the reason.
622        },
623      ],
624      &quot;id&quot;: &quot;A String&quot;, # The ID of the line item.
625      &quot;price&quot;: { # Total price for the line item. For example, if two items for $10 are purchased, the total price will be $20.
626        &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
627        &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
628      },
629      &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.
630        &quot;brand&quot;: &quot;A String&quot;, # Brand of the item.
631        &quot;condition&quot;: &quot;A String&quot;, # Condition or state of the item. Acceptable values are: - &quot;`new`&quot; - &quot;`refurbished`&quot; - &quot;`used`&quot;
632        &quot;contentLanguage&quot;: &quot;A String&quot;, # The two-letter ISO 639-1 language code for the item.
633        &quot;fees&quot;: [ # Associated fees at order creation time.
634          {
635            &quot;amount&quot;: { # Amount of the fee.
636              &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
637              &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
638            },
639            &quot;name&quot;: &quot;A String&quot;, # Name of the fee.
640          },
641        ],
642        &quot;gtin&quot;: &quot;A String&quot;, # Global Trade Item Number (GTIN) of the item.
643        &quot;id&quot;: &quot;A String&quot;, # The REST ID of the product.
644        &quot;imageLink&quot;: &quot;A String&quot;, # URL of an image of the item.
645        &quot;itemGroupId&quot;: &quot;A String&quot;, # Shared identifier for all variants of the same product.
646        &quot;mpn&quot;: &quot;A String&quot;, # Manufacturer Part Number (MPN) of the item.
647        &quot;offerId&quot;: &quot;A String&quot;, # An identifier of the item.
648        &quot;price&quot;: { # Price of the item.
649          &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
650          &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
651        },
652        &quot;shownImage&quot;: &quot;A String&quot;, # URL to the cached image shown to the user when order was placed.
653        &quot;targetCountry&quot;: &quot;A String&quot;, # The CLDR territory // code of the target country of the product.
654        &quot;title&quot;: &quot;A String&quot;, # The title of the product.
655        &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.
656          {
657            &quot;dimension&quot;: &quot;A String&quot;, # The dimension of the variant.
658            &quot;value&quot;: &quot;A String&quot;, # The value for the dimension.
659          },
660        ],
661      },
662      &quot;quantityCanceled&quot;: 42, # Number of items canceled.
663      &quot;quantityDelivered&quot;: 42, # Number of items delivered.
664      &quot;quantityOrdered&quot;: 42, # Number of items ordered.
665      &quot;quantityPending&quot;: 42, # Number of items pending.
666      &quot;quantityReadyForPickup&quot;: 42, # Number of items ready for pickup.
667      &quot;quantityReturned&quot;: 42, # Number of items returned.
668      &quot;quantityShipped&quot;: 42, # Number of items shipped.
669      &quot;quantityUndeliverable&quot;: 42, # Number of items undeliverable.
670      &quot;returnInfo&quot;: { # Details of the return policy for the line item.
671        &quot;daysToReturn&quot;: 42, # Required. How many days later the item can be returned.
672        &quot;isReturnable&quot;: True or False, # Required. Whether the item is returnable.
673        &quot;policyUrl&quot;: &quot;A String&quot;, # Required. URL of the item return policy.
674      },
675      &quot;returns&quot;: [ # Returns of the line item.
676        {
677          &quot;actor&quot;: &quot;A String&quot;, # The actor that created the refund. Acceptable values are: - &quot;`customer`&quot; - &quot;`googleBot`&quot; - &quot;`googleCustomerService`&quot; - &quot;`googlePayments`&quot; - &quot;`googleSabre`&quot; - &quot;`merchant`&quot;
678          &quot;creationDate&quot;: &quot;A String&quot;, # Date on which the item has been created, in ISO 8601 format.
679          &quot;quantity&quot;: 42, # Quantity that is returned.
680          &quot;reason&quot;: &quot;A String&quot;, # The reason for the return. Acceptable values are: - &quot;`customerDiscretionaryReturn`&quot; - &quot;`customerInitiatedMerchantCancel`&quot; - &quot;`deliveredTooLate`&quot; - &quot;`expiredItem`&quot; - &quot;`invalidCoupon`&quot; - &quot;`malformedShippingAddress`&quot; - &quot;`other`&quot; - &quot;`productArrivedDamaged`&quot; - &quot;`productNotAsDescribed`&quot; - &quot;`qualityNotAsExpected`&quot; - &quot;`undeliverableShippingAddress`&quot; - &quot;`unsupportedPoBoxAddress`&quot; - &quot;`wrongProductShipped`&quot;
681          &quot;reasonText&quot;: &quot;A String&quot;, # The explanation of the reason.
682        },
683      ],
684      &quot;shippingDetails&quot;: { # Details of the requested shipping for the line item.
685        &quot;deliverByDate&quot;: &quot;A String&quot;, # Required. The delivery by date, in ISO 8601 format.
686        &quot;method&quot;: { # Required. Details of the shipping method.
687          &quot;carrier&quot;: &quot;A String&quot;, # The carrier for the shipping. Optional. See `shipments[].carrier` for a list of acceptable values.
688          &quot;maxDaysInTransit&quot;: 42, # Required. Maximum transit time.
689          &quot;methodName&quot;: &quot;A String&quot;, # Required. The name of the shipping method.
690          &quot;minDaysInTransit&quot;: 42, # Required. Minimum transit time.
691        },
692        &quot;pickupPromiseInMinutes&quot;: 42, # The promised time in minutes in which the order will be ready for pickup. This only applies to buy-online-pickup-in-store same-day order.
693        &quot;shipByDate&quot;: &quot;A String&quot;, # Required. The ship by date, in ISO 8601 format.
694        &quot;type&quot;: &quot;A String&quot;, # Type of shipment. Indicates whether `deliveryDetails` or `pickupDetails` is applicable for this shipment. Acceptable values are: - &quot;`delivery`&quot; - &quot;`pickup`&quot;
695      },
696      &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.
697        &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
698        &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
699      },
700    },
701  ],
702  &quot;merchantId&quot;: &quot;A String&quot;,
703  &quot;merchantOrderId&quot;: &quot;A String&quot;, # Merchant-provided ID of the order.
704  &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.
705    &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
706    &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
707  },
708  &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.
709    &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
710    &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
711  },
712  &quot;paymentStatus&quot;: &quot;A String&quot;, # The status of the payment. Acceptable values are: - &quot;`paymentCaptured`&quot; - &quot;`paymentRejected`&quot; - &quot;`paymentSecured`&quot; - &quot;`pendingAuthorization`&quot;
713  &quot;pickupDetails&quot;: { # Pickup details for shipments of type `pickup`.
714    &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.
715      &quot;country&quot;: &quot;A String&quot;, # CLDR country code (e.g. &quot;US&quot;).
716      &quot;fullAddress&quot;: [ # Strings representing the lines of the printed label for mailing the order, for example: John Smith 1600 Amphitheatre Parkway Mountain View, CA, 94043 United States
717        &quot;A String&quot;,
718      ],
719      &quot;isPostOfficeBox&quot;: True or False, # Whether the address is a post office box.
720      &quot;locality&quot;: &quot;A String&quot;, # City, town or commune. May also include dependent localities or sublocalities (e.g. neighborhoods or suburbs).
721      &quot;postalCode&quot;: &quot;A String&quot;, # Postal Code or ZIP (e.g. &quot;94043&quot;).
722      &quot;recipientName&quot;: &quot;A String&quot;, # Name of the recipient.
723      &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;).
724      &quot;streetAddress&quot;: [ # Street-level part of the address.
725        &quot;A String&quot;,
726      ],
727    },
728    &quot;collectors&quot;: [ # Collectors authorized to pick up shipment from the pickup location.
729      {
730        &quot;name&quot;: &quot;A String&quot;, # Name of the person picking up the shipment.
731        &quot;phoneNumber&quot;: &quot;A String&quot;, # Phone number of the person picking up the shipment.
732      },
733    ],
734    &quot;locationId&quot;: &quot;A String&quot;, # ID of the pickup location.
735    &quot;pickupType&quot;: &quot;A String&quot;, # The pickup type of this order. Acceptable values are: - &quot;`merchantStore`&quot; - &quot;`merchantStoreCurbside`&quot; - &quot;`merchantStoreLocker`&quot; - &quot;`thirdPartyPickupPoint`&quot; - &quot;`thirdPartyLocker`&quot;
736  },
737  &quot;placedDate&quot;: &quot;A String&quot;, # The date when the order was placed, in ISO 8601 format.
738  &quot;promotions&quot;: [ # Promotions associated with the order. 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. Examples: 1. 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`. 2. 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. 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. More details about the program are here.
739    {
740      &quot;applicableItems&quot;: [ # Items that this promotion may be applied to. If empty, there are no restrictions on applicable items and quantity. This field will also be empty for shipping promotions because shipping is not tied to any specific item.
741        {
742          &quot;lineItemId&quot;: &quot;A String&quot;, # The line item ID of a product. Do not provide for `orders.createtestorder`.
743          &quot;offerId&quot;: &quot;A String&quot;, # Required. Offer ID of a product. Only for `orders.createtestorder`.
744          &quot;productId&quot;: &quot;A String&quot;, # `orders.createtestorder`.
745          &quot;quantity&quot;: 42, # The quantity of the associated product. Do not provide for `orders.createtestorder`.
746        },
747      ],
748      &quot;appliedItems&quot;: [ # Items that this promotion have been applied to. Do not provide for `orders.createtestorder`. This field will be empty for shipping promotions because shipping is not tied to any specific item.
749        {
750          &quot;lineItemId&quot;: &quot;A String&quot;, # The line item ID of a product. Do not provide for `orders.createtestorder`.
751          &quot;offerId&quot;: &quot;A String&quot;, # Required. Offer ID of a product. Only for `orders.createtestorder`.
752          &quot;productId&quot;: &quot;A String&quot;, # `orders.createtestorder`.
753          &quot;quantity&quot;: 42, # The quantity of the associated product. Do not provide for `orders.createtestorder`.
754        },
755      ],
756      &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;.
757      &quot;funder&quot;: &quot;A String&quot;, # Required. The party funding the promotion. Only `merchant` is supported for `orders.createtestorder`. Acceptable values are: - &quot;`google`&quot; - &quot;`merchant`&quot;
758      &quot;merchantPromotionId&quot;: &quot;A String&quot;, # Required. This field is used to identify promotions within merchants&#x27; own systems.
759      &quot;priceValue&quot;: { # Estimated discount applied to price. Amount is pre-tax or post-tax depending on location of order.
760        &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
761        &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
762      },
763      &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`.
764      &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;.
765      &quot;subtype&quot;: &quot;A String&quot;, # Required. The category of the promotion. Only `moneyOff` is supported for `orders.createtestorder`. Acceptable values are: - &quot;`buyMGetMoneyOff`&quot; - &quot;`buyMGetNMoneyOff`&quot; - &quot;`buyMGetNPercentOff`&quot; - &quot;`buyMGetPercentOff`&quot; - &quot;`freeGift`&quot; - &quot;`freeGiftWithItemId`&quot; - &quot;`freeGiftWithValue`&quot; - &quot;`freeShippingOvernight`&quot; - &quot;`freeShippingStandard`&quot; - &quot;`freeShippingTwoDay`&quot; - &quot;`moneyOff`&quot; - &quot;`percentOff`&quot; - &quot;`rewardPoints`&quot; - &quot;`salePrice`&quot;
766      &quot;taxValue&quot;: { # Estimated discount applied to tax (if allowed by law). Do not provide for `orders.createtestorder`.
767        &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
768        &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
769      },
770      &quot;title&quot;: &quot;A String&quot;, # Required. The title of the promotion.
771      &quot;type&quot;: &quot;A String&quot;, # Required. The scope of the promotion. Only `product` is supported for `orders.createtestorder`. Acceptable values are: - &quot;`product`&quot; - &quot;`shipping`&quot;
772    },
773  ],
774  &quot;refunds&quot;: [ # Refunds for the order.
775    {
776      &quot;actor&quot;: &quot;A String&quot;, # The actor that created the refund. Acceptable values are: - &quot;`customer`&quot; - &quot;`googleBot`&quot; - &quot;`googleCustomerService`&quot; - &quot;`googlePayments`&quot; - &quot;`googleSabre`&quot; - &quot;`merchant`&quot;
777      &quot;amount&quot;: { # The amount that is refunded.
778        &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
779        &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
780      },
781      &quot;creationDate&quot;: &quot;A String&quot;, # Date on which the item has been created, in ISO 8601 format.
782      &quot;reason&quot;: &quot;A String&quot;, # The reason for the refund. Acceptable values are: - &quot;`adjustment`&quot; - &quot;`autoPostInternal`&quot; - &quot;`autoPostInvalidBillingAddress`&quot; - &quot;`autoPostNoInventory`&quot; - &quot;`autoPostPriceError`&quot; - &quot;`autoPostUndeliverableShippingAddress`&quot; - &quot;`couponAbuse`&quot; - &quot;`courtesyAdjustment`&quot; - &quot;`customerCanceled`&quot; - &quot;`customerDiscretionaryReturn`&quot; - &quot;`customerInitiatedMerchantCancel`&quot; - &quot;`customerSupportRequested`&quot; - &quot;`deliveredLateByCarrier`&quot; - &quot;`deliveredTooLate`&quot; - &quot;`expiredItem`&quot; - &quot;`failToPushOrderGoogleError`&quot; - &quot;`failToPushOrderMerchantError`&quot; - &quot;`failToPushOrderMerchantFulfillmentError`&quot; - &quot;`failToPushOrderToMerchant`&quot; - &quot;`failToPushOrderToMerchantOutOfStock`&quot; - &quot;`feeAdjustment`&quot; - &quot;`invalidCoupon`&quot; - &quot;`lateShipmentCredit`&quot; - &quot;`malformedShippingAddress`&quot; - &quot;`merchantDidNotShipOnTime`&quot; - &quot;`noInventory`&quot; - &quot;`orderTimeout`&quot; - &quot;`other`&quot; - &quot;`paymentAbuse`&quot; - &quot;`paymentDeclined`&quot; - &quot;`priceAdjustment`&quot; - &quot;`priceError`&quot; - &quot;`productArrivedDamaged`&quot; - &quot;`productNotAsDescribed`&quot; - &quot;`promoReallocation`&quot; - &quot;`qualityNotAsExpected`&quot; - &quot;`returnRefundAbuse`&quot; - &quot;`shippingCostAdjustment`&quot; - &quot;`shippingPriceError`&quot; - &quot;`taxAdjustment`&quot; - &quot;`taxError`&quot; - &quot;`undeliverableShippingAddress`&quot; - &quot;`unsupportedPoBoxAddress`&quot; - &quot;`wrongProductShipped`&quot;
783      &quot;reasonText&quot;: &quot;A String&quot;, # The explanation of the reason.
784    },
785  ],
786  &quot;shipments&quot;: [ # Shipments of the order.
787    {
788      &quot;carrier&quot;: &quot;A String&quot;, # The carrier handling the shipment. 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. Supported carriers for US are: - &quot;`ups`&quot; (United Parcel Service) *automatic status updates* - &quot;`usps`&quot; (United States Postal Service) *automatic status updates* - &quot;`fedex`&quot; (FedEx) *automatic status updates * - &quot;`dhl`&quot; (DHL eCommerce) *automatic status updates* (US only) - &quot;`ontrac`&quot; (OnTrac) *automatic status updates * - &quot;`dhl express`&quot; (DHL Express) - &quot;`deliv`&quot; (Deliv) - &quot;`dynamex`&quot; (TForce) - &quot;`lasership`&quot; (LaserShip) - &quot;`mpx`&quot; (Military Parcel Xpress) - &quot;`uds`&quot; (United Delivery Service) - &quot;`efw`&quot; (Estes Forwarding Worldwide) - &quot;`jd logistics`&quot; (JD Logistics) - &quot;`yunexpress`&quot; (YunExpress) - &quot;`china post`&quot; (China Post) - &quot;`china ems`&quot; (China Post Express Mail Service) - &quot;`singapore post`&quot; (Singapore Post) - &quot;`pos malaysia`&quot; (Pos Malaysia) - &quot;`postnl`&quot; (PostNL) - &quot;`ptt`&quot; (PTT Turkish Post) - &quot;`eub`&quot; (ePacket) - &quot;`chukou1`&quot; (Chukou1 Logistics) - &quot;`bestex`&quot; (Best Express) - &quot;`canada post`&quot; (Canada Post) - &quot;`purolator`&quot; (Purolator) - &quot;`canpar`&quot; (Canpar) - &quot;`india post`&quot; (India Post) - &quot;`blue dart`&quot; (Blue Dart) - &quot;`delhivery`&quot; (Delhivery) - &quot;`dtdc`&quot; (DTDC) - &quot;`tpc india`&quot; (TPC India) - &quot;`lso`&quot; (Lone Star Overnight) - &quot;`tww`&quot; (Team Worldwide) Supported carriers for FR are: - &quot;`la poste`&quot; (La Poste) *automatic status updates * - &quot;`colissimo`&quot; (Colissimo by La Poste) *automatic status updates* - &quot;`ups`&quot; (United Parcel Service) *automatic status updates * - &quot;`chronopost`&quot; (Chronopost by La Poste) - &quot;`gls`&quot; (General Logistics Systems France) - &quot;`dpd`&quot; (DPD Group by GeoPost) - &quot;`bpost`&quot; (Belgian Post Group) - &quot;`colis prive`&quot; (Colis Privé) - &quot;`boxtal`&quot; (Boxtal) - &quot;`geodis`&quot; (GEODIS) - &quot;`tnt`&quot; (TNT) - &quot;`db schenker`&quot; (DB Schenker) - &quot;`aramex`&quot; (Aramex)
789      &quot;creationDate&quot;: &quot;A String&quot;, # Date on which the shipment has been created, in ISO 8601 format.
790      &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`
791      &quot;id&quot;: &quot;A String&quot;, # The ID of the shipment.
792      &quot;lineItems&quot;: [ # The line items that are shipped.
793        {
794          &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.
795          &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.
796          &quot;quantity&quot;: 42, # The quantity that is shipped.
797        },
798      ],
799      &quot;scheduledDeliveryDetails&quot;: { # Delivery details of the shipment if scheduling is needed.
800        &quot;carrierPhoneNumber&quot;: &quot;A String&quot;, # The phone number of the carrier fulfilling the delivery. The phone number is formatted as the international notation in ITU-T Recommendation E.123 (e.g., &quot;+41 44 668 1800&quot;).
801        &quot;scheduledDate&quot;: &quot;A String&quot;, # The date a shipment is scheduled for delivery, in ISO 8601 format.
802      },
803      &quot;shipmentGroupId&quot;: &quot;A String&quot;, # The shipment group ID of the shipment. This is set in shiplineitems request.
804      &quot;status&quot;: &quot;A String&quot;, # The status of the shipment. Acceptable values are: - &quot;`delivered`&quot; - &quot;`readyForPickup`&quot; - &quot;`shipped`&quot; - &quot;`undeliverable`&quot;
805      &quot;trackingId&quot;: &quot;A String&quot;, # The tracking ID for the shipment.
806    },
807  ],
808  &quot;shippingCost&quot;: { # The total cost of shipping for all items.
809    &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
810    &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
811  },
812  &quot;shippingCostTax&quot;: { # The tax for the total shipping cost.
813    &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
814    &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
815  },
816  &quot;status&quot;: &quot;A String&quot;, # The status of the order. Acceptable values are: - &quot;`canceled`&quot; - &quot;`delivered`&quot; - &quot;`inProgress`&quot; - &quot;`partiallyDelivered`&quot; - &quot;`partiallyReturned`&quot; - &quot;`partiallyShipped`&quot; - &quot;`pendingShipment`&quot; - &quot;`returned`&quot; - &quot;`shipped`&quot;
817  &quot;taxCollector&quot;: &quot;A String&quot;, # The party responsible for collecting and remitting taxes. Acceptable values are: - &quot;`marketplaceFacilitator`&quot; - &quot;`merchant`&quot;
818}</pre>
819</div>
820
821<div class="method">
822    <code class="details" id="getbymerchantorderid">getbymerchantorderid(merchantId, merchantOrderId, x__xgafv=None)</code>
823  <pre>Retrieves an order using merchant order ID.
824
825Args:
826  merchantId: string, The ID of the account that manages the order. This cannot be a multi-client account. (required)
827  merchantOrderId: string, The merchant order ID to be looked for. (required)
828  x__xgafv: string, V1 error format.
829    Allowed values
830      1 - v1 error format
831      2 - v2 error format
832
833Returns:
834  An object of the form:
835
836    {
837  &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#ordersGetByMerchantOrderIdResponse`&quot;.
838  &quot;order&quot;: { # Order. Production access (all methods) requires the order manager role. Sandbox access does not. # The requested order.
839    &quot;acknowledged&quot;: True or False, # Whether the order was acknowledged.
840    &quot;annotations&quot;: [ # List of key-value pairs that are attached to a given order.
841      {
842        &quot;key&quot;: &quot;A String&quot;, # Key for additional google provided (as key-value pairs) annotation.
843        &quot;value&quot;: &quot;A String&quot;, # Value for additional google provided (as key-value pairs) annotation.
844      },
845    ],
846    &quot;billingAddress&quot;: { # The billing address.
847      &quot;country&quot;: &quot;A String&quot;, # CLDR country code (e.g. &quot;US&quot;).
848      &quot;fullAddress&quot;: [ # Strings representing the lines of the printed label for mailing the order, for example: John Smith 1600 Amphitheatre Parkway Mountain View, CA, 94043 United States
849        &quot;A String&quot;,
850      ],
851      &quot;isPostOfficeBox&quot;: True or False, # Whether the address is a post office box.
852      &quot;locality&quot;: &quot;A String&quot;, # City, town or commune. May also include dependent localities or sublocalities (e.g. neighborhoods or suburbs).
853      &quot;postalCode&quot;: &quot;A String&quot;, # Postal Code or ZIP (e.g. &quot;94043&quot;).
854      &quot;recipientName&quot;: &quot;A String&quot;, # Name of the recipient.
855      &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;).
856      &quot;streetAddress&quot;: [ # Street-level part of the address.
857        &quot;A String&quot;,
858      ],
859    },
860    &quot;customer&quot;: { # The details of the customer who placed the order.
861      &quot;fullName&quot;: &quot;A String&quot;, # Full name of the customer.
862      &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 Buy on Google.
863      &quot;loyaltyInfo&quot;: { # Loyalty program information.
864        &quot;loyaltyNumber&quot;: &quot;A String&quot;, # The loyalty card/membership number.
865        &quot;name&quot;: &quot;A String&quot;, # Name of card/membership holder, this field will be populated when
866      },
867      &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.
868        &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. Acceptable values are: - &quot;`denied`&quot; - &quot;`granted`&quot;
869        &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.
870        &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.
871      },
872    },
873    &quot;deliveryDetails&quot;: { # Delivery details for shipments of type `delivery`.
874      &quot;address&quot;: { # The delivery address
875        &quot;country&quot;: &quot;A String&quot;, # CLDR country code (e.g. &quot;US&quot;).
876        &quot;fullAddress&quot;: [ # Strings representing the lines of the printed label for mailing the order, for example: John Smith 1600 Amphitheatre Parkway Mountain View, CA, 94043 United States
877          &quot;A String&quot;,
878        ],
879        &quot;isPostOfficeBox&quot;: True or False, # Whether the address is a post office box.
880        &quot;locality&quot;: &quot;A String&quot;, # City, town or commune. May also include dependent localities or sublocalities (e.g. neighborhoods or suburbs).
881        &quot;postalCode&quot;: &quot;A String&quot;, # Postal Code or ZIP (e.g. &quot;94043&quot;).
882        &quot;recipientName&quot;: &quot;A String&quot;, # Name of the recipient.
883        &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;).
884        &quot;streetAddress&quot;: [ # Street-level part of the address.
885          &quot;A String&quot;,
886        ],
887      },
888      &quot;phoneNumber&quot;: &quot;A String&quot;, # The phone number of the person receiving the delivery.
889    },
890    &quot;id&quot;: &quot;A String&quot;, # The REST ID of the order. Globally unique.
891    &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#order`&quot;
892    &quot;lineItems&quot;: [ # Line items that are ordered.
893      {
894        &quot;adjustments&quot;: [ # Price and tax adjustments applied on the line item.
895          {
896            &quot;priceAdjustment&quot;: { # Adjustment for total price of the line item.
897              &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
898              &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
899            },
900            &quot;taxAdjustment&quot;: { # Adjustment for total tax of the line item.
901              &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
902              &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
903            },
904            &quot;type&quot;: &quot;A String&quot;, # Type of this adjustment. Acceptable values are: - &quot;`promotion`&quot;
905          },
906        ],
907        &quot;annotations&quot;: [ # Annotations that are attached to the line item.
908          {
909            &quot;key&quot;: &quot;A String&quot;, # Key for additional merchant provided (as key-value pairs) annotation about the line item.
910            &quot;value&quot;: &quot;A String&quot;, # Value for additional merchant provided (as key-value pairs) annotation about the line item.
911          },
912        ],
913        &quot;cancellations&quot;: [ # Cancellations of the line item.
914          {
915            &quot;actor&quot;: &quot;A String&quot;, # The actor that created the cancellation. Acceptable values are: - &quot;`customer`&quot; - &quot;`googleBot`&quot; - &quot;`googleCustomerService`&quot; - &quot;`googlePayments`&quot; - &quot;`googleSabre`&quot; - &quot;`merchant`&quot;
916            &quot;creationDate&quot;: &quot;A String&quot;, # Date on which the cancellation has been created, in ISO 8601 format.
917            &quot;quantity&quot;: 42, # The quantity that was canceled.
918            &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 Buy on Google until you make an update to that product. This will not affect your Shopping ads. Acceptable values are: - &quot;`autoPostInternal`&quot; - &quot;`autoPostInvalidBillingAddress`&quot; - &quot;`autoPostNoInventory`&quot; - &quot;`autoPostPriceError`&quot; - &quot;`autoPostUndeliverableShippingAddress`&quot; - &quot;`couponAbuse`&quot; - &quot;`customerCanceled`&quot; - &quot;`customerInitiatedCancel`&quot; - &quot;`customerSupportRequested`&quot; - &quot;`failToPushOrderGoogleError`&quot; - &quot;`failToPushOrderMerchantError`&quot; - &quot;`failToPushOrderMerchantFulfillmentError`&quot; - &quot;`failToPushOrderToMerchant`&quot; - &quot;`failToPushOrderToMerchantOutOfStock`&quot; - &quot;`invalidCoupon`&quot; - &quot;`malformedShippingAddress`&quot; - &quot;`merchantDidNotShipOnTime`&quot; - &quot;`noInventory`&quot; - &quot;`orderTimeout`&quot; - &quot;`other`&quot; - &quot;`paymentAbuse`&quot; - &quot;`paymentDeclined`&quot; - &quot;`priceError`&quot; - &quot;`returnRefundAbuse`&quot; - &quot;`shippingPriceError`&quot; - &quot;`taxError`&quot; - &quot;`undeliverableShippingAddress`&quot; - &quot;`unsupportedPoBoxAddress`&quot; - &quot;`failedToCaptureFunds`&quot;
919            &quot;reasonText&quot;: &quot;A String&quot;, # The explanation of the reason.
920          },
921        ],
922        &quot;id&quot;: &quot;A String&quot;, # The ID of the line item.
923        &quot;price&quot;: { # Total price for the line item. For example, if two items for $10 are purchased, the total price will be $20.
924          &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
925          &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
926        },
927        &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.
928          &quot;brand&quot;: &quot;A String&quot;, # Brand of the item.
929          &quot;condition&quot;: &quot;A String&quot;, # Condition or state of the item. Acceptable values are: - &quot;`new`&quot; - &quot;`refurbished`&quot; - &quot;`used`&quot;
930          &quot;contentLanguage&quot;: &quot;A String&quot;, # The two-letter ISO 639-1 language code for the item.
931          &quot;fees&quot;: [ # Associated fees at order creation time.
932            {
933              &quot;amount&quot;: { # Amount of the fee.
934                &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
935                &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
936              },
937              &quot;name&quot;: &quot;A String&quot;, # Name of the fee.
938            },
939          ],
940          &quot;gtin&quot;: &quot;A String&quot;, # Global Trade Item Number (GTIN) of the item.
941          &quot;id&quot;: &quot;A String&quot;, # The REST ID of the product.
942          &quot;imageLink&quot;: &quot;A String&quot;, # URL of an image of the item.
943          &quot;itemGroupId&quot;: &quot;A String&quot;, # Shared identifier for all variants of the same product.
944          &quot;mpn&quot;: &quot;A String&quot;, # Manufacturer Part Number (MPN) of the item.
945          &quot;offerId&quot;: &quot;A String&quot;, # An identifier of the item.
946          &quot;price&quot;: { # Price of the item.
947            &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
948            &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
949          },
950          &quot;shownImage&quot;: &quot;A String&quot;, # URL to the cached image shown to the user when order was placed.
951          &quot;targetCountry&quot;: &quot;A String&quot;, # The CLDR territory // code of the target country of the product.
952          &quot;title&quot;: &quot;A String&quot;, # The title of the product.
953          &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.
954            {
955              &quot;dimension&quot;: &quot;A String&quot;, # The dimension of the variant.
956              &quot;value&quot;: &quot;A String&quot;, # The value for the dimension.
957            },
958          ],
959        },
960        &quot;quantityCanceled&quot;: 42, # Number of items canceled.
961        &quot;quantityDelivered&quot;: 42, # Number of items delivered.
962        &quot;quantityOrdered&quot;: 42, # Number of items ordered.
963        &quot;quantityPending&quot;: 42, # Number of items pending.
964        &quot;quantityReadyForPickup&quot;: 42, # Number of items ready for pickup.
965        &quot;quantityReturned&quot;: 42, # Number of items returned.
966        &quot;quantityShipped&quot;: 42, # Number of items shipped.
967        &quot;quantityUndeliverable&quot;: 42, # Number of items undeliverable.
968        &quot;returnInfo&quot;: { # Details of the return policy for the line item.
969          &quot;daysToReturn&quot;: 42, # Required. How many days later the item can be returned.
970          &quot;isReturnable&quot;: True or False, # Required. Whether the item is returnable.
971          &quot;policyUrl&quot;: &quot;A String&quot;, # Required. URL of the item return policy.
972        },
973        &quot;returns&quot;: [ # Returns of the line item.
974          {
975            &quot;actor&quot;: &quot;A String&quot;, # The actor that created the refund. Acceptable values are: - &quot;`customer`&quot; - &quot;`googleBot`&quot; - &quot;`googleCustomerService`&quot; - &quot;`googlePayments`&quot; - &quot;`googleSabre`&quot; - &quot;`merchant`&quot;
976            &quot;creationDate&quot;: &quot;A String&quot;, # Date on which the item has been created, in ISO 8601 format.
977            &quot;quantity&quot;: 42, # Quantity that is returned.
978            &quot;reason&quot;: &quot;A String&quot;, # The reason for the return. Acceptable values are: - &quot;`customerDiscretionaryReturn`&quot; - &quot;`customerInitiatedMerchantCancel`&quot; - &quot;`deliveredTooLate`&quot; - &quot;`expiredItem`&quot; - &quot;`invalidCoupon`&quot; - &quot;`malformedShippingAddress`&quot; - &quot;`other`&quot; - &quot;`productArrivedDamaged`&quot; - &quot;`productNotAsDescribed`&quot; - &quot;`qualityNotAsExpected`&quot; - &quot;`undeliverableShippingAddress`&quot; - &quot;`unsupportedPoBoxAddress`&quot; - &quot;`wrongProductShipped`&quot;
979            &quot;reasonText&quot;: &quot;A String&quot;, # The explanation of the reason.
980          },
981        ],
982        &quot;shippingDetails&quot;: { # Details of the requested shipping for the line item.
983          &quot;deliverByDate&quot;: &quot;A String&quot;, # Required. The delivery by date, in ISO 8601 format.
984          &quot;method&quot;: { # Required. Details of the shipping method.
985            &quot;carrier&quot;: &quot;A String&quot;, # The carrier for the shipping. Optional. See `shipments[].carrier` for a list of acceptable values.
986            &quot;maxDaysInTransit&quot;: 42, # Required. Maximum transit time.
987            &quot;methodName&quot;: &quot;A String&quot;, # Required. The name of the shipping method.
988            &quot;minDaysInTransit&quot;: 42, # Required. Minimum transit time.
989          },
990          &quot;pickupPromiseInMinutes&quot;: 42, # The promised time in minutes in which the order will be ready for pickup. This only applies to buy-online-pickup-in-store same-day order.
991          &quot;shipByDate&quot;: &quot;A String&quot;, # Required. The ship by date, in ISO 8601 format.
992          &quot;type&quot;: &quot;A String&quot;, # Type of shipment. Indicates whether `deliveryDetails` or `pickupDetails` is applicable for this shipment. Acceptable values are: - &quot;`delivery`&quot; - &quot;`pickup`&quot;
993        },
994        &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.
995          &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
996          &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
997        },
998      },
999    ],
1000    &quot;merchantId&quot;: &quot;A String&quot;,
1001    &quot;merchantOrderId&quot;: &quot;A String&quot;, # Merchant-provided ID of the order.
1002    &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.
1003      &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1004      &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1005    },
1006    &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.
1007      &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1008      &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1009    },
1010    &quot;paymentStatus&quot;: &quot;A String&quot;, # The status of the payment. Acceptable values are: - &quot;`paymentCaptured`&quot; - &quot;`paymentRejected`&quot; - &quot;`paymentSecured`&quot; - &quot;`pendingAuthorization`&quot;
1011    &quot;pickupDetails&quot;: { # Pickup details for shipments of type `pickup`.
1012      &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.
1013        &quot;country&quot;: &quot;A String&quot;, # CLDR country code (e.g. &quot;US&quot;).
1014        &quot;fullAddress&quot;: [ # Strings representing the lines of the printed label for mailing the order, for example: John Smith 1600 Amphitheatre Parkway Mountain View, CA, 94043 United States
1015          &quot;A String&quot;,
1016        ],
1017        &quot;isPostOfficeBox&quot;: True or False, # Whether the address is a post office box.
1018        &quot;locality&quot;: &quot;A String&quot;, # City, town or commune. May also include dependent localities or sublocalities (e.g. neighborhoods or suburbs).
1019        &quot;postalCode&quot;: &quot;A String&quot;, # Postal Code or ZIP (e.g. &quot;94043&quot;).
1020        &quot;recipientName&quot;: &quot;A String&quot;, # Name of the recipient.
1021        &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;).
1022        &quot;streetAddress&quot;: [ # Street-level part of the address.
1023          &quot;A String&quot;,
1024        ],
1025      },
1026      &quot;collectors&quot;: [ # Collectors authorized to pick up shipment from the pickup location.
1027        {
1028          &quot;name&quot;: &quot;A String&quot;, # Name of the person picking up the shipment.
1029          &quot;phoneNumber&quot;: &quot;A String&quot;, # Phone number of the person picking up the shipment.
1030        },
1031      ],
1032      &quot;locationId&quot;: &quot;A String&quot;, # ID of the pickup location.
1033      &quot;pickupType&quot;: &quot;A String&quot;, # The pickup type of this order. Acceptable values are: - &quot;`merchantStore`&quot; - &quot;`merchantStoreCurbside`&quot; - &quot;`merchantStoreLocker`&quot; - &quot;`thirdPartyPickupPoint`&quot; - &quot;`thirdPartyLocker`&quot;
1034    },
1035    &quot;placedDate&quot;: &quot;A String&quot;, # The date when the order was placed, in ISO 8601 format.
1036    &quot;promotions&quot;: [ # Promotions associated with the order. 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. Examples: 1. 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`. 2. 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. 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. More details about the program are here.
1037      {
1038        &quot;applicableItems&quot;: [ # Items that this promotion may be applied to. If empty, there are no restrictions on applicable items and quantity. This field will also be empty for shipping promotions because shipping is not tied to any specific item.
1039          {
1040            &quot;lineItemId&quot;: &quot;A String&quot;, # The line item ID of a product. Do not provide for `orders.createtestorder`.
1041            &quot;offerId&quot;: &quot;A String&quot;, # Required. Offer ID of a product. Only for `orders.createtestorder`.
1042            &quot;productId&quot;: &quot;A String&quot;, # `orders.createtestorder`.
1043            &quot;quantity&quot;: 42, # The quantity of the associated product. Do not provide for `orders.createtestorder`.
1044          },
1045        ],
1046        &quot;appliedItems&quot;: [ # Items that this promotion have been applied to. Do not provide for `orders.createtestorder`. This field will be empty for shipping promotions because shipping is not tied to any specific item.
1047          {
1048            &quot;lineItemId&quot;: &quot;A String&quot;, # The line item ID of a product. Do not provide for `orders.createtestorder`.
1049            &quot;offerId&quot;: &quot;A String&quot;, # Required. Offer ID of a product. Only for `orders.createtestorder`.
1050            &quot;productId&quot;: &quot;A String&quot;, # `orders.createtestorder`.
1051            &quot;quantity&quot;: 42, # The quantity of the associated product. Do not provide for `orders.createtestorder`.
1052          },
1053        ],
1054        &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;.
1055        &quot;funder&quot;: &quot;A String&quot;, # Required. The party funding the promotion. Only `merchant` is supported for `orders.createtestorder`. Acceptable values are: - &quot;`google`&quot; - &quot;`merchant`&quot;
1056        &quot;merchantPromotionId&quot;: &quot;A String&quot;, # Required. This field is used to identify promotions within merchants&#x27; own systems.
1057        &quot;priceValue&quot;: { # Estimated discount applied to price. Amount is pre-tax or post-tax depending on location of order.
1058          &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1059          &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1060        },
1061        &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`.
1062        &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;.
1063        &quot;subtype&quot;: &quot;A String&quot;, # Required. The category of the promotion. Only `moneyOff` is supported for `orders.createtestorder`. Acceptable values are: - &quot;`buyMGetMoneyOff`&quot; - &quot;`buyMGetNMoneyOff`&quot; - &quot;`buyMGetNPercentOff`&quot; - &quot;`buyMGetPercentOff`&quot; - &quot;`freeGift`&quot; - &quot;`freeGiftWithItemId`&quot; - &quot;`freeGiftWithValue`&quot; - &quot;`freeShippingOvernight`&quot; - &quot;`freeShippingStandard`&quot; - &quot;`freeShippingTwoDay`&quot; - &quot;`moneyOff`&quot; - &quot;`percentOff`&quot; - &quot;`rewardPoints`&quot; - &quot;`salePrice`&quot;
1064        &quot;taxValue&quot;: { # Estimated discount applied to tax (if allowed by law). Do not provide for `orders.createtestorder`.
1065          &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1066          &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1067        },
1068        &quot;title&quot;: &quot;A String&quot;, # Required. The title of the promotion.
1069        &quot;type&quot;: &quot;A String&quot;, # Required. The scope of the promotion. Only `product` is supported for `orders.createtestorder`. Acceptable values are: - &quot;`product`&quot; - &quot;`shipping`&quot;
1070      },
1071    ],
1072    &quot;refunds&quot;: [ # Refunds for the order.
1073      {
1074        &quot;actor&quot;: &quot;A String&quot;, # The actor that created the refund. Acceptable values are: - &quot;`customer`&quot; - &quot;`googleBot`&quot; - &quot;`googleCustomerService`&quot; - &quot;`googlePayments`&quot; - &quot;`googleSabre`&quot; - &quot;`merchant`&quot;
1075        &quot;amount&quot;: { # The amount that is refunded.
1076          &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1077          &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1078        },
1079        &quot;creationDate&quot;: &quot;A String&quot;, # Date on which the item has been created, in ISO 8601 format.
1080        &quot;reason&quot;: &quot;A String&quot;, # The reason for the refund. Acceptable values are: - &quot;`adjustment`&quot; - &quot;`autoPostInternal`&quot; - &quot;`autoPostInvalidBillingAddress`&quot; - &quot;`autoPostNoInventory`&quot; - &quot;`autoPostPriceError`&quot; - &quot;`autoPostUndeliverableShippingAddress`&quot; - &quot;`couponAbuse`&quot; - &quot;`courtesyAdjustment`&quot; - &quot;`customerCanceled`&quot; - &quot;`customerDiscretionaryReturn`&quot; - &quot;`customerInitiatedMerchantCancel`&quot; - &quot;`customerSupportRequested`&quot; - &quot;`deliveredLateByCarrier`&quot; - &quot;`deliveredTooLate`&quot; - &quot;`expiredItem`&quot; - &quot;`failToPushOrderGoogleError`&quot; - &quot;`failToPushOrderMerchantError`&quot; - &quot;`failToPushOrderMerchantFulfillmentError`&quot; - &quot;`failToPushOrderToMerchant`&quot; - &quot;`failToPushOrderToMerchantOutOfStock`&quot; - &quot;`feeAdjustment`&quot; - &quot;`invalidCoupon`&quot; - &quot;`lateShipmentCredit`&quot; - &quot;`malformedShippingAddress`&quot; - &quot;`merchantDidNotShipOnTime`&quot; - &quot;`noInventory`&quot; - &quot;`orderTimeout`&quot; - &quot;`other`&quot; - &quot;`paymentAbuse`&quot; - &quot;`paymentDeclined`&quot; - &quot;`priceAdjustment`&quot; - &quot;`priceError`&quot; - &quot;`productArrivedDamaged`&quot; - &quot;`productNotAsDescribed`&quot; - &quot;`promoReallocation`&quot; - &quot;`qualityNotAsExpected`&quot; - &quot;`returnRefundAbuse`&quot; - &quot;`shippingCostAdjustment`&quot; - &quot;`shippingPriceError`&quot; - &quot;`taxAdjustment`&quot; - &quot;`taxError`&quot; - &quot;`undeliverableShippingAddress`&quot; - &quot;`unsupportedPoBoxAddress`&quot; - &quot;`wrongProductShipped`&quot;
1081        &quot;reasonText&quot;: &quot;A String&quot;, # The explanation of the reason.
1082      },
1083    ],
1084    &quot;shipments&quot;: [ # Shipments of the order.
1085      {
1086        &quot;carrier&quot;: &quot;A String&quot;, # The carrier handling the shipment. 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. Supported carriers for US are: - &quot;`ups`&quot; (United Parcel Service) *automatic status updates* - &quot;`usps`&quot; (United States Postal Service) *automatic status updates* - &quot;`fedex`&quot; (FedEx) *automatic status updates * - &quot;`dhl`&quot; (DHL eCommerce) *automatic status updates* (US only) - &quot;`ontrac`&quot; (OnTrac) *automatic status updates * - &quot;`dhl express`&quot; (DHL Express) - &quot;`deliv`&quot; (Deliv) - &quot;`dynamex`&quot; (TForce) - &quot;`lasership`&quot; (LaserShip) - &quot;`mpx`&quot; (Military Parcel Xpress) - &quot;`uds`&quot; (United Delivery Service) - &quot;`efw`&quot; (Estes Forwarding Worldwide) - &quot;`jd logistics`&quot; (JD Logistics) - &quot;`yunexpress`&quot; (YunExpress) - &quot;`china post`&quot; (China Post) - &quot;`china ems`&quot; (China Post Express Mail Service) - &quot;`singapore post`&quot; (Singapore Post) - &quot;`pos malaysia`&quot; (Pos Malaysia) - &quot;`postnl`&quot; (PostNL) - &quot;`ptt`&quot; (PTT Turkish Post) - &quot;`eub`&quot; (ePacket) - &quot;`chukou1`&quot; (Chukou1 Logistics) - &quot;`bestex`&quot; (Best Express) - &quot;`canada post`&quot; (Canada Post) - &quot;`purolator`&quot; (Purolator) - &quot;`canpar`&quot; (Canpar) - &quot;`india post`&quot; (India Post) - &quot;`blue dart`&quot; (Blue Dart) - &quot;`delhivery`&quot; (Delhivery) - &quot;`dtdc`&quot; (DTDC) - &quot;`tpc india`&quot; (TPC India) - &quot;`lso`&quot; (Lone Star Overnight) - &quot;`tww`&quot; (Team Worldwide) Supported carriers for FR are: - &quot;`la poste`&quot; (La Poste) *automatic status updates * - &quot;`colissimo`&quot; (Colissimo by La Poste) *automatic status updates* - &quot;`ups`&quot; (United Parcel Service) *automatic status updates * - &quot;`chronopost`&quot; (Chronopost by La Poste) - &quot;`gls`&quot; (General Logistics Systems France) - &quot;`dpd`&quot; (DPD Group by GeoPost) - &quot;`bpost`&quot; (Belgian Post Group) - &quot;`colis prive`&quot; (Colis Privé) - &quot;`boxtal`&quot; (Boxtal) - &quot;`geodis`&quot; (GEODIS) - &quot;`tnt`&quot; (TNT) - &quot;`db schenker`&quot; (DB Schenker) - &quot;`aramex`&quot; (Aramex)
1087        &quot;creationDate&quot;: &quot;A String&quot;, # Date on which the shipment has been created, in ISO 8601 format.
1088        &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`
1089        &quot;id&quot;: &quot;A String&quot;, # The ID of the shipment.
1090        &quot;lineItems&quot;: [ # The line items that are shipped.
1091          {
1092            &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.
1093            &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.
1094            &quot;quantity&quot;: 42, # The quantity that is shipped.
1095          },
1096        ],
1097        &quot;scheduledDeliveryDetails&quot;: { # Delivery details of the shipment if scheduling is needed.
1098          &quot;carrierPhoneNumber&quot;: &quot;A String&quot;, # The phone number of the carrier fulfilling the delivery. The phone number is formatted as the international notation in ITU-T Recommendation E.123 (e.g., &quot;+41 44 668 1800&quot;).
1099          &quot;scheduledDate&quot;: &quot;A String&quot;, # The date a shipment is scheduled for delivery, in ISO 8601 format.
1100        },
1101        &quot;shipmentGroupId&quot;: &quot;A String&quot;, # The shipment group ID of the shipment. This is set in shiplineitems request.
1102        &quot;status&quot;: &quot;A String&quot;, # The status of the shipment. Acceptable values are: - &quot;`delivered`&quot; - &quot;`readyForPickup`&quot; - &quot;`shipped`&quot; - &quot;`undeliverable`&quot;
1103        &quot;trackingId&quot;: &quot;A String&quot;, # The tracking ID for the shipment.
1104      },
1105    ],
1106    &quot;shippingCost&quot;: { # The total cost of shipping for all items.
1107      &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1108      &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1109    },
1110    &quot;shippingCostTax&quot;: { # The tax for the total shipping cost.
1111      &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1112      &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1113    },
1114    &quot;status&quot;: &quot;A String&quot;, # The status of the order. Acceptable values are: - &quot;`canceled`&quot; - &quot;`delivered`&quot; - &quot;`inProgress`&quot; - &quot;`partiallyDelivered`&quot; - &quot;`partiallyReturned`&quot; - &quot;`partiallyShipped`&quot; - &quot;`pendingShipment`&quot; - &quot;`returned`&quot; - &quot;`shipped`&quot;
1115    &quot;taxCollector&quot;: &quot;A String&quot;, # The party responsible for collecting and remitting taxes. Acceptable values are: - &quot;`marketplaceFacilitator`&quot; - &quot;`merchant`&quot;
1116  },
1117}</pre>
1118</div>
1119
1120<div class="method">
1121    <code class="details" id="gettestordertemplate">gettestordertemplate(merchantId, templateName, country=None, x__xgafv=None)</code>
1122  <pre>Sandbox only. Retrieves an order template that can be used to quickly create a new order in sandbox.
1123
1124Args:
1125  merchantId: string, The ID of the account that should manage the order. This cannot be a multi-client account. (required)
1126  templateName: string, The name of the template to retrieve. (required)
1127    Allowed values
1128      TEMPLATE1 - Get `template1`.
1129      TEMPLATE2 - Get `template2`.
1130      TEMPLATE1A - Get `template1A`.
1131      TEMPLATE1B - Get `template1B`.
1132      TEMPLATE3 - Get `template3`.
1133      TEMPLATE4 - Get `template4`.
1134  country: string, The country of the template to retrieve. Defaults to `US`.
1135  x__xgafv: string, V1 error format.
1136    Allowed values
1137      1 - v1 error format
1138      2 - v2 error format
1139
1140Returns:
1141  An object of the form:
1142
1143    {
1144  &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#ordersGetTestOrderTemplateResponse`&quot;.
1145  &quot;template&quot;: { # The requested test order template.
1146    &quot;deliveryDetails&quot;: { # Overrides the predefined delivery details if provided.
1147      &quot;address&quot;: { # The delivery address
1148        &quot;country&quot;: &quot;A String&quot;, # CLDR country code (e.g. &quot;US&quot;).
1149        &quot;fullAddress&quot;: [ # Strings representing the lines of the printed label for mailing the order, for example: John Smith 1600 Amphitheatre Parkway Mountain View, CA, 94043 United States
1150          &quot;A String&quot;,
1151        ],
1152        &quot;isPostOfficeBox&quot;: True or False, # Whether the address is a post office box.
1153        &quot;locality&quot;: &quot;A String&quot;, # City, town or commune. May also include dependent localities or sublocalities (e.g. neighborhoods or suburbs).
1154        &quot;postalCode&quot;: &quot;A String&quot;, # Postal Code or ZIP (e.g. &quot;94043&quot;).
1155        &quot;recipientName&quot;: &quot;A String&quot;, # Name of the recipient.
1156        &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;).
1157        &quot;streetAddress&quot;: [ # Street-level part of the address.
1158          &quot;A String&quot;,
1159        ],
1160      },
1161      &quot;isScheduledDelivery&quot;: True or False, # Whether the order is scheduled delivery order.
1162      &quot;phoneNumber&quot;: &quot;A String&quot;, # The phone number of the person receiving the delivery.
1163    },
1164    &quot;enableOrderinvoices&quot;: True or False, # Whether the orderinvoices service should support this order.
1165    &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#testOrder`&quot;
1166    &quot;lineItems&quot;: [ # Required. Line items that are ordered. At least one line item must be provided.
1167      {
1168        &quot;product&quot;: { # Required. Product data from the time of the order placement.
1169          &quot;brand&quot;: &quot;A String&quot;, # Required. Brand of the item.
1170          &quot;condition&quot;: &quot;A String&quot;, # Required. Condition or state of the item. Acceptable values are: - &quot;`new`&quot;
1171          &quot;contentLanguage&quot;: &quot;A String&quot;, # Required. The two-letter ISO 639-1 language code for the item. Acceptable values are: - &quot;`en`&quot; - &quot;`fr`&quot;
1172          &quot;fees&quot;: [ # Fees for the item. Optional.
1173            {
1174              &quot;amount&quot;: { # Amount of the fee.
1175                &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1176                &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1177              },
1178              &quot;name&quot;: &quot;A String&quot;, # Name of the fee.
1179            },
1180          ],
1181          &quot;gtin&quot;: &quot;A String&quot;, # Global Trade Item Number (GTIN) of the item. Optional.
1182          &quot;imageLink&quot;: &quot;A String&quot;, # Required. URL of an image of the item.
1183          &quot;itemGroupId&quot;: &quot;A String&quot;, # Shared identifier for all variants of the same product. Optional.
1184          &quot;mpn&quot;: &quot;A String&quot;, # Manufacturer Part Number (MPN) of the item. Optional.
1185          &quot;offerId&quot;: &quot;A String&quot;, # Required. An identifier of the item.
1186          &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.
1187            &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1188            &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1189          },
1190          &quot;targetCountry&quot;: &quot;A String&quot;, # Required. The CLDR territory // code of the target country of the product.
1191          &quot;title&quot;: &quot;A String&quot;, # Required. The title of the product.
1192          &quot;variantAttributes&quot;: [ # Variant attributes for the item. Optional.
1193            {
1194              &quot;dimension&quot;: &quot;A String&quot;, # The dimension of the variant.
1195              &quot;value&quot;: &quot;A String&quot;, # The value for the dimension.
1196            },
1197          ],
1198        },
1199        &quot;quantityOrdered&quot;: 42, # Required. Number of items ordered.
1200        &quot;returnInfo&quot;: { # Required. Details of the return policy for the line item.
1201          &quot;daysToReturn&quot;: 42, # Required. How many days later the item can be returned.
1202          &quot;isReturnable&quot;: True or False, # Required. Whether the item is returnable.
1203          &quot;policyUrl&quot;: &quot;A String&quot;, # Required. URL of the item return policy.
1204        },
1205        &quot;shippingDetails&quot;: { # Required. Details of the requested shipping for the line item.
1206          &quot;deliverByDate&quot;: &quot;A String&quot;, # Required. The delivery by date, in ISO 8601 format.
1207          &quot;method&quot;: { # Required. Details of the shipping method.
1208            &quot;carrier&quot;: &quot;A String&quot;, # The carrier for the shipping. Optional. See `shipments[].carrier` for a list of acceptable values.
1209            &quot;maxDaysInTransit&quot;: 42, # Required. Maximum transit time.
1210            &quot;methodName&quot;: &quot;A String&quot;, # Required. The name of the shipping method.
1211            &quot;minDaysInTransit&quot;: 42, # Required. Minimum transit time.
1212          },
1213          &quot;pickupPromiseInMinutes&quot;: 42, # The promised time in minutes in which the order will be ready for pickup. This only applies to buy-online-pickup-in-store same-day order.
1214          &quot;shipByDate&quot;: &quot;A String&quot;, # Required. The ship by date, in ISO 8601 format.
1215          &quot;type&quot;: &quot;A String&quot;, # Type of shipment. Indicates whether `deliveryDetails` or `pickupDetails` is applicable for this shipment. Acceptable values are: - &quot;`delivery`&quot; - &quot;`pickup`&quot;
1216        },
1217      },
1218    ],
1219    &quot;notificationMode&quot;: &quot;A String&quot;, # Restricted. Do not use.
1220    &quot;pickupDetails&quot;: { # Overrides the predefined pickup details if provided.
1221      &quot;locationCode&quot;: &quot;A String&quot;, # Required. Code of the location defined by provider or merchant.
1222      &quot;pickupLocationAddress&quot;: { # Required. Pickup location address.
1223        &quot;country&quot;: &quot;A String&quot;, # CLDR country code (e.g. &quot;US&quot;).
1224        &quot;fullAddress&quot;: [ # Strings representing the lines of the printed label for mailing the order, for example: John Smith 1600 Amphitheatre Parkway Mountain View, CA, 94043 United States
1225          &quot;A String&quot;,
1226        ],
1227        &quot;isPostOfficeBox&quot;: True or False, # Whether the address is a post office box.
1228        &quot;locality&quot;: &quot;A String&quot;, # City, town or commune. May also include dependent localities or sublocalities (e.g. neighborhoods or suburbs).
1229        &quot;postalCode&quot;: &quot;A String&quot;, # Postal Code or ZIP (e.g. &quot;94043&quot;).
1230        &quot;recipientName&quot;: &quot;A String&quot;, # Name of the recipient.
1231        &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;).
1232        &quot;streetAddress&quot;: [ # Street-level part of the address.
1233          &quot;A String&quot;,
1234        ],
1235      },
1236      &quot;pickupLocationType&quot;: &quot;A String&quot;, # Pickup location type. Acceptable values are: - &quot;`locker`&quot; - &quot;`store`&quot; - &quot;`curbside`&quot;
1237      &quot;pickupPersons&quot;: [ # Required. all pickup persons set by users.
1238        {
1239          &quot;name&quot;: &quot;A String&quot;, # Required. Full name of the pickup person.
1240          &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number of the person picking up the items.
1241        },
1242      ],
1243    },
1244    &quot;predefinedBillingAddress&quot;: &quot;A String&quot;, # Required. The billing address. Acceptable values are: - &quot;`dwight`&quot; - &quot;`jim`&quot; - &quot;`pam`&quot;
1245    &quot;predefinedDeliveryAddress&quot;: &quot;A String&quot;, # Required. Identifier of one of the predefined delivery addresses for the delivery. Acceptable values are: - &quot;`dwight`&quot; - &quot;`jim`&quot; - &quot;`pam`&quot;
1246    &quot;predefinedEmail&quot;: &quot;A String&quot;, # Required. Email address of the customer. Acceptable values are: - &quot;`[email protected]`&quot; - &quot;`[email protected]`&quot; - &quot;`[email protected]`&quot;
1247    &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`. Acceptable values are: - &quot;`dwight`&quot; - &quot;`jim`&quot; - &quot;`pam`&quot;
1248    &quot;promotions&quot;: [ # Promotions associated with the order.
1249      {
1250        &quot;applicableItems&quot;: [ # Items that this promotion may be applied to. If empty, there are no restrictions on applicable items and quantity. This field will also be empty for shipping promotions because shipping is not tied to any specific item.
1251          {
1252            &quot;lineItemId&quot;: &quot;A String&quot;, # The line item ID of a product. Do not provide for `orders.createtestorder`.
1253            &quot;offerId&quot;: &quot;A String&quot;, # Required. Offer ID of a product. Only for `orders.createtestorder`.
1254            &quot;productId&quot;: &quot;A String&quot;, # `orders.createtestorder`.
1255            &quot;quantity&quot;: 42, # The quantity of the associated product. Do not provide for `orders.createtestorder`.
1256          },
1257        ],
1258        &quot;appliedItems&quot;: [ # Items that this promotion have been applied to. Do not provide for `orders.createtestorder`. This field will be empty for shipping promotions because shipping is not tied to any specific item.
1259          {
1260            &quot;lineItemId&quot;: &quot;A String&quot;, # The line item ID of a product. Do not provide for `orders.createtestorder`.
1261            &quot;offerId&quot;: &quot;A String&quot;, # Required. Offer ID of a product. Only for `orders.createtestorder`.
1262            &quot;productId&quot;: &quot;A String&quot;, # `orders.createtestorder`.
1263            &quot;quantity&quot;: 42, # The quantity of the associated product. Do not provide for `orders.createtestorder`.
1264          },
1265        ],
1266        &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;.
1267        &quot;funder&quot;: &quot;A String&quot;, # Required. The party funding the promotion. Only `merchant` is supported for `orders.createtestorder`. Acceptable values are: - &quot;`google`&quot; - &quot;`merchant`&quot;
1268        &quot;merchantPromotionId&quot;: &quot;A String&quot;, # Required. This field is used to identify promotions within merchants&#x27; own systems.
1269        &quot;priceValue&quot;: { # Estimated discount applied to price. Amount is pre-tax or post-tax depending on location of order.
1270          &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1271          &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1272        },
1273        &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`.
1274        &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;.
1275        &quot;subtype&quot;: &quot;A String&quot;, # Required. The category of the promotion. Only `moneyOff` is supported for `orders.createtestorder`. Acceptable values are: - &quot;`buyMGetMoneyOff`&quot; - &quot;`buyMGetNMoneyOff`&quot; - &quot;`buyMGetNPercentOff`&quot; - &quot;`buyMGetPercentOff`&quot; - &quot;`freeGift`&quot; - &quot;`freeGiftWithItemId`&quot; - &quot;`freeGiftWithValue`&quot; - &quot;`freeShippingOvernight`&quot; - &quot;`freeShippingStandard`&quot; - &quot;`freeShippingTwoDay`&quot; - &quot;`moneyOff`&quot; - &quot;`percentOff`&quot; - &quot;`rewardPoints`&quot; - &quot;`salePrice`&quot;
1276        &quot;taxValue&quot;: { # Estimated discount applied to tax (if allowed by law). Do not provide for `orders.createtestorder`.
1277          &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1278          &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1279        },
1280        &quot;title&quot;: &quot;A String&quot;, # Required. The title of the promotion.
1281        &quot;type&quot;: &quot;A String&quot;, # Required. The scope of the promotion. Only `product` is supported for `orders.createtestorder`. Acceptable values are: - &quot;`product`&quot; - &quot;`shipping`&quot;
1282      },
1283    ],
1284    &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.
1285      &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1286      &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1287    },
1288    &quot;shippingOption&quot;: &quot;A String&quot;, # Required. The requested shipping option. Acceptable values are: - &quot;`economy`&quot; - &quot;`expedited`&quot; - &quot;`oneDay`&quot; - &quot;`sameDay`&quot; - &quot;`standard`&quot; - &quot;`twoDay`&quot;
1289  },
1290}</pre>
1291</div>
1292
1293<div class="method">
1294    <code class="details" id="instorerefundlineitem">instorerefundlineitem(merchantId, orderId, body=None, x__xgafv=None)</code>
1295  <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). Note: 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.
1296
1297Args:
1298  merchantId: string, The ID of the account that manages the order. This cannot be a multi-client account. (required)
1299  orderId: string, The ID of the order. (required)
1300  body: object, The request body.
1301    The object takes the form of:
1302
1303{
1304  &quot;lineItemId&quot;: &quot;A String&quot;, # The ID of the line item to return. Either lineItemId or productId is required.
1305  &quot;operationId&quot;: &quot;A String&quot;, # The ID of the operation. Unique across all operations for a given order.
1306  &quot;priceAmount&quot;: { # The amount to be refunded. This may be pre-tax or post-tax depending on the location of the order. Required.
1307    &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1308    &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1309  },
1310  &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.
1311  &quot;quantity&quot;: 42, # The quantity to return and refund.
1312  &quot;reason&quot;: &quot;A String&quot;, # The reason for the return. Acceptable values are: - &quot;`customerDiscretionaryReturn`&quot; - &quot;`customerInitiatedMerchantCancel`&quot; - &quot;`deliveredTooLate`&quot; - &quot;`expiredItem`&quot; - &quot;`invalidCoupon`&quot; - &quot;`malformedShippingAddress`&quot; - &quot;`other`&quot; - &quot;`productArrivedDamaged`&quot; - &quot;`productNotAsDescribed`&quot; - &quot;`qualityNotAsExpected`&quot; - &quot;`undeliverableShippingAddress`&quot; - &quot;`unsupportedPoBoxAddress`&quot; - &quot;`wrongProductShipped`&quot;
1313  &quot;reasonText&quot;: &quot;A String&quot;, # The explanation of the reason.
1314  &quot;taxAmount&quot;: { # The amount of tax to be refunded. Required.
1315    &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1316    &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1317  },
1318}
1319
1320  x__xgafv: string, V1 error format.
1321    Allowed values
1322      1 - v1 error format
1323      2 - v2 error format
1324
1325Returns:
1326  An object of the form:
1327
1328    {
1329  &quot;executionStatus&quot;: &quot;A String&quot;, # The status of the execution. Acceptable values are: - &quot;`duplicate`&quot; - &quot;`executed`&quot;
1330  &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#ordersInStoreRefundLineItemResponse`&quot;.
1331}</pre>
1332</div>
1333
1334<div class="method">
1335    <code class="details" id="list">list(merchantId, acknowledged=None, maxResults=None, orderBy=None, pageToken=None, placedDateEnd=None, placedDateStart=None, statuses=None, x__xgafv=None)</code>
1336  <pre>Lists the orders in your Merchant Center account.
1337
1338Args:
1339  merchantId: string, The ID of the account that manages the order. This cannot be a multi-client account. (required)
1340  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. We recommend using this filter set to `false`, in conjunction with the `acknowledge` call, such that only un-acknowledged orders are returned.
1341  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.
1342  orderBy: string, Order results by placement date in descending or ascending order. Acceptable values are: - placedDateAsc - placedDateDesc
1343  pageToken: string, The token returned by the previous request.
1344  placedDateEnd: string, Obtains orders placed before this date (exclusively), in ISO 8601 format.
1345  placedDateStart: string, Obtains orders placed after this date (inclusively), in ISO 8601 format.
1346  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)
1347    Allowed values
1348      ACTIVE - Return orders with status `active`. The `active` status includes `pendingShipment` and `partiallyShipped` orders.
1349      COMPLETED - Return orders with status `completed`. The `completed` status includes `shipped`, `partiallyDelivered`, `delivered`, `partiallyReturned`, `returned`, and `canceled` orders.
1350      CANCELED - Return orders with status `canceled`.
1351      IN_PROGRESS - Return orders with status `inProgress`.
1352      PENDING_SHIPMENT - Return orders with status `pendingShipment`.
1353      PARTIALLY_SHIPPED - Return orders with status `partiallyShipped`.
1354      SHIPPED - Return orders with status `shipped`.
1355      PARTIALLY_DELIVERED - Return orders with status `partiallyDelivered`.
1356      DELIVERED - Return orders with status `delivered`.
1357      PARTIALLY_RETURNED - Return orders with status `partiallyReturned`.
1358      RETURNED - Return orders with status `returned`.
1359  x__xgafv: string, V1 error format.
1360    Allowed values
1361      1 - v1 error format
1362      2 - v2 error format
1363
1364Returns:
1365  An object of the form:
1366
1367    {
1368  &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#ordersListResponse`&quot;.
1369  &quot;nextPageToken&quot;: &quot;A String&quot;, # The token for the retrieval of the next page of orders.
1370  &quot;resources&quot;: [
1371    { # Order. Production access (all methods) requires the order manager role. Sandbox access does not.
1372      &quot;acknowledged&quot;: True or False, # Whether the order was acknowledged.
1373      &quot;annotations&quot;: [ # List of key-value pairs that are attached to a given order.
1374        {
1375          &quot;key&quot;: &quot;A String&quot;, # Key for additional google provided (as key-value pairs) annotation.
1376          &quot;value&quot;: &quot;A String&quot;, # Value for additional google provided (as key-value pairs) annotation.
1377        },
1378      ],
1379      &quot;billingAddress&quot;: { # The billing address.
1380        &quot;country&quot;: &quot;A String&quot;, # CLDR country code (e.g. &quot;US&quot;).
1381        &quot;fullAddress&quot;: [ # Strings representing the lines of the printed label for mailing the order, for example: John Smith 1600 Amphitheatre Parkway Mountain View, CA, 94043 United States
1382          &quot;A String&quot;,
1383        ],
1384        &quot;isPostOfficeBox&quot;: True or False, # Whether the address is a post office box.
1385        &quot;locality&quot;: &quot;A String&quot;, # City, town or commune. May also include dependent localities or sublocalities (e.g. neighborhoods or suburbs).
1386        &quot;postalCode&quot;: &quot;A String&quot;, # Postal Code or ZIP (e.g. &quot;94043&quot;).
1387        &quot;recipientName&quot;: &quot;A String&quot;, # Name of the recipient.
1388        &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;).
1389        &quot;streetAddress&quot;: [ # Street-level part of the address.
1390          &quot;A String&quot;,
1391        ],
1392      },
1393      &quot;customer&quot;: { # The details of the customer who placed the order.
1394        &quot;fullName&quot;: &quot;A String&quot;, # Full name of the customer.
1395        &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 Buy on Google.
1396        &quot;loyaltyInfo&quot;: { # Loyalty program information.
1397          &quot;loyaltyNumber&quot;: &quot;A String&quot;, # The loyalty card/membership number.
1398          &quot;name&quot;: &quot;A String&quot;, # Name of card/membership holder, this field will be populated when
1399        },
1400        &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.
1401          &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. Acceptable values are: - &quot;`denied`&quot; - &quot;`granted`&quot;
1402          &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.
1403          &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.
1404        },
1405      },
1406      &quot;deliveryDetails&quot;: { # Delivery details for shipments of type `delivery`.
1407        &quot;address&quot;: { # The delivery address
1408          &quot;country&quot;: &quot;A String&quot;, # CLDR country code (e.g. &quot;US&quot;).
1409          &quot;fullAddress&quot;: [ # Strings representing the lines of the printed label for mailing the order, for example: John Smith 1600 Amphitheatre Parkway Mountain View, CA, 94043 United States
1410            &quot;A String&quot;,
1411          ],
1412          &quot;isPostOfficeBox&quot;: True or False, # Whether the address is a post office box.
1413          &quot;locality&quot;: &quot;A String&quot;, # City, town or commune. May also include dependent localities or sublocalities (e.g. neighborhoods or suburbs).
1414          &quot;postalCode&quot;: &quot;A String&quot;, # Postal Code or ZIP (e.g. &quot;94043&quot;).
1415          &quot;recipientName&quot;: &quot;A String&quot;, # Name of the recipient.
1416          &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;).
1417          &quot;streetAddress&quot;: [ # Street-level part of the address.
1418            &quot;A String&quot;,
1419          ],
1420        },
1421        &quot;phoneNumber&quot;: &quot;A String&quot;, # The phone number of the person receiving the delivery.
1422      },
1423      &quot;id&quot;: &quot;A String&quot;, # The REST ID of the order. Globally unique.
1424      &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#order`&quot;
1425      &quot;lineItems&quot;: [ # Line items that are ordered.
1426        {
1427          &quot;adjustments&quot;: [ # Price and tax adjustments applied on the line item.
1428            {
1429              &quot;priceAdjustment&quot;: { # Adjustment for total price of the line item.
1430                &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1431                &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1432              },
1433              &quot;taxAdjustment&quot;: { # Adjustment for total tax of the line item.
1434                &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1435                &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1436              },
1437              &quot;type&quot;: &quot;A String&quot;, # Type of this adjustment. Acceptable values are: - &quot;`promotion`&quot;
1438            },
1439          ],
1440          &quot;annotations&quot;: [ # Annotations that are attached to the line item.
1441            {
1442              &quot;key&quot;: &quot;A String&quot;, # Key for additional merchant provided (as key-value pairs) annotation about the line item.
1443              &quot;value&quot;: &quot;A String&quot;, # Value for additional merchant provided (as key-value pairs) annotation about the line item.
1444            },
1445          ],
1446          &quot;cancellations&quot;: [ # Cancellations of the line item.
1447            {
1448              &quot;actor&quot;: &quot;A String&quot;, # The actor that created the cancellation. Acceptable values are: - &quot;`customer`&quot; - &quot;`googleBot`&quot; - &quot;`googleCustomerService`&quot; - &quot;`googlePayments`&quot; - &quot;`googleSabre`&quot; - &quot;`merchant`&quot;
1449              &quot;creationDate&quot;: &quot;A String&quot;, # Date on which the cancellation has been created, in ISO 8601 format.
1450              &quot;quantity&quot;: 42, # The quantity that was canceled.
1451              &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 Buy on Google until you make an update to that product. This will not affect your Shopping ads. Acceptable values are: - &quot;`autoPostInternal`&quot; - &quot;`autoPostInvalidBillingAddress`&quot; - &quot;`autoPostNoInventory`&quot; - &quot;`autoPostPriceError`&quot; - &quot;`autoPostUndeliverableShippingAddress`&quot; - &quot;`couponAbuse`&quot; - &quot;`customerCanceled`&quot; - &quot;`customerInitiatedCancel`&quot; - &quot;`customerSupportRequested`&quot; - &quot;`failToPushOrderGoogleError`&quot; - &quot;`failToPushOrderMerchantError`&quot; - &quot;`failToPushOrderMerchantFulfillmentError`&quot; - &quot;`failToPushOrderToMerchant`&quot; - &quot;`failToPushOrderToMerchantOutOfStock`&quot; - &quot;`invalidCoupon`&quot; - &quot;`malformedShippingAddress`&quot; - &quot;`merchantDidNotShipOnTime`&quot; - &quot;`noInventory`&quot; - &quot;`orderTimeout`&quot; - &quot;`other`&quot; - &quot;`paymentAbuse`&quot; - &quot;`paymentDeclined`&quot; - &quot;`priceError`&quot; - &quot;`returnRefundAbuse`&quot; - &quot;`shippingPriceError`&quot; - &quot;`taxError`&quot; - &quot;`undeliverableShippingAddress`&quot; - &quot;`unsupportedPoBoxAddress`&quot; - &quot;`failedToCaptureFunds`&quot;
1452              &quot;reasonText&quot;: &quot;A String&quot;, # The explanation of the reason.
1453            },
1454          ],
1455          &quot;id&quot;: &quot;A String&quot;, # The ID of the line item.
1456          &quot;price&quot;: { # Total price for the line item. For example, if two items for $10 are purchased, the total price will be $20.
1457            &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1458            &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1459          },
1460          &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.
1461            &quot;brand&quot;: &quot;A String&quot;, # Brand of the item.
1462            &quot;condition&quot;: &quot;A String&quot;, # Condition or state of the item. Acceptable values are: - &quot;`new`&quot; - &quot;`refurbished`&quot; - &quot;`used`&quot;
1463            &quot;contentLanguage&quot;: &quot;A String&quot;, # The two-letter ISO 639-1 language code for the item.
1464            &quot;fees&quot;: [ # Associated fees at order creation time.
1465              {
1466                &quot;amount&quot;: { # Amount of the fee.
1467                  &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1468                  &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1469                },
1470                &quot;name&quot;: &quot;A String&quot;, # Name of the fee.
1471              },
1472            ],
1473            &quot;gtin&quot;: &quot;A String&quot;, # Global Trade Item Number (GTIN) of the item.
1474            &quot;id&quot;: &quot;A String&quot;, # The REST ID of the product.
1475            &quot;imageLink&quot;: &quot;A String&quot;, # URL of an image of the item.
1476            &quot;itemGroupId&quot;: &quot;A String&quot;, # Shared identifier for all variants of the same product.
1477            &quot;mpn&quot;: &quot;A String&quot;, # Manufacturer Part Number (MPN) of the item.
1478            &quot;offerId&quot;: &quot;A String&quot;, # An identifier of the item.
1479            &quot;price&quot;: { # Price of the item.
1480              &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1481              &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1482            },
1483            &quot;shownImage&quot;: &quot;A String&quot;, # URL to the cached image shown to the user when order was placed.
1484            &quot;targetCountry&quot;: &quot;A String&quot;, # The CLDR territory // code of the target country of the product.
1485            &quot;title&quot;: &quot;A String&quot;, # The title of the product.
1486            &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.
1487              {
1488                &quot;dimension&quot;: &quot;A String&quot;, # The dimension of the variant.
1489                &quot;value&quot;: &quot;A String&quot;, # The value for the dimension.
1490              },
1491            ],
1492          },
1493          &quot;quantityCanceled&quot;: 42, # Number of items canceled.
1494          &quot;quantityDelivered&quot;: 42, # Number of items delivered.
1495          &quot;quantityOrdered&quot;: 42, # Number of items ordered.
1496          &quot;quantityPending&quot;: 42, # Number of items pending.
1497          &quot;quantityReadyForPickup&quot;: 42, # Number of items ready for pickup.
1498          &quot;quantityReturned&quot;: 42, # Number of items returned.
1499          &quot;quantityShipped&quot;: 42, # Number of items shipped.
1500          &quot;quantityUndeliverable&quot;: 42, # Number of items undeliverable.
1501          &quot;returnInfo&quot;: { # Details of the return policy for the line item.
1502            &quot;daysToReturn&quot;: 42, # Required. How many days later the item can be returned.
1503            &quot;isReturnable&quot;: True or False, # Required. Whether the item is returnable.
1504            &quot;policyUrl&quot;: &quot;A String&quot;, # Required. URL of the item return policy.
1505          },
1506          &quot;returns&quot;: [ # Returns of the line item.
1507            {
1508              &quot;actor&quot;: &quot;A String&quot;, # The actor that created the refund. Acceptable values are: - &quot;`customer`&quot; - &quot;`googleBot`&quot; - &quot;`googleCustomerService`&quot; - &quot;`googlePayments`&quot; - &quot;`googleSabre`&quot; - &quot;`merchant`&quot;
1509              &quot;creationDate&quot;: &quot;A String&quot;, # Date on which the item has been created, in ISO 8601 format.
1510              &quot;quantity&quot;: 42, # Quantity that is returned.
1511              &quot;reason&quot;: &quot;A String&quot;, # The reason for the return. Acceptable values are: - &quot;`customerDiscretionaryReturn`&quot; - &quot;`customerInitiatedMerchantCancel`&quot; - &quot;`deliveredTooLate`&quot; - &quot;`expiredItem`&quot; - &quot;`invalidCoupon`&quot; - &quot;`malformedShippingAddress`&quot; - &quot;`other`&quot; - &quot;`productArrivedDamaged`&quot; - &quot;`productNotAsDescribed`&quot; - &quot;`qualityNotAsExpected`&quot; - &quot;`undeliverableShippingAddress`&quot; - &quot;`unsupportedPoBoxAddress`&quot; - &quot;`wrongProductShipped`&quot;
1512              &quot;reasonText&quot;: &quot;A String&quot;, # The explanation of the reason.
1513            },
1514          ],
1515          &quot;shippingDetails&quot;: { # Details of the requested shipping for the line item.
1516            &quot;deliverByDate&quot;: &quot;A String&quot;, # Required. The delivery by date, in ISO 8601 format.
1517            &quot;method&quot;: { # Required. Details of the shipping method.
1518              &quot;carrier&quot;: &quot;A String&quot;, # The carrier for the shipping. Optional. See `shipments[].carrier` for a list of acceptable values.
1519              &quot;maxDaysInTransit&quot;: 42, # Required. Maximum transit time.
1520              &quot;methodName&quot;: &quot;A String&quot;, # Required. The name of the shipping method.
1521              &quot;minDaysInTransit&quot;: 42, # Required. Minimum transit time.
1522            },
1523            &quot;pickupPromiseInMinutes&quot;: 42, # The promised time in minutes in which the order will be ready for pickup. This only applies to buy-online-pickup-in-store same-day order.
1524            &quot;shipByDate&quot;: &quot;A String&quot;, # Required. The ship by date, in ISO 8601 format.
1525            &quot;type&quot;: &quot;A String&quot;, # Type of shipment. Indicates whether `deliveryDetails` or `pickupDetails` is applicable for this shipment. Acceptable values are: - &quot;`delivery`&quot; - &quot;`pickup`&quot;
1526          },
1527          &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.
1528            &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1529            &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1530          },
1531        },
1532      ],
1533      &quot;merchantId&quot;: &quot;A String&quot;,
1534      &quot;merchantOrderId&quot;: &quot;A String&quot;, # Merchant-provided ID of the order.
1535      &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.
1536        &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1537        &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1538      },
1539      &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.
1540        &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1541        &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1542      },
1543      &quot;paymentStatus&quot;: &quot;A String&quot;, # The status of the payment. Acceptable values are: - &quot;`paymentCaptured`&quot; - &quot;`paymentRejected`&quot; - &quot;`paymentSecured`&quot; - &quot;`pendingAuthorization`&quot;
1544      &quot;pickupDetails&quot;: { # Pickup details for shipments of type `pickup`.
1545        &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.
1546          &quot;country&quot;: &quot;A String&quot;, # CLDR country code (e.g. &quot;US&quot;).
1547          &quot;fullAddress&quot;: [ # Strings representing the lines of the printed label for mailing the order, for example: John Smith 1600 Amphitheatre Parkway Mountain View, CA, 94043 United States
1548            &quot;A String&quot;,
1549          ],
1550          &quot;isPostOfficeBox&quot;: True or False, # Whether the address is a post office box.
1551          &quot;locality&quot;: &quot;A String&quot;, # City, town or commune. May also include dependent localities or sublocalities (e.g. neighborhoods or suburbs).
1552          &quot;postalCode&quot;: &quot;A String&quot;, # Postal Code or ZIP (e.g. &quot;94043&quot;).
1553          &quot;recipientName&quot;: &quot;A String&quot;, # Name of the recipient.
1554          &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;).
1555          &quot;streetAddress&quot;: [ # Street-level part of the address.
1556            &quot;A String&quot;,
1557          ],
1558        },
1559        &quot;collectors&quot;: [ # Collectors authorized to pick up shipment from the pickup location.
1560          {
1561            &quot;name&quot;: &quot;A String&quot;, # Name of the person picking up the shipment.
1562            &quot;phoneNumber&quot;: &quot;A String&quot;, # Phone number of the person picking up the shipment.
1563          },
1564        ],
1565        &quot;locationId&quot;: &quot;A String&quot;, # ID of the pickup location.
1566        &quot;pickupType&quot;: &quot;A String&quot;, # The pickup type of this order. Acceptable values are: - &quot;`merchantStore`&quot; - &quot;`merchantStoreCurbside`&quot; - &quot;`merchantStoreLocker`&quot; - &quot;`thirdPartyPickupPoint`&quot; - &quot;`thirdPartyLocker`&quot;
1567      },
1568      &quot;placedDate&quot;: &quot;A String&quot;, # The date when the order was placed, in ISO 8601 format.
1569      &quot;promotions&quot;: [ # Promotions associated with the order. 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. Examples: 1. 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`. 2. 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. 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. More details about the program are here.
1570        {
1571          &quot;applicableItems&quot;: [ # Items that this promotion may be applied to. If empty, there are no restrictions on applicable items and quantity. This field will also be empty for shipping promotions because shipping is not tied to any specific item.
1572            {
1573              &quot;lineItemId&quot;: &quot;A String&quot;, # The line item ID of a product. Do not provide for `orders.createtestorder`.
1574              &quot;offerId&quot;: &quot;A String&quot;, # Required. Offer ID of a product. Only for `orders.createtestorder`.
1575              &quot;productId&quot;: &quot;A String&quot;, # `orders.createtestorder`.
1576              &quot;quantity&quot;: 42, # The quantity of the associated product. Do not provide for `orders.createtestorder`.
1577            },
1578          ],
1579          &quot;appliedItems&quot;: [ # Items that this promotion have been applied to. Do not provide for `orders.createtestorder`. This field will be empty for shipping promotions because shipping is not tied to any specific item.
1580            {
1581              &quot;lineItemId&quot;: &quot;A String&quot;, # The line item ID of a product. Do not provide for `orders.createtestorder`.
1582              &quot;offerId&quot;: &quot;A String&quot;, # Required. Offer ID of a product. Only for `orders.createtestorder`.
1583              &quot;productId&quot;: &quot;A String&quot;, # `orders.createtestorder`.
1584              &quot;quantity&quot;: 42, # The quantity of the associated product. Do not provide for `orders.createtestorder`.
1585            },
1586          ],
1587          &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;.
1588          &quot;funder&quot;: &quot;A String&quot;, # Required. The party funding the promotion. Only `merchant` is supported for `orders.createtestorder`. Acceptable values are: - &quot;`google`&quot; - &quot;`merchant`&quot;
1589          &quot;merchantPromotionId&quot;: &quot;A String&quot;, # Required. This field is used to identify promotions within merchants&#x27; own systems.
1590          &quot;priceValue&quot;: { # Estimated discount applied to price. Amount is pre-tax or post-tax depending on location of order.
1591            &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1592            &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1593          },
1594          &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`.
1595          &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;.
1596          &quot;subtype&quot;: &quot;A String&quot;, # Required. The category of the promotion. Only `moneyOff` is supported for `orders.createtestorder`. Acceptable values are: - &quot;`buyMGetMoneyOff`&quot; - &quot;`buyMGetNMoneyOff`&quot; - &quot;`buyMGetNPercentOff`&quot; - &quot;`buyMGetPercentOff`&quot; - &quot;`freeGift`&quot; - &quot;`freeGiftWithItemId`&quot; - &quot;`freeGiftWithValue`&quot; - &quot;`freeShippingOvernight`&quot; - &quot;`freeShippingStandard`&quot; - &quot;`freeShippingTwoDay`&quot; - &quot;`moneyOff`&quot; - &quot;`percentOff`&quot; - &quot;`rewardPoints`&quot; - &quot;`salePrice`&quot;
1597          &quot;taxValue&quot;: { # Estimated discount applied to tax (if allowed by law). Do not provide for `orders.createtestorder`.
1598            &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1599            &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1600          },
1601          &quot;title&quot;: &quot;A String&quot;, # Required. The title of the promotion.
1602          &quot;type&quot;: &quot;A String&quot;, # Required. The scope of the promotion. Only `product` is supported for `orders.createtestorder`. Acceptable values are: - &quot;`product`&quot; - &quot;`shipping`&quot;
1603        },
1604      ],
1605      &quot;refunds&quot;: [ # Refunds for the order.
1606        {
1607          &quot;actor&quot;: &quot;A String&quot;, # The actor that created the refund. Acceptable values are: - &quot;`customer`&quot; - &quot;`googleBot`&quot; - &quot;`googleCustomerService`&quot; - &quot;`googlePayments`&quot; - &quot;`googleSabre`&quot; - &quot;`merchant`&quot;
1608          &quot;amount&quot;: { # The amount that is refunded.
1609            &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1610            &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1611          },
1612          &quot;creationDate&quot;: &quot;A String&quot;, # Date on which the item has been created, in ISO 8601 format.
1613          &quot;reason&quot;: &quot;A String&quot;, # The reason for the refund. Acceptable values are: - &quot;`adjustment`&quot; - &quot;`autoPostInternal`&quot; - &quot;`autoPostInvalidBillingAddress`&quot; - &quot;`autoPostNoInventory`&quot; - &quot;`autoPostPriceError`&quot; - &quot;`autoPostUndeliverableShippingAddress`&quot; - &quot;`couponAbuse`&quot; - &quot;`courtesyAdjustment`&quot; - &quot;`customerCanceled`&quot; - &quot;`customerDiscretionaryReturn`&quot; - &quot;`customerInitiatedMerchantCancel`&quot; - &quot;`customerSupportRequested`&quot; - &quot;`deliveredLateByCarrier`&quot; - &quot;`deliveredTooLate`&quot; - &quot;`expiredItem`&quot; - &quot;`failToPushOrderGoogleError`&quot; - &quot;`failToPushOrderMerchantError`&quot; - &quot;`failToPushOrderMerchantFulfillmentError`&quot; - &quot;`failToPushOrderToMerchant`&quot; - &quot;`failToPushOrderToMerchantOutOfStock`&quot; - &quot;`feeAdjustment`&quot; - &quot;`invalidCoupon`&quot; - &quot;`lateShipmentCredit`&quot; - &quot;`malformedShippingAddress`&quot; - &quot;`merchantDidNotShipOnTime`&quot; - &quot;`noInventory`&quot; - &quot;`orderTimeout`&quot; - &quot;`other`&quot; - &quot;`paymentAbuse`&quot; - &quot;`paymentDeclined`&quot; - &quot;`priceAdjustment`&quot; - &quot;`priceError`&quot; - &quot;`productArrivedDamaged`&quot; - &quot;`productNotAsDescribed`&quot; - &quot;`promoReallocation`&quot; - &quot;`qualityNotAsExpected`&quot; - &quot;`returnRefundAbuse`&quot; - &quot;`shippingCostAdjustment`&quot; - &quot;`shippingPriceError`&quot; - &quot;`taxAdjustment`&quot; - &quot;`taxError`&quot; - &quot;`undeliverableShippingAddress`&quot; - &quot;`unsupportedPoBoxAddress`&quot; - &quot;`wrongProductShipped`&quot;
1614          &quot;reasonText&quot;: &quot;A String&quot;, # The explanation of the reason.
1615        },
1616      ],
1617      &quot;shipments&quot;: [ # Shipments of the order.
1618        {
1619          &quot;carrier&quot;: &quot;A String&quot;, # The carrier handling the shipment. 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. Supported carriers for US are: - &quot;`ups`&quot; (United Parcel Service) *automatic status updates* - &quot;`usps`&quot; (United States Postal Service) *automatic status updates* - &quot;`fedex`&quot; (FedEx) *automatic status updates * - &quot;`dhl`&quot; (DHL eCommerce) *automatic status updates* (US only) - &quot;`ontrac`&quot; (OnTrac) *automatic status updates * - &quot;`dhl express`&quot; (DHL Express) - &quot;`deliv`&quot; (Deliv) - &quot;`dynamex`&quot; (TForce) - &quot;`lasership`&quot; (LaserShip) - &quot;`mpx`&quot; (Military Parcel Xpress) - &quot;`uds`&quot; (United Delivery Service) - &quot;`efw`&quot; (Estes Forwarding Worldwide) - &quot;`jd logistics`&quot; (JD Logistics) - &quot;`yunexpress`&quot; (YunExpress) - &quot;`china post`&quot; (China Post) - &quot;`china ems`&quot; (China Post Express Mail Service) - &quot;`singapore post`&quot; (Singapore Post) - &quot;`pos malaysia`&quot; (Pos Malaysia) - &quot;`postnl`&quot; (PostNL) - &quot;`ptt`&quot; (PTT Turkish Post) - &quot;`eub`&quot; (ePacket) - &quot;`chukou1`&quot; (Chukou1 Logistics) - &quot;`bestex`&quot; (Best Express) - &quot;`canada post`&quot; (Canada Post) - &quot;`purolator`&quot; (Purolator) - &quot;`canpar`&quot; (Canpar) - &quot;`india post`&quot; (India Post) - &quot;`blue dart`&quot; (Blue Dart) - &quot;`delhivery`&quot; (Delhivery) - &quot;`dtdc`&quot; (DTDC) - &quot;`tpc india`&quot; (TPC India) - &quot;`lso`&quot; (Lone Star Overnight) - &quot;`tww`&quot; (Team Worldwide) Supported carriers for FR are: - &quot;`la poste`&quot; (La Poste) *automatic status updates * - &quot;`colissimo`&quot; (Colissimo by La Poste) *automatic status updates* - &quot;`ups`&quot; (United Parcel Service) *automatic status updates * - &quot;`chronopost`&quot; (Chronopost by La Poste) - &quot;`gls`&quot; (General Logistics Systems France) - &quot;`dpd`&quot; (DPD Group by GeoPost) - &quot;`bpost`&quot; (Belgian Post Group) - &quot;`colis prive`&quot; (Colis Privé) - &quot;`boxtal`&quot; (Boxtal) - &quot;`geodis`&quot; (GEODIS) - &quot;`tnt`&quot; (TNT) - &quot;`db schenker`&quot; (DB Schenker) - &quot;`aramex`&quot; (Aramex)
1620          &quot;creationDate&quot;: &quot;A String&quot;, # Date on which the shipment has been created, in ISO 8601 format.
1621          &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`
1622          &quot;id&quot;: &quot;A String&quot;, # The ID of the shipment.
1623          &quot;lineItems&quot;: [ # The line items that are shipped.
1624            {
1625              &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.
1626              &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.
1627              &quot;quantity&quot;: 42, # The quantity that is shipped.
1628            },
1629          ],
1630          &quot;scheduledDeliveryDetails&quot;: { # Delivery details of the shipment if scheduling is needed.
1631            &quot;carrierPhoneNumber&quot;: &quot;A String&quot;, # The phone number of the carrier fulfilling the delivery. The phone number is formatted as the international notation in ITU-T Recommendation E.123 (e.g., &quot;+41 44 668 1800&quot;).
1632            &quot;scheduledDate&quot;: &quot;A String&quot;, # The date a shipment is scheduled for delivery, in ISO 8601 format.
1633          },
1634          &quot;shipmentGroupId&quot;: &quot;A String&quot;, # The shipment group ID of the shipment. This is set in shiplineitems request.
1635          &quot;status&quot;: &quot;A String&quot;, # The status of the shipment. Acceptable values are: - &quot;`delivered`&quot; - &quot;`readyForPickup`&quot; - &quot;`shipped`&quot; - &quot;`undeliverable`&quot;
1636          &quot;trackingId&quot;: &quot;A String&quot;, # The tracking ID for the shipment.
1637        },
1638      ],
1639      &quot;shippingCost&quot;: { # The total cost of shipping for all items.
1640        &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1641        &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1642      },
1643      &quot;shippingCostTax&quot;: { # The tax for the total shipping cost.
1644        &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1645        &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1646      },
1647      &quot;status&quot;: &quot;A String&quot;, # The status of the order. Acceptable values are: - &quot;`canceled`&quot; - &quot;`delivered`&quot; - &quot;`inProgress`&quot; - &quot;`partiallyDelivered`&quot; - &quot;`partiallyReturned`&quot; - &quot;`partiallyShipped`&quot; - &quot;`pendingShipment`&quot; - &quot;`returned`&quot; - &quot;`shipped`&quot;
1648      &quot;taxCollector&quot;: &quot;A String&quot;, # The party responsible for collecting and remitting taxes. Acceptable values are: - &quot;`marketplaceFacilitator`&quot; - &quot;`merchant`&quot;
1649    },
1650  ],
1651}</pre>
1652</div>
1653
1654<div class="method">
1655    <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
1656  <pre>Retrieves the next page of results.
1657
1658Args:
1659  previous_request: The request for the previous page. (required)
1660  previous_response: The response from the request for the previous page. (required)
1661
1662Returns:
1663  A request object that you can call &#x27;execute()&#x27; on to request the next
1664  page. Returns None if there are no more items in the collection.
1665    </pre>
1666</div>
1667
1668<div class="method">
1669    <code class="details" id="refunditem">refunditem(merchantId, orderId, body=None, x__xgafv=None)</code>
1670  <pre>Issues a partial or total refund for items and shipment.
1671
1672Args:
1673  merchantId: string, The ID of the account that manages the order. This cannot be a multi-client account. (required)
1674  orderId: string, The ID of the order to refund. (required)
1675  body: object, The request body.
1676    The object takes the form of:
1677
1678{
1679  &quot;items&quot;: [ # The items that are refunded. Either Item or Shipping must be provided in the request.
1680    {
1681      &quot;amount&quot;: { # The total amount that is refunded. (e.g. refunding $5 each for 2 products should be done by setting quantity to 2 and amount to 10$) In case of multiple refunds, this should be the amount you currently want to refund to the customer.
1682        &quot;priceAmount&quot;: { # The pre-tax or post-tax price depends on the location of the order. - For countries (e.g. US) where price attribute excludes tax, this field corresponds to the pre-tax value. - For coutries (e.g. France) where price attribute includes tax, this field corresponds to the post-tax value .
1683          &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1684          &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1685        },
1686        &quot;taxAmount&quot;: { # Tax value, present only for countries where price attribute excludes tax (e.g. US). No tax is referenced as 0 value with the corresponding `currency`.
1687          &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1688          &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1689        },
1690      },
1691      &quot;fullRefund&quot;: True or False, # If true, the full item will be refunded. If this is true, amount should not be provided and will be ignored.
1692      &quot;lineItemId&quot;: &quot;A String&quot;, # The ID of the line item. Either lineItemId or productId is required.
1693      &quot;productId&quot;: &quot;A String&quot;, # The ID of the product. This is the REST ID used in the products service. Either lineItemId or productId is required.
1694      &quot;quantity&quot;: 42, # The number of products that are refunded.
1695    },
1696  ],
1697  &quot;operationId&quot;: &quot;A String&quot;, # The ID of the operation. Unique across all operations for a given order.
1698  &quot;reason&quot;: &quot;A String&quot;, # The reason for the refund. Acceptable values are: - &quot;`shippingCostAdjustment`&quot; - &quot;`priceAdjustment`&quot; - &quot;`taxAdjustment`&quot; - &quot;`feeAdjustment`&quot; - &quot;`courtesyAdjustment`&quot; - &quot;`adjustment`&quot; - &quot;`customerCancelled`&quot; - &quot;`noInventory`&quot; - &quot;`productNotAsDescribed`&quot; - &quot;`undeliverableShippingAddress`&quot; - &quot;`wrongProductShipped`&quot; - &quot;`lateShipmentCredit`&quot; - &quot;`deliveredLateByCarrier`&quot; - &quot;`productArrivedDamaged`&quot;
1699  &quot;reasonText&quot;: &quot;A String&quot;, # The explanation of the reason.
1700  &quot;shipping&quot;: { # The refund on shipping. Optional, but either Item or Shipping must be provided in the request.
1701    &quot;amount&quot;: { # The amount that is refunded. If this is not the first refund for the shipment, this should be the newly refunded amount.
1702      &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1703      &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1704    },
1705    &quot;fullRefund&quot;: True or False, # If set to true, all shipping costs for the order will be refunded. If this is true, amount should not be provided and will be ignored. If set to false, submit the amount of the partial shipping refund, excluding the shipping tax. The shipping tax is calculated and handled on Google&#x27;s side.
1706  },
1707}
1708
1709  x__xgafv: string, V1 error format.
1710    Allowed values
1711      1 - v1 error format
1712      2 - v2 error format
1713
1714Returns:
1715  An object of the form:
1716
1717    {
1718  &quot;executionStatus&quot;: &quot;A String&quot;, # The status of the execution. Acceptable values are: - &quot;`duplicate`&quot; - &quot;`executed`&quot;
1719  &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#ordersRefundItemResponse`&quot;.
1720}</pre>
1721</div>
1722
1723<div class="method">
1724    <code class="details" id="refundorder">refundorder(merchantId, orderId, body=None, x__xgafv=None)</code>
1725  <pre>Issues a partial or total refund for an order.
1726
1727Args:
1728  merchantId: string, The ID of the account that manages the order. This cannot be a multi-client account. (required)
1729  orderId: string, The ID of the order to refund. (required)
1730  body: object, The request body.
1731    The object takes the form of:
1732
1733{
1734  &quot;amount&quot;: { # The amount that is refunded. If this is not the first refund for the order, this should be the newly refunded amount.
1735    &quot;priceAmount&quot;: { # The pre-tax or post-tax price depends on the location of the order. - For countries (e.g. US) where price attribute excludes tax, this field corresponds to the pre-tax value. - For coutries (e.g. France) where price attribute includes tax, this field corresponds to the post-tax value .
1736      &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1737      &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1738    },
1739    &quot;taxAmount&quot;: { # Tax value, present only for countries where price attribute excludes tax (e.g. US). No tax is referenced as 0 value with the corresponding `currency`.
1740      &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1741      &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1742    },
1743  },
1744  &quot;fullRefund&quot;: True or False, # If true, the full order will be refunded, including shipping. If this is true, amount should not be provided and will be ignored.
1745  &quot;operationId&quot;: &quot;A String&quot;, # The ID of the operation. Unique across all operations for a given order.
1746  &quot;reason&quot;: &quot;A String&quot;, # The reason for the refund. Acceptable values are: - &quot;`courtesyAdjustment`&quot; - &quot;`other`&quot;
1747  &quot;reasonText&quot;: &quot;A String&quot;, # The explanation of the reason.
1748}
1749
1750  x__xgafv: string, V1 error format.
1751    Allowed values
1752      1 - v1 error format
1753      2 - v2 error format
1754
1755Returns:
1756  An object of the form:
1757
1758    {
1759  &quot;executionStatus&quot;: &quot;A String&quot;, # The status of the execution. Acceptable values are: - &quot;`duplicate`&quot; - &quot;`executed`&quot;
1760  &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#ordersRefundOrderResponse`&quot;.
1761}</pre>
1762</div>
1763
1764<div class="method">
1765    <code class="details" id="rejectreturnlineitem">rejectreturnlineitem(merchantId, orderId, body=None, x__xgafv=None)</code>
1766  <pre>Rejects return on an line item.
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)
1771  body: object, The request body.
1772    The object takes the form of:
1773
1774{
1775  &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;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.
1778  &quot;quantity&quot;: 42, # The quantity to return and refund.
1779  &quot;reason&quot;: &quot;A String&quot;, # The reason for the return. Acceptable values are: - &quot;`damagedOrUsed`&quot; - &quot;`missingComponent`&quot; - &quot;`notEligible`&quot; - &quot;`other`&quot; - &quot;`outOfReturnWindow`&quot;
1780  &quot;reasonText&quot;: &quot;A String&quot;, # The explanation of the reason.
1781}
1782
1783  x__xgafv: string, V1 error format.
1784    Allowed values
1785      1 - v1 error format
1786      2 - v2 error format
1787
1788Returns:
1789  An object of the form:
1790
1791    {
1792  &quot;executionStatus&quot;: &quot;A String&quot;, # The status of the execution. Acceptable values are: - &quot;`duplicate`&quot; - &quot;`executed`&quot;
1793  &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#ordersRejectReturnLineItemResponse`&quot;.
1794}</pre>
1795</div>
1796
1797<div class="method">
1798    <code class="details" id="returnrefundlineitem">returnrefundlineitem(merchantId, orderId, body=None, x__xgafv=None)</code>
1799  <pre>Returns and refunds a line item. Note that this method can only be called on fully shipped orders. Please also note that the Orderreturns API is the preferred way to handle returns after you receive a return from a customer. You can use Orderreturns.list or Orderreturns.get to search for the return, and then use Orderreturns.processreturn to issue the refund. If the return cannot be found, then we recommend using this API to issue a refund.
1800
1801Args:
1802  merchantId: string, The ID of the account that manages the order. This cannot be a multi-client account. (required)
1803  orderId: string, The ID of the order. (required)
1804  body: object, The request body.
1805    The object takes the form of:
1806
1807{
1808  &quot;lineItemId&quot;: &quot;A String&quot;, # The ID of the line item to return. Either lineItemId or productId is required.
1809  &quot;operationId&quot;: &quot;A String&quot;, # The ID of the operation. Unique across all operations for a given order.
1810  &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.
1811    &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1812    &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1813  },
1814  &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.
1815  &quot;quantity&quot;: 42, # The quantity to return and refund. Quantity is required.
1816  &quot;reason&quot;: &quot;A String&quot;, # The reason for the return. Acceptable values are: - &quot;`customerDiscretionaryReturn`&quot; - &quot;`customerInitiatedMerchantCancel`&quot; - &quot;`deliveredTooLate`&quot; - &quot;`expiredItem`&quot; - &quot;`invalidCoupon`&quot; - &quot;`malformedShippingAddress`&quot; - &quot;`other`&quot; - &quot;`productArrivedDamaged`&quot; - &quot;`productNotAsDescribed`&quot; - &quot;`qualityNotAsExpected`&quot; - &quot;`undeliverableShippingAddress`&quot; - &quot;`unsupportedPoBoxAddress`&quot; - &quot;`wrongProductShipped`&quot;
1817  &quot;reasonText&quot;: &quot;A String&quot;, # The explanation of the reason.
1818  &quot;taxAmount&quot;: { # The amount of tax to be refunded. Optional, but if filled, then priceAmount must be set. Calculated automatically if not provided.
1819    &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1820    &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1821  },
1822}
1823
1824  x__xgafv: string, V1 error format.
1825    Allowed values
1826      1 - v1 error format
1827      2 - v2 error format
1828
1829Returns:
1830  An object of the form:
1831
1832    {
1833  &quot;executionStatus&quot;: &quot;A String&quot;, # The status of the execution. Acceptable values are: - &quot;`duplicate`&quot; - &quot;`executed`&quot;
1834  &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#ordersReturnRefundLineItemResponse`&quot;.
1835}</pre>
1836</div>
1837
1838<div class="method">
1839    <code class="details" id="setlineitemmetadata">setlineitemmetadata(merchantId, orderId, body=None, x__xgafv=None)</code>
1840  <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.
1841
1842Args:
1843  merchantId: string, The ID of the account that manages the order. This cannot be a multi-client account. (required)
1844  orderId: string, The ID of the order. (required)
1845  body: object, The request body.
1846    The object takes the form of:
1847
1848{
1849  &quot;annotations&quot;: [
1850    {
1851      &quot;key&quot;: &quot;A String&quot;, # Key for additional merchant provided (as key-value pairs) annotation about the line item.
1852      &quot;value&quot;: &quot;A String&quot;, # Value for additional merchant provided (as key-value pairs) annotation about the line item.
1853    },
1854  ],
1855  &quot;lineItemId&quot;: &quot;A String&quot;, # The ID of the line item to set metadata. Either lineItemId or productId is required.
1856  &quot;operationId&quot;: &quot;A String&quot;, # The ID of the operation. Unique across all operations for a given order.
1857  &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.
1858}
1859
1860  x__xgafv: string, V1 error format.
1861    Allowed values
1862      1 - v1 error format
1863      2 - v2 error format
1864
1865Returns:
1866  An object of the form:
1867
1868    {
1869  &quot;executionStatus&quot;: &quot;A String&quot;, # The status of the execution. Acceptable values are: - &quot;`duplicate`&quot; - &quot;`executed`&quot;
1870  &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#ordersSetLineItemMetadataResponse`&quot;.
1871}</pre>
1872</div>
1873
1874<div class="method">
1875    <code class="details" id="shiplineitems">shiplineitems(merchantId, orderId, body=None, x__xgafv=None)</code>
1876  <pre>Marks line item(s) as shipped.
1877
1878Args:
1879  merchantId: string, The ID of the account that manages the order. This cannot be a multi-client account. (required)
1880  orderId: string, The ID of the order. (required)
1881  body: object, The request body.
1882    The object takes the form of:
1883
1884{
1885  &quot;lineItems&quot;: [ # Line items to ship.
1886    {
1887      &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.
1888      &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.
1889      &quot;quantity&quot;: 42, # The quantity that is shipped.
1890    },
1891  ],
1892  &quot;operationId&quot;: &quot;A String&quot;, # The ID of the operation. Unique across all operations for a given order.
1893  &quot;shipmentGroupId&quot;: &quot;A String&quot;, # ID of the shipment group. Required for orders that use the orderinvoices service.
1894  &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).
1895    {
1896      &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.
1897      &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.
1898      &quot;trackingId&quot;: &quot;A String&quot;, # The tracking ID for the shipment.
1899    },
1900  ],
1901}
1902
1903  x__xgafv: string, V1 error format.
1904    Allowed values
1905      1 - v1 error format
1906      2 - v2 error format
1907
1908Returns:
1909  An object of the form:
1910
1911    {
1912  &quot;executionStatus&quot;: &quot;A String&quot;, # The status of the execution. Acceptable values are: - &quot;`duplicate`&quot; - &quot;`executed`&quot;
1913  &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#ordersShipLineItemsResponse`&quot;.
1914}</pre>
1915</div>
1916
1917<div class="method">
1918    <code class="details" id="updatelineitemshippingdetails">updatelineitemshippingdetails(merchantId, orderId, body=None, x__xgafv=None)</code>
1919  <pre>Updates ship by and delivery by dates for a line item.
1920
1921Args:
1922  merchantId: string, The ID of the account that manages the order. This cannot be a multi-client account. (required)
1923  orderId: string, The ID of the order. (required)
1924  body: object, The request body.
1925    The object takes the form of:
1926
1927{
1928  &quot;deliverByDate&quot;: &quot;A String&quot;, # Updated delivery by date, in ISO 8601 format. If not specified only ship by date is updated. Provided date should be within 1 year timeframe and can not be a date in the past.
1929  &quot;lineItemId&quot;: &quot;A String&quot;, # The ID of the line item to set metadata. Either lineItemId or productId is required.
1930  &quot;operationId&quot;: &quot;A String&quot;, # The ID of the operation. Unique across all operations for a given order.
1931  &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.
1932  &quot;shipByDate&quot;: &quot;A String&quot;, # Updated ship by date, in ISO 8601 format. If not specified only deliver by date is updated. Provided date should be within 1 year timeframe and can not be a date in the past.
1933}
1934
1935  x__xgafv: string, V1 error format.
1936    Allowed values
1937      1 - v1 error format
1938      2 - v2 error format
1939
1940Returns:
1941  An object of the form:
1942
1943    {
1944  &quot;executionStatus&quot;: &quot;A String&quot;, # The status of the execution. Acceptable values are: - &quot;`duplicate`&quot; - &quot;`executed`&quot;
1945  &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#ordersUpdateLineItemShippingDetailsResponse`&quot;.
1946}</pre>
1947</div>
1948
1949<div class="method">
1950    <code class="details" id="updatemerchantorderid">updatemerchantorderid(merchantId, orderId, body=None, x__xgafv=None)</code>
1951  <pre>Updates the merchant order ID for a given order.
1952
1953Args:
1954  merchantId: string, The ID of the account that manages the order. This cannot be a multi-client account. (required)
1955  orderId: string, The ID of the order. (required)
1956  body: object, The request body.
1957    The object takes the form of:
1958
1959{
1960  &quot;merchantOrderId&quot;: &quot;A String&quot;, # The merchant order id to be assigned to the order. Must be unique per merchant.
1961  &quot;operationId&quot;: &quot;A String&quot;, # The ID of the operation. Unique across all operations for a given order.
1962}
1963
1964  x__xgafv: string, V1 error format.
1965    Allowed values
1966      1 - v1 error format
1967      2 - v2 error format
1968
1969Returns:
1970  An object of the form:
1971
1972    {
1973  &quot;executionStatus&quot;: &quot;A String&quot;, # The status of the execution. Acceptable values are: - &quot;`duplicate`&quot; - &quot;`executed`&quot;
1974  &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#ordersUpdateMerchantOrderIdResponse`&quot;.
1975}</pre>
1976</div>
1977
1978<div class="method">
1979    <code class="details" id="updateshipment">updateshipment(merchantId, orderId, body=None, x__xgafv=None)</code>
1980  <pre>Updates a shipment&#x27;s status, carrier, and/or tracking ID.
1981
1982Args:
1983  merchantId: string, The ID of the account that manages the order. This cannot be a multi-client account. (required)
1984  orderId: string, The ID of the order. (required)
1985  body: object, The request body.
1986    The object takes the form of:
1987
1988{
1989  &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.
1990  &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`.
1991  &quot;lastPickupDate&quot;: &quot;A String&quot;, # Date after which the pickup will expire, in ISO 8601 format. Required only when order is buy-online-pickup-in-store(BOPIS) and `status` is `ready for pickup`.
1992  &quot;operationId&quot;: &quot;A String&quot;, # The ID of the operation. Unique across all operations for a given order.
1993  &quot;readyPickupDate&quot;: &quot;A String&quot;, # Date on which the shipment has been ready for pickup, in ISO 8601 format. Optional and can be provided only if `status` is `ready for pickup`.
1994  &quot;scheduledDeliveryDetails&quot;: { # ScheduledDeliveryDetails used to update the scheduled delivery order. # Delivery details of the shipment if scheduling is needed.
1995    &quot;carrierPhoneNumber&quot;: &quot;A String&quot;, # The phone number of the carrier fulfilling the delivery. The phone number should be formatted as the international notation in
1996    &quot;scheduledDate&quot;: &quot;A String&quot;, # The date a shipment is scheduled for delivery, in ISO 8601 format.
1997  },
1998  &quot;shipmentId&quot;: &quot;A String&quot;, # The ID of the shipment.
1999  &quot;status&quot;: &quot;A String&quot;, # New status for the shipment. Not updated if missing. Acceptable values are: - &quot;`delivered`&quot; - &quot;`undeliverable`&quot; - &quot;`readyForPickup`&quot;
2000  &quot;trackingId&quot;: &quot;A String&quot;, # The tracking ID for the shipment. Not updated if missing.
2001  &quot;undeliveredDate&quot;: &quot;A String&quot;, # Date on which the shipment has been undeliverable, in ISO 8601 format. Optional and can be provided only if `status` is `undeliverable`.
2002}
2003
2004  x__xgafv: string, V1 error format.
2005    Allowed values
2006      1 - v1 error format
2007      2 - v2 error format
2008
2009Returns:
2010  An object of the form:
2011
2012    {
2013  &quot;executionStatus&quot;: &quot;A String&quot;, # The status of the execution. Acceptable values are: - &quot;`duplicate`&quot; - &quot;`executed`&quot;
2014  &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#ordersUpdateShipmentResponse`&quot;.
2015}</pre>
2016</div>
2017
2018</body></html>