blob: a6d57d4d93bb8700957ef7a73d6ec8dd16e90728 [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 Bot0bf565c2020-12-09 08:56:03 -0800114 <code><a href="#list">list(merchantId, statuses=None, placedDateEnd=None, pageToken=None, maxResults=None, orderBy=None, placedDateStart=None, acknowledged=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{
Bu Sun Kim65020912020-05-20 12:08:20 -0700158 &quot;operationId&quot;: &quot;A String&quot;, # The ID of the operation. Unique across all operations for a given order.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700159 }
160
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 Botc2228be2020-11-24 15:48:03 -0800170 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;content#ordersAcknowledgeResponse&quot;.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800171 &quot;executionStatus&quot;: &quot;A String&quot;, # The status of the execution. Acceptable values are: - &quot;`duplicate`&quot; - &quot;`executed`&quot;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700172 }</pre>
173</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 {
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700191 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;content#ordersAdvanceTestOrderResponse&quot;.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700192 }</pre>
193</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 Botb6971b02020-11-26 17:16:03 -0800206 &quot;reasonText&quot;: &quot;A String&quot;, # The explanation of the reason.
Bu Sun Kim65020912020-05-20 12:08:20 -0700207 &quot;operationId&quot;: &quot;A String&quot;, # The ID of the operation. Unique across all operations for a given order.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800208 &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;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700209 }
210
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 {
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700220 &quot;executionStatus&quot;: &quot;A String&quot;, # The status of the execution. Acceptable values are: - &quot;`duplicate`&quot; - &quot;`executed`&quot;
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800221 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;content#ordersCancelResponse&quot;.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700222 }</pre>
223</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 Botb6971b02020-11-26 17:16:03 -0800236 &quot;lineItemId&quot;: &quot;A String&quot;, # The ID of the line item to cancel. Either lineItemId or productId is required.
237 &quot;reasonText&quot;: &quot;A String&quot;, # The explanation of the reason.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800238 &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;
239 &quot;quantity&quot;: 42, # The quantity to cancel.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800240 &quot;operationId&quot;: &quot;A String&quot;, # The ID of the operation. Unique across all operations for a given order.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800241 &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.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700242 }
243
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 {
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700253 &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;.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700255 }</pre>
256</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{
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700269 &quot;reason&quot;: &quot;A String&quot;, # The reason for the cancellation. Acceptable values are: - &quot;`changedMind`&quot; - &quot;`orderedWrongItem`&quot; - &quot;`other`&quot;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700270 }
271
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 {
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700281 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;content#ordersCancelTestOrderByCustomerResponse&quot;.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700282 }</pre>
283</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 Bot0bf565c2020-12-09 08:56:03 -0800300 &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;
Bu Sun Kim65020912020-05-20 12:08:20 -0700301 &quot;testOrder&quot;: { # The test order to create.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800302 &quot;enableOrderinvoices&quot;: True or False, # Whether the orderinvoices service should support this order.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800303 &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;
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800304 &quot;predefinedBillingAddress&quot;: &quot;A String&quot;, # Required. The billing address. Acceptable values are: - &quot;`dwight`&quot; - &quot;`jim`&quot; - &quot;`pam`&quot;
305 &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;
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800306 &quot;lineItems&quot;: [ # Required. Line items that are ordered. At least one line item must be provided.
307 {
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800308 &quot;returnInfo&quot;: { # Required. Details of the return policy for the line item.
309 &quot;daysToReturn&quot;: 42, # Required. How many days later the item can be returned.
310 &quot;policyUrl&quot;: &quot;A String&quot;, # Required. URL of the item return policy.
311 &quot;isReturnable&quot;: True or False, # Required. Whether the item is returnable.
312 },
313 &quot;shippingDetails&quot;: { # Required. Details of the requested shipping for the line item.
314 &quot;method&quot;: { # Required. Details of the shipping method.
315 &quot;methodName&quot;: &quot;A String&quot;, # Required. The name of the shipping method.
316 &quot;minDaysInTransit&quot;: 42, # Required. Minimum transit time.
317 &quot;maxDaysInTransit&quot;: 42, # Required. Maximum transit time.
318 &quot;carrier&quot;: &quot;A String&quot;, # The carrier for the shipping. Optional. See `shipments[].carrier` for a list of acceptable values.
319 },
320 &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.
321 &quot;shipByDate&quot;: &quot;A String&quot;, # Required. The ship by date, in ISO 8601 format.
322 &quot;deliverByDate&quot;: &quot;A String&quot;, # Required. The delivery by date, in ISO 8601 format.
323 &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;
324 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800325 &quot;product&quot;: { # Required. Product data from the time of the order placement.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800326 &quot;imageLink&quot;: &quot;A String&quot;, # Required. URL of an image of the item.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800327 &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;mpn&quot;: &quot;A String&quot;, # Manufacturer Part Number (MPN) of the item. Optional.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800329 &quot;variantAttributes&quot;: [ # Variant attributes for the item. Optional.
330 {
331 &quot;value&quot;: &quot;A String&quot;, # The value for the dimension.
332 &quot;dimension&quot;: &quot;A String&quot;, # The dimension of the variant.
333 },
334 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800335 &quot;brand&quot;: &quot;A String&quot;, # Required. Brand of the item.
336 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the product.
337 &quot;gtin&quot;: &quot;A String&quot;, # Global Trade Item Number (GTIN) of the item. Optional.
338 &quot;offerId&quot;: &quot;A String&quot;, # Required. An identifier of the item.
339 &quot;fees&quot;: [ # Fees for the item. Optional.
340 {
341 &quot;name&quot;: &quot;A String&quot;, # Name of the fee.
342 &quot;amount&quot;: { # Amount of the fee.
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 },
347 ],
348 &quot;targetCountry&quot;: &quot;A String&quot;, # Required. The CLDR territory // code of the target country of the product.
349 &quot;itemGroupId&quot;: &quot;A String&quot;, # Shared identifier for all variants of the same product. Optional.
350 &quot;condition&quot;: &quot;A String&quot;, # Required. Condition or state of the item. Acceptable values are: - &quot;`new`&quot;
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800351 &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.
352 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
353 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
354 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800355 },
356 &quot;quantityOrdered&quot;: 42, # Required. Number of items ordered.
357 },
358 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800359 &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.
360 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
361 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
362 },
363 &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;
364 &quot;pickupDetails&quot;: { # Overrides the predefined pickup details if provided.
365 &quot;pickupLocationAddress&quot;: { # Required. Pickup location address.
366 &quot;locality&quot;: &quot;A String&quot;, # City, town or commune. May also include dependent localities or sublocalities (e.g. neighborhoods or suburbs).
367 &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;).
368 &quot;recipientName&quot;: &quot;A String&quot;, # Name of the recipient.
369 &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
370 &quot;A String&quot;,
371 ],
372 &quot;streetAddress&quot;: [ # Street-level part of the address.
373 &quot;A String&quot;,
374 ],
375 &quot;postalCode&quot;: &quot;A String&quot;, # Postal Code or ZIP (e.g. &quot;94043&quot;).
376 &quot;country&quot;: &quot;A String&quot;, # CLDR country code (e.g. &quot;US&quot;).
377 &quot;isPostOfficeBox&quot;: True or False, # Whether the address is a post office box.
378 },
379 &quot;locationCode&quot;: &quot;A String&quot;, # Required. Code of the location defined by provider or merchant.
380 &quot;pickupLocationType&quot;: &quot;A String&quot;, # Pickup location type. Acceptable values are: - &quot;`locker`&quot; - &quot;`store`&quot; - &quot;`curbside`&quot;
381 &quot;pickupPersons&quot;: [ # Required. all pickup persons set by users.
382 {
383 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number of the person picking up the items.
384 &quot;name&quot;: &quot;A String&quot;, # Required. Full name of the pickup person.
385 },
386 ],
387 },
388 &quot;notificationMode&quot;: &quot;A String&quot;, # Restricted. Do not use.
389 &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;
390 &quot;deliveryDetails&quot;: { # Overrides the predefined delivery details if provided.
391 &quot;phoneNumber&quot;: &quot;A String&quot;, # The phone number of the person receiving the delivery.
392 &quot;address&quot;: { # The delivery address
393 &quot;locality&quot;: &quot;A String&quot;, # City, town or commune. May also include dependent localities or sublocalities (e.g. neighborhoods or suburbs).
394 &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;).
395 &quot;recipientName&quot;: &quot;A String&quot;, # Name of the recipient.
396 &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
397 &quot;A String&quot;,
398 ],
399 &quot;streetAddress&quot;: [ # Street-level part of the address.
400 &quot;A String&quot;,
401 ],
402 &quot;postalCode&quot;: &quot;A String&quot;, # Postal Code or ZIP (e.g. &quot;94043&quot;).
403 &quot;country&quot;: &quot;A String&quot;, # CLDR country code (e.g. &quot;US&quot;).
404 &quot;isPostOfficeBox&quot;: True or False, # Whether the address is a post office box.
405 },
406 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800407 &quot;promotions&quot;: [ # Promotions associated with the order.
408 {
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800409 &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;.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800410 &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`.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800411 &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;
412 &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;
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800413 &quot;merchantPromotionId&quot;: &quot;A String&quot;, # Required. This field is used to identify promotions within merchants&#x27; own systems.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800414 &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;productId&quot;: &quot;A String&quot;, # `orders.createtestorder`.
417 &quot;lineItemId&quot;: &quot;A String&quot;, # The line item ID of a product. Do not provide for `orders.createtestorder`.
418 &quot;offerId&quot;: &quot;A String&quot;, # Required. Offer ID of a product. Only for `orders.createtestorder`.
419 &quot;quantity&quot;: 42, # The quantity of the associated product. Do not provide for `orders.createtestorder`.
420 },
421 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800422 &quot;taxValue&quot;: { # Estimated discount applied to tax (if allowed by law). Do not provide for `orders.createtestorder`.
423 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
424 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
425 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800426 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the promotion.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800427 &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;
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800428 &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;.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800429 &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.
430 {
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800431 &quot;productId&quot;: &quot;A String&quot;, # `orders.createtestorder`.
432 &quot;lineItemId&quot;: &quot;A String&quot;, # The line item ID of a product. Do not provide for `orders.createtestorder`.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800433 &quot;offerId&quot;: &quot;A String&quot;, # Required. Offer ID of a product. Only for `orders.createtestorder`.
434 &quot;quantity&quot;: 42, # The quantity of the associated product. Do not provide for `orders.createtestorder`.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800435 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800436 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800437 &quot;priceValue&quot;: { # Estimated discount applied to price. Amount is pre-tax or post-tax depending on location of order.
438 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
439 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
440 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800441 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800442 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800443 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#testOrder`&quot;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700444 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800445 &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`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700446 }
447
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 {
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700457 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;content#ordersCreateTestOrderResponse&quot;.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800458 &quot;orderId&quot;: &quot;A String&quot;, # The ID of the newly created test order.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700459 }</pre>
460</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{
Bu Sun Kim65020912020-05-20 12:08:20 -0700473 &quot;items&quot;: [ # Returned items.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700474 {
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800475 &quot;quantity&quot;: 42, # Quantity that is returned.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800476 &quot;lineItemId&quot;: &quot;A String&quot;, # The ID of the line item to return.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700477 },
478 ],
479 }
480
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 Bot0d561ef2020-11-25 07:50:41 -0800490 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;content#ordersCreateTestReturnResponse&quot;.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800491 &quot;returnId&quot;: &quot;A String&quot;, # The ID of the newly created test order return.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700492 }</pre>
493</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 Botb6971b02020-11-26 17:16:03 -0800511 &quot;lineItems&quot;: [ # Line items that are ordered.
512 {
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800513 &quot;annotations&quot;: [ # Annotations that are attached to the line item.
514 {
515 &quot;value&quot;: &quot;A String&quot;, # Value for additional merchant provided (as key-value pairs) annotation about the line item.
516 &quot;key&quot;: &quot;A String&quot;, # Key for additional merchant provided (as key-value pairs) annotation about the line item.
517 },
518 ],
519 &quot;quantityDelivered&quot;: 42, # Number of items delivered.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800520 &quot;price&quot;: { # Total price for the line item. For example, if two items for $10 are purchased, the total price will be $20.
521 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
522 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
523 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800524 &quot;returnInfo&quot;: { # Details of the return policy for the line item.
525 &quot;daysToReturn&quot;: 42, # Required. How many days later the item can be returned.
526 &quot;policyUrl&quot;: &quot;A String&quot;, # Required. URL of the item return policy.
527 &quot;isReturnable&quot;: True or False, # Required. Whether the item is returnable.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800528 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800529 &quot;quantityOrdered&quot;: 42, # Number of items ordered.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800530 &quot;adjustments&quot;: [ # Price and tax adjustments applied on the line item.
531 {
532 &quot;priceAdjustment&quot;: { # Adjustment for total price of the line item.
533 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
534 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
535 },
536 &quot;type&quot;: &quot;A String&quot;, # Type of this adjustment. Acceptable values are: - &quot;`promotion`&quot;
537 &quot;taxAdjustment&quot;: { # Adjustment for total tax of the line item.
538 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
539 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
540 },
541 },
542 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800543 &quot;returns&quot;: [ # Returns of the line item.
544 {
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800545 &quot;creationDate&quot;: &quot;A String&quot;, # Date on which the item has been created, in ISO 8601 format.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800546 &quot;reasonText&quot;: &quot;A String&quot;, # The explanation of the reason.
547 &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;
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800548 &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;
549 &quot;quantity&quot;: 42, # Quantity that is returned.
550 },
551 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800552 &quot;quantityShipped&quot;: 42, # Number of items shipped.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800553 &quot;cancellations&quot;: [ # Cancellations of the line item.
554 {
555 &quot;creationDate&quot;: &quot;A String&quot;, # Date on which the cancellation has been created, in ISO 8601 format.
556 &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;
557 &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;
558 &quot;reasonText&quot;: &quot;A String&quot;, # The explanation of the reason.
559 &quot;quantity&quot;: 42, # The quantity that was canceled.
560 },
561 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800562 &quot;quantityReturned&quot;: 42, # Number of items returned.
563 &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.
564 &quot;imageLink&quot;: &quot;A String&quot;, # URL of an image of the item.
565 &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.
566 {
567 &quot;value&quot;: &quot;A String&quot;, # The value for the dimension.
568 &quot;dimension&quot;: &quot;A String&quot;, # The dimension of the variant.
569 },
570 ],
571 &quot;price&quot;: { # Price of the item.
572 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
573 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
574 },
575 &quot;gtin&quot;: &quot;A String&quot;, # Global Trade Item Number (GTIN) of the item.
576 &quot;itemGroupId&quot;: &quot;A String&quot;, # Shared identifier for all variants of the same product.
577 &quot;mpn&quot;: &quot;A String&quot;, # Manufacturer Part Number (MPN) of the item.
578 &quot;fees&quot;: [ # Associated fees at order creation time.
579 {
580 &quot;name&quot;: &quot;A String&quot;, # Name of the fee.
581 &quot;amount&quot;: { # Amount of the fee.
582 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
583 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
584 },
585 },
586 ],
587 &quot;title&quot;: &quot;A String&quot;, # The title of the product.
588 &quot;brand&quot;: &quot;A String&quot;, # Brand of the item.
589 &quot;targetCountry&quot;: &quot;A String&quot;, # The CLDR territory // code of the target country of the product.
590 &quot;shownImage&quot;: &quot;A String&quot;, # URL to the cached image shown to the user when order was placed.
591 &quot;id&quot;: &quot;A String&quot;, # The REST ID of the product.
592 &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;
593 &quot;contentLanguage&quot;: &quot;A String&quot;, # The two-letter ISO 639-1 language code for the item.
594 &quot;offerId&quot;: &quot;A String&quot;, # An identifier of the item.
595 },
596 &quot;shippingDetails&quot;: { # Details of the requested shipping for the line item.
597 &quot;method&quot;: { # Required. Details of the shipping method.
598 &quot;methodName&quot;: &quot;A String&quot;, # Required. The name of the shipping method.
599 &quot;minDaysInTransit&quot;: 42, # Required. Minimum transit time.
600 &quot;maxDaysInTransit&quot;: 42, # Required. Maximum transit time.
601 &quot;carrier&quot;: &quot;A String&quot;, # The carrier for the shipping. Optional. See `shipments[].carrier` for a list of acceptable values.
602 },
603 &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.
604 &quot;shipByDate&quot;: &quot;A String&quot;, # Required. The ship by date, in ISO 8601 format.
605 &quot;deliverByDate&quot;: &quot;A String&quot;, # Required. The delivery by date, in ISO 8601 format.
606 &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;
607 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800608 &quot;quantityReadyForPickup&quot;: 42, # Number of items ready for pickup.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800609 &quot;quantityCanceled&quot;: 42, # Number of items canceled.
610 &quot;quantityPending&quot;: 42, # Number of items pending.
611 &quot;id&quot;: &quot;A String&quot;, # The ID of the line item.
612 &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.
613 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
614 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
615 },
616 &quot;quantityUndeliverable&quot;: 42, # Number of items undeliverable.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800617 },
618 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800619 &quot;deliveryDetails&quot;: { # Delivery details for shipments of type `delivery`.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800620 &quot;phoneNumber&quot;: &quot;A String&quot;, # The phone number of the person receiving the delivery.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800621 &quot;address&quot;: { # The delivery address
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800622 &quot;streetAddress&quot;: [ # Street-level part of the address.
623 &quot;A String&quot;,
624 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800625 &quot;postalCode&quot;: &quot;A String&quot;, # Postal Code or ZIP (e.g. &quot;94043&quot;).
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800626 &quot;country&quot;: &quot;A String&quot;, # CLDR country code (e.g. &quot;US&quot;).
627 &quot;isPostOfficeBox&quot;: True or False, # Whether the address is a post office box.
628 &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
629 &quot;A String&quot;,
630 ],
631 &quot;recipientName&quot;: &quot;A String&quot;, # Name of the recipient.
632 &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;).
633 &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 Botb6971b02020-11-26 17:16:03 -0800634 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800635 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800636 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#order`&quot;
637 &quot;refunds&quot;: [ # Refunds for the order.
638 {
639 &quot;creationDate&quot;: &quot;A String&quot;, # Date on which the item has been created, in ISO 8601 format.
640 &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;
641 &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;
642 &quot;amount&quot;: { # The amount that is refunded.
643 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
644 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
645 },
646 &quot;reasonText&quot;: &quot;A String&quot;, # The explanation of the reason.
647 },
648 ],
649 &quot;placedDate&quot;: &quot;A String&quot;, # The date when the order was placed, in ISO 8601 format.
650 &quot;merchantId&quot;: &quot;A String&quot;,
651 &quot;annotations&quot;: [ # List of key-value pairs that are attached to a given order.
652 {
653 &quot;value&quot;: &quot;A String&quot;, # Value for additional google provided (as key-value pairs) annotation.
654 &quot;key&quot;: &quot;A String&quot;, # Key for additional google provided (as key-value pairs) annotation.
655 },
656 ],
657 &quot;pickupDetails&quot;: { # Pickup details for shipments of type `pickup`.
658 &quot;collectors&quot;: [ # Collectors authorized to pick up shipment from the pickup location.
659 {
660 &quot;name&quot;: &quot;A String&quot;, # Name of the person picking up the shipment.
661 &quot;phoneNumber&quot;: &quot;A String&quot;, # Phone number of the person picking up the shipment.
662 },
663 ],
664 &quot;locationId&quot;: &quot;A String&quot;, # ID of the pickup location.
665 &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.
666 &quot;streetAddress&quot;: [ # Street-level part of the address.
667 &quot;A String&quot;,
668 ],
669 &quot;postalCode&quot;: &quot;A String&quot;, # Postal Code or ZIP (e.g. &quot;94043&quot;).
670 &quot;country&quot;: &quot;A String&quot;, # CLDR country code (e.g. &quot;US&quot;).
671 &quot;isPostOfficeBox&quot;: True or False, # Whether the address is a post office box.
672 &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
673 &quot;A String&quot;,
674 ],
675 &quot;recipientName&quot;: &quot;A String&quot;, # Name of the recipient.
676 &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;).
677 &quot;locality&quot;: &quot;A String&quot;, # City, town or commune. May also include dependent localities or sublocalities (e.g. neighborhoods or suburbs).
678 },
679 &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;
680 },
681 &quot;shipments&quot;: [ # Shipments of the order.
682 {
683 &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)
684 &quot;trackingId&quot;: &quot;A String&quot;, # The tracking ID for the shipment.
685 &quot;lineItems&quot;: [ # The line items that are shipped.
686 {
687 &quot;quantity&quot;: 42, # The quantity that is shipped.
688 &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.
689 &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.
690 },
691 ],
692 &quot;creationDate&quot;: &quot;A String&quot;, # Date on which the shipment has been created, in ISO 8601 format.
693 &quot;scheduledDeliveryDetails&quot;: { # Delivery details of the shipment if scheduling is needed.
694 &quot;scheduledDate&quot;: &quot;A String&quot;, # The date a shipment is scheduled for delivery, in ISO 8601 format.
695 &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;).
696 },
697 &quot;id&quot;: &quot;A String&quot;, # The ID of the shipment.
698 &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`
699 &quot;shipmentGroupId&quot;: &quot;A String&quot;, # The shipment group ID of the shipment. This is set in shiplineitems request.
700 &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;
701 },
702 ],
703 &quot;id&quot;: &quot;A String&quot;, # The REST ID of the order. Globally unique.
704 &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.
705 {
706 &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;.
707 &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`.
708 &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;
709 &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;
710 &quot;merchantPromotionId&quot;: &quot;A String&quot;, # Required. This field is used to identify promotions within merchants&#x27; own systems.
711 &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.
712 {
713 &quot;productId&quot;: &quot;A String&quot;, # `orders.createtestorder`.
714 &quot;lineItemId&quot;: &quot;A String&quot;, # The line item ID of a product. Do not provide for `orders.createtestorder`.
715 &quot;offerId&quot;: &quot;A String&quot;, # Required. Offer ID of a product. Only for `orders.createtestorder`.
716 &quot;quantity&quot;: 42, # The quantity of the associated product. Do not provide for `orders.createtestorder`.
717 },
718 ],
719 &quot;taxValue&quot;: { # Estimated discount applied to tax (if allowed by law). Do not provide for `orders.createtestorder`.
720 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
721 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
722 },
723 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the promotion.
724 &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;
725 &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;.
726 &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.
727 {
728 &quot;productId&quot;: &quot;A String&quot;, # `orders.createtestorder`.
729 &quot;lineItemId&quot;: &quot;A String&quot;, # The line item ID of a product. Do not provide for `orders.createtestorder`.
730 &quot;offerId&quot;: &quot;A String&quot;, # Required. Offer ID of a product. Only for `orders.createtestorder`.
731 &quot;quantity&quot;: 42, # The quantity of the associated product. Do not provide for `orders.createtestorder`.
732 },
733 ],
734 &quot;priceValue&quot;: { # Estimated discount applied to price. Amount is pre-tax or post-tax depending on location of order.
735 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
736 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
737 },
738 },
739 ],
740 &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;
741 &quot;taxCollector&quot;: &quot;A String&quot;, # The party responsible for collecting and remitting taxes. Acceptable values are: - &quot;`marketplaceFacilitator`&quot; - &quot;`merchant`&quot;
742 &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800743 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
744 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
745 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800746 &quot;customer&quot;: { # The details of the customer who placed the order.
747 &quot;loyaltyInfo&quot;: { # Loyalty program information.
748 &quot;name&quot;: &quot;A String&quot;, # Name of card/membership holder, this field will be populated when
749 &quot;loyaltyNumber&quot;: &quot;A String&quot;, # The loyalty card/membership number.
750 },
751 &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.
752 &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.
753 &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;
754 &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.
755 },
756 &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.
757 &quot;fullName&quot;: &quot;A String&quot;, # Full name of the customer.
758 },
759 &quot;shippingCostTax&quot;: { # The tax for the total shipping cost.
760 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
761 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
762 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800763 &quot;shippingCost&quot;: { # The total cost of shipping for all items.
764 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
765 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
766 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800767 &quot;billingAddress&quot;: { # The billing address.
768 &quot;streetAddress&quot;: [ # Street-level part of the address.
769 &quot;A String&quot;,
770 ],
771 &quot;postalCode&quot;: &quot;A String&quot;, # Postal Code or ZIP (e.g. &quot;94043&quot;).
772 &quot;country&quot;: &quot;A String&quot;, # CLDR country code (e.g. &quot;US&quot;).
773 &quot;isPostOfficeBox&quot;: True or False, # Whether the address is a post office box.
774 &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
775 &quot;A String&quot;,
776 ],
777 &quot;recipientName&quot;: &quot;A String&quot;, # Name of the recipient.
778 &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;).
779 &quot;locality&quot;: &quot;A String&quot;, # City, town or commune. May also include dependent localities or sublocalities (e.g. neighborhoods or suburbs).
780 },
781 &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;
782 &quot;merchantOrderId&quot;: &quot;A String&quot;, # Merchant-provided ID of the order.
783 &quot;acknowledged&quot;: True or False, # Whether the order was acknowledged.
784 &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.
785 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
786 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
787 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700788 }</pre>
789</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 {
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700807 &quot;order&quot;: { # Order. Production access (all methods) requires the order manager role. Sandbox access does not. # The requested order.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800808 &quot;lineItems&quot;: [ # Line items that are ordered.
809 {
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800810 &quot;annotations&quot;: [ # Annotations that are attached to the line item.
811 {
812 &quot;value&quot;: &quot;A String&quot;, # Value for additional merchant provided (as key-value pairs) annotation about the line item.
813 &quot;key&quot;: &quot;A String&quot;, # Key for additional merchant provided (as key-value pairs) annotation about the line item.
814 },
815 ],
816 &quot;quantityDelivered&quot;: 42, # Number of items delivered.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800817 &quot;price&quot;: { # Total price for the line item. For example, if two items for $10 are purchased, the total price will be $20.
818 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
819 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
820 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800821 &quot;returnInfo&quot;: { # Details of the return policy for the line item.
822 &quot;daysToReturn&quot;: 42, # Required. How many days later the item can be returned.
823 &quot;policyUrl&quot;: &quot;A String&quot;, # Required. URL of the item return policy.
824 &quot;isReturnable&quot;: True or False, # Required. Whether the item is returnable.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800825 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800826 &quot;quantityOrdered&quot;: 42, # Number of items ordered.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800827 &quot;adjustments&quot;: [ # Price and tax adjustments applied on the line item.
828 {
829 &quot;priceAdjustment&quot;: { # Adjustment for total price of the line item.
830 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
831 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
832 },
833 &quot;type&quot;: &quot;A String&quot;, # Type of this adjustment. Acceptable values are: - &quot;`promotion`&quot;
834 &quot;taxAdjustment&quot;: { # Adjustment for total tax of the line item.
835 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
836 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
837 },
838 },
839 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800840 &quot;returns&quot;: [ # Returns of the line item.
841 {
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800842 &quot;creationDate&quot;: &quot;A String&quot;, # Date on which the item has been created, in ISO 8601 format.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800843 &quot;reasonText&quot;: &quot;A String&quot;, # The explanation of the reason.
844 &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;
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800845 &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;
846 &quot;quantity&quot;: 42, # Quantity that is returned.
847 },
848 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800849 &quot;quantityShipped&quot;: 42, # Number of items shipped.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800850 &quot;cancellations&quot;: [ # Cancellations of the line item.
851 {
852 &quot;creationDate&quot;: &quot;A String&quot;, # Date on which the cancellation has been created, in ISO 8601 format.
853 &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;
854 &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;
855 &quot;reasonText&quot;: &quot;A String&quot;, # The explanation of the reason.
856 &quot;quantity&quot;: 42, # The quantity that was canceled.
857 },
858 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800859 &quot;quantityReturned&quot;: 42, # Number of items returned.
860 &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.
861 &quot;imageLink&quot;: &quot;A String&quot;, # URL of an image of the item.
862 &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.
863 {
864 &quot;value&quot;: &quot;A String&quot;, # The value for the dimension.
865 &quot;dimension&quot;: &quot;A String&quot;, # The dimension of the variant.
866 },
867 ],
868 &quot;price&quot;: { # Price of the item.
869 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
870 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
871 },
872 &quot;gtin&quot;: &quot;A String&quot;, # Global Trade Item Number (GTIN) of the item.
873 &quot;itemGroupId&quot;: &quot;A String&quot;, # Shared identifier for all variants of the same product.
874 &quot;mpn&quot;: &quot;A String&quot;, # Manufacturer Part Number (MPN) of the item.
875 &quot;fees&quot;: [ # Associated fees at order creation time.
876 {
877 &quot;name&quot;: &quot;A String&quot;, # Name of the fee.
878 &quot;amount&quot;: { # Amount of the fee.
879 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
880 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
881 },
882 },
883 ],
884 &quot;title&quot;: &quot;A String&quot;, # The title of the product.
885 &quot;brand&quot;: &quot;A String&quot;, # Brand of the item.
886 &quot;targetCountry&quot;: &quot;A String&quot;, # The CLDR territory // code of the target country of the product.
887 &quot;shownImage&quot;: &quot;A String&quot;, # URL to the cached image shown to the user when order was placed.
888 &quot;id&quot;: &quot;A String&quot;, # The REST ID of the product.
889 &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;
890 &quot;contentLanguage&quot;: &quot;A String&quot;, # The two-letter ISO 639-1 language code for the item.
891 &quot;offerId&quot;: &quot;A String&quot;, # An identifier of the item.
892 },
893 &quot;shippingDetails&quot;: { # Details of the requested shipping for the line item.
894 &quot;method&quot;: { # Required. Details of the shipping method.
895 &quot;methodName&quot;: &quot;A String&quot;, # Required. The name of the shipping method.
896 &quot;minDaysInTransit&quot;: 42, # Required. Minimum transit time.
897 &quot;maxDaysInTransit&quot;: 42, # Required. Maximum transit time.
898 &quot;carrier&quot;: &quot;A String&quot;, # The carrier for the shipping. Optional. See `shipments[].carrier` for a list of acceptable values.
899 },
900 &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.
901 &quot;shipByDate&quot;: &quot;A String&quot;, # Required. The ship by date, in ISO 8601 format.
902 &quot;deliverByDate&quot;: &quot;A String&quot;, # Required. The delivery by date, in ISO 8601 format.
903 &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;
904 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800905 &quot;quantityReadyForPickup&quot;: 42, # Number of items ready for pickup.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800906 &quot;quantityCanceled&quot;: 42, # Number of items canceled.
907 &quot;quantityPending&quot;: 42, # Number of items pending.
908 &quot;id&quot;: &quot;A String&quot;, # The ID of the line item.
909 &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.
910 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
911 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
912 },
913 &quot;quantityUndeliverable&quot;: 42, # Number of items undeliverable.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800914 },
915 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800916 &quot;deliveryDetails&quot;: { # Delivery details for shipments of type `delivery`.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800917 &quot;phoneNumber&quot;: &quot;A String&quot;, # The phone number of the person receiving the delivery.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800918 &quot;address&quot;: { # The delivery address
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800919 &quot;streetAddress&quot;: [ # Street-level part of the address.
920 &quot;A String&quot;,
921 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800922 &quot;postalCode&quot;: &quot;A String&quot;, # Postal Code or ZIP (e.g. &quot;94043&quot;).
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800923 &quot;country&quot;: &quot;A String&quot;, # CLDR country code (e.g. &quot;US&quot;).
924 &quot;isPostOfficeBox&quot;: True or False, # Whether the address is a post office box.
925 &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
926 &quot;A String&quot;,
927 ],
928 &quot;recipientName&quot;: &quot;A String&quot;, # Name of the recipient.
929 &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;).
930 &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 Botb6971b02020-11-26 17:16:03 -0800931 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800932 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800933 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#order`&quot;
934 &quot;refunds&quot;: [ # Refunds for the order.
935 {
936 &quot;creationDate&quot;: &quot;A String&quot;, # Date on which the item has been created, in ISO 8601 format.
937 &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;
938 &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;
939 &quot;amount&quot;: { # The amount that is refunded.
940 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
941 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
942 },
943 &quot;reasonText&quot;: &quot;A String&quot;, # The explanation of the reason.
944 },
945 ],
946 &quot;placedDate&quot;: &quot;A String&quot;, # The date when the order was placed, in ISO 8601 format.
947 &quot;merchantId&quot;: &quot;A String&quot;,
948 &quot;annotations&quot;: [ # List of key-value pairs that are attached to a given order.
949 {
950 &quot;value&quot;: &quot;A String&quot;, # Value for additional google provided (as key-value pairs) annotation.
951 &quot;key&quot;: &quot;A String&quot;, # Key for additional google provided (as key-value pairs) annotation.
952 },
953 ],
954 &quot;pickupDetails&quot;: { # Pickup details for shipments of type `pickup`.
955 &quot;collectors&quot;: [ # Collectors authorized to pick up shipment from the pickup location.
956 {
957 &quot;name&quot;: &quot;A String&quot;, # Name of the person picking up the shipment.
958 &quot;phoneNumber&quot;: &quot;A String&quot;, # Phone number of the person picking up the shipment.
959 },
960 ],
961 &quot;locationId&quot;: &quot;A String&quot;, # ID of the pickup location.
962 &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.
963 &quot;streetAddress&quot;: [ # Street-level part of the address.
964 &quot;A String&quot;,
965 ],
966 &quot;postalCode&quot;: &quot;A String&quot;, # Postal Code or ZIP (e.g. &quot;94043&quot;).
967 &quot;country&quot;: &quot;A String&quot;, # CLDR country code (e.g. &quot;US&quot;).
968 &quot;isPostOfficeBox&quot;: True or False, # Whether the address is a post office box.
969 &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
970 &quot;A String&quot;,
971 ],
972 &quot;recipientName&quot;: &quot;A String&quot;, # Name of the recipient.
973 &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;).
974 &quot;locality&quot;: &quot;A String&quot;, # City, town or commune. May also include dependent localities or sublocalities (e.g. neighborhoods or suburbs).
975 },
976 &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;
977 },
978 &quot;shipments&quot;: [ # Shipments of the order.
979 {
980 &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)
981 &quot;trackingId&quot;: &quot;A String&quot;, # The tracking ID for the shipment.
982 &quot;lineItems&quot;: [ # The line items that are shipped.
983 {
984 &quot;quantity&quot;: 42, # The quantity that is shipped.
985 &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.
986 &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.
987 },
988 ],
989 &quot;creationDate&quot;: &quot;A String&quot;, # Date on which the shipment has been created, in ISO 8601 format.
990 &quot;scheduledDeliveryDetails&quot;: { # Delivery details of the shipment if scheduling is needed.
991 &quot;scheduledDate&quot;: &quot;A String&quot;, # The date a shipment is scheduled for delivery, in ISO 8601 format.
992 &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;).
993 },
994 &quot;id&quot;: &quot;A String&quot;, # The ID of the shipment.
995 &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`
996 &quot;shipmentGroupId&quot;: &quot;A String&quot;, # The shipment group ID of the shipment. This is set in shiplineitems request.
997 &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;
998 },
999 ],
1000 &quot;id&quot;: &quot;A String&quot;, # The REST ID of the order. Globally unique.
1001 &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.
1002 {
1003 &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;.
1004 &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`.
1005 &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;
1006 &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;
1007 &quot;merchantPromotionId&quot;: &quot;A String&quot;, # Required. This field is used to identify promotions within merchants&#x27; own systems.
1008 &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.
1009 {
1010 &quot;productId&quot;: &quot;A String&quot;, # `orders.createtestorder`.
1011 &quot;lineItemId&quot;: &quot;A String&quot;, # The line item ID of a product. Do not provide for `orders.createtestorder`.
1012 &quot;offerId&quot;: &quot;A String&quot;, # Required. Offer ID of a product. Only for `orders.createtestorder`.
1013 &quot;quantity&quot;: 42, # The quantity of the associated product. Do not provide for `orders.createtestorder`.
1014 },
1015 ],
1016 &quot;taxValue&quot;: { # Estimated discount applied to tax (if allowed by law). Do not provide for `orders.createtestorder`.
1017 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1018 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1019 },
1020 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the promotion.
1021 &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;
1022 &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;.
1023 &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.
1024 {
1025 &quot;productId&quot;: &quot;A String&quot;, # `orders.createtestorder`.
1026 &quot;lineItemId&quot;: &quot;A String&quot;, # The line item ID of a product. Do not provide for `orders.createtestorder`.
1027 &quot;offerId&quot;: &quot;A String&quot;, # Required. Offer ID of a product. Only for `orders.createtestorder`.
1028 &quot;quantity&quot;: 42, # The quantity of the associated product. Do not provide for `orders.createtestorder`.
1029 },
1030 ],
1031 &quot;priceValue&quot;: { # Estimated discount applied to price. Amount is pre-tax or post-tax depending on location of order.
1032 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1033 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1034 },
1035 },
1036 ],
1037 &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;
1038 &quot;taxCollector&quot;: &quot;A String&quot;, # The party responsible for collecting and remitting taxes. Acceptable values are: - &quot;`marketplaceFacilitator`&quot; - &quot;`merchant`&quot;
1039 &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001040 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1041 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1042 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001043 &quot;customer&quot;: { # The details of the customer who placed the order.
1044 &quot;loyaltyInfo&quot;: { # Loyalty program information.
1045 &quot;name&quot;: &quot;A String&quot;, # Name of card/membership holder, this field will be populated when
1046 &quot;loyaltyNumber&quot;: &quot;A String&quot;, # The loyalty card/membership number.
1047 },
1048 &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.
1049 &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.
1050 &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;
1051 &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.
1052 },
1053 &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.
1054 &quot;fullName&quot;: &quot;A String&quot;, # Full name of the customer.
1055 },
1056 &quot;shippingCostTax&quot;: { # The tax for the total shipping cost.
1057 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1058 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1059 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001060 &quot;shippingCost&quot;: { # The total cost of shipping for all items.
1061 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1062 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1063 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001064 &quot;billingAddress&quot;: { # The billing address.
1065 &quot;streetAddress&quot;: [ # Street-level part of the address.
1066 &quot;A String&quot;,
1067 ],
1068 &quot;postalCode&quot;: &quot;A String&quot;, # Postal Code or ZIP (e.g. &quot;94043&quot;).
1069 &quot;country&quot;: &quot;A String&quot;, # CLDR country code (e.g. &quot;US&quot;).
1070 &quot;isPostOfficeBox&quot;: True or False, # Whether the address is a post office box.
1071 &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
1072 &quot;A String&quot;,
1073 ],
1074 &quot;recipientName&quot;: &quot;A String&quot;, # Name of the recipient.
1075 &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;).
1076 &quot;locality&quot;: &quot;A String&quot;, # City, town or commune. May also include dependent localities or sublocalities (e.g. neighborhoods or suburbs).
1077 },
1078 &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;
1079 &quot;merchantOrderId&quot;: &quot;A String&quot;, # Merchant-provided ID of the order.
1080 &quot;acknowledged&quot;: True or False, # Whether the order was acknowledged.
1081 &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.
1082 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1083 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1084 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001085 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001086 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;content#ordersGetByMerchantOrderIdResponse&quot;.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001087 }</pre>
1088</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 Bot0bf565c2020-12-09 08:56:03 -08001114 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;content#ordersGetTestOrderTemplateResponse&quot;.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001115 &quot;template&quot;: { # The requested test order template.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001116 &quot;enableOrderinvoices&quot;: True or False, # Whether the orderinvoices service should support this order.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001117 &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;
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001118 &quot;predefinedBillingAddress&quot;: &quot;A String&quot;, # Required. The billing address. Acceptable values are: - &quot;`dwight`&quot; - &quot;`jim`&quot; - &quot;`pam`&quot;
1119 &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;
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001120 &quot;lineItems&quot;: [ # Required. Line items that are ordered. At least one line item must be provided.
1121 {
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001122 &quot;returnInfo&quot;: { # Required. Details of the return policy for the line item.
1123 &quot;daysToReturn&quot;: 42, # Required. How many days later the item can be returned.
1124 &quot;policyUrl&quot;: &quot;A String&quot;, # Required. URL of the item return policy.
1125 &quot;isReturnable&quot;: True or False, # Required. Whether the item is returnable.
1126 },
1127 &quot;shippingDetails&quot;: { # Required. Details of the requested shipping for the line item.
1128 &quot;method&quot;: { # Required. Details of the shipping method.
1129 &quot;methodName&quot;: &quot;A String&quot;, # Required. The name of the shipping method.
1130 &quot;minDaysInTransit&quot;: 42, # Required. Minimum transit time.
1131 &quot;maxDaysInTransit&quot;: 42, # Required. Maximum transit time.
1132 &quot;carrier&quot;: &quot;A String&quot;, # The carrier for the shipping. Optional. See `shipments[].carrier` for a list of acceptable values.
1133 },
1134 &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.
1135 &quot;shipByDate&quot;: &quot;A String&quot;, # Required. The ship by date, in ISO 8601 format.
1136 &quot;deliverByDate&quot;: &quot;A String&quot;, # Required. The delivery by date, in ISO 8601 format.
1137 &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;
1138 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001139 &quot;product&quot;: { # Required. Product data from the time of the order placement.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001140 &quot;imageLink&quot;: &quot;A String&quot;, # Required. URL of an image of the item.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001141 &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;
1142 &quot;mpn&quot;: &quot;A String&quot;, # Manufacturer Part Number (MPN) of the item. Optional.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001143 &quot;variantAttributes&quot;: [ # Variant attributes for the item. Optional.
1144 {
1145 &quot;value&quot;: &quot;A String&quot;, # The value for the dimension.
1146 &quot;dimension&quot;: &quot;A String&quot;, # The dimension of the variant.
1147 },
1148 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001149 &quot;brand&quot;: &quot;A String&quot;, # Required. Brand of the item.
1150 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the product.
1151 &quot;gtin&quot;: &quot;A String&quot;, # Global Trade Item Number (GTIN) of the item. Optional.
1152 &quot;offerId&quot;: &quot;A String&quot;, # Required. An identifier of the item.
1153 &quot;fees&quot;: [ # Fees for the item. Optional.
1154 {
1155 &quot;name&quot;: &quot;A String&quot;, # Name of the fee.
1156 &quot;amount&quot;: { # Amount of the fee.
1157 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1158 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1159 },
1160 },
1161 ],
1162 &quot;targetCountry&quot;: &quot;A String&quot;, # Required. The CLDR territory // code of the target country of the product.
1163 &quot;itemGroupId&quot;: &quot;A String&quot;, # Shared identifier for all variants of the same product. Optional.
1164 &quot;condition&quot;: &quot;A String&quot;, # Required. Condition or state of the item. Acceptable values are: - &quot;`new`&quot;
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001165 &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.
1166 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1167 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1168 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001169 },
1170 &quot;quantityOrdered&quot;: 42, # Required. Number of items ordered.
1171 },
1172 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001173 &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.
1174 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1175 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1176 },
1177 &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;
1178 &quot;pickupDetails&quot;: { # Overrides the predefined pickup details if provided.
1179 &quot;pickupLocationAddress&quot;: { # Required. Pickup location address.
1180 &quot;locality&quot;: &quot;A String&quot;, # City, town or commune. May also include dependent localities or sublocalities (e.g. neighborhoods or suburbs).
1181 &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;).
1182 &quot;recipientName&quot;: &quot;A String&quot;, # Name of the recipient.
1183 &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
1184 &quot;A String&quot;,
1185 ],
1186 &quot;streetAddress&quot;: [ # Street-level part of the address.
1187 &quot;A String&quot;,
1188 ],
1189 &quot;postalCode&quot;: &quot;A String&quot;, # Postal Code or ZIP (e.g. &quot;94043&quot;).
1190 &quot;country&quot;: &quot;A String&quot;, # CLDR country code (e.g. &quot;US&quot;).
1191 &quot;isPostOfficeBox&quot;: True or False, # Whether the address is a post office box.
1192 },
1193 &quot;locationCode&quot;: &quot;A String&quot;, # Required. Code of the location defined by provider or merchant.
1194 &quot;pickupLocationType&quot;: &quot;A String&quot;, # Pickup location type. Acceptable values are: - &quot;`locker`&quot; - &quot;`store`&quot; - &quot;`curbside`&quot;
1195 &quot;pickupPersons&quot;: [ # Required. all pickup persons set by users.
1196 {
1197 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number of the person picking up the items.
1198 &quot;name&quot;: &quot;A String&quot;, # Required. Full name of the pickup person.
1199 },
1200 ],
1201 },
1202 &quot;notificationMode&quot;: &quot;A String&quot;, # Restricted. Do not use.
1203 &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;
1204 &quot;deliveryDetails&quot;: { # Overrides the predefined delivery details if provided.
1205 &quot;phoneNumber&quot;: &quot;A String&quot;, # The phone number of the person receiving the delivery.
1206 &quot;address&quot;: { # The delivery address
1207 &quot;locality&quot;: &quot;A String&quot;, # City, town or commune. May also include dependent localities or sublocalities (e.g. neighborhoods or suburbs).
1208 &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;).
1209 &quot;recipientName&quot;: &quot;A String&quot;, # Name of the recipient.
1210 &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
1211 &quot;A String&quot;,
1212 ],
1213 &quot;streetAddress&quot;: [ # Street-level part of the address.
1214 &quot;A String&quot;,
1215 ],
1216 &quot;postalCode&quot;: &quot;A String&quot;, # Postal Code or ZIP (e.g. &quot;94043&quot;).
1217 &quot;country&quot;: &quot;A String&quot;, # CLDR country code (e.g. &quot;US&quot;).
1218 &quot;isPostOfficeBox&quot;: True or False, # Whether the address is a post office box.
1219 },
1220 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001221 &quot;promotions&quot;: [ # Promotions associated with the order.
1222 {
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001223 &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;.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001224 &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`.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001225 &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;
1226 &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;
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001227 &quot;merchantPromotionId&quot;: &quot;A String&quot;, # Required. This field is used to identify promotions within merchants&#x27; own systems.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001228 &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.
1229 {
1230 &quot;productId&quot;: &quot;A String&quot;, # `orders.createtestorder`.
1231 &quot;lineItemId&quot;: &quot;A String&quot;, # The line item ID of a product. Do not provide for `orders.createtestorder`.
1232 &quot;offerId&quot;: &quot;A String&quot;, # Required. Offer ID of a product. Only for `orders.createtestorder`.
1233 &quot;quantity&quot;: 42, # The quantity of the associated product. Do not provide for `orders.createtestorder`.
1234 },
1235 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001236 &quot;taxValue&quot;: { # Estimated discount applied to tax (if allowed by law). Do not provide for `orders.createtestorder`.
1237 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1238 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1239 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001240 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the promotion.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001241 &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;
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001242 &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;.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001243 &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.
1244 {
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001245 &quot;productId&quot;: &quot;A String&quot;, # `orders.createtestorder`.
1246 &quot;lineItemId&quot;: &quot;A String&quot;, # The line item ID of a product. Do not provide for `orders.createtestorder`.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001247 &quot;offerId&quot;: &quot;A String&quot;, # Required. Offer ID of a product. Only for `orders.createtestorder`.
1248 &quot;quantity&quot;: 42, # The quantity of the associated product. Do not provide for `orders.createtestorder`.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001249 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001250 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001251 &quot;priceValue&quot;: { # Estimated discount applied to price. Amount is pre-tax or post-tax depending on location of order.
1252 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1253 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1254 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001255 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001256 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001257 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#testOrder`&quot;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001258 },
1259 }</pre>
1260</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 Bot0bf565c2020-12-09 08:56:03 -08001273 &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.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001274 &quot;taxAmount&quot;: { # The amount of tax to be refunded. Required.
1275 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1276 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1277 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001278 &quot;lineItemId&quot;: &quot;A String&quot;, # The ID of the line item to return. Either lineItemId or productId is required.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001279 &quot;priceAmount&quot;: { # The amount to be refunded. This may be pre-tax or post-tax depending on the location of the order. Required.
1280 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1281 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1282 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001283 &quot;operationId&quot;: &quot;A String&quot;, # The ID of the operation. Unique across all operations for a given order.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001284 &quot;reasonText&quot;: &quot;A String&quot;, # The explanation of the reason.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001285 &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;
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001286 &quot;quantity&quot;: 42, # The quantity to return and refund.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001287 }
1288
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 Bot0d561ef2020-11-25 07:50:41 -08001298 &quot;executionStatus&quot;: &quot;A String&quot;, # The status of the execution. Acceptable values are: - &quot;`duplicate`&quot; - &quot;`executed`&quot;
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001299 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;content#ordersInStoreRefundLineItemResponse&quot;.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001300 }</pre>
1301</div>
1302
1303<div class="method">
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001304 <code class="details" id="list">list(merchantId, statuses=None, placedDateEnd=None, pageToken=None, maxResults=None, orderBy=None, placedDateStart=None, acknowledged=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)
Dan O'Mearadd494642020-05-01 07:42:23 -07001309 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 -07001310 Allowed values
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001311 ACTIVE -
1312 COMPLETED -
1313 CANCELED -
1314 IN_PROGRESS -
1315 PENDING_SHIPMENT -
1316 PARTIALLY_SHIPPED -
1317 SHIPPED -
1318 PARTIALLY_DELIVERED -
1319 DELIVERED -
1320 PARTIALLY_RETURNED -
1321 RETURNED -
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001322 placedDateEnd: string, Obtains orders placed before this date (exclusively), in ISO 8601 format.
1323 pageToken: string, The token returned by the previous request.
1324 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.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001325 orderBy: string, Order results by placement date in descending or ascending order. Acceptable values are: - placedDateAsc - placedDateDesc
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001326 placedDateStart: string, Obtains orders placed after this date (inclusively), in ISO 8601 format.
1327 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.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001328 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 Bot0bf565c2020-12-09 08:56:03 -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.
Bu Sun Kim65020912020-05-20 12:08:20 -07001339 &quot;resources&quot;: [
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001340 { # Order. Production access (all methods) requires the order manager role. Sandbox access does not.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001341 &quot;lineItems&quot;: [ # Line items that are ordered.
1342 {
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001343 &quot;annotations&quot;: [ # Annotations that are attached to the line item.
1344 {
1345 &quot;value&quot;: &quot;A String&quot;, # Value for additional merchant provided (as key-value pairs) annotation about the line item.
1346 &quot;key&quot;: &quot;A String&quot;, # Key for additional merchant provided (as key-value pairs) annotation about the line item.
1347 },
1348 ],
1349 &quot;quantityDelivered&quot;: 42, # Number of items delivered.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001350 &quot;price&quot;: { # Total price for the line item. For example, if two items for $10 are purchased, the total price will be $20.
1351 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1352 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1353 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001354 &quot;returnInfo&quot;: { # Details of the return policy for the line item.
1355 &quot;daysToReturn&quot;: 42, # Required. How many days later the item can be returned.
1356 &quot;policyUrl&quot;: &quot;A String&quot;, # Required. URL of the item return policy.
1357 &quot;isReturnable&quot;: True or False, # Required. Whether the item is returnable.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001358 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001359 &quot;quantityOrdered&quot;: 42, # Number of items ordered.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001360 &quot;adjustments&quot;: [ # Price and tax adjustments applied on the line item.
1361 {
1362 &quot;priceAdjustment&quot;: { # Adjustment for total price of the line item.
1363 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1364 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1365 },
1366 &quot;type&quot;: &quot;A String&quot;, # Type of this adjustment. Acceptable values are: - &quot;`promotion`&quot;
1367 &quot;taxAdjustment&quot;: { # Adjustment for total tax of the line item.
1368 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1369 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1370 },
1371 },
1372 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001373 &quot;returns&quot;: [ # Returns of the line item.
1374 {
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001375 &quot;creationDate&quot;: &quot;A String&quot;, # Date on which the item has been created, in ISO 8601 format.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001376 &quot;reasonText&quot;: &quot;A String&quot;, # The explanation of the reason.
1377 &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;
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001378 &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;
1379 &quot;quantity&quot;: 42, # Quantity that is returned.
1380 },
1381 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001382 &quot;quantityShipped&quot;: 42, # Number of items shipped.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001383 &quot;cancellations&quot;: [ # Cancellations of the line item.
1384 {
1385 &quot;creationDate&quot;: &quot;A String&quot;, # Date on which the cancellation has been created, in ISO 8601 format.
1386 &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;
1387 &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;
1388 &quot;reasonText&quot;: &quot;A String&quot;, # The explanation of the reason.
1389 &quot;quantity&quot;: 42, # The quantity that was canceled.
1390 },
1391 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001392 &quot;quantityReturned&quot;: 42, # Number of items returned.
1393 &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.
1394 &quot;imageLink&quot;: &quot;A String&quot;, # URL of an image of the item.
1395 &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.
1396 {
1397 &quot;value&quot;: &quot;A String&quot;, # The value for the dimension.
1398 &quot;dimension&quot;: &quot;A String&quot;, # The dimension of the variant.
1399 },
1400 ],
1401 &quot;price&quot;: { # Price of the item.
1402 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1403 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1404 },
1405 &quot;gtin&quot;: &quot;A String&quot;, # Global Trade Item Number (GTIN) of the item.
1406 &quot;itemGroupId&quot;: &quot;A String&quot;, # Shared identifier for all variants of the same product.
1407 &quot;mpn&quot;: &quot;A String&quot;, # Manufacturer Part Number (MPN) of the item.
1408 &quot;fees&quot;: [ # Associated fees at order creation time.
1409 {
1410 &quot;name&quot;: &quot;A String&quot;, # Name of the fee.
1411 &quot;amount&quot;: { # Amount of the fee.
1412 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1413 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1414 },
1415 },
1416 ],
1417 &quot;title&quot;: &quot;A String&quot;, # The title of the product.
1418 &quot;brand&quot;: &quot;A String&quot;, # Brand of the item.
1419 &quot;targetCountry&quot;: &quot;A String&quot;, # The CLDR territory // code of the target country of the product.
1420 &quot;shownImage&quot;: &quot;A String&quot;, # URL to the cached image shown to the user when order was placed.
1421 &quot;id&quot;: &quot;A String&quot;, # The REST ID of the product.
1422 &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;
1423 &quot;contentLanguage&quot;: &quot;A String&quot;, # The two-letter ISO 639-1 language code for the item.
1424 &quot;offerId&quot;: &quot;A String&quot;, # An identifier of the item.
1425 },
1426 &quot;shippingDetails&quot;: { # Details of the requested shipping for the line item.
1427 &quot;method&quot;: { # Required. Details of the shipping method.
1428 &quot;methodName&quot;: &quot;A String&quot;, # Required. The name of the shipping method.
1429 &quot;minDaysInTransit&quot;: 42, # Required. Minimum transit time.
1430 &quot;maxDaysInTransit&quot;: 42, # Required. Maximum transit time.
1431 &quot;carrier&quot;: &quot;A String&quot;, # The carrier for the shipping. Optional. See `shipments[].carrier` for a list of acceptable values.
1432 },
1433 &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.
1434 &quot;shipByDate&quot;: &quot;A String&quot;, # Required. The ship by date, in ISO 8601 format.
1435 &quot;deliverByDate&quot;: &quot;A String&quot;, # Required. The delivery by date, in ISO 8601 format.
1436 &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;
1437 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001438 &quot;quantityReadyForPickup&quot;: 42, # Number of items ready for pickup.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001439 &quot;quantityCanceled&quot;: 42, # Number of items canceled.
1440 &quot;quantityPending&quot;: 42, # Number of items pending.
1441 &quot;id&quot;: &quot;A String&quot;, # The ID of the line item.
1442 &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.
1443 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1444 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1445 },
1446 &quot;quantityUndeliverable&quot;: 42, # Number of items undeliverable.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001447 },
1448 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001449 &quot;deliveryDetails&quot;: { # Delivery details for shipments of type `delivery`.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001450 &quot;phoneNumber&quot;: &quot;A String&quot;, # The phone number of the person receiving the delivery.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001451 &quot;address&quot;: { # The delivery address
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001452 &quot;streetAddress&quot;: [ # Street-level part of the address.
1453 &quot;A String&quot;,
1454 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001455 &quot;postalCode&quot;: &quot;A String&quot;, # Postal Code or ZIP (e.g. &quot;94043&quot;).
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001456 &quot;country&quot;: &quot;A String&quot;, # CLDR country code (e.g. &quot;US&quot;).
1457 &quot;isPostOfficeBox&quot;: True or False, # Whether the address is a post office box.
1458 &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
1459 &quot;A String&quot;,
1460 ],
1461 &quot;recipientName&quot;: &quot;A String&quot;, # Name of the recipient.
1462 &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;).
1463 &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 Botb6971b02020-11-26 17:16:03 -08001464 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001465 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001466 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#order`&quot;
1467 &quot;refunds&quot;: [ # Refunds for the order.
1468 {
1469 &quot;creationDate&quot;: &quot;A String&quot;, # Date on which the item has been created, in ISO 8601 format.
1470 &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;
1471 &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;
1472 &quot;amount&quot;: { # The amount that is refunded.
1473 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1474 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1475 },
1476 &quot;reasonText&quot;: &quot;A String&quot;, # The explanation of the reason.
1477 },
1478 ],
1479 &quot;placedDate&quot;: &quot;A String&quot;, # The date when the order was placed, in ISO 8601 format.
1480 &quot;merchantId&quot;: &quot;A String&quot;,
1481 &quot;annotations&quot;: [ # List of key-value pairs that are attached to a given order.
1482 {
1483 &quot;value&quot;: &quot;A String&quot;, # Value for additional google provided (as key-value pairs) annotation.
1484 &quot;key&quot;: &quot;A String&quot;, # Key for additional google provided (as key-value pairs) annotation.
1485 },
1486 ],
1487 &quot;pickupDetails&quot;: { # Pickup details for shipments of type `pickup`.
1488 &quot;collectors&quot;: [ # Collectors authorized to pick up shipment from the pickup location.
1489 {
1490 &quot;name&quot;: &quot;A String&quot;, # Name of the person picking up the shipment.
1491 &quot;phoneNumber&quot;: &quot;A String&quot;, # Phone number of the person picking up the shipment.
1492 },
1493 ],
1494 &quot;locationId&quot;: &quot;A String&quot;, # ID of the pickup location.
1495 &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.
1496 &quot;streetAddress&quot;: [ # Street-level part of the address.
1497 &quot;A String&quot;,
1498 ],
1499 &quot;postalCode&quot;: &quot;A String&quot;, # Postal Code or ZIP (e.g. &quot;94043&quot;).
1500 &quot;country&quot;: &quot;A String&quot;, # CLDR country code (e.g. &quot;US&quot;).
1501 &quot;isPostOfficeBox&quot;: True or False, # Whether the address is a post office box.
1502 &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
1503 &quot;A String&quot;,
1504 ],
1505 &quot;recipientName&quot;: &quot;A String&quot;, # Name of the recipient.
1506 &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;).
1507 &quot;locality&quot;: &quot;A String&quot;, # City, town or commune. May also include dependent localities or sublocalities (e.g. neighborhoods or suburbs).
1508 },
1509 &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;
1510 },
1511 &quot;shipments&quot;: [ # Shipments of the order.
1512 {
1513 &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)
1514 &quot;trackingId&quot;: &quot;A String&quot;, # The tracking ID for the shipment.
1515 &quot;lineItems&quot;: [ # The line items that are shipped.
1516 {
1517 &quot;quantity&quot;: 42, # The quantity that is shipped.
1518 &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.
1519 &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.
1520 },
1521 ],
1522 &quot;creationDate&quot;: &quot;A String&quot;, # Date on which the shipment has been created, in ISO 8601 format.
1523 &quot;scheduledDeliveryDetails&quot;: { # Delivery details of the shipment if scheduling is needed.
1524 &quot;scheduledDate&quot;: &quot;A String&quot;, # The date a shipment is scheduled for delivery, in ISO 8601 format.
1525 &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;).
1526 },
1527 &quot;id&quot;: &quot;A String&quot;, # The ID of the shipment.
1528 &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`
1529 &quot;shipmentGroupId&quot;: &quot;A String&quot;, # The shipment group ID of the shipment. This is set in shiplineitems request.
1530 &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;
1531 },
1532 ],
1533 &quot;id&quot;: &quot;A String&quot;, # The REST ID of the order. Globally unique.
1534 &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.
1535 {
1536 &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;.
1537 &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`.
1538 &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;
1539 &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;
1540 &quot;merchantPromotionId&quot;: &quot;A String&quot;, # Required. This field is used to identify promotions within merchants&#x27; own systems.
1541 &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.
1542 {
1543 &quot;productId&quot;: &quot;A String&quot;, # `orders.createtestorder`.
1544 &quot;lineItemId&quot;: &quot;A String&quot;, # The line item ID of a product. Do not provide for `orders.createtestorder`.
1545 &quot;offerId&quot;: &quot;A String&quot;, # Required. Offer ID of a product. Only for `orders.createtestorder`.
1546 &quot;quantity&quot;: 42, # The quantity of the associated product. Do not provide for `orders.createtestorder`.
1547 },
1548 ],
1549 &quot;taxValue&quot;: { # Estimated discount applied to tax (if allowed by law). Do not provide for `orders.createtestorder`.
1550 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1551 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1552 },
1553 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the promotion.
1554 &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;
1555 &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;.
1556 &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.
1557 {
1558 &quot;productId&quot;: &quot;A String&quot;, # `orders.createtestorder`.
1559 &quot;lineItemId&quot;: &quot;A String&quot;, # The line item ID of a product. Do not provide for `orders.createtestorder`.
1560 &quot;offerId&quot;: &quot;A String&quot;, # Required. Offer ID of a product. Only for `orders.createtestorder`.
1561 &quot;quantity&quot;: 42, # The quantity of the associated product. Do not provide for `orders.createtestorder`.
1562 },
1563 ],
1564 &quot;priceValue&quot;: { # Estimated discount applied to price. Amount is pre-tax or post-tax depending on location of order.
1565 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1566 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1567 },
1568 },
1569 ],
1570 &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;
1571 &quot;taxCollector&quot;: &quot;A String&quot;, # The party responsible for collecting and remitting taxes. Acceptable values are: - &quot;`marketplaceFacilitator`&quot; - &quot;`merchant`&quot;
1572 &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001573 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1574 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1575 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001576 &quot;customer&quot;: { # The details of the customer who placed the order.
1577 &quot;loyaltyInfo&quot;: { # Loyalty program information.
1578 &quot;name&quot;: &quot;A String&quot;, # Name of card/membership holder, this field will be populated when
1579 &quot;loyaltyNumber&quot;: &quot;A String&quot;, # The loyalty card/membership number.
1580 },
1581 &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.
1582 &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.
1583 &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;
1584 &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.
1585 },
1586 &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.
1587 &quot;fullName&quot;: &quot;A String&quot;, # Full name of the customer.
1588 },
1589 &quot;shippingCostTax&quot;: { # The tax for the total shipping cost.
1590 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1591 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1592 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001593 &quot;shippingCost&quot;: { # The total cost of shipping for all items.
1594 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1595 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1596 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001597 &quot;billingAddress&quot;: { # The billing address.
1598 &quot;streetAddress&quot;: [ # Street-level part of the address.
1599 &quot;A String&quot;,
1600 ],
1601 &quot;postalCode&quot;: &quot;A String&quot;, # Postal Code or ZIP (e.g. &quot;94043&quot;).
1602 &quot;country&quot;: &quot;A String&quot;, # CLDR country code (e.g. &quot;US&quot;).
1603 &quot;isPostOfficeBox&quot;: True or False, # Whether the address is a post office box.
1604 &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
1605 &quot;A String&quot;,
1606 ],
1607 &quot;recipientName&quot;: &quot;A String&quot;, # Name of the recipient.
1608 &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;).
1609 &quot;locality&quot;: &quot;A String&quot;, # City, town or commune. May also include dependent localities or sublocalities (e.g. neighborhoods or suburbs).
1610 },
1611 &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;
1612 &quot;merchantOrderId&quot;: &quot;A String&quot;, # Merchant-provided ID of the order.
1613 &quot;acknowledged&quot;: True or False, # Whether the order was acknowledged.
1614 &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.
1615 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1616 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1617 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001618 },
1619 ],
1620 }</pre>
1621</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 Bot0bf565c2020-12-09 08:56:03 -08001648 &quot;reasonText&quot;: &quot;A String&quot;, # The explanation of the reason.
1649 &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;
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001650 &quot;items&quot;: [ # The items that are refunded. Either Item or Shipping must be provided in the request.
1651 {
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001652 &quot;lineItemId&quot;: &quot;A String&quot;, # The ID of the line item. Either lineItemId or productId is required.
1653 &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.
1654 &quot;quantity&quot;: 42, # The number of products that are refunded.
1655 &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.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001656 &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.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001657 &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`.
1658 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1659 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1660 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001661 &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 .
1662 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1663 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1664 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001665 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001666 },
1667 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001668 &quot;shipping&quot;: { # The refund on shipping. Optional, but either Item or Shipping must be provided in the request.
1669 &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.
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 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001675 &quot;operationId&quot;: &quot;A String&quot;, # The ID of the operation. Unique across all operations for a given order.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001676 }
1677
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 Bot0d561ef2020-11-25 07:50:41 -08001687 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;content#ordersRefundItemResponse&quot;.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001688 &quot;executionStatus&quot;: &quot;A String&quot;, # The status of the execution. Acceptable values are: - &quot;`duplicate`&quot; - &quot;`executed`&quot;
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001689 }</pre>
1690</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 Bot0bf565c2020-12-09 08:56:03 -08001703 &quot;reasonText&quot;: &quot;A String&quot;, # The explanation of the reason.
1704 &quot;operationId&quot;: &quot;A String&quot;, # The ID of the operation. Unique across all operations for a given order.
1705 &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.
1706 &quot;reason&quot;: &quot;A String&quot;, # The reason for the refund. Acceptable values are: - &quot;`courtesyAdjustment`&quot; - &quot;`other`&quot;
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001707 &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.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -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`.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001709 &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.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001711 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001712 &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 .
1713 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1714 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1715 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001716 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001717 }
1718
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 Botc2228be2020-11-24 15:48:03 -08001728 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;content#ordersRefundOrderResponse&quot;.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001729 &quot;executionStatus&quot;: &quot;A String&quot;, # The status of the execution. Acceptable values are: - &quot;`duplicate`&quot; - &quot;`executed`&quot;
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001730 }</pre>
1731</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 Bot0bf565c2020-12-09 08:56:03 -08001744 &quot;lineItemId&quot;: &quot;A String&quot;, # The ID of the line item to return. Either lineItemId or productId is required.
1745 &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;
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001746 &quot;reasonText&quot;: &quot;A String&quot;, # The explanation of the reason.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001747 &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001748 &quot;operationId&quot;: &quot;A String&quot;, # The ID of the operation. Unique across all operations for a given order.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001749 &quot;quantity&quot;: 42, # The quantity to return and refund.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001750 }
1751
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 Botb6971b02020-11-26 17:16:03 -08001761 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;content#ordersRejectReturnLineItemResponse&quot;.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001762 &quot;executionStatus&quot;: &quot;A String&quot;, # The status of the execution. Acceptable values are: - &quot;`duplicate`&quot; - &quot;`executed`&quot;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001763 }</pre>
1764</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 Bot0bf565c2020-12-09 08:56:03 -08001777 &quot;reasonText&quot;: &quot;A String&quot;, # The explanation of the reason.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001778 &quot;taxAmount&quot;: { # The amount of tax to be refunded. Optional, but if filled, then priceAmount must be set. Calculated automatically if not provided.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001779 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001780 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001781 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001782 &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;
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001783 &quot;operationId&quot;: &quot;A String&quot;, # The ID of the operation. Unique across all operations for a given order.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001784 &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.
1785 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1786 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1787 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001788 &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.
1789 &quot;lineItemId&quot;: &quot;A String&quot;, # The ID of the line item to return. Either lineItemId or productId is required.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001790 &quot;quantity&quot;: 42, # The quantity to return and refund.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001791 }
1792
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 Botb6971b02020-11-26 17:16:03 -08001802 &quot;executionStatus&quot;: &quot;A String&quot;, # The status of the execution. Acceptable values are: - &quot;`duplicate`&quot; - &quot;`executed`&quot;
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001803 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;content#ordersReturnRefundLineItemResponse&quot;.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001804 }</pre>
1805</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{
Bu Sun Kim65020912020-05-20 12:08:20 -07001818 &quot;annotations&quot;: [
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001819 {
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001820 &quot;value&quot;: &quot;A String&quot;, # Value for additional merchant provided (as key-value pairs) annotation about the line item.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001821 &quot;key&quot;: &quot;A String&quot;, # Key for additional merchant provided (as key-value pairs) annotation about the line item.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001822 },
1823 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001824 &quot;lineItemId&quot;: &quot;A String&quot;, # The ID of the line item to set metadata. Either lineItemId or productId is required.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001825 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001826 &quot;operationId&quot;: &quot;A String&quot;, # The ID of the operation. Unique across all operations for a given order.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001827 }
1828
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 Bot0d561ef2020-11-25 07:50:41 -08001838 &quot;executionStatus&quot;: &quot;A String&quot;, # The status of the execution. Acceptable values are: - &quot;`duplicate`&quot; - &quot;`executed`&quot;
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001839 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;content#ordersSetLineItemMetadataResponse&quot;.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001840 }</pre>
1841</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{
Bu Sun Kim65020912020-05-20 12:08:20 -07001854 &quot;lineItems&quot;: [ # Line items to ship.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001855 {
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001856 &quot;quantity&quot;: 42, # The quantity that is shipped.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001857 &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.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001858 &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.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001859 },
1860 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001861 &quot;shipmentGroupId&quot;: &quot;A String&quot;, # ID of the shipment group. Required for orders that use the orderinvoices service.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001862 &quot;operationId&quot;: &quot;A String&quot;, # The ID of the operation. Unique across all operations for a given order.
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;shipmentId&quot;: &quot;A String&quot;, # Required. The ID of the shipment. This is assigned by the merchant and is unique to each shipment.
1866 &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.
1867 &quot;trackingId&quot;: &quot;A String&quot;, # The tracking ID for the shipment.
1868 },
1869 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001870 }
1871
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 Botb6971b02020-11-26 17:16:03 -08001881 &quot;executionStatus&quot;: &quot;A String&quot;, # The status of the execution. Acceptable values are: - &quot;`duplicate`&quot; - &quot;`executed`&quot;
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001882 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;content#ordersShipLineItemsResponse&quot;.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001883 }</pre>
1884</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 Bot0d561ef2020-11-25 07:50:41 -08001897 &quot;operationId&quot;: &quot;A String&quot;, # The ID of the operation. Unique across all operations for a given order.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001898 &quot;lineItemId&quot;: &quot;A String&quot;, # The ID of the line item to set metadata. Either lineItemId or productId is required.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001899 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001900 &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.
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.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001902 }
1903
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 {
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001913 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;content#ordersUpdateLineItemShippingDetailsResponse&quot;.
1914 &quot;executionStatus&quot;: &quot;A String&quot;, # The status of the execution. Acceptable values are: - &quot;`duplicate`&quot; - &quot;`executed`&quot;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001915 }</pre>
1916</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 Botb6971b02020-11-26 17:16:03 -08001929 &quot;merchantOrderId&quot;: &quot;A String&quot;, # The merchant order id to be assigned to the order. Must be unique per merchant.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001930 &quot;operationId&quot;: &quot;A String&quot;, # The ID of the operation. Unique across all operations for a given order.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001931 }
1932
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 Botc2228be2020-11-24 15:48:03 -08001942 &quot;executionStatus&quot;: &quot;A String&quot;, # The status of the execution. Acceptable values are: - &quot;`duplicate`&quot; - &quot;`executed`&quot;
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001943 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;content#ordersUpdateMerchantOrderIdResponse&quot;.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001944 }</pre>
1945</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 Bot0bf565c2020-12-09 08:56:03 -08001958 &quot;trackingId&quot;: &quot;A String&quot;, # The tracking ID for the shipment. Not updated if missing.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001959 &quot;shipmentId&quot;: &quot;A String&quot;, # The ID of the shipment.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001960 &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001961 &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`.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001962 &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;
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001963 &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`.
1964 &quot;operationId&quot;: &quot;A String&quot;, # The ID of the operation. Unique across all operations for a given order.
1965 &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`.
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`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001967 }
1968
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 Bot0d561ef2020-11-25 07:50:41 -08001978 &quot;executionStatus&quot;: &quot;A String&quot;, # The status of the execution. Acceptable values are: - &quot;`duplicate`&quot; - &quot;`executed`&quot;
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001979 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;content#ordersUpdateShipmentResponse&quot;.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001980 }</pre>
1981</div>
1982
1983</body></html>