blob: 060e2627ce53b6c97348f4d46974a176094f3136 [file] [log] [blame]
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13}
14
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54 margin-top: 0.5em;
55}
56
57.firstline {
58 margin-left: 2 em;
59}
60
61.method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66}
67
68.details {
69 font-weight: bold;
70 font-size: 14px;
71}
72
73</style>
74
75<h1><a href="content_v2_1.html">Content API for Shopping</a> . <a href="content_v2_1.orders.html">orders</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -070078 <code><a href="#acknowledge">acknowledge(merchantId, orderId, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070079<p class="firstline">Marks an order as acknowledged.</p>
80<p class="toc_element">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -070081 <code><a href="#advancetestorder">advancetestorder(merchantId, orderId, x__xgafv=None)</a></code></p>
Dan O'Mearadd494642020-05-01 07:42:23 -070082<p class="firstline">Sandbox only. Moves a test order from state "`inProgress`" to state "`pendingShipment`".</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070083<p class="toc_element">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -070084 <code><a href="#cancel">cancel(merchantId, orderId, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070085<p class="firstline">Cancels all line items in an order, making a full refund.</p>
86<p class="toc_element">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -070087 <code><a href="#cancellineitem">cancellineitem(merchantId, orderId, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070088<p class="firstline">Cancels a line item, making a full refund.</p>
89<p class="toc_element">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -070090 <code><a href="#canceltestorderbycustomer">canceltestorderbycustomer(merchantId, orderId, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070091<p class="firstline">Sandbox only. Cancels a test order for customer-initiated cancellation.</p>
92<p class="toc_element">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070093 <code><a href="#close">close()</a></code></p>
94<p class="firstline">Close httplib2 connections.</p>
95<p class="toc_element">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -070096 <code><a href="#createtestorder">createtestorder(merchantId, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070097<p class="firstline">Sandbox only. Creates a test order.</p>
98<p class="toc_element">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -070099 <code><a href="#createtestreturn">createtestreturn(merchantId, orderId, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700100<p class="firstline">Sandbox only. Creates a test return.</p>
101<p class="toc_element">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700102 <code><a href="#get">get(merchantId, orderId, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700103<p class="firstline">Retrieves an order from your Merchant Center account.</p>
104<p class="toc_element">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700105 <code><a href="#getbymerchantorderid">getbymerchantorderid(merchantId, merchantOrderId, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700106<p class="firstline">Retrieves an order using merchant order ID.</p>
107<p class="toc_element">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700108 <code><a href="#gettestordertemplate">gettestordertemplate(merchantId, templateName, country=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700109<p class="firstline">Sandbox only. Retrieves an order template that can be used to quickly create a new order in sandbox.</p>
110<p class="toc_element">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700111 <code><a href="#instorerefundlineitem">instorerefundlineitem(merchantId, orderId, body=None, x__xgafv=None)</a></code></p>
112<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>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700113<p class="toc_element">
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800114 <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>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700115<p class="firstline">Lists the orders in your Merchant Center account.</p>
116<p class="toc_element">
117 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
118<p class="firstline">Retrieves the next page of results.</p>
119<p class="toc_element">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700120 <code><a href="#refunditem">refunditem(merchantId, orderId, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700121<p class="firstline">Issues a partial or total refund for items and shipment.</p>
122<p class="toc_element">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700123 <code><a href="#refundorder">refundorder(merchantId, orderId, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700124<p class="firstline">Issues a partial or total refund for an order.</p>
125<p class="toc_element">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700126 <code><a href="#rejectreturnlineitem">rejectreturnlineitem(merchantId, orderId, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700127<p class="firstline">Rejects return on an line item.</p>
128<p class="toc_element">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700129 <code><a href="#returnrefundlineitem">returnrefundlineitem(merchantId, orderId, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700130<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>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700131<p class="toc_element">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700132 <code><a href="#setlineitemmetadata">setlineitemmetadata(merchantId, orderId, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700133<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>
134<p class="toc_element">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700135 <code><a href="#shiplineitems">shiplineitems(merchantId, orderId, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700136<p class="firstline">Marks line item(s) as shipped.</p>
137<p class="toc_element">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700138 <code><a href="#updatelineitemshippingdetails">updatelineitemshippingdetails(merchantId, orderId, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700139<p class="firstline">Updates ship by and delivery by dates for a line item.</p>
140<p class="toc_element">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700141 <code><a href="#updatemerchantorderid">updatemerchantorderid(merchantId, orderId, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700142<p class="firstline">Updates the merchant order ID for a given order.</p>
143<p class="toc_element">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700144 <code><a href="#updateshipment">updateshipment(merchantId, orderId, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700145<p class="firstline">Updates a shipment's status, carrier, and/or tracking ID.</p>
146<h3>Method Details</h3>
147<div class="method">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700148 <code class="details" id="acknowledge">acknowledge(merchantId, orderId, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700149 <pre>Marks an order as acknowledged.
150
151Args:
152 merchantId: string, The ID of the account that manages the order. This cannot be a multi-client account. (required)
153 orderId: string, The ID of the order. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700154 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700155 The object takes the form of:
156
157{
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800158 &quot;operationId&quot;: &quot;A String&quot;, # The ID of the operation. Unique across all operations for a given order.
159}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700160
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700161 x__xgafv: string, V1 error format.
162 Allowed values
163 1 - v1 error format
164 2 - v2 error format
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700165
166Returns:
167 An object of the form:
168
169 {
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800170 &quot;executionStatus&quot;: &quot;A String&quot;, # The status of the execution. Acceptable values are: - &quot;`duplicate`&quot; - &quot;`executed`&quot;
171 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;content#ordersAcknowledgeResponse&quot;.
172}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700173</div>
174
175<div class="method">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700176 <code class="details" id="advancetestorder">advancetestorder(merchantId, orderId, x__xgafv=None)</code>
Bu Sun Kim65020912020-05-20 12:08:20 -0700177 <pre>Sandbox only. Moves a test order from state &quot;`inProgress`&quot; to state &quot;`pendingShipment`&quot;.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700178
179Args:
180 merchantId: string, The ID of the account that manages the order. This cannot be a multi-client account. (required)
181 orderId: string, The ID of the test order to modify. (required)
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700182 x__xgafv: string, V1 error format.
183 Allowed values
184 1 - v1 error format
185 2 - v2 error format
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700186
187Returns:
188 An object of the form:
189
190 {
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800191 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;content#ordersAdvanceTestOrderResponse&quot;.
192}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700193</div>
194
195<div class="method">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700196 <code class="details" id="cancel">cancel(merchantId, orderId, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700197 <pre>Cancels all line items in an order, making a full refund.
198
199Args:
200 merchantId: string, The ID of the account that manages the order. This cannot be a multi-client account. (required)
201 orderId: string, The ID of the order to cancel. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700202 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700203 The object takes the form of:
204
205{
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800206 &quot;operationId&quot;: &quot;A String&quot;, # The ID of the operation. Unique across all operations for a given order.
207 &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;
208 &quot;reasonText&quot;: &quot;A String&quot;, # The explanation of the reason.
209}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700210
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700211 x__xgafv: string, V1 error format.
212 Allowed values
213 1 - v1 error format
214 2 - v2 error format
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700215
216Returns:
217 An object of the form:
218
219 {
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800220 &quot;executionStatus&quot;: &quot;A String&quot;, # The status of the execution. Acceptable values are: - &quot;`duplicate`&quot; - &quot;`executed`&quot;
221 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;content#ordersCancelResponse&quot;.
222}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700223</div>
224
225<div class="method">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700226 <code class="details" id="cancellineitem">cancellineitem(merchantId, orderId, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700227 <pre>Cancels a line item, making a full refund.
228
229Args:
230 merchantId: string, The ID of the account that manages the order. This cannot be a multi-client account. (required)
231 orderId: string, The ID of the order. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700232 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700233 The object takes the form of:
234
235{
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800236 &quot;lineItemId&quot;: &quot;A String&quot;, # The ID of the line item to cancel. Either lineItemId or productId is required.
237 &quot;operationId&quot;: &quot;A String&quot;, # The ID of the operation. Unique across all operations for a given order.
238 &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.
239 &quot;quantity&quot;: 42, # The quantity to cancel.
240 &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;
241 &quot;reasonText&quot;: &quot;A String&quot;, # The explanation of the reason.
242}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700243
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700244 x__xgafv: string, V1 error format.
245 Allowed values
246 1 - v1 error format
247 2 - v2 error format
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700248
249Returns:
250 An object of the form:
251
252 {
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800253 &quot;executionStatus&quot;: &quot;A String&quot;, # The status of the execution. Acceptable values are: - &quot;`duplicate`&quot; - &quot;`executed`&quot;
254 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;content#ordersCancelLineItemResponse&quot;.
255}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700256</div>
257
258<div class="method">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700259 <code class="details" id="canceltestorderbycustomer">canceltestorderbycustomer(merchantId, orderId, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700260 <pre>Sandbox only. Cancels a test order for customer-initiated cancellation.
261
262Args:
263 merchantId: string, The ID of the account that manages the order. This cannot be a multi-client account. (required)
264 orderId: string, The ID of the test order to cancel. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700265 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700266 The object takes the form of:
267
268{
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800269 &quot;reason&quot;: &quot;A String&quot;, # The reason for the cancellation. Acceptable values are: - &quot;`changedMind`&quot; - &quot;`orderedWrongItem`&quot; - &quot;`other`&quot;
270}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700271
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700272 x__xgafv: string, V1 error format.
273 Allowed values
274 1 - v1 error format
275 2 - v2 error format
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700276
277Returns:
278 An object of the form:
279
280 {
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800281 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;content#ordersCancelTestOrderByCustomerResponse&quot;.
282}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700283</div>
284
285<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700286 <code class="details" id="close">close()</code>
287 <pre>Close httplib2 connections.</pre>
288</div>
289
290<div class="method">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700291 <code class="details" id="createtestorder">createtestorder(merchantId, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700292 <pre>Sandbox only. Creates a test order.
293
294Args:
295 merchantId: string, The ID of the account that should manage the order. This cannot be a multi-client account. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700296 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700297 The object takes the form of:
298
299{
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800300 &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`.
301 &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;
302 &quot;testOrder&quot;: { # The test order to create.
303 &quot;deliveryDetails&quot;: { # Overrides the predefined delivery details if provided.
304 &quot;address&quot;: { # The delivery address
305 &quot;country&quot;: &quot;A String&quot;, # CLDR country code (e.g. &quot;US&quot;).
306 &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
307 &quot;A String&quot;,
308 ],
309 &quot;isPostOfficeBox&quot;: True or False, # Whether the address is a post office box.
310 &quot;locality&quot;: &quot;A String&quot;, # City, town or commune. May also include dependent localities or sublocalities (e.g. neighborhoods or suburbs).
311 &quot;postalCode&quot;: &quot;A String&quot;, # Postal Code or ZIP (e.g. &quot;94043&quot;).
312 &quot;recipientName&quot;: &quot;A String&quot;, # Name of the recipient.
313 &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;).
314 &quot;streetAddress&quot;: [ # Street-level part of the address.
315 &quot;A String&quot;,
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800316 ],
317 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800318 &quot;phoneNumber&quot;: &quot;A String&quot;, # The phone number of the person receiving the delivery.
319 },
320 &quot;enableOrderinvoices&quot;: True or False, # Whether the orderinvoices service should support this order.
321 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#testOrder`&quot;
322 &quot;lineItems&quot;: [ # Required. Line items that are ordered. At least one line item must be provided.
323 {
324 &quot;product&quot;: { # Required. Product data from the time of the order placement.
325 &quot;brand&quot;: &quot;A String&quot;, # Required. Brand of the item.
326 &quot;condition&quot;: &quot;A String&quot;, # Required. Condition or state of the item. Acceptable values are: - &quot;`new`&quot;
327 &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;
328 &quot;fees&quot;: [ # Fees for the item. Optional.
329 {
330 &quot;amount&quot;: { # Amount of the fee.
331 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
332 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
333 },
334 &quot;name&quot;: &quot;A String&quot;, # Name of the fee.
335 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800336 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800337 &quot;gtin&quot;: &quot;A String&quot;, # Global Trade Item Number (GTIN) of the item. Optional.
338 &quot;imageLink&quot;: &quot;A String&quot;, # Required. URL of an image of the item.
339 &quot;itemGroupId&quot;: &quot;A String&quot;, # Shared identifier for all variants of the same product. Optional.
340 &quot;mpn&quot;: &quot;A String&quot;, # Manufacturer Part Number (MPN) of the item. Optional.
341 &quot;offerId&quot;: &quot;A String&quot;, # Required. An identifier of the item.
342 &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.
343 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
344 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
345 },
346 &quot;targetCountry&quot;: &quot;A String&quot;, # Required. The CLDR territory // code of the target country of the product.
347 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the product.
348 &quot;variantAttributes&quot;: [ # Variant attributes for the item. Optional.
349 {
350 &quot;dimension&quot;: &quot;A String&quot;, # The dimension of the variant.
351 &quot;value&quot;: &quot;A String&quot;, # The value for the dimension.
352 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800353 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800354 },
355 &quot;quantityOrdered&quot;: 42, # Required. Number of items ordered.
356 &quot;returnInfo&quot;: { # Required. Details of the return policy for the line item.
357 &quot;daysToReturn&quot;: 42, # Required. How many days later the item can be returned.
358 &quot;isReturnable&quot;: True or False, # Required. Whether the item is returnable.
359 &quot;policyUrl&quot;: &quot;A String&quot;, # Required. URL of the item return policy.
360 },
361 &quot;shippingDetails&quot;: { # Required. Details of the requested shipping for the line item.
362 &quot;deliverByDate&quot;: &quot;A String&quot;, # Required. The delivery by date, in ISO 8601 format.
363 &quot;method&quot;: { # Required. Details of the shipping method.
364 &quot;carrier&quot;: &quot;A String&quot;, # The carrier for the shipping. Optional. See `shipments[].carrier` for a list of acceptable values.
365 &quot;maxDaysInTransit&quot;: 42, # Required. Maximum transit time.
366 &quot;methodName&quot;: &quot;A String&quot;, # Required. The name of the shipping method.
367 &quot;minDaysInTransit&quot;: 42, # Required. Minimum transit time.
368 },
369 &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.
370 &quot;shipByDate&quot;: &quot;A String&quot;, # Required. The ship by date, in ISO 8601 format.
371 &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;
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800372 },
373 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800374 ],
375 &quot;notificationMode&quot;: &quot;A String&quot;, # Restricted. Do not use.
376 &quot;pickupDetails&quot;: { # Overrides the predefined pickup details if provided.
377 &quot;locationCode&quot;: &quot;A String&quot;, # Required. Code of the location defined by provider or merchant.
378 &quot;pickupLocationAddress&quot;: { # Required. Pickup location address.
379 &quot;country&quot;: &quot;A String&quot;, # CLDR country code (e.g. &quot;US&quot;).
380 &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
381 &quot;A String&quot;,
382 ],
383 &quot;isPostOfficeBox&quot;: True or False, # Whether the address is a post office box.
384 &quot;locality&quot;: &quot;A String&quot;, # City, town or commune. May also include dependent localities or sublocalities (e.g. neighborhoods or suburbs).
385 &quot;postalCode&quot;: &quot;A String&quot;, # Postal Code or ZIP (e.g. &quot;94043&quot;).
386 &quot;recipientName&quot;: &quot;A String&quot;, # Name of the recipient.
387 &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;).
388 &quot;streetAddress&quot;: [ # Street-level part of the address.
389 &quot;A String&quot;,
390 ],
391 },
392 &quot;pickupLocationType&quot;: &quot;A String&quot;, # Pickup location type. Acceptable values are: - &quot;`locker`&quot; - &quot;`store`&quot; - &quot;`curbside`&quot;
393 &quot;pickupPersons&quot;: [ # Required. all pickup persons set by users.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800394 {
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800395 &quot;name&quot;: &quot;A String&quot;, # Required. Full name of the pickup person.
396 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number of the person picking up the items.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800397 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800398 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700399 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800400 &quot;predefinedBillingAddress&quot;: &quot;A String&quot;, # Required. The billing address. Acceptable values are: - &quot;`dwight`&quot; - &quot;`jim`&quot; - &quot;`pam`&quot;
401 &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;
402 &quot;predefinedEmail&quot;: &quot;A String&quot;, # Required. Email address of the customer. Acceptable values are: - &quot;`pog.dwight.schrute@gmail.com`&quot; - &quot;`pog.jim.halpert@gmail.com`&quot; - &quot;`penpog.pam.beesly@gmail.comding`&quot;
403 &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;
404 &quot;promotions&quot;: [ # Promotions associated with the order.
405 {
406 &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.
407 {
408 &quot;lineItemId&quot;: &quot;A String&quot;, # The line item ID of a product. Do not provide for `orders.createtestorder`.
409 &quot;offerId&quot;: &quot;A String&quot;, # Required. Offer ID of a product. Only for `orders.createtestorder`.
410 &quot;productId&quot;: &quot;A String&quot;, # `orders.createtestorder`.
411 &quot;quantity&quot;: 42, # The quantity of the associated product. Do not provide for `orders.createtestorder`.
412 },
413 ],
414 &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.
415 {
416 &quot;lineItemId&quot;: &quot;A String&quot;, # The line item ID of a product. Do not provide for `orders.createtestorder`.
417 &quot;offerId&quot;: &quot;A String&quot;, # Required. Offer ID of a product. Only for `orders.createtestorder`.
418 &quot;productId&quot;: &quot;A String&quot;, # `orders.createtestorder`.
419 &quot;quantity&quot;: 42, # The quantity of the associated product. Do not provide for `orders.createtestorder`.
420 },
421 ],
422 &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;.
423 &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;
424 &quot;merchantPromotionId&quot;: &quot;A String&quot;, # Required. This field is used to identify promotions within merchants&#x27; own systems.
425 &quot;priceValue&quot;: { # Estimated discount applied to price. Amount is pre-tax or post-tax depending on location of order.
426 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
427 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
428 },
429 &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`.
430 &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;.
431 &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;
432 &quot;taxValue&quot;: { # Estimated discount applied to tax (if allowed by law). Do not provide for `orders.createtestorder`.
433 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
434 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
435 },
436 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the promotion.
437 &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;
438 },
439 ],
440 &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.
441 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
442 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
443 },
444 &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;
445 },
446}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700447
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700448 x__xgafv: string, V1 error format.
449 Allowed values
450 1 - v1 error format
451 2 - v2 error format
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700452
453Returns:
454 An object of the form:
455
456 {
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800457 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;content#ordersCreateTestOrderResponse&quot;.
458 &quot;orderId&quot;: &quot;A String&quot;, # The ID of the newly created test order.
459}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700460</div>
461
462<div class="method">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700463 <code class="details" id="createtestreturn">createtestreturn(merchantId, orderId, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700464 <pre>Sandbox only. Creates a test return.
465
466Args:
467 merchantId: string, The ID of the account that manages the order. This cannot be a multi-client account. (required)
468 orderId: string, The ID of the order. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700469 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700470 The object takes the form of:
471
472{
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800473 &quot;items&quot;: [ # Returned items.
474 {
475 &quot;lineItemId&quot;: &quot;A String&quot;, # The ID of the line item to return.
476 &quot;quantity&quot;: 42, # Quantity that is returned.
477 },
478 ],
479}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700480
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700481 x__xgafv: string, V1 error format.
482 Allowed values
483 1 - v1 error format
484 2 - v2 error format
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700485
486Returns:
487 An object of the form:
488
489 {
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800490 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;content#ordersCreateTestReturnResponse&quot;.
491 &quot;returnId&quot;: &quot;A String&quot;, # The ID of the newly created test order return.
492}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700493</div>
494
495<div class="method">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700496 <code class="details" id="get">get(merchantId, orderId, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700497 <pre>Retrieves an order from your Merchant Center account.
498
499Args:
500 merchantId: string, The ID of the account that manages the order. This cannot be a multi-client account. (required)
501 orderId: string, The ID of the order. (required)
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700502 x__xgafv: string, V1 error format.
503 Allowed values
504 1 - v1 error format
505 2 - v2 error format
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700506
507Returns:
508 An object of the form:
509
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700510 { # Order. Production access (all methods) requires the order manager role. Sandbox access does not.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800511 &quot;acknowledged&quot;: True or False, # Whether the order was acknowledged.
512 &quot;annotations&quot;: [ # List of key-value pairs that are attached to a given order.
513 {
514 &quot;key&quot;: &quot;A String&quot;, # Key for additional google provided (as key-value pairs) annotation.
515 &quot;value&quot;: &quot;A String&quot;, # Value for additional google provided (as key-value pairs) annotation.
516 },
517 ],
518 &quot;billingAddress&quot;: { # The billing address.
519 &quot;country&quot;: &quot;A String&quot;, # CLDR country code (e.g. &quot;US&quot;).
520 &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
521 &quot;A String&quot;,
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800522 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800523 &quot;isPostOfficeBox&quot;: True or False, # Whether the address is a post office box.
524 &quot;locality&quot;: &quot;A String&quot;, # City, town or commune. May also include dependent localities or sublocalities (e.g. neighborhoods or suburbs).
525 &quot;postalCode&quot;: &quot;A String&quot;, # Postal Code or ZIP (e.g. &quot;94043&quot;).
526 &quot;recipientName&quot;: &quot;A String&quot;, # Name of the recipient.
527 &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;).
528 &quot;streetAddress&quot;: [ # Street-level part of the address.
529 &quot;A String&quot;,
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800530 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800531 },
532 &quot;customer&quot;: { # The details of the customer who placed the order.
533 &quot;fullName&quot;: &quot;A String&quot;, # Full name of the customer.
534 &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.
535 &quot;loyaltyInfo&quot;: { # Loyalty program information.
536 &quot;loyaltyNumber&quot;: &quot;A String&quot;, # The loyalty card/membership number.
537 &quot;name&quot;: &quot;A String&quot;, # Name of card/membership holder, this field will be populated when
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800538 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800539 &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.
540 &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;
541 &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.
542 &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800543 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800544 },
545 &quot;deliveryDetails&quot;: { # Delivery details for shipments of type `delivery`.
546 &quot;address&quot;: { # The delivery address
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800547 &quot;country&quot;: &quot;A String&quot;, # CLDR country code (e.g. &quot;US&quot;).
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800548 &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
549 &quot;A String&quot;,
550 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800551 &quot;isPostOfficeBox&quot;: True or False, # Whether the address is a post office box.
552 &quot;locality&quot;: &quot;A String&quot;, # City, town or commune. May also include dependent localities or sublocalities (e.g. neighborhoods or suburbs).
553 &quot;postalCode&quot;: &quot;A String&quot;, # Postal Code or ZIP (e.g. &quot;94043&quot;).
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800554 &quot;recipientName&quot;: &quot;A String&quot;, # Name of the recipient.
555 &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;).
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800556 &quot;streetAddress&quot;: [ # Street-level part of the address.
557 &quot;A String&quot;,
558 ],
559 },
560 &quot;phoneNumber&quot;: &quot;A String&quot;, # The phone number of the person receiving the delivery.
561 },
562 &quot;id&quot;: &quot;A String&quot;, # The REST ID of the order. Globally unique.
563 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#order`&quot;
564 &quot;lineItems&quot;: [ # Line items that are ordered.
565 {
566 &quot;adjustments&quot;: [ # Price and tax adjustments applied on the line item.
567 {
568 &quot;priceAdjustment&quot;: { # Adjustment for total price of the line item.
569 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
570 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
571 },
572 &quot;taxAdjustment&quot;: { # Adjustment for total tax of the line item.
573 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
574 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
575 },
576 &quot;type&quot;: &quot;A String&quot;, # Type of this adjustment. Acceptable values are: - &quot;`promotion`&quot;
577 },
578 ],
579 &quot;annotations&quot;: [ # Annotations that are attached to the line item.
580 {
581 &quot;key&quot;: &quot;A String&quot;, # Key for additional merchant provided (as key-value pairs) annotation about the line item.
582 &quot;value&quot;: &quot;A String&quot;, # Value for additional merchant provided (as key-value pairs) annotation about the line item.
583 },
584 ],
585 &quot;cancellations&quot;: [ # Cancellations of the line item.
586 {
587 &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;
588 &quot;creationDate&quot;: &quot;A String&quot;, # Date on which the cancellation has been created, in ISO 8601 format.
589 &quot;quantity&quot;: 42, # The quantity that was canceled.
590 &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;
591 &quot;reasonText&quot;: &quot;A String&quot;, # The explanation of the reason.
592 },
593 ],
594 &quot;id&quot;: &quot;A String&quot;, # The ID of the line item.
595 &quot;price&quot;: { # Total price for the line item. For example, if two items for $10 are purchased, the total price will be $20.
596 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
597 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
598 },
599 &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.
600 &quot;brand&quot;: &quot;A String&quot;, # Brand of the item.
601 &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;
602 &quot;contentLanguage&quot;: &quot;A String&quot;, # The two-letter ISO 639-1 language code for the item.
603 &quot;fees&quot;: [ # Associated fees at order creation time.
604 {
605 &quot;amount&quot;: { # Amount of the fee.
606 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
607 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
608 },
609 &quot;name&quot;: &quot;A String&quot;, # Name of the fee.
610 },
611 ],
612 &quot;gtin&quot;: &quot;A String&quot;, # Global Trade Item Number (GTIN) of the item.
613 &quot;id&quot;: &quot;A String&quot;, # The REST ID of the product.
614 &quot;imageLink&quot;: &quot;A String&quot;, # URL of an image of the item.
615 &quot;itemGroupId&quot;: &quot;A String&quot;, # Shared identifier for all variants of the same product.
616 &quot;mpn&quot;: &quot;A String&quot;, # Manufacturer Part Number (MPN) of the item.
617 &quot;offerId&quot;: &quot;A String&quot;, # An identifier of the item.
618 &quot;price&quot;: { # Price of the item.
619 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
620 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
621 },
622 &quot;shownImage&quot;: &quot;A String&quot;, # URL to the cached image shown to the user when order was placed.
623 &quot;targetCountry&quot;: &quot;A String&quot;, # The CLDR territory // code of the target country of the product.
624 &quot;title&quot;: &quot;A String&quot;, # The title of the product.
625 &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.
626 {
627 &quot;dimension&quot;: &quot;A String&quot;, # The dimension of the variant.
628 &quot;value&quot;: &quot;A String&quot;, # The value for the dimension.
629 },
630 ],
631 },
632 &quot;quantityCanceled&quot;: 42, # Number of items canceled.
633 &quot;quantityDelivered&quot;: 42, # Number of items delivered.
634 &quot;quantityOrdered&quot;: 42, # Number of items ordered.
635 &quot;quantityPending&quot;: 42, # Number of items pending.
636 &quot;quantityReadyForPickup&quot;: 42, # Number of items ready for pickup.
637 &quot;quantityReturned&quot;: 42, # Number of items returned.
638 &quot;quantityShipped&quot;: 42, # Number of items shipped.
639 &quot;quantityUndeliverable&quot;: 42, # Number of items undeliverable.
640 &quot;returnInfo&quot;: { # Details of the return policy for the line item.
641 &quot;daysToReturn&quot;: 42, # Required. How many days later the item can be returned.
642 &quot;isReturnable&quot;: True or False, # Required. Whether the item is returnable.
643 &quot;policyUrl&quot;: &quot;A String&quot;, # Required. URL of the item return policy.
644 },
645 &quot;returns&quot;: [ # Returns of the line item.
646 {
647 &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;
648 &quot;creationDate&quot;: &quot;A String&quot;, # Date on which the item has been created, in ISO 8601 format.
649 &quot;quantity&quot;: 42, # Quantity that is returned.
650 &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;
651 &quot;reasonText&quot;: &quot;A String&quot;, # The explanation of the reason.
652 },
653 ],
654 &quot;shippingDetails&quot;: { # Details of the requested shipping for the line item.
655 &quot;deliverByDate&quot;: &quot;A String&quot;, # Required. The delivery by date, in ISO 8601 format.
656 &quot;method&quot;: { # Required. Details of the shipping method.
657 &quot;carrier&quot;: &quot;A String&quot;, # The carrier for the shipping. Optional. See `shipments[].carrier` for a list of acceptable values.
658 &quot;maxDaysInTransit&quot;: 42, # Required. Maximum transit time.
659 &quot;methodName&quot;: &quot;A String&quot;, # Required. The name of the shipping method.
660 &quot;minDaysInTransit&quot;: 42, # Required. Minimum transit time.
661 },
662 &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.
663 &quot;shipByDate&quot;: &quot;A String&quot;, # Required. The ship by date, in ISO 8601 format.
664 &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;
665 },
666 &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.
667 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
668 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
669 },
670 },
671 ],
672 &quot;merchantId&quot;: &quot;A String&quot;,
673 &quot;merchantOrderId&quot;: &quot;A String&quot;, # Merchant-provided ID of the order.
674 &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.
675 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
676 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
677 },
678 &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.
679 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
680 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
681 },
682 &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;
683 &quot;pickupDetails&quot;: { # Pickup details for shipments of type `pickup`.
684 &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.
685 &quot;country&quot;: &quot;A String&quot;, # CLDR country code (e.g. &quot;US&quot;).
686 &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
687 &quot;A String&quot;,
688 ],
689 &quot;isPostOfficeBox&quot;: True or False, # Whether the address is a post office box.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800690 &quot;locality&quot;: &quot;A String&quot;, # City, town or commune. May also include dependent localities or sublocalities (e.g. neighborhoods or suburbs).
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800691 &quot;postalCode&quot;: &quot;A String&quot;, # Postal Code or ZIP (e.g. &quot;94043&quot;).
692 &quot;recipientName&quot;: &quot;A String&quot;, # Name of the recipient.
693 &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;).
694 &quot;streetAddress&quot;: [ # Street-level part of the address.
695 &quot;A String&quot;,
696 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800697 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800698 &quot;collectors&quot;: [ # Collectors authorized to pick up shipment from the pickup location.
699 {
700 &quot;name&quot;: &quot;A String&quot;, # Name of the person picking up the shipment.
701 &quot;phoneNumber&quot;: &quot;A String&quot;, # Phone number of the person picking up the shipment.
702 },
703 ],
704 &quot;locationId&quot;: &quot;A String&quot;, # ID of the pickup location.
705 &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;
706 },
707 &quot;placedDate&quot;: &quot;A String&quot;, # The date when the order was placed, in ISO 8601 format.
708 &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.
709 {
710 &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.
711 {
712 &quot;lineItemId&quot;: &quot;A String&quot;, # The line item ID of a product. Do not provide for `orders.createtestorder`.
713 &quot;offerId&quot;: &quot;A String&quot;, # Required. Offer ID of a product. Only for `orders.createtestorder`.
714 &quot;productId&quot;: &quot;A String&quot;, # `orders.createtestorder`.
715 &quot;quantity&quot;: 42, # The quantity of the associated product. Do not provide for `orders.createtestorder`.
716 },
717 ],
718 &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.
719 {
720 &quot;lineItemId&quot;: &quot;A String&quot;, # The line item ID of a product. Do not provide for `orders.createtestorder`.
721 &quot;offerId&quot;: &quot;A String&quot;, # Required. Offer ID of a product. Only for `orders.createtestorder`.
722 &quot;productId&quot;: &quot;A String&quot;, # `orders.createtestorder`.
723 &quot;quantity&quot;: 42, # The quantity of the associated product. Do not provide for `orders.createtestorder`.
724 },
725 ],
726 &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;.
727 &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;
728 &quot;merchantPromotionId&quot;: &quot;A String&quot;, # Required. This field is used to identify promotions within merchants&#x27; own systems.
729 &quot;priceValue&quot;: { # Estimated discount applied to price. Amount is pre-tax or post-tax depending on location of order.
730 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
731 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
732 },
733 &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`.
734 &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;.
735 &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;
736 &quot;taxValue&quot;: { # Estimated discount applied to tax (if allowed by law). Do not provide for `orders.createtestorder`.
737 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
738 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
739 },
740 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the promotion.
741 &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;
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800742 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800743 ],
744 &quot;refunds&quot;: [ # Refunds for the order.
745 {
746 &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;
747 &quot;amount&quot;: { # The amount that is refunded.
748 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
749 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
750 },
751 &quot;creationDate&quot;: &quot;A String&quot;, # Date on which the item has been created, in ISO 8601 format.
752 &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;
753 &quot;reasonText&quot;: &quot;A String&quot;, # The explanation of the reason.
754 },
755 ],
756 &quot;shipments&quot;: [ # Shipments of the order.
757 {
758 &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) 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)
759 &quot;creationDate&quot;: &quot;A String&quot;, # Date on which the shipment has been created, in ISO 8601 format.
760 &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`
761 &quot;id&quot;: &quot;A String&quot;, # The ID of the shipment.
762 &quot;lineItems&quot;: [ # The line items that are shipped.
763 {
764 &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.
765 &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.
766 &quot;quantity&quot;: 42, # The quantity that is shipped.
767 },
768 ],
769 &quot;scheduledDeliveryDetails&quot;: { # Delivery details of the shipment if scheduling is needed.
770 &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;).
771 &quot;scheduledDate&quot;: &quot;A String&quot;, # The date a shipment is scheduled for delivery, in ISO 8601 format.
772 },
773 &quot;shipmentGroupId&quot;: &quot;A String&quot;, # The shipment group ID of the shipment. This is set in shiplineitems request.
774 &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;
775 &quot;trackingId&quot;: &quot;A String&quot;, # The tracking ID for the shipment.
776 },
777 ],
778 &quot;shippingCost&quot;: { # The total cost of shipping for all items.
779 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
780 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
781 },
782 &quot;shippingCostTax&quot;: { # The tax for the total shipping cost.
783 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
784 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
785 },
786 &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;
787 &quot;taxCollector&quot;: &quot;A String&quot;, # The party responsible for collecting and remitting taxes. Acceptable values are: - &quot;`marketplaceFacilitator`&quot; - &quot;`merchant`&quot;
788}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700789</div>
790
791<div class="method">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700792 <code class="details" id="getbymerchantorderid">getbymerchantorderid(merchantId, merchantOrderId, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700793 <pre>Retrieves an order using merchant order ID.
794
795Args:
796 merchantId: string, The ID of the account that manages the order. This cannot be a multi-client account. (required)
797 merchantOrderId: string, The merchant order ID to be looked for. (required)
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700798 x__xgafv: string, V1 error format.
799 Allowed values
800 1 - v1 error format
801 2 - v2 error format
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700802
803Returns:
804 An object of the form:
805
806 {
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800807 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;content#ordersGetByMerchantOrderIdResponse&quot;.
808 &quot;order&quot;: { # Order. Production access (all methods) requires the order manager role. Sandbox access does not. # The requested order.
809 &quot;acknowledged&quot;: True or False, # Whether the order was acknowledged.
810 &quot;annotations&quot;: [ # List of key-value pairs that are attached to a given order.
811 {
812 &quot;key&quot;: &quot;A String&quot;, # Key for additional google provided (as key-value pairs) annotation.
813 &quot;value&quot;: &quot;A String&quot;, # Value for additional google provided (as key-value pairs) annotation.
814 },
815 ],
816 &quot;billingAddress&quot;: { # The billing address.
817 &quot;country&quot;: &quot;A String&quot;, # CLDR country code (e.g. &quot;US&quot;).
818 &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
819 &quot;A String&quot;,
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800820 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800821 &quot;isPostOfficeBox&quot;: True or False, # Whether the address is a post office box.
822 &quot;locality&quot;: &quot;A String&quot;, # City, town or commune. May also include dependent localities or sublocalities (e.g. neighborhoods or suburbs).
823 &quot;postalCode&quot;: &quot;A String&quot;, # Postal Code or ZIP (e.g. &quot;94043&quot;).
824 &quot;recipientName&quot;: &quot;A String&quot;, # Name of the recipient.
825 &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;).
826 &quot;streetAddress&quot;: [ # Street-level part of the address.
827 &quot;A String&quot;,
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800828 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800829 },
830 &quot;customer&quot;: { # The details of the customer who placed the order.
831 &quot;fullName&quot;: &quot;A String&quot;, # Full name of the customer.
832 &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.
833 &quot;loyaltyInfo&quot;: { # Loyalty program information.
834 &quot;loyaltyNumber&quot;: &quot;A String&quot;, # The loyalty card/membership number.
835 &quot;name&quot;: &quot;A String&quot;, # Name of card/membership holder, this field will be populated when
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800836 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800837 &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.
838 &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;
839 &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.
840 &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800841 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800842 },
843 &quot;deliveryDetails&quot;: { # Delivery details for shipments of type `delivery`.
844 &quot;address&quot;: { # The delivery address
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800845 &quot;country&quot;: &quot;A String&quot;, # CLDR country code (e.g. &quot;US&quot;).
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800846 &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
847 &quot;A String&quot;,
848 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800849 &quot;isPostOfficeBox&quot;: True or False, # Whether the address is a post office box.
850 &quot;locality&quot;: &quot;A String&quot;, # City, town or commune. May also include dependent localities or sublocalities (e.g. neighborhoods or suburbs).
851 &quot;postalCode&quot;: &quot;A String&quot;, # Postal Code or ZIP (e.g. &quot;94043&quot;).
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800852 &quot;recipientName&quot;: &quot;A String&quot;, # Name of the recipient.
853 &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;).
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800854 &quot;streetAddress&quot;: [ # Street-level part of the address.
855 &quot;A String&quot;,
856 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800857 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800858 &quot;phoneNumber&quot;: &quot;A String&quot;, # The phone number of the person receiving the delivery.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700859 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800860 &quot;id&quot;: &quot;A String&quot;, # The REST ID of the order. Globally unique.
861 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#order`&quot;
862 &quot;lineItems&quot;: [ # Line items that are ordered.
863 {
864 &quot;adjustments&quot;: [ # Price and tax adjustments applied on the line item.
865 {
866 &quot;priceAdjustment&quot;: { # Adjustment for total price of the line item.
867 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
868 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
869 },
870 &quot;taxAdjustment&quot;: { # Adjustment for total tax of the line item.
871 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
872 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
873 },
874 &quot;type&quot;: &quot;A String&quot;, # Type of this adjustment. Acceptable values are: - &quot;`promotion`&quot;
875 },
876 ],
877 &quot;annotations&quot;: [ # Annotations that are attached to the line item.
878 {
879 &quot;key&quot;: &quot;A String&quot;, # Key for additional merchant provided (as key-value pairs) annotation about the line item.
880 &quot;value&quot;: &quot;A String&quot;, # Value for additional merchant provided (as key-value pairs) annotation about the line item.
881 },
882 ],
883 &quot;cancellations&quot;: [ # Cancellations of the line item.
884 {
885 &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;
886 &quot;creationDate&quot;: &quot;A String&quot;, # Date on which the cancellation has been created, in ISO 8601 format.
887 &quot;quantity&quot;: 42, # The quantity that was canceled.
888 &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;
889 &quot;reasonText&quot;: &quot;A String&quot;, # The explanation of the reason.
890 },
891 ],
892 &quot;id&quot;: &quot;A String&quot;, # The ID of the line item.
893 &quot;price&quot;: { # Total price for the line item. For example, if two items for $10 are purchased, the total price will be $20.
894 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
895 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
896 },
897 &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.
898 &quot;brand&quot;: &quot;A String&quot;, # Brand of the item.
899 &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;
900 &quot;contentLanguage&quot;: &quot;A String&quot;, # The two-letter ISO 639-1 language code for the item.
901 &quot;fees&quot;: [ # Associated fees at order creation time.
902 {
903 &quot;amount&quot;: { # Amount of the fee.
904 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
905 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
906 },
907 &quot;name&quot;: &quot;A String&quot;, # Name of the fee.
908 },
909 ],
910 &quot;gtin&quot;: &quot;A String&quot;, # Global Trade Item Number (GTIN) of the item.
911 &quot;id&quot;: &quot;A String&quot;, # The REST ID of the product.
912 &quot;imageLink&quot;: &quot;A String&quot;, # URL of an image of the item.
913 &quot;itemGroupId&quot;: &quot;A String&quot;, # Shared identifier for all variants of the same product.
914 &quot;mpn&quot;: &quot;A String&quot;, # Manufacturer Part Number (MPN) of the item.
915 &quot;offerId&quot;: &quot;A String&quot;, # An identifier of the item.
916 &quot;price&quot;: { # Price of the item.
917 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
918 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
919 },
920 &quot;shownImage&quot;: &quot;A String&quot;, # URL to the cached image shown to the user when order was placed.
921 &quot;targetCountry&quot;: &quot;A String&quot;, # The CLDR territory // code of the target country of the product.
922 &quot;title&quot;: &quot;A String&quot;, # The title of the product.
923 &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.
924 {
925 &quot;dimension&quot;: &quot;A String&quot;, # The dimension of the variant.
926 &quot;value&quot;: &quot;A String&quot;, # The value for the dimension.
927 },
928 ],
929 },
930 &quot;quantityCanceled&quot;: 42, # Number of items canceled.
931 &quot;quantityDelivered&quot;: 42, # Number of items delivered.
932 &quot;quantityOrdered&quot;: 42, # Number of items ordered.
933 &quot;quantityPending&quot;: 42, # Number of items pending.
934 &quot;quantityReadyForPickup&quot;: 42, # Number of items ready for pickup.
935 &quot;quantityReturned&quot;: 42, # Number of items returned.
936 &quot;quantityShipped&quot;: 42, # Number of items shipped.
937 &quot;quantityUndeliverable&quot;: 42, # Number of items undeliverable.
938 &quot;returnInfo&quot;: { # Details of the return policy for the line item.
939 &quot;daysToReturn&quot;: 42, # Required. How many days later the item can be returned.
940 &quot;isReturnable&quot;: True or False, # Required. Whether the item is returnable.
941 &quot;policyUrl&quot;: &quot;A String&quot;, # Required. URL of the item return policy.
942 },
943 &quot;returns&quot;: [ # Returns of the line item.
944 {
945 &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;
946 &quot;creationDate&quot;: &quot;A String&quot;, # Date on which the item has been created, in ISO 8601 format.
947 &quot;quantity&quot;: 42, # Quantity that is returned.
948 &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;
949 &quot;reasonText&quot;: &quot;A String&quot;, # The explanation of the reason.
950 },
951 ],
952 &quot;shippingDetails&quot;: { # Details of the requested shipping for the line item.
953 &quot;deliverByDate&quot;: &quot;A String&quot;, # Required. The delivery by date, in ISO 8601 format.
954 &quot;method&quot;: { # Required. Details of the shipping method.
955 &quot;carrier&quot;: &quot;A String&quot;, # The carrier for the shipping. Optional. See `shipments[].carrier` for a list of acceptable values.
956 &quot;maxDaysInTransit&quot;: 42, # Required. Maximum transit time.
957 &quot;methodName&quot;: &quot;A String&quot;, # Required. The name of the shipping method.
958 &quot;minDaysInTransit&quot;: 42, # Required. Minimum transit time.
959 },
960 &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.
961 &quot;shipByDate&quot;: &quot;A String&quot;, # Required. The ship by date, in ISO 8601 format.
962 &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;
963 },
964 &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.
965 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
966 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
967 },
968 },
969 ],
970 &quot;merchantId&quot;: &quot;A String&quot;,
971 &quot;merchantOrderId&quot;: &quot;A String&quot;, # Merchant-provided ID of the order.
972 &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.
973 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
974 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
975 },
976 &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.
977 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
978 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
979 },
980 &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;
981 &quot;pickupDetails&quot;: { # Pickup details for shipments of type `pickup`.
982 &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.
983 &quot;country&quot;: &quot;A String&quot;, # CLDR country code (e.g. &quot;US&quot;).
984 &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
985 &quot;A String&quot;,
986 ],
987 &quot;isPostOfficeBox&quot;: True or False, # Whether the address is a post office box.
988 &quot;locality&quot;: &quot;A String&quot;, # City, town or commune. May also include dependent localities or sublocalities (e.g. neighborhoods or suburbs).
989 &quot;postalCode&quot;: &quot;A String&quot;, # Postal Code or ZIP (e.g. &quot;94043&quot;).
990 &quot;recipientName&quot;: &quot;A String&quot;, # Name of the recipient.
991 &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;).
992 &quot;streetAddress&quot;: [ # Street-level part of the address.
993 &quot;A String&quot;,
994 ],
995 },
996 &quot;collectors&quot;: [ # Collectors authorized to pick up shipment from the pickup location.
997 {
998 &quot;name&quot;: &quot;A String&quot;, # Name of the person picking up the shipment.
999 &quot;phoneNumber&quot;: &quot;A String&quot;, # Phone number of the person picking up the shipment.
1000 },
1001 ],
1002 &quot;locationId&quot;: &quot;A String&quot;, # ID of the pickup location.
1003 &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;
1004 },
1005 &quot;placedDate&quot;: &quot;A String&quot;, # The date when the order was placed, in ISO 8601 format.
1006 &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.
1007 {
1008 &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.
1009 {
1010 &quot;lineItemId&quot;: &quot;A String&quot;, # The line item ID of a product. Do not provide for `orders.createtestorder`.
1011 &quot;offerId&quot;: &quot;A String&quot;, # Required. Offer ID of a product. Only for `orders.createtestorder`.
1012 &quot;productId&quot;: &quot;A String&quot;, # `orders.createtestorder`.
1013 &quot;quantity&quot;: 42, # The quantity of the associated product. Do not provide for `orders.createtestorder`.
1014 },
1015 ],
1016 &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.
1017 {
1018 &quot;lineItemId&quot;: &quot;A String&quot;, # The line item ID of a product. Do not provide for `orders.createtestorder`.
1019 &quot;offerId&quot;: &quot;A String&quot;, # Required. Offer ID of a product. Only for `orders.createtestorder`.
1020 &quot;productId&quot;: &quot;A String&quot;, # `orders.createtestorder`.
1021 &quot;quantity&quot;: 42, # The quantity of the associated product. Do not provide for `orders.createtestorder`.
1022 },
1023 ],
1024 &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;.
1025 &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;
1026 &quot;merchantPromotionId&quot;: &quot;A String&quot;, # Required. This field is used to identify promotions within merchants&#x27; own systems.
1027 &quot;priceValue&quot;: { # Estimated discount applied to price. Amount is pre-tax or post-tax depending on location of order.
1028 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1029 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1030 },
1031 &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`.
1032 &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;.
1033 &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;
1034 &quot;taxValue&quot;: { # Estimated discount applied to tax (if allowed by law). Do not provide for `orders.createtestorder`.
1035 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1036 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1037 },
1038 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the promotion.
1039 &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;
1040 },
1041 ],
1042 &quot;refunds&quot;: [ # Refunds for the order.
1043 {
1044 &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;
1045 &quot;amount&quot;: { # The amount that is refunded.
1046 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1047 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1048 },
1049 &quot;creationDate&quot;: &quot;A String&quot;, # Date on which the item has been created, in ISO 8601 format.
1050 &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;
1051 &quot;reasonText&quot;: &quot;A String&quot;, # The explanation of the reason.
1052 },
1053 ],
1054 &quot;shipments&quot;: [ # Shipments of the order.
1055 {
1056 &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) 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)
1057 &quot;creationDate&quot;: &quot;A String&quot;, # Date on which the shipment has been created, in ISO 8601 format.
1058 &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`
1059 &quot;id&quot;: &quot;A String&quot;, # The ID of the shipment.
1060 &quot;lineItems&quot;: [ # The line items that are shipped.
1061 {
1062 &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.
1063 &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.
1064 &quot;quantity&quot;: 42, # The quantity that is shipped.
1065 },
1066 ],
1067 &quot;scheduledDeliveryDetails&quot;: { # Delivery details of the shipment if scheduling is needed.
1068 &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;).
1069 &quot;scheduledDate&quot;: &quot;A String&quot;, # The date a shipment is scheduled for delivery, in ISO 8601 format.
1070 },
1071 &quot;shipmentGroupId&quot;: &quot;A String&quot;, # The shipment group ID of the shipment. This is set in shiplineitems request.
1072 &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;
1073 &quot;trackingId&quot;: &quot;A String&quot;, # The tracking ID for the shipment.
1074 },
1075 ],
1076 &quot;shippingCost&quot;: { # The total cost of shipping for all items.
1077 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1078 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1079 },
1080 &quot;shippingCostTax&quot;: { # The tax for the total shipping cost.
1081 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1082 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1083 },
1084 &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;
1085 &quot;taxCollector&quot;: &quot;A String&quot;, # The party responsible for collecting and remitting taxes. Acceptable values are: - &quot;`marketplaceFacilitator`&quot; - &quot;`merchant`&quot;
1086 },
1087}</pre>
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001088</div>
1089
1090<div class="method">
1091 <code class="details" id="gettestordertemplate">gettestordertemplate(merchantId, templateName, country=None, x__xgafv=None)</code>
1092 <pre>Sandbox only. Retrieves an order template that can be used to quickly create a new order in sandbox.
1093
1094Args:
1095 merchantId: string, The ID of the account that should manage the order. This cannot be a multi-client account. (required)
1096 templateName: string, The name of the template to retrieve. (required)
1097 Allowed values
1098 TEMPLATE1 -
1099 TEMPLATE2 -
1100 TEMPLATE1A -
1101 TEMPLATE1B -
1102 TEMPLATE3 -
1103 TEMPLATE4 -
1104 country: string, The country of the template to retrieve. Defaults to `US`.
1105 x__xgafv: string, V1 error format.
1106 Allowed values
1107 1 - v1 error format
1108 2 - v2 error format
1109
1110Returns:
1111 An object of the form:
1112
1113 {
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001114 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;content#ordersGetTestOrderTemplateResponse&quot;.
1115 &quot;template&quot;: { # The requested test order template.
1116 &quot;deliveryDetails&quot;: { # Overrides the predefined delivery details if provided.
1117 &quot;address&quot;: { # The delivery address
1118 &quot;country&quot;: &quot;A String&quot;, # CLDR country code (e.g. &quot;US&quot;).
1119 &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
1120 &quot;A String&quot;,
1121 ],
1122 &quot;isPostOfficeBox&quot;: True or False, # Whether the address is a post office box.
1123 &quot;locality&quot;: &quot;A String&quot;, # City, town or commune. May also include dependent localities or sublocalities (e.g. neighborhoods or suburbs).
1124 &quot;postalCode&quot;: &quot;A String&quot;, # Postal Code or ZIP (e.g. &quot;94043&quot;).
1125 &quot;recipientName&quot;: &quot;A String&quot;, # Name of the recipient.
1126 &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;).
1127 &quot;streetAddress&quot;: [ # Street-level part of the address.
1128 &quot;A String&quot;,
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001129 ],
1130 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001131 &quot;phoneNumber&quot;: &quot;A String&quot;, # The phone number of the person receiving the delivery.
1132 },
1133 &quot;enableOrderinvoices&quot;: True or False, # Whether the orderinvoices service should support this order.
1134 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#testOrder`&quot;
1135 &quot;lineItems&quot;: [ # Required. Line items that are ordered. At least one line item must be provided.
1136 {
1137 &quot;product&quot;: { # Required. Product data from the time of the order placement.
1138 &quot;brand&quot;: &quot;A String&quot;, # Required. Brand of the item.
1139 &quot;condition&quot;: &quot;A String&quot;, # Required. Condition or state of the item. Acceptable values are: - &quot;`new`&quot;
1140 &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;
1141 &quot;fees&quot;: [ # Fees for the item. Optional.
1142 {
1143 &quot;amount&quot;: { # Amount of the fee.
1144 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1145 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1146 },
1147 &quot;name&quot;: &quot;A String&quot;, # Name of the fee.
1148 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001149 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001150 &quot;gtin&quot;: &quot;A String&quot;, # Global Trade Item Number (GTIN) of the item. Optional.
1151 &quot;imageLink&quot;: &quot;A String&quot;, # Required. URL of an image of the item.
1152 &quot;itemGroupId&quot;: &quot;A String&quot;, # Shared identifier for all variants of the same product. Optional.
1153 &quot;mpn&quot;: &quot;A String&quot;, # Manufacturer Part Number (MPN) of the item. Optional.
1154 &quot;offerId&quot;: &quot;A String&quot;, # Required. An identifier of the item.
1155 &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.
1156 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1157 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1158 },
1159 &quot;targetCountry&quot;: &quot;A String&quot;, # Required. The CLDR territory // code of the target country of the product.
1160 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the product.
1161 &quot;variantAttributes&quot;: [ # Variant attributes for the item. Optional.
1162 {
1163 &quot;dimension&quot;: &quot;A String&quot;, # The dimension of the variant.
1164 &quot;value&quot;: &quot;A String&quot;, # The value for the dimension.
1165 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001166 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001167 },
1168 &quot;quantityOrdered&quot;: 42, # Required. Number of items ordered.
1169 &quot;returnInfo&quot;: { # Required. Details of the return policy for the line item.
1170 &quot;daysToReturn&quot;: 42, # Required. How many days later the item can be returned.
1171 &quot;isReturnable&quot;: True or False, # Required. Whether the item is returnable.
1172 &quot;policyUrl&quot;: &quot;A String&quot;, # Required. URL of the item return policy.
1173 },
1174 &quot;shippingDetails&quot;: { # Required. Details of the requested shipping for the line item.
1175 &quot;deliverByDate&quot;: &quot;A String&quot;, # Required. The delivery by date, in ISO 8601 format.
1176 &quot;method&quot;: { # Required. Details of the shipping method.
1177 &quot;carrier&quot;: &quot;A String&quot;, # The carrier for the shipping. Optional. See `shipments[].carrier` for a list of acceptable values.
1178 &quot;maxDaysInTransit&quot;: 42, # Required. Maximum transit time.
1179 &quot;methodName&quot;: &quot;A String&quot;, # Required. The name of the shipping method.
1180 &quot;minDaysInTransit&quot;: 42, # Required. Minimum transit time.
1181 },
1182 &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.
1183 &quot;shipByDate&quot;: &quot;A String&quot;, # Required. The ship by date, in ISO 8601 format.
1184 &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;
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001185 },
1186 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001187 ],
1188 &quot;notificationMode&quot;: &quot;A String&quot;, # Restricted. Do not use.
1189 &quot;pickupDetails&quot;: { # Overrides the predefined pickup details if provided.
1190 &quot;locationCode&quot;: &quot;A String&quot;, # Required. Code of the location defined by provider or merchant.
1191 &quot;pickupLocationAddress&quot;: { # Required. Pickup location address.
1192 &quot;country&quot;: &quot;A String&quot;, # CLDR country code (e.g. &quot;US&quot;).
1193 &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
1194 &quot;A String&quot;,
1195 ],
1196 &quot;isPostOfficeBox&quot;: True or False, # Whether the address is a post office box.
1197 &quot;locality&quot;: &quot;A String&quot;, # City, town or commune. May also include dependent localities or sublocalities (e.g. neighborhoods or suburbs).
1198 &quot;postalCode&quot;: &quot;A String&quot;, # Postal Code or ZIP (e.g. &quot;94043&quot;).
1199 &quot;recipientName&quot;: &quot;A String&quot;, # Name of the recipient.
1200 &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;).
1201 &quot;streetAddress&quot;: [ # Street-level part of the address.
1202 &quot;A String&quot;,
1203 ],
1204 },
1205 &quot;pickupLocationType&quot;: &quot;A String&quot;, # Pickup location type. Acceptable values are: - &quot;`locker`&quot; - &quot;`store`&quot; - &quot;`curbside`&quot;
1206 &quot;pickupPersons&quot;: [ # Required. all pickup persons set by users.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001207 {
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001208 &quot;name&quot;: &quot;A String&quot;, # Required. Full name of the pickup person.
1209 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number of the person picking up the items.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001210 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001211 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001212 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001213 &quot;predefinedBillingAddress&quot;: &quot;A String&quot;, # Required. The billing address. Acceptable values are: - &quot;`dwight`&quot; - &quot;`jim`&quot; - &quot;`pam`&quot;
1214 &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;
1215 &quot;predefinedEmail&quot;: &quot;A String&quot;, # Required. Email address of the customer. Acceptable values are: - &quot;`pog.dwight.schrute@gmail.com`&quot; - &quot;`pog.jim.halpert@gmail.com`&quot; - &quot;`penpog.pam.beesly@gmail.comding`&quot;
1216 &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;
1217 &quot;promotions&quot;: [ # Promotions associated with the order.
1218 {
1219 &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.
1220 {
1221 &quot;lineItemId&quot;: &quot;A String&quot;, # The line item ID of a product. Do not provide for `orders.createtestorder`.
1222 &quot;offerId&quot;: &quot;A String&quot;, # Required. Offer ID of a product. Only for `orders.createtestorder`.
1223 &quot;productId&quot;: &quot;A String&quot;, # `orders.createtestorder`.
1224 &quot;quantity&quot;: 42, # The quantity of the associated product. Do not provide for `orders.createtestorder`.
1225 },
1226 ],
1227 &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.
1228 {
1229 &quot;lineItemId&quot;: &quot;A String&quot;, # The line item ID of a product. Do not provide for `orders.createtestorder`.
1230 &quot;offerId&quot;: &quot;A String&quot;, # Required. Offer ID of a product. Only for `orders.createtestorder`.
1231 &quot;productId&quot;: &quot;A String&quot;, # `orders.createtestorder`.
1232 &quot;quantity&quot;: 42, # The quantity of the associated product. Do not provide for `orders.createtestorder`.
1233 },
1234 ],
1235 &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;.
1236 &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;
1237 &quot;merchantPromotionId&quot;: &quot;A String&quot;, # Required. This field is used to identify promotions within merchants&#x27; own systems.
1238 &quot;priceValue&quot;: { # Estimated discount applied to price. Amount is pre-tax or post-tax depending on location of order.
1239 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1240 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1241 },
1242 &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`.
1243 &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;.
1244 &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;
1245 &quot;taxValue&quot;: { # Estimated discount applied to tax (if allowed by law). Do not provide for `orders.createtestorder`.
1246 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1247 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1248 },
1249 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the promotion.
1250 &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;
1251 },
1252 ],
1253 &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.
1254 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1255 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1256 },
1257 &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;
1258 },
1259}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001260</div>
1261
1262<div class="method">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001263 <code class="details" id="instorerefundlineitem">instorerefundlineitem(merchantId, orderId, body=None, x__xgafv=None)</code>
1264 <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.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001265
1266Args:
1267 merchantId: string, The ID of the account that manages the order. This cannot be a multi-client account. (required)
1268 orderId: string, The ID of the order. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001269 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001270 The object takes the form of:
1271
1272{
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001273 &quot;lineItemId&quot;: &quot;A String&quot;, # The ID of the line item to return. Either lineItemId or productId is required.
1274 &quot;operationId&quot;: &quot;A String&quot;, # The ID of the operation. Unique across all operations for a given order.
1275 &quot;priceAmount&quot;: { # The amount to be refunded. This may be pre-tax or post-tax depending on the location of the order. Required.
1276 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1277 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1278 },
1279 &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.
1280 &quot;quantity&quot;: 42, # The quantity to return and refund.
1281 &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;
1282 &quot;reasonText&quot;: &quot;A String&quot;, # The explanation of the reason.
1283 &quot;taxAmount&quot;: { # The amount of tax to be refunded. Required.
1284 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1285 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1286 },
1287}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001288
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001289 x__xgafv: string, V1 error format.
1290 Allowed values
1291 1 - v1 error format
1292 2 - v2 error format
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001293
1294Returns:
1295 An object of the form:
1296
1297 {
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001298 &quot;executionStatus&quot;: &quot;A String&quot;, # The status of the execution. Acceptable values are: - &quot;`duplicate`&quot; - &quot;`executed`&quot;
1299 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;content#ordersInStoreRefundLineItemResponse&quot;.
1300}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001301</div>
1302
1303<div class="method">
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001304 <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>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001305 <pre>Lists the orders in your Merchant Center account.
1306
1307Args:
1308 merchantId: string, The ID of the account that manages the order. This cannot be a multi-client account. (required)
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001309 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.
1310 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.
1311 orderBy: string, Order results by placement date in descending or ascending order. Acceptable values are: - placedDateAsc - placedDateDesc
1312 pageToken: string, The token returned by the previous request.
1313 placedDateEnd: string, Obtains orders placed before this date (exclusively), in ISO 8601 format.
1314 placedDateStart: string, Obtains orders placed after this date (inclusively), in ISO 8601 format.
Dan O'Mearadd494642020-05-01 07:42:23 -07001315 statuses: string, Obtains orders that match any of the specified statuses. Please note that `active` is a shortcut for `pendingShipment` and `partiallyShipped`, and `completed` is a shortcut for `shipped`, `partiallyDelivered`, `delivered`, `partiallyReturned`, `returned`, and `canceled`. (repeated)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001316 Allowed values
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001317 ACTIVE -
1318 COMPLETED -
1319 CANCELED -
1320 IN_PROGRESS -
1321 PENDING_SHIPMENT -
1322 PARTIALLY_SHIPPED -
1323 SHIPPED -
1324 PARTIALLY_DELIVERED -
1325 DELIVERED -
1326 PARTIALLY_RETURNED -
1327 RETURNED -
1328 x__xgafv: string, V1 error format.
1329 Allowed values
1330 1 - v1 error format
1331 2 - v2 error format
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001332
1333Returns:
1334 An object of the form:
1335
1336 {
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001337 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;content#ordersListResponse&quot;.
1338 &quot;nextPageToken&quot;: &quot;A String&quot;, # The token for the retrieval of the next page of orders.
1339 &quot;resources&quot;: [
1340 { # Order. Production access (all methods) requires the order manager role. Sandbox access does not.
1341 &quot;acknowledged&quot;: True or False, # Whether the order was acknowledged.
1342 &quot;annotations&quot;: [ # List of key-value pairs that are attached to a given order.
1343 {
1344 &quot;key&quot;: &quot;A String&quot;, # Key for additional google provided (as key-value pairs) annotation.
1345 &quot;value&quot;: &quot;A String&quot;, # Value for additional google provided (as key-value pairs) annotation.
1346 },
1347 ],
1348 &quot;billingAddress&quot;: { # The billing address.
1349 &quot;country&quot;: &quot;A String&quot;, # CLDR country code (e.g. &quot;US&quot;).
1350 &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
1351 &quot;A String&quot;,
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001352 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001353 &quot;isPostOfficeBox&quot;: True or False, # Whether the address is a post office box.
1354 &quot;locality&quot;: &quot;A String&quot;, # City, town or commune. May also include dependent localities or sublocalities (e.g. neighborhoods or suburbs).
1355 &quot;postalCode&quot;: &quot;A String&quot;, # Postal Code or ZIP (e.g. &quot;94043&quot;).
1356 &quot;recipientName&quot;: &quot;A String&quot;, # Name of the recipient.
1357 &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;).
1358 &quot;streetAddress&quot;: [ # Street-level part of the address.
1359 &quot;A String&quot;,
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001360 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001361 },
1362 &quot;customer&quot;: { # The details of the customer who placed the order.
1363 &quot;fullName&quot;: &quot;A String&quot;, # Full name of the customer.
1364 &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.
1365 &quot;loyaltyInfo&quot;: { # Loyalty program information.
1366 &quot;loyaltyNumber&quot;: &quot;A String&quot;, # The loyalty card/membership number.
1367 &quot;name&quot;: &quot;A String&quot;, # Name of card/membership holder, this field will be populated when
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001368 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001369 &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.
1370 &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;
1371 &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.
1372 &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001373 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001374 },
1375 &quot;deliveryDetails&quot;: { # Delivery details for shipments of type `delivery`.
1376 &quot;address&quot;: { # The delivery address
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001377 &quot;country&quot;: &quot;A String&quot;, # CLDR country code (e.g. &quot;US&quot;).
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001378 &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
1379 &quot;A String&quot;,
1380 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001381 &quot;isPostOfficeBox&quot;: True or False, # Whether the address is a post office box.
1382 &quot;locality&quot;: &quot;A String&quot;, # City, town or commune. May also include dependent localities or sublocalities (e.g. neighborhoods or suburbs).
1383 &quot;postalCode&quot;: &quot;A String&quot;, # Postal Code or ZIP (e.g. &quot;94043&quot;).
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001384 &quot;recipientName&quot;: &quot;A String&quot;, # Name of the recipient.
1385 &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;).
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001386 &quot;streetAddress&quot;: [ # Street-level part of the address.
1387 &quot;A String&quot;,
1388 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001389 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001390 &quot;phoneNumber&quot;: &quot;A String&quot;, # The phone number of the person receiving the delivery.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001391 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001392 &quot;id&quot;: &quot;A String&quot;, # The REST ID of the order. Globally unique.
1393 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#order`&quot;
1394 &quot;lineItems&quot;: [ # Line items that are ordered.
1395 {
1396 &quot;adjustments&quot;: [ # Price and tax adjustments applied on the line item.
1397 {
1398 &quot;priceAdjustment&quot;: { # Adjustment for total price of the line item.
1399 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1400 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1401 },
1402 &quot;taxAdjustment&quot;: { # Adjustment for total tax of the line item.
1403 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1404 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1405 },
1406 &quot;type&quot;: &quot;A String&quot;, # Type of this adjustment. Acceptable values are: - &quot;`promotion`&quot;
1407 },
1408 ],
1409 &quot;annotations&quot;: [ # Annotations that are attached to the line item.
1410 {
1411 &quot;key&quot;: &quot;A String&quot;, # Key for additional merchant provided (as key-value pairs) annotation about the line item.
1412 &quot;value&quot;: &quot;A String&quot;, # Value for additional merchant provided (as key-value pairs) annotation about the line item.
1413 },
1414 ],
1415 &quot;cancellations&quot;: [ # Cancellations of the line item.
1416 {
1417 &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;
1418 &quot;creationDate&quot;: &quot;A String&quot;, # Date on which the cancellation has been created, in ISO 8601 format.
1419 &quot;quantity&quot;: 42, # The quantity that was canceled.
1420 &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;
1421 &quot;reasonText&quot;: &quot;A String&quot;, # The explanation of the reason.
1422 },
1423 ],
1424 &quot;id&quot;: &quot;A String&quot;, # The ID of the line item.
1425 &quot;price&quot;: { # Total price for the line item. For example, if two items for $10 are purchased, the total price will be $20.
1426 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1427 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1428 },
1429 &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.
1430 &quot;brand&quot;: &quot;A String&quot;, # Brand of the item.
1431 &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;
1432 &quot;contentLanguage&quot;: &quot;A String&quot;, # The two-letter ISO 639-1 language code for the item.
1433 &quot;fees&quot;: [ # Associated fees at order creation time.
1434 {
1435 &quot;amount&quot;: { # Amount of the fee.
1436 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1437 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1438 },
1439 &quot;name&quot;: &quot;A String&quot;, # Name of the fee.
1440 },
1441 ],
1442 &quot;gtin&quot;: &quot;A String&quot;, # Global Trade Item Number (GTIN) of the item.
1443 &quot;id&quot;: &quot;A String&quot;, # The REST ID of the product.
1444 &quot;imageLink&quot;: &quot;A String&quot;, # URL of an image of the item.
1445 &quot;itemGroupId&quot;: &quot;A String&quot;, # Shared identifier for all variants of the same product.
1446 &quot;mpn&quot;: &quot;A String&quot;, # Manufacturer Part Number (MPN) of the item.
1447 &quot;offerId&quot;: &quot;A String&quot;, # An identifier of the item.
1448 &quot;price&quot;: { # Price of the item.
1449 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1450 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1451 },
1452 &quot;shownImage&quot;: &quot;A String&quot;, # URL to the cached image shown to the user when order was placed.
1453 &quot;targetCountry&quot;: &quot;A String&quot;, # The CLDR territory // code of the target country of the product.
1454 &quot;title&quot;: &quot;A String&quot;, # The title of the product.
1455 &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.
1456 {
1457 &quot;dimension&quot;: &quot;A String&quot;, # The dimension of the variant.
1458 &quot;value&quot;: &quot;A String&quot;, # The value for the dimension.
1459 },
1460 ],
1461 },
1462 &quot;quantityCanceled&quot;: 42, # Number of items canceled.
1463 &quot;quantityDelivered&quot;: 42, # Number of items delivered.
1464 &quot;quantityOrdered&quot;: 42, # Number of items ordered.
1465 &quot;quantityPending&quot;: 42, # Number of items pending.
1466 &quot;quantityReadyForPickup&quot;: 42, # Number of items ready for pickup.
1467 &quot;quantityReturned&quot;: 42, # Number of items returned.
1468 &quot;quantityShipped&quot;: 42, # Number of items shipped.
1469 &quot;quantityUndeliverable&quot;: 42, # Number of items undeliverable.
1470 &quot;returnInfo&quot;: { # Details of the return policy for the line item.
1471 &quot;daysToReturn&quot;: 42, # Required. How many days later the item can be returned.
1472 &quot;isReturnable&quot;: True or False, # Required. Whether the item is returnable.
1473 &quot;policyUrl&quot;: &quot;A String&quot;, # Required. URL of the item return policy.
1474 },
1475 &quot;returns&quot;: [ # Returns of the line item.
1476 {
1477 &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;
1478 &quot;creationDate&quot;: &quot;A String&quot;, # Date on which the item has been created, in ISO 8601 format.
1479 &quot;quantity&quot;: 42, # Quantity that is returned.
1480 &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;
1481 &quot;reasonText&quot;: &quot;A String&quot;, # The explanation of the reason.
1482 },
1483 ],
1484 &quot;shippingDetails&quot;: { # Details of the requested shipping for the line item.
1485 &quot;deliverByDate&quot;: &quot;A String&quot;, # Required. The delivery by date, in ISO 8601 format.
1486 &quot;method&quot;: { # Required. Details of the shipping method.
1487 &quot;carrier&quot;: &quot;A String&quot;, # The carrier for the shipping. Optional. See `shipments[].carrier` for a list of acceptable values.
1488 &quot;maxDaysInTransit&quot;: 42, # Required. Maximum transit time.
1489 &quot;methodName&quot;: &quot;A String&quot;, # Required. The name of the shipping method.
1490 &quot;minDaysInTransit&quot;: 42, # Required. Minimum transit time.
1491 },
1492 &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.
1493 &quot;shipByDate&quot;: &quot;A String&quot;, # Required. The ship by date, in ISO 8601 format.
1494 &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;
1495 },
1496 &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.
1497 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1498 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1499 },
1500 },
1501 ],
1502 &quot;merchantId&quot;: &quot;A String&quot;,
1503 &quot;merchantOrderId&quot;: &quot;A String&quot;, # Merchant-provided ID of the order.
1504 &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.
1505 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1506 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1507 },
1508 &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.
1509 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1510 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1511 },
1512 &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;
1513 &quot;pickupDetails&quot;: { # Pickup details for shipments of type `pickup`.
1514 &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.
1515 &quot;country&quot;: &quot;A String&quot;, # CLDR country code (e.g. &quot;US&quot;).
1516 &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
1517 &quot;A String&quot;,
1518 ],
1519 &quot;isPostOfficeBox&quot;: True or False, # Whether the address is a post office box.
1520 &quot;locality&quot;: &quot;A String&quot;, # City, town or commune. May also include dependent localities or sublocalities (e.g. neighborhoods or suburbs).
1521 &quot;postalCode&quot;: &quot;A String&quot;, # Postal Code or ZIP (e.g. &quot;94043&quot;).
1522 &quot;recipientName&quot;: &quot;A String&quot;, # Name of the recipient.
1523 &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;).
1524 &quot;streetAddress&quot;: [ # Street-level part of the address.
1525 &quot;A String&quot;,
1526 ],
1527 },
1528 &quot;collectors&quot;: [ # Collectors authorized to pick up shipment from the pickup location.
1529 {
1530 &quot;name&quot;: &quot;A String&quot;, # Name of the person picking up the shipment.
1531 &quot;phoneNumber&quot;: &quot;A String&quot;, # Phone number of the person picking up the shipment.
1532 },
1533 ],
1534 &quot;locationId&quot;: &quot;A String&quot;, # ID of the pickup location.
1535 &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;
1536 },
1537 &quot;placedDate&quot;: &quot;A String&quot;, # The date when the order was placed, in ISO 8601 format.
1538 &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.
1539 {
1540 &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.
1541 {
1542 &quot;lineItemId&quot;: &quot;A String&quot;, # The line item ID of a product. Do not provide for `orders.createtestorder`.
1543 &quot;offerId&quot;: &quot;A String&quot;, # Required. Offer ID of a product. Only for `orders.createtestorder`.
1544 &quot;productId&quot;: &quot;A String&quot;, # `orders.createtestorder`.
1545 &quot;quantity&quot;: 42, # The quantity of the associated product. Do not provide for `orders.createtestorder`.
1546 },
1547 ],
1548 &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.
1549 {
1550 &quot;lineItemId&quot;: &quot;A String&quot;, # The line item ID of a product. Do not provide for `orders.createtestorder`.
1551 &quot;offerId&quot;: &quot;A String&quot;, # Required. Offer ID of a product. Only for `orders.createtestorder`.
1552 &quot;productId&quot;: &quot;A String&quot;, # `orders.createtestorder`.
1553 &quot;quantity&quot;: 42, # The quantity of the associated product. Do not provide for `orders.createtestorder`.
1554 },
1555 ],
1556 &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;.
1557 &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;
1558 &quot;merchantPromotionId&quot;: &quot;A String&quot;, # Required. This field is used to identify promotions within merchants&#x27; own systems.
1559 &quot;priceValue&quot;: { # Estimated discount applied to price. Amount is pre-tax or post-tax depending on location of order.
1560 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1561 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1562 },
1563 &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`.
1564 &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;.
1565 &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;
1566 &quot;taxValue&quot;: { # Estimated discount applied to tax (if allowed by law). Do not provide for `orders.createtestorder`.
1567 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1568 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1569 },
1570 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the promotion.
1571 &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;
1572 },
1573 ],
1574 &quot;refunds&quot;: [ # Refunds for the order.
1575 {
1576 &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;
1577 &quot;amount&quot;: { # The amount that is refunded.
1578 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1579 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1580 },
1581 &quot;creationDate&quot;: &quot;A String&quot;, # Date on which the item has been created, in ISO 8601 format.
1582 &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;
1583 &quot;reasonText&quot;: &quot;A String&quot;, # The explanation of the reason.
1584 },
1585 ],
1586 &quot;shipments&quot;: [ # Shipments of the order.
1587 {
1588 &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) 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)
1589 &quot;creationDate&quot;: &quot;A String&quot;, # Date on which the shipment has been created, in ISO 8601 format.
1590 &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`
1591 &quot;id&quot;: &quot;A String&quot;, # The ID of the shipment.
1592 &quot;lineItems&quot;: [ # The line items that are shipped.
1593 {
1594 &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.
1595 &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.
1596 &quot;quantity&quot;: 42, # The quantity that is shipped.
1597 },
1598 ],
1599 &quot;scheduledDeliveryDetails&quot;: { # Delivery details of the shipment if scheduling is needed.
1600 &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;).
1601 &quot;scheduledDate&quot;: &quot;A String&quot;, # The date a shipment is scheduled for delivery, in ISO 8601 format.
1602 },
1603 &quot;shipmentGroupId&quot;: &quot;A String&quot;, # The shipment group ID of the shipment. This is set in shiplineitems request.
1604 &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;
1605 &quot;trackingId&quot;: &quot;A String&quot;, # The tracking ID for the shipment.
1606 },
1607 ],
1608 &quot;shippingCost&quot;: { # The total cost of shipping for all items.
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;shippingCostTax&quot;: { # The tax for the total shipping cost.
1613 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1614 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1615 },
1616 &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;
1617 &quot;taxCollector&quot;: &quot;A String&quot;, # The party responsible for collecting and remitting taxes. Acceptable values are: - &quot;`marketplaceFacilitator`&quot; - &quot;`merchant`&quot;
1618 },
1619 ],
1620}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001621</div>
1622
1623<div class="method">
1624 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
1625 <pre>Retrieves the next page of results.
1626
1627Args:
1628 previous_request: The request for the previous page. (required)
1629 previous_response: The response from the request for the previous page. (required)
1630
1631Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -07001632 A request object that you can call &#x27;execute()&#x27; on to request the next
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001633 page. Returns None if there are no more items in the collection.
1634 </pre>
1635</div>
1636
1637<div class="method">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001638 <code class="details" id="refunditem">refunditem(merchantId, orderId, body=None, x__xgafv=None)</code>
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001639 <pre>Issues a partial or total refund for items and shipment.
1640
1641Args:
1642 merchantId: string, The ID of the account that manages the order. This cannot be a multi-client account. (required)
1643 orderId: string, The ID of the order to refund. (required)
1644 body: object, The request body.
1645 The object takes the form of:
1646
1647{
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001648 &quot;items&quot;: [ # The items that are refunded. Either Item or Shipping must be provided in the request.
1649 {
1650 &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.
1651 &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 .
1652 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1653 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1654 },
1655 &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`.
1656 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1657 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001658 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001659 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001660 &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.
1661 &quot;lineItemId&quot;: &quot;A String&quot;, # The ID of the line item. Either lineItemId or productId is required.
1662 &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.
1663 &quot;quantity&quot;: 42, # The number of products that are refunded.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001664 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001665 ],
1666 &quot;operationId&quot;: &quot;A String&quot;, # The ID of the operation. Unique across all operations for a given order.
1667 &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;
1668 &quot;reasonText&quot;: &quot;A String&quot;, # The explanation of the reason.
1669 &quot;shipping&quot;: { # The refund on shipping. Optional, but either Item or Shipping must be provided in the request.
1670 &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.
1671 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1672 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1673 },
1674 &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.
1675 },
1676}
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001677
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001678 x__xgafv: string, V1 error format.
1679 Allowed values
1680 1 - v1 error format
1681 2 - v2 error format
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001682
1683Returns:
1684 An object of the form:
1685
1686 {
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001687 &quot;executionStatus&quot;: &quot;A String&quot;, # The status of the execution. Acceptable values are: - &quot;`duplicate`&quot; - &quot;`executed`&quot;
1688 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;content#ordersRefundItemResponse&quot;.
1689}</pre>
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001690</div>
1691
1692<div class="method">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001693 <code class="details" id="refundorder">refundorder(merchantId, orderId, body=None, x__xgafv=None)</code>
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001694 <pre>Issues a partial or total refund for an order.
1695
1696Args:
1697 merchantId: string, The ID of the account that manages the order. This cannot be a multi-client account. (required)
1698 orderId: string, The ID of the order to refund. (required)
1699 body: object, The request body.
1700 The object takes the form of:
1701
1702{
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001703 &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.
1704 &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 .
1705 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1706 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001707 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001708 &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`.
1709 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1710 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1711 },
1712 },
1713 &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.
1714 &quot;operationId&quot;: &quot;A String&quot;, # The ID of the operation. Unique across all operations for a given order.
1715 &quot;reason&quot;: &quot;A String&quot;, # The reason for the refund. Acceptable values are: - &quot;`courtesyAdjustment`&quot; - &quot;`other`&quot;
1716 &quot;reasonText&quot;: &quot;A String&quot;, # The explanation of the reason.
1717}
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001718
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001719 x__xgafv: string, V1 error format.
1720 Allowed values
1721 1 - v1 error format
1722 2 - v2 error format
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001723
1724Returns:
1725 An object of the form:
1726
1727 {
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001728 &quot;executionStatus&quot;: &quot;A String&quot;, # The status of the execution. Acceptable values are: - &quot;`duplicate`&quot; - &quot;`executed`&quot;
1729 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;content#ordersRefundOrderResponse&quot;.
1730}</pre>
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001731</div>
1732
1733<div class="method">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001734 <code class="details" id="rejectreturnlineitem">rejectreturnlineitem(merchantId, orderId, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001735 <pre>Rejects return on an line item.
1736
1737Args:
1738 merchantId: string, The ID of the account that manages the order. This cannot be a multi-client account. (required)
1739 orderId: string, The ID of the order. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001740 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001741 The object takes the form of:
1742
1743{
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001744 &quot;lineItemId&quot;: &quot;A String&quot;, # The ID of the line item to return. Either lineItemId or productId is required.
1745 &quot;operationId&quot;: &quot;A String&quot;, # The ID of the operation. Unique across all operations for a given order.
1746 &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.
1747 &quot;quantity&quot;: 42, # The quantity to return and refund.
1748 &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;
1749 &quot;reasonText&quot;: &quot;A String&quot;, # The explanation of the reason.
1750}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001751
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001752 x__xgafv: string, V1 error format.
1753 Allowed values
1754 1 - v1 error format
1755 2 - v2 error format
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001756
1757Returns:
1758 An object of the form:
1759
1760 {
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001761 &quot;executionStatus&quot;: &quot;A String&quot;, # The status of the execution. Acceptable values are: - &quot;`duplicate`&quot; - &quot;`executed`&quot;
1762 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;content#ordersRejectReturnLineItemResponse&quot;.
1763}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001764</div>
1765
1766<div class="method">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001767 <code class="details" id="returnrefundlineitem">returnrefundlineitem(merchantId, orderId, body=None, x__xgafv=None)</code>
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001768 <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.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001769
1770Args:
1771 merchantId: string, The ID of the account that manages the order. This cannot be a multi-client account. (required)
1772 orderId: string, The ID of the order. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001773 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001774 The object takes the form of:
1775
1776{
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001777 &quot;lineItemId&quot;: &quot;A String&quot;, # The ID of the line item to return. Either lineItemId or productId is required.
1778 &quot;operationId&quot;: &quot;A String&quot;, # The ID of the operation. Unique across all operations for a given order.
1779 &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.
1780 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1781 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1782 },
1783 &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.
1784 &quot;quantity&quot;: 42, # The quantity to return and refund.
1785 &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;
1786 &quot;reasonText&quot;: &quot;A String&quot;, # The explanation of the reason.
1787 &quot;taxAmount&quot;: { # The amount of tax to be refunded. Optional, but if filled, then priceAmount must be set. Calculated automatically if not provided.
1788 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1789 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1790 },
1791}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001792
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001793 x__xgafv: string, V1 error format.
1794 Allowed values
1795 1 - v1 error format
1796 2 - v2 error format
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001797
1798Returns:
1799 An object of the form:
1800
1801 {
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001802 &quot;executionStatus&quot;: &quot;A String&quot;, # The status of the execution. Acceptable values are: - &quot;`duplicate`&quot; - &quot;`executed`&quot;
1803 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;content#ordersReturnRefundLineItemResponse&quot;.
1804}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001805</div>
1806
1807<div class="method">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001808 <code class="details" id="setlineitemmetadata">setlineitemmetadata(merchantId, orderId, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001809 <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.
1810
1811Args:
1812 merchantId: string, The ID of the account that manages the order. This cannot be a multi-client account. (required)
1813 orderId: string, The ID of the order. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001814 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001815 The object takes the form of:
1816
1817{
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001818 &quot;annotations&quot;: [
1819 {
1820 &quot;key&quot;: &quot;A String&quot;, # Key for additional merchant provided (as key-value pairs) annotation about the line item.
1821 &quot;value&quot;: &quot;A String&quot;, # Value for additional merchant provided (as key-value pairs) annotation about the line item.
1822 },
1823 ],
1824 &quot;lineItemId&quot;: &quot;A String&quot;, # The ID of the line item to set metadata. Either lineItemId or productId is required.
1825 &quot;operationId&quot;: &quot;A String&quot;, # The ID of the operation. Unique across all operations for a given order.
1826 &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.
1827}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001828
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001829 x__xgafv: string, V1 error format.
1830 Allowed values
1831 1 - v1 error format
1832 2 - v2 error format
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001833
1834Returns:
1835 An object of the form:
1836
1837 {
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001838 &quot;executionStatus&quot;: &quot;A String&quot;, # The status of the execution. Acceptable values are: - &quot;`duplicate`&quot; - &quot;`executed`&quot;
1839 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;content#ordersSetLineItemMetadataResponse&quot;.
1840}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001841</div>
1842
1843<div class="method">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001844 <code class="details" id="shiplineitems">shiplineitems(merchantId, orderId, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001845 <pre>Marks line item(s) as shipped.
1846
1847Args:
1848 merchantId: string, The ID of the account that manages the order. This cannot be a multi-client account. (required)
1849 orderId: string, The ID of the order. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001850 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001851 The object takes the form of:
1852
1853{
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001854 &quot;lineItems&quot;: [ # Line items to ship.
1855 {
1856 &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.
1857 &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.
1858 &quot;quantity&quot;: 42, # The quantity that is shipped.
1859 },
1860 ],
1861 &quot;operationId&quot;: &quot;A String&quot;, # The ID of the operation. Unique across all operations for a given order.
1862 &quot;shipmentGroupId&quot;: &quot;A String&quot;, # ID of the shipment group. Required for orders that use the orderinvoices service.
1863 &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).
1864 {
1865 &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.
1866 &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.
1867 &quot;trackingId&quot;: &quot;A String&quot;, # The tracking ID for the shipment.
1868 },
1869 ],
1870}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001871
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001872 x__xgafv: string, V1 error format.
1873 Allowed values
1874 1 - v1 error format
1875 2 - v2 error format
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001876
1877Returns:
1878 An object of the form:
1879
1880 {
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001881 &quot;executionStatus&quot;: &quot;A String&quot;, # The status of the execution. Acceptable values are: - &quot;`duplicate`&quot; - &quot;`executed`&quot;
1882 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;content#ordersShipLineItemsResponse&quot;.
1883}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001884</div>
1885
1886<div class="method">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001887 <code class="details" id="updatelineitemshippingdetails">updatelineitemshippingdetails(merchantId, orderId, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001888 <pre>Updates ship by and delivery by dates for a line item.
1889
1890Args:
1891 merchantId: string, The ID of the account that manages the order. This cannot be a multi-client account. (required)
1892 orderId: string, The ID of the order. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001893 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001894 The object takes the form of:
1895
1896{
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001897 &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.
1898 &quot;lineItemId&quot;: &quot;A String&quot;, # The ID of the line item to set metadata. Either lineItemId or productId is required.
1899 &quot;operationId&quot;: &quot;A String&quot;, # The ID of the operation. Unique across all operations for a given order.
1900 &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.
1901 &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.
1902}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001903
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001904 x__xgafv: string, V1 error format.
1905 Allowed values
1906 1 - v1 error format
1907 2 - v2 error format
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001908
1909Returns:
1910 An object of the form:
1911
1912 {
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001913 &quot;executionStatus&quot;: &quot;A String&quot;, # The status of the execution. Acceptable values are: - &quot;`duplicate`&quot; - &quot;`executed`&quot;
1914 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;content#ordersUpdateLineItemShippingDetailsResponse&quot;.
1915}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001916</div>
1917
1918<div class="method">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001919 <code class="details" id="updatemerchantorderid">updatemerchantorderid(merchantId, orderId, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001920 <pre>Updates the merchant order ID for a given order.
1921
1922Args:
1923 merchantId: string, The ID of the account that manages the order. This cannot be a multi-client account. (required)
1924 orderId: string, The ID of the order. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001925 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001926 The object takes the form of:
1927
1928{
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001929 &quot;merchantOrderId&quot;: &quot;A String&quot;, # The merchant order id to be assigned to the order. Must be unique per merchant.
1930 &quot;operationId&quot;: &quot;A String&quot;, # The ID of the operation. Unique across all operations for a given order.
1931}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001932
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001933 x__xgafv: string, V1 error format.
1934 Allowed values
1935 1 - v1 error format
1936 2 - v2 error format
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001937
1938Returns:
1939 An object of the form:
1940
1941 {
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001942 &quot;executionStatus&quot;: &quot;A String&quot;, # The status of the execution. Acceptable values are: - &quot;`duplicate`&quot; - &quot;`executed`&quot;
1943 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;content#ordersUpdateMerchantOrderIdResponse&quot;.
1944}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001945</div>
1946
1947<div class="method">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001948 <code class="details" id="updateshipment">updateshipment(merchantId, orderId, body=None, x__xgafv=None)</code>
Bu Sun Kim65020912020-05-20 12:08:20 -07001949 <pre>Updates a shipment&#x27;s status, carrier, and/or tracking ID.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001950
1951Args:
1952 merchantId: string, The ID of the account that manages the order. This cannot be a multi-client account. (required)
1953 orderId: string, The ID of the order. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001954 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001955 The object takes the form of:
1956
1957{
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001958 &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.
1959 &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`.
1960 &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`.
1961 &quot;operationId&quot;: &quot;A String&quot;, # The ID of the operation. Unique across all operations for a given order.
1962 &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`.
1963 &quot;shipmentId&quot;: &quot;A String&quot;, # The ID of the shipment.
1964 &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;
1965 &quot;trackingId&quot;: &quot;A String&quot;, # The tracking ID for the shipment. Not updated if missing.
1966 &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`.
1967}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001968
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001969 x__xgafv: string, V1 error format.
1970 Allowed values
1971 1 - v1 error format
1972 2 - v2 error format
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001973
1974Returns:
1975 An object of the form:
1976
1977 {
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001978 &quot;executionStatus&quot;: &quot;A String&quot;, # The status of the execution. Acceptable values are: - &quot;`duplicate`&quot; - &quot;`executed`&quot;
1979 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;content#ordersUpdateShipmentResponse&quot;.
1980}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001981</div>
1982
1983</body></html>