blob: bccf3523edf0b26e958b704f0b7f76a0e9de975b [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 Botc2228be2020-11-24 15:48:03 -0800114 <code><a href="#list">list(merchantId, maxResults=None, acknowledged=None, orderBy=None, pageToken=None, placedDateEnd=None, placedDateStart=None, statuses=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700115<p class="firstline">Lists the orders in your Merchant Center account.</p>
116<p class="toc_element">
117 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
118<p class="firstline">Retrieves the next page of results.</p>
119<p class="toc_element">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700120 <code><a href="#refunditem">refunditem(merchantId, orderId, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700121<p class="firstline">Issues a partial or total refund for items and shipment.</p>
122<p class="toc_element">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700123 <code><a href="#refundorder">refundorder(merchantId, orderId, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700124<p class="firstline">Issues a partial or total refund for an order.</p>
125<p class="toc_element">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700126 <code><a href="#rejectreturnlineitem">rejectreturnlineitem(merchantId, orderId, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700127<p class="firstline">Rejects return on an line item.</p>
128<p class="toc_element">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700129 <code><a href="#returnrefundlineitem">returnrefundlineitem(merchantId, orderId, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700130<p class="firstline">Returns and refunds a line item. Note that this method can only be called on fully shipped orders. Please also note that the Orderreturns API is the preferred way to handle returns after you receive a return from a customer. You can use Orderreturns.list or Orderreturns.get to search for the return, and then use Orderreturns.processreturn to issue the refund. If the return cannot be found, then we recommend using this API to issue a refund.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700131<p class="toc_element">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700132 <code><a href="#setlineitemmetadata">setlineitemmetadata(merchantId, orderId, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700133<p class="firstline">Sets (or overrides if it already exists) merchant provided annotations in the form of key-value pairs. A common use case would be to supply us with additional structured information about a line item that cannot be provided via other methods. Submitted key-value pairs can be retrieved as part of the orders resource.</p>
134<p class="toc_element">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700135 <code><a href="#shiplineitems">shiplineitems(merchantId, orderId, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700136<p class="firstline">Marks line item(s) as shipped.</p>
137<p class="toc_element">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700138 <code><a href="#updatelineitemshippingdetails">updatelineitemshippingdetails(merchantId, orderId, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700139<p class="firstline">Updates ship by and delivery by dates for a line item.</p>
140<p class="toc_element">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700141 <code><a href="#updatemerchantorderid">updatemerchantorderid(merchantId, orderId, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700142<p class="firstline">Updates the merchant order ID for a given order.</p>
143<p class="toc_element">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700144 <code><a href="#updateshipment">updateshipment(merchantId, orderId, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700145<p class="firstline">Updates a shipment's status, carrier, and/or tracking ID.</p>
146<h3>Method Details</h3>
147<div class="method">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700148 <code class="details" id="acknowledge">acknowledge(merchantId, orderId, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700149 <pre>Marks an order as acknowledged.
150
151Args:
152 merchantId: string, The ID of the account that manages the order. This cannot be a multi-client account. (required)
153 orderId: string, The ID of the order. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700154 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700155 The object takes the form of:
156
157{
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 {
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700170 &quot;executionStatus&quot;: &quot;A String&quot;, # The status of the execution. Acceptable values are: - &quot;`duplicate`&quot; - &quot;`executed`&quot;
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800171 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;content#ordersAcknowledgeResponse&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{
Bu Sun Kim65020912020-05-20 12:08:20 -0700206 &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 -0800207 &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 Kim65020912020-05-20 12:08:20 -0700208 &quot;reasonText&quot;: &quot;A String&quot;, # The explanation of the reason.
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;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;content#ordersCancelResponse&quot;.
221 &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 -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{
Bu Sun Kim65020912020-05-20 12:08:20 -0700236 &quot;reasonText&quot;: &quot;A String&quot;, # The explanation of the reason.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700237 &quot;quantity&quot;: 42, # The quantity to cancel.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800238 &quot;operationId&quot;: &quot;A String&quot;, # The ID of the operation. Unique across all operations for a given order.
239 &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.
240 &quot;lineItemId&quot;: &quot;A String&quot;, # The ID of the line item to cancel. Either lineItemId or productId is required.
241 &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 -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{
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700300 &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`.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800301 &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 -0700302 &quot;testOrder&quot;: { # The test order to create.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700303 &quot;enableOrderinvoices&quot;: True or False, # Whether the orderinvoices service should support this order.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800304 &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;
305 &quot;notificationMode&quot;: &quot;A String&quot;, # Restricted. Do not use.
306 &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;
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700307 &quot;pickupDetails&quot;: { # Overrides the predefined pickup details if provided.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800308 &quot;pickupLocationAddress&quot;: { # Required. Pickup location address.
309 &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;).
310 &quot;postalCode&quot;: &quot;A String&quot;, # Postal Code or ZIP (e.g. &quot;94043&quot;).
311 &quot;locality&quot;: &quot;A String&quot;, # City, town or commune. May also include dependent localities or sublocalities (e.g. neighborhoods or suburbs).
312 &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
313 &quot;A String&quot;,
314 ],
315 &quot;recipientName&quot;: &quot;A String&quot;, # Name of the recipient.
316 &quot;streetAddress&quot;: [ # Street-level part of the address.
317 &quot;A String&quot;,
318 ],
319 &quot;country&quot;: &quot;A String&quot;, # CLDR country code (e.g. &quot;US&quot;).
320 &quot;isPostOfficeBox&quot;: True or False, # Whether the address is a post office box.
321 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700322 &quot;pickupPersons&quot;: [ # Required. all pickup persons set by users.
323 {
324 &quot;name&quot;: &quot;A String&quot;, # Required. Full name of the pickup person.
325 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number of the person picking up the items.
326 },
327 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700328 &quot;pickupLocationType&quot;: &quot;A String&quot;, # Pickup location type. Acceptable values are: - &quot;`locker`&quot; - &quot;`store`&quot; - &quot;`curbside`&quot;
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800329 &quot;locationCode&quot;: &quot;A String&quot;, # Required. Code of the location defined by provider or merchant.
Bu Sun Kim65020912020-05-20 12:08:20 -0700330 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700331 &quot;deliveryDetails&quot;: { # Overrides the predefined delivery details if provided.
332 &quot;address&quot;: { # The delivery address
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700333 &quot;region&quot;: &quot;A String&quot;, # Top-level administrative subdivision of the country. For example, a state like California (&quot;CA&quot;) or a province like Quebec (&quot;QC&quot;).
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800334 &quot;postalCode&quot;: &quot;A String&quot;, # Postal Code or ZIP (e.g. &quot;94043&quot;).
335 &quot;locality&quot;: &quot;A String&quot;, # City, town or commune. May also include dependent localities or sublocalities (e.g. neighborhoods or suburbs).
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700336 &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
337 &quot;A String&quot;,
338 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800339 &quot;recipientName&quot;: &quot;A String&quot;, # Name of the recipient.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700340 &quot;streetAddress&quot;: [ # Street-level part of the address.
341 &quot;A String&quot;,
342 ],
343 &quot;country&quot;: &quot;A String&quot;, # CLDR country code (e.g. &quot;US&quot;).
344 &quot;isPostOfficeBox&quot;: True or False, # Whether the address is a post office box.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700345 },
346 &quot;phoneNumber&quot;: &quot;A String&quot;, # The phone number of the person receiving the delivery.
347 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800348 &quot;promotions&quot;: [ # Promotions associated with the order.
349 {
350 &quot;priceValue&quot;: { # Estimated discount applied to price. Amount is pre-tax or post-tax depending on location of order.
351 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
352 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
353 },
354 &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`.
355 &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;.
356 &quot;taxValue&quot;: { # Estimated discount applied to tax (if allowed by law). Do not provide for `orders.createtestorder`.
357 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
358 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
359 },
360 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the promotion.
361 &quot;merchantPromotionId&quot;: &quot;A String&quot;, # Required. This field is used to identify promotions within merchants&#x27; own systems.
362 &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.
363 {
364 &quot;lineItemId&quot;: &quot;A String&quot;, # The line item ID of a product. Do not provide for `orders.createtestorder`.
365 &quot;quantity&quot;: 42, # The quantity of the associated product. Do not provide for `orders.createtestorder`.
366 &quot;productId&quot;: &quot;A String&quot;, # `orders.createtestorder`.
367 &quot;offerId&quot;: &quot;A String&quot;, # Required. Offer ID of a product. Only for `orders.createtestorder`.
368 },
369 ],
370 &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;
371 &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;.
372 &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;
373 &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.
374 {
375 &quot;lineItemId&quot;: &quot;A String&quot;, # The line item ID of a product. Do not provide for `orders.createtestorder`.
376 &quot;quantity&quot;: 42, # The quantity of the associated product. Do not provide for `orders.createtestorder`.
377 &quot;productId&quot;: &quot;A String&quot;, # `orders.createtestorder`.
378 &quot;offerId&quot;: &quot;A String&quot;, # Required. Offer ID of a product. Only for `orders.createtestorder`.
379 },
380 ],
381 &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;
382 },
383 ],
384 &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.
385 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
386 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
387 },
388 &quot;predefinedBillingAddress&quot;: &quot;A String&quot;, # Required. The billing address. Acceptable values are: - &quot;`dwight`&quot; - &quot;`jim`&quot; - &quot;`pam`&quot;
389 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#testOrder`&quot;
390 &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;
391 &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;
392 &quot;lineItems&quot;: [ # Required. Line items that are ordered. At least one line item must be provided.
393 {
394 &quot;product&quot;: { # Required. Product data from the time of the order placement.
395 &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;
396 &quot;mpn&quot;: &quot;A String&quot;, # Manufacturer Part Number (MPN) of the item. Optional.
397 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the product.
398 &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.
399 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
400 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
401 },
402 &quot;itemGroupId&quot;: &quot;A String&quot;, # Shared identifier for all variants of the same product. Optional.
403 &quot;condition&quot;: &quot;A String&quot;, # Required. Condition or state of the item. Acceptable values are: - &quot;`new`&quot;
404 &quot;variantAttributes&quot;: [ # Variant attributes for the item. Optional.
405 {
406 &quot;dimension&quot;: &quot;A String&quot;, # The dimension of the variant.
407 &quot;value&quot;: &quot;A String&quot;, # The value for the dimension.
408 },
409 ],
410 &quot;offerId&quot;: &quot;A String&quot;, # Required. An identifier of the item.
411 &quot;brand&quot;: &quot;A String&quot;, # Required. Brand of the item.
412 &quot;gtin&quot;: &quot;A String&quot;, # Global Trade Item Number (GTIN) of the item. Optional.
413 &quot;imageLink&quot;: &quot;A String&quot;, # Required. URL of an image of the item.
414 &quot;fees&quot;: [ # Fees for the item. Optional.
415 {
416 &quot;amount&quot;: { # Amount of the fee.
417 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
418 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
419 },
420 &quot;name&quot;: &quot;A String&quot;, # Name of the fee.
421 },
422 ],
423 &quot;targetCountry&quot;: &quot;A String&quot;, # Required. The CLDR territory // code of the target country of the product.
424 },
425 &quot;quantityOrdered&quot;: 42, # Required. Number of items ordered.
426 &quot;returnInfo&quot;: { # Required. Details of the return policy for the line item.
427 &quot;isReturnable&quot;: True or False, # Required. Whether the item is returnable.
428 &quot;daysToReturn&quot;: 42, # Required. How many days later the item can be returned.
429 &quot;policyUrl&quot;: &quot;A String&quot;, # Required. URL of the item return policy.
430 },
431 &quot;shippingDetails&quot;: { # Required. Details of the requested shipping for the line item.
432 &quot;shipByDate&quot;: &quot;A String&quot;, # Required. The ship by date, in ISO 8601 format.
433 &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;
434 &quot;method&quot;: { # Required. Details of the shipping method.
435 &quot;carrier&quot;: &quot;A String&quot;, # The carrier for the shipping. Optional. See `shipments[].carrier` for a list of acceptable values.
436 &quot;methodName&quot;: &quot;A String&quot;, # Required. The name of the shipping method.
437 &quot;maxDaysInTransit&quot;: 42, # Required. Maximum transit time.
438 &quot;minDaysInTransit&quot;: 42, # Required. Minimum transit time.
439 },
440 &quot;deliverByDate&quot;: &quot;A String&quot;, # Required. The delivery by date, in ISO 8601 format.
441 &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.
442 },
443 },
444 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700445 },
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 Kim65020912020-05-20 12:08:20 -0700457 &quot;orderId&quot;: &quot;A String&quot;, # The ID of the newly created test order.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700458 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;content#ordersCreateTestOrderResponse&quot;.
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 {
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700475 &quot;lineItemId&quot;: &quot;A String&quot;, # The ID of the line item to return.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800476 &quot;quantity&quot;: 42, # Quantity that is returned.
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 {
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700490 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;content#ordersCreateTestReturnResponse&quot;.
Bu Sun Kim65020912020-05-20 12:08:20 -0700491 &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 Botc2228be2020-11-24 15:48:03 -0800511 &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;
512 &quot;refunds&quot;: [ # Refunds for the order.
Bu Sun Kim65020912020-05-20 12:08:20 -0700513 {
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800514 &quot;reasonText&quot;: &quot;A String&quot;, # The explanation of the reason.
515 &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;
516 &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;
517 &quot;amount&quot;: { # The amount that is refunded.
518 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
519 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
520 },
521 &quot;creationDate&quot;: &quot;A String&quot;, # Date on which the item has been created, in ISO 8601 format.
522 },
523 ],
524 &quot;shippingCost&quot;: { # The total cost of shipping for all items.
525 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
526 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
527 },
528 &quot;customer&quot;: { # The details of the customer who placed the order.
529 &quot;fullName&quot;: &quot;A String&quot;, # Full name of the customer.
530 &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.
531 &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.
532 &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;
533 &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.
534 &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.
535 },
536 &quot;loyaltyInfo&quot;: { # Loyalty program information.
537 &quot;loyaltyNumber&quot;: &quot;A String&quot;, # The loyalty card/membership number.
538 &quot;name&quot;: &quot;A String&quot;, # Name of card/membership holder, this field will be populated when
539 },
540 },
541 &quot;id&quot;: &quot;A String&quot;, # The REST ID of the order. Globally unique.
542 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#order`&quot;
543 &quot;billingAddress&quot;: { # The billing address.
544 &quot;isPostOfficeBox&quot;: True or False, # Whether the address is a post office box.
545 &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
546 &quot;A String&quot;,
547 ],
548 &quot;recipientName&quot;: &quot;A String&quot;, # Name of the recipient.
549 &quot;postalCode&quot;: &quot;A String&quot;, # Postal Code or ZIP (e.g. &quot;94043&quot;).
550 &quot;country&quot;: &quot;A String&quot;, # CLDR country code (e.g. &quot;US&quot;).
551 &quot;streetAddress&quot;: [ # Street-level part of the address.
552 &quot;A String&quot;,
553 ],
554 &quot;locality&quot;: &quot;A String&quot;, # City, town or commune. May also include dependent localities or sublocalities (e.g. neighborhoods or suburbs).
555 &quot;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;).
556 },
557 &quot;shipments&quot;: [ # Shipments of the order.
558 {
559 &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;
560 &quot;id&quot;: &quot;A String&quot;, # The ID of the shipment.
561 &quot;scheduledDeliveryDetails&quot;: { # Delivery details of the shipment if scheduling is needed.
562 &quot;scheduledDate&quot;: &quot;A String&quot;, # The date a shipment is scheduled for delivery, in ISO 8601 format.
563 &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;).
564 },
565 &quot;creationDate&quot;: &quot;A String&quot;, # Date on which the shipment has been created, in ISO 8601 format.
566 &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)
567 &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`
568 &quot;lineItems&quot;: [ # The line items that are shipped.
Bu Sun Kim65020912020-05-20 12:08:20 -0700569 {
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800570 &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.
571 &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.
572 &quot;quantity&quot;: 42, # The quantity that is shipped.
Bu Sun Kim65020912020-05-20 12:08:20 -0700573 },
574 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800575 &quot;shipmentGroupId&quot;: &quot;A String&quot;, # The shipment group ID of the shipment. This is set in shiplineitems request.
576 &quot;trackingId&quot;: &quot;A String&quot;, # The tracking ID for the shipment.
577 },
578 ],
579 &quot;merchantOrderId&quot;: &quot;A String&quot;, # Merchant-provided ID of the order.
580 &quot;deliveryDetails&quot;: { # Delivery details for shipments of type `delivery`.
581 &quot;phoneNumber&quot;: &quot;A String&quot;, # The phone number of the person receiving the delivery.
582 &quot;address&quot;: { # The delivery address
583 &quot;isPostOfficeBox&quot;: True or False, # Whether the address is a post office box.
584 &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
585 &quot;A String&quot;,
586 ],
587 &quot;recipientName&quot;: &quot;A String&quot;, # Name of the recipient.
588 &quot;postalCode&quot;: &quot;A String&quot;, # Postal Code or ZIP (e.g. &quot;94043&quot;).
589 &quot;country&quot;: &quot;A String&quot;, # CLDR country code (e.g. &quot;US&quot;).
590 &quot;streetAddress&quot;: [ # Street-level part of the address.
591 &quot;A String&quot;,
592 ],
593 &quot;locality&quot;: &quot;A String&quot;, # City, town or commune. May also include dependent localities or sublocalities (e.g. neighborhoods or suburbs).
594 &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;).
595 },
596 },
597 &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.
598 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
599 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
600 },
601 &quot;annotations&quot;: [ # List of key-value pairs that are attached to a given order.
602 {
603 &quot;value&quot;: &quot;A String&quot;, # Value for additional google provided (as key-value pairs) annotation.
604 &quot;key&quot;: &quot;A String&quot;, # Key for additional google provided (as key-value pairs) annotation.
605 },
606 ],
607 &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;
608 &quot;pickupDetails&quot;: { # Pickup details for shipments of type `pickup`.
609 &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.
610 &quot;isPostOfficeBox&quot;: True or False, # Whether the address is a post office box.
611 &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
612 &quot;A String&quot;,
613 ],
614 &quot;recipientName&quot;: &quot;A String&quot;, # Name of the recipient.
615 &quot;postalCode&quot;: &quot;A String&quot;, # Postal Code or ZIP (e.g. &quot;94043&quot;).
616 &quot;country&quot;: &quot;A String&quot;, # CLDR country code (e.g. &quot;US&quot;).
617 &quot;streetAddress&quot;: [ # Street-level part of the address.
618 &quot;A String&quot;,
619 ],
620 &quot;locality&quot;: &quot;A String&quot;, # City, town or commune. May also include dependent localities or sublocalities (e.g. neighborhoods or suburbs).
621 &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;).
622 },
623 &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;
624 &quot;locationId&quot;: &quot;A String&quot;, # ID of the pickup location.
625 &quot;collectors&quot;: [ # Collectors authorized to pick up shipment from the pickup location.
626 {
627 &quot;phoneNumber&quot;: &quot;A String&quot;, # Phone number of the person picking up the shipment.
628 &quot;name&quot;: &quot;A String&quot;, # Name of the person picking up the shipment.
629 },
630 ],
631 },
632 &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.
633 {
634 &quot;priceValue&quot;: { # Estimated discount applied to price. Amount is pre-tax or post-tax depending on location of order.
635 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
636 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
637 },
638 &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`.
639 &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;.
640 &quot;taxValue&quot;: { # Estimated discount applied to tax (if allowed by law). Do not provide for `orders.createtestorder`.
641 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
642 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
643 },
644 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the promotion.
645 &quot;merchantPromotionId&quot;: &quot;A String&quot;, # Required. This field is used to identify promotions within merchants&#x27; own systems.
646 &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.
647 {
648 &quot;lineItemId&quot;: &quot;A String&quot;, # The line item ID of a product. Do not provide for `orders.createtestorder`.
649 &quot;quantity&quot;: 42, # The quantity of the associated product. Do not provide for `orders.createtestorder`.
650 &quot;productId&quot;: &quot;A String&quot;, # `orders.createtestorder`.
651 &quot;offerId&quot;: &quot;A String&quot;, # Required. Offer ID of a product. Only for `orders.createtestorder`.
652 },
653 ],
654 &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;
655 &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;.
656 &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;
657 &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.
658 {
659 &quot;lineItemId&quot;: &quot;A String&quot;, # The line item ID of a product. Do not provide for `orders.createtestorder`.
660 &quot;quantity&quot;: 42, # The quantity of the associated product. Do not provide for `orders.createtestorder`.
661 &quot;productId&quot;: &quot;A String&quot;, # `orders.createtestorder`.
662 &quot;offerId&quot;: &quot;A String&quot;, # Required. Offer ID of a product. Only for `orders.createtestorder`.
663 },
664 ],
665 &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;
666 },
667 ],
668 &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.
669 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
670 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
671 },
672 &quot;placedDate&quot;: &quot;A String&quot;, # The date when the order was placed, in ISO 8601 format.
673 &quot;merchantId&quot;: &quot;A String&quot;,
674 &quot;lineItems&quot;: [ # Line items that are ordered.
675 {
676 &quot;adjustments&quot;: [ # Price and tax adjustments applied on the line item.
677 {
678 &quot;priceAdjustment&quot;: { # Adjustment for total price of the line item.
679 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
680 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
681 },
682 &quot;type&quot;: &quot;A String&quot;, # Type of this adjustment. Acceptable values are: - &quot;`promotion`&quot;
683 &quot;taxAdjustment&quot;: { # Adjustment for total tax of the line item.
684 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
685 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
686 },
687 },
688 ],
689 &quot;quantityPending&quot;: 42, # Number of items pending.
690 &quot;cancellations&quot;: [ # Cancellations of the line item.
691 {
692 &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;
693 &quot;creationDate&quot;: &quot;A String&quot;, # Date on which the cancellation has been created, in ISO 8601 format.
694 &quot;reasonText&quot;: &quot;A String&quot;, # The explanation of the reason.
695 &quot;quantity&quot;: 42, # The quantity that was canceled.
696 &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;
697 },
698 ],
699 &quot;price&quot;: { # Total price for the line item. For example, if two items for $10 are purchased, the total price will be $20.
700 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
701 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
702 },
703 &quot;returnInfo&quot;: { # Details of the return policy for the line item.
704 &quot;isReturnable&quot;: True or False, # Required. Whether the item is returnable.
705 &quot;daysToReturn&quot;: 42, # Required. How many days later the item can be returned.
706 &quot;policyUrl&quot;: &quot;A String&quot;, # Required. URL of the item return policy.
707 },
708 &quot;quantityUndeliverable&quot;: 42, # Number of items undeliverable.
709 &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.
710 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
711 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
712 },
713 &quot;quantityReturned&quot;: 42, # Number of items returned.
714 &quot;quantityShipped&quot;: 42, # Number of items shipped.
715 &quot;quantityReadyForPickup&quot;: 42, # Number of items ready for pickup.
716 &quot;quantityOrdered&quot;: 42, # Number of items ordered.
Bu Sun Kim65020912020-05-20 12:08:20 -0700717 &quot;annotations&quot;: [ # Annotations that are attached to the line item.
718 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700719 &quot;value&quot;: &quot;A String&quot;, # Value for additional merchant provided (as key-value pairs) annotation about the line item.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700720 &quot;key&quot;: &quot;A String&quot;, # Key for additional merchant provided (as key-value pairs) annotation about the line item.
Bu Sun Kim65020912020-05-20 12:08:20 -0700721 },
722 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700723 &quot;quantityCanceled&quot;: 42, # Number of items canceled.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800724 &quot;shippingDetails&quot;: { # Details of the requested shipping for the line item.
725 &quot;shipByDate&quot;: &quot;A String&quot;, # Required. The ship by date, in ISO 8601 format.
726 &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;
727 &quot;method&quot;: { # Required. Details of the shipping method.
728 &quot;carrier&quot;: &quot;A String&quot;, # The carrier for the shipping. Optional. See `shipments[].carrier` for a list of acceptable values.
729 &quot;methodName&quot;: &quot;A String&quot;, # Required. The name of the shipping method.
730 &quot;maxDaysInTransit&quot;: 42, # Required. Maximum transit time.
731 &quot;minDaysInTransit&quot;: 42, # Required. Minimum transit time.
Bu Sun Kim65020912020-05-20 12:08:20 -0700732 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800733 &quot;deliverByDate&quot;: &quot;A String&quot;, # Required. The delivery by date, in ISO 8601 format.
734 &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.
Bu Sun Kim65020912020-05-20 12:08:20 -0700735 },
736 &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.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800737 &quot;shownImage&quot;: &quot;A String&quot;, # URL to the cached image shown to the user when order was placed.
738 &quot;mpn&quot;: &quot;A String&quot;, # Manufacturer Part Number (MPN) of the item.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700739 &quot;targetCountry&quot;: &quot;A String&quot;, # The CLDR territory // code of the target country of the product.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800740 &quot;gtin&quot;: &quot;A String&quot;, # Global Trade Item Number (GTIN) of the item.
741 &quot;itemGroupId&quot;: &quot;A String&quot;, # Shared identifier for all variants of the same product.
742 &quot;offerId&quot;: &quot;A String&quot;, # An identifier of the item.
743 &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;
744 &quot;contentLanguage&quot;: &quot;A String&quot;, # The two-letter ISO 639-1 language code for the item.
745 &quot;price&quot;: { # Price of the item.
746 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
747 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
748 },
749 &quot;id&quot;: &quot;A String&quot;, # The REST ID of the product.
750 &quot;brand&quot;: &quot;A String&quot;, # Brand of the item.
Bu Sun Kim65020912020-05-20 12:08:20 -0700751 &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.
752 {
753 &quot;dimension&quot;: &quot;A String&quot;, # The dimension of the variant.
754 &quot;value&quot;: &quot;A String&quot;, # The value for the dimension.
755 },
756 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700757 &quot;fees&quot;: [ # Associated fees at order creation time.
758 {
759 &quot;amount&quot;: { # Amount of the fee.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700760 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800761 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700762 },
763 &quot;name&quot;: &quot;A String&quot;, # Name of the fee.
764 },
765 ],
766 &quot;imageLink&quot;: &quot;A String&quot;, # URL of an image of the item.
767 &quot;title&quot;: &quot;A String&quot;, # The title of the product.
Bu Sun Kim65020912020-05-20 12:08:20 -0700768 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800769 &quot;returns&quot;: [ # Returns of the line item.
Bu Sun Kim65020912020-05-20 12:08:20 -0700770 {
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800771 &quot;reasonText&quot;: &quot;A String&quot;, # The explanation of the reason.
772 &quot;creationDate&quot;: &quot;A String&quot;, # Date on which the item has been created, in ISO 8601 format.
773 &quot;quantity&quot;: 42, # Quantity that is returned.
774 &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;
775 &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;
Bu Sun Kim65020912020-05-20 12:08:20 -0700776 },
777 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800778 &quot;quantityDelivered&quot;: 42, # Number of items delivered.
779 &quot;id&quot;: &quot;A String&quot;, # The ID of the line item.
Bu Sun Kim65020912020-05-20 12:08:20 -0700780 },
781 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700782 &quot;shippingCostTax&quot;: { # The tax for the total shipping cost.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700783 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700784 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700785 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800786 &quot;taxCollector&quot;: &quot;A String&quot;, # The party responsible for collecting and remitting taxes. Acceptable values are: - &quot;`marketplaceFacilitator`&quot; - &quot;`merchant`&quot;
787 &quot;acknowledged&quot;: True or False, # Whether the order was acknowledged.
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 Botc2228be2020-11-24 15:48:03 -0800808 &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;
809 &quot;refunds&quot;: [ # Refunds for the order.
Bu Sun Kim65020912020-05-20 12:08:20 -0700810 {
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800811 &quot;reasonText&quot;: &quot;A String&quot;, # The explanation of the reason.
812 &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;
813 &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;
814 &quot;amount&quot;: { # The amount that is refunded.
815 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
816 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
817 },
818 &quot;creationDate&quot;: &quot;A String&quot;, # Date on which the item has been created, in ISO 8601 format.
819 },
820 ],
821 &quot;shippingCost&quot;: { # The total cost of shipping for all items.
822 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
823 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
824 },
825 &quot;customer&quot;: { # The details of the customer who placed the order.
826 &quot;fullName&quot;: &quot;A String&quot;, # Full name of the customer.
827 &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.
828 &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.
829 &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;
830 &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.
831 &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.
832 },
833 &quot;loyaltyInfo&quot;: { # Loyalty program information.
834 &quot;loyaltyNumber&quot;: &quot;A String&quot;, # The loyalty card/membership number.
835 &quot;name&quot;: &quot;A String&quot;, # Name of card/membership holder, this field will be populated when
836 },
837 },
838 &quot;id&quot;: &quot;A String&quot;, # The REST ID of the order. Globally unique.
839 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#order`&quot;
840 &quot;billingAddress&quot;: { # The billing address.
841 &quot;isPostOfficeBox&quot;: True or False, # Whether the address is a post office box.
842 &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
843 &quot;A String&quot;,
844 ],
845 &quot;recipientName&quot;: &quot;A String&quot;, # Name of the recipient.
846 &quot;postalCode&quot;: &quot;A String&quot;, # Postal Code or ZIP (e.g. &quot;94043&quot;).
847 &quot;country&quot;: &quot;A String&quot;, # CLDR country code (e.g. &quot;US&quot;).
848 &quot;streetAddress&quot;: [ # Street-level part of the address.
849 &quot;A String&quot;,
850 ],
851 &quot;locality&quot;: &quot;A String&quot;, # City, town or commune. May also include dependent localities or sublocalities (e.g. neighborhoods or suburbs).
852 &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;).
853 },
854 &quot;shipments&quot;: [ # Shipments of the order.
855 {
856 &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;
857 &quot;id&quot;: &quot;A String&quot;, # The ID of the shipment.
858 &quot;scheduledDeliveryDetails&quot;: { # Delivery details of the shipment if scheduling is needed.
859 &quot;scheduledDate&quot;: &quot;A String&quot;, # The date a shipment is scheduled for delivery, in ISO 8601 format.
860 &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;).
861 },
862 &quot;creationDate&quot;: &quot;A String&quot;, # Date on which the shipment has been created, in ISO 8601 format.
863 &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)
864 &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`
865 &quot;lineItems&quot;: [ # The line items that are shipped.
Bu Sun Kim65020912020-05-20 12:08:20 -0700866 {
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800867 &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.
868 &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.
869 &quot;quantity&quot;: 42, # The quantity that is shipped.
Bu Sun Kim65020912020-05-20 12:08:20 -0700870 },
871 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800872 &quot;shipmentGroupId&quot;: &quot;A String&quot;, # The shipment group ID of the shipment. This is set in shiplineitems request.
873 &quot;trackingId&quot;: &quot;A String&quot;, # The tracking ID for the shipment.
874 },
875 ],
876 &quot;merchantOrderId&quot;: &quot;A String&quot;, # Merchant-provided ID of the order.
877 &quot;deliveryDetails&quot;: { # Delivery details for shipments of type `delivery`.
878 &quot;phoneNumber&quot;: &quot;A String&quot;, # The phone number of the person receiving the delivery.
879 &quot;address&quot;: { # The delivery address
880 &quot;isPostOfficeBox&quot;: True or False, # Whether the address is a post office box.
881 &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
882 &quot;A String&quot;,
883 ],
884 &quot;recipientName&quot;: &quot;A String&quot;, # Name of the recipient.
885 &quot;postalCode&quot;: &quot;A String&quot;, # Postal Code or ZIP (e.g. &quot;94043&quot;).
886 &quot;country&quot;: &quot;A String&quot;, # CLDR country code (e.g. &quot;US&quot;).
887 &quot;streetAddress&quot;: [ # Street-level part of the address.
888 &quot;A String&quot;,
889 ],
890 &quot;locality&quot;: &quot;A String&quot;, # City, town or commune. May also include dependent localities or sublocalities (e.g. neighborhoods or suburbs).
891 &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;).
892 },
893 },
894 &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.
895 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
896 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
897 },
898 &quot;annotations&quot;: [ # List of key-value pairs that are attached to a given order.
899 {
900 &quot;value&quot;: &quot;A String&quot;, # Value for additional google provided (as key-value pairs) annotation.
901 &quot;key&quot;: &quot;A String&quot;, # Key for additional google provided (as key-value pairs) annotation.
902 },
903 ],
904 &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;
905 &quot;pickupDetails&quot;: { # Pickup details for shipments of type `pickup`.
906 &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.
907 &quot;isPostOfficeBox&quot;: True or False, # Whether the address is a post office box.
908 &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
909 &quot;A String&quot;,
910 ],
911 &quot;recipientName&quot;: &quot;A String&quot;, # Name of the recipient.
912 &quot;postalCode&quot;: &quot;A String&quot;, # Postal Code or ZIP (e.g. &quot;94043&quot;).
913 &quot;country&quot;: &quot;A String&quot;, # CLDR country code (e.g. &quot;US&quot;).
914 &quot;streetAddress&quot;: [ # Street-level part of the address.
915 &quot;A String&quot;,
916 ],
917 &quot;locality&quot;: &quot;A String&quot;, # City, town or commune. May also include dependent localities or sublocalities (e.g. neighborhoods or suburbs).
918 &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;).
919 },
920 &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;
921 &quot;locationId&quot;: &quot;A String&quot;, # ID of the pickup location.
922 &quot;collectors&quot;: [ # Collectors authorized to pick up shipment from the pickup location.
923 {
924 &quot;phoneNumber&quot;: &quot;A String&quot;, # Phone number of the person picking up the shipment.
925 &quot;name&quot;: &quot;A String&quot;, # Name of the person picking up the shipment.
926 },
927 ],
928 },
929 &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.
930 {
931 &quot;priceValue&quot;: { # Estimated discount applied to price. Amount is pre-tax or post-tax depending on location of order.
932 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
933 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
934 },
935 &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`.
936 &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;.
937 &quot;taxValue&quot;: { # Estimated discount applied to tax (if allowed by law). Do not provide for `orders.createtestorder`.
938 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
939 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
940 },
941 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the promotion.
942 &quot;merchantPromotionId&quot;: &quot;A String&quot;, # Required. This field is used to identify promotions within merchants&#x27; own systems.
943 &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.
944 {
945 &quot;lineItemId&quot;: &quot;A String&quot;, # The line item ID of a product. Do not provide for `orders.createtestorder`.
946 &quot;quantity&quot;: 42, # The quantity of the associated product. Do not provide for `orders.createtestorder`.
947 &quot;productId&quot;: &quot;A String&quot;, # `orders.createtestorder`.
948 &quot;offerId&quot;: &quot;A String&quot;, # Required. Offer ID of a product. Only for `orders.createtestorder`.
949 },
950 ],
951 &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;
952 &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;.
953 &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;
954 &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.
955 {
956 &quot;lineItemId&quot;: &quot;A String&quot;, # The line item ID of a product. Do not provide for `orders.createtestorder`.
957 &quot;quantity&quot;: 42, # The quantity of the associated product. Do not provide for `orders.createtestorder`.
958 &quot;productId&quot;: &quot;A String&quot;, # `orders.createtestorder`.
959 &quot;offerId&quot;: &quot;A String&quot;, # Required. Offer ID of a product. Only for `orders.createtestorder`.
960 },
961 ],
962 &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;
963 },
964 ],
965 &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.
966 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
967 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
968 },
969 &quot;placedDate&quot;: &quot;A String&quot;, # The date when the order was placed, in ISO 8601 format.
970 &quot;merchantId&quot;: &quot;A String&quot;,
971 &quot;lineItems&quot;: [ # Line items that are ordered.
972 {
973 &quot;adjustments&quot;: [ # Price and tax adjustments applied on the line item.
974 {
975 &quot;priceAdjustment&quot;: { # Adjustment for total price of the line item.
976 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
977 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
978 },
979 &quot;type&quot;: &quot;A String&quot;, # Type of this adjustment. Acceptable values are: - &quot;`promotion`&quot;
980 &quot;taxAdjustment&quot;: { # Adjustment for total tax of the line item.
981 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
982 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
983 },
984 },
985 ],
986 &quot;quantityPending&quot;: 42, # Number of items pending.
987 &quot;cancellations&quot;: [ # Cancellations of the line item.
988 {
989 &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;
990 &quot;creationDate&quot;: &quot;A String&quot;, # Date on which the cancellation has been created, in ISO 8601 format.
991 &quot;reasonText&quot;: &quot;A String&quot;, # The explanation of the reason.
992 &quot;quantity&quot;: 42, # The quantity that was canceled.
993 &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;
994 },
995 ],
996 &quot;price&quot;: { # Total price for the line item. For example, if two items for $10 are purchased, the total price will be $20.
997 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
998 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
999 },
1000 &quot;returnInfo&quot;: { # Details of the return policy for the line item.
1001 &quot;isReturnable&quot;: True or False, # Required. Whether the item is returnable.
1002 &quot;daysToReturn&quot;: 42, # Required. How many days later the item can be returned.
1003 &quot;policyUrl&quot;: &quot;A String&quot;, # Required. URL of the item return policy.
1004 },
1005 &quot;quantityUndeliverable&quot;: 42, # Number of items undeliverable.
1006 &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.
1007 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1008 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1009 },
1010 &quot;quantityReturned&quot;: 42, # Number of items returned.
1011 &quot;quantityShipped&quot;: 42, # Number of items shipped.
1012 &quot;quantityReadyForPickup&quot;: 42, # Number of items ready for pickup.
1013 &quot;quantityOrdered&quot;: 42, # Number of items ordered.
Bu Sun Kim65020912020-05-20 12:08:20 -07001014 &quot;annotations&quot;: [ # Annotations that are attached to the line item.
1015 {
Bu Sun Kim65020912020-05-20 12:08:20 -07001016 &quot;value&quot;: &quot;A String&quot;, # Value for additional merchant provided (as key-value pairs) annotation about the line item.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001017 &quot;key&quot;: &quot;A String&quot;, # Key for additional merchant provided (as key-value pairs) annotation about the line item.
Bu Sun Kim65020912020-05-20 12:08:20 -07001018 },
1019 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001020 &quot;quantityCanceled&quot;: 42, # Number of items canceled.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001021 &quot;shippingDetails&quot;: { # Details of the requested shipping for the line item.
1022 &quot;shipByDate&quot;: &quot;A String&quot;, # Required. The ship by date, in ISO 8601 format.
1023 &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;
1024 &quot;method&quot;: { # Required. Details of the shipping method.
1025 &quot;carrier&quot;: &quot;A String&quot;, # The carrier for the shipping. Optional. See `shipments[].carrier` for a list of acceptable values.
1026 &quot;methodName&quot;: &quot;A String&quot;, # Required. The name of the shipping method.
1027 &quot;maxDaysInTransit&quot;: 42, # Required. Maximum transit time.
1028 &quot;minDaysInTransit&quot;: 42, # Required. Minimum transit time.
Bu Sun Kim65020912020-05-20 12:08:20 -07001029 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001030 &quot;deliverByDate&quot;: &quot;A String&quot;, # Required. The delivery by date, in ISO 8601 format.
1031 &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.
Bu Sun Kim65020912020-05-20 12:08:20 -07001032 },
1033 &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.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001034 &quot;shownImage&quot;: &quot;A String&quot;, # URL to the cached image shown to the user when order was placed.
1035 &quot;mpn&quot;: &quot;A String&quot;, # Manufacturer Part Number (MPN) of the item.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001036 &quot;targetCountry&quot;: &quot;A String&quot;, # The CLDR territory // code of the target country of the product.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001037 &quot;gtin&quot;: &quot;A String&quot;, # Global Trade Item Number (GTIN) of the item.
1038 &quot;itemGroupId&quot;: &quot;A String&quot;, # Shared identifier for all variants of the same product.
1039 &quot;offerId&quot;: &quot;A String&quot;, # An identifier of the item.
1040 &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;
1041 &quot;contentLanguage&quot;: &quot;A String&quot;, # The two-letter ISO 639-1 language code for the item.
1042 &quot;price&quot;: { # Price of the item.
1043 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1044 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1045 },
1046 &quot;id&quot;: &quot;A String&quot;, # The REST ID of the product.
1047 &quot;brand&quot;: &quot;A String&quot;, # Brand of the item.
Bu Sun Kim65020912020-05-20 12:08:20 -07001048 &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.
1049 {
1050 &quot;dimension&quot;: &quot;A String&quot;, # The dimension of the variant.
1051 &quot;value&quot;: &quot;A String&quot;, # The value for the dimension.
1052 },
1053 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001054 &quot;fees&quot;: [ # Associated fees at order creation time.
1055 {
1056 &quot;amount&quot;: { # Amount of the fee.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001057 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001058 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001059 },
1060 &quot;name&quot;: &quot;A String&quot;, # Name of the fee.
1061 },
1062 ],
1063 &quot;imageLink&quot;: &quot;A String&quot;, # URL of an image of the item.
1064 &quot;title&quot;: &quot;A String&quot;, # The title of the product.
Bu Sun Kim65020912020-05-20 12:08:20 -07001065 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001066 &quot;returns&quot;: [ # Returns of the line item.
Bu Sun Kim65020912020-05-20 12:08:20 -07001067 {
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001068 &quot;reasonText&quot;: &quot;A String&quot;, # The explanation of the reason.
1069 &quot;creationDate&quot;: &quot;A String&quot;, # Date on which the item has been created, in ISO 8601 format.
1070 &quot;quantity&quot;: 42, # Quantity that is returned.
1071 &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;
1072 &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;
Bu Sun Kim65020912020-05-20 12:08:20 -07001073 },
1074 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001075 &quot;quantityDelivered&quot;: 42, # Number of items delivered.
1076 &quot;id&quot;: &quot;A String&quot;, # The ID of the line item.
Bu Sun Kim65020912020-05-20 12:08:20 -07001077 },
1078 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001079 &quot;shippingCostTax&quot;: { # The tax for the total shipping cost.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001080 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001081 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001082 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001083 &quot;taxCollector&quot;: &quot;A String&quot;, # The party responsible for collecting and remitting taxes. Acceptable values are: - &quot;`marketplaceFacilitator`&quot; - &quot;`merchant`&quot;
1084 &quot;acknowledged&quot;: True or False, # Whether the order was acknowledged.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001085 },
1086 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;content#ordersGetByMerchantOrderIdResponse&quot;.
1087 }</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 Botc2228be2020-11-24 15:48: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.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001116 &quot;enableOrderinvoices&quot;: True or False, # Whether the orderinvoices service should support this order.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001117 &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;
1118 &quot;notificationMode&quot;: &quot;A String&quot;, # Restricted. Do not use.
1119 &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;
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001120 &quot;pickupDetails&quot;: { # Overrides the predefined pickup details if provided.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001121 &quot;pickupLocationAddress&quot;: { # Required. Pickup location address.
1122 &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;).
1123 &quot;postalCode&quot;: &quot;A String&quot;, # Postal Code or ZIP (e.g. &quot;94043&quot;).
1124 &quot;locality&quot;: &quot;A String&quot;, # City, town or commune. May also include dependent localities or sublocalities (e.g. neighborhoods or suburbs).
1125 &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
1126 &quot;A String&quot;,
1127 ],
1128 &quot;recipientName&quot;: &quot;A String&quot;, # Name of the recipient.
1129 &quot;streetAddress&quot;: [ # Street-level part of the address.
1130 &quot;A String&quot;,
1131 ],
1132 &quot;country&quot;: &quot;A String&quot;, # CLDR country code (e.g. &quot;US&quot;).
1133 &quot;isPostOfficeBox&quot;: True or False, # Whether the address is a post office box.
1134 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001135 &quot;pickupPersons&quot;: [ # Required. all pickup persons set by users.
1136 {
1137 &quot;name&quot;: &quot;A String&quot;, # Required. Full name of the pickup person.
1138 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number of the person picking up the items.
1139 },
1140 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001141 &quot;pickupLocationType&quot;: &quot;A String&quot;, # Pickup location type. Acceptable values are: - &quot;`locker`&quot; - &quot;`store`&quot; - &quot;`curbside`&quot;
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001142 &quot;locationCode&quot;: &quot;A String&quot;, # Required. Code of the location defined by provider or merchant.
Bu Sun Kim65020912020-05-20 12:08:20 -07001143 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001144 &quot;deliveryDetails&quot;: { # Overrides the predefined delivery details if provided.
1145 &quot;address&quot;: { # The delivery address
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001146 &quot;region&quot;: &quot;A String&quot;, # Top-level administrative subdivision of the country. For example, a state like California (&quot;CA&quot;) or a province like Quebec (&quot;QC&quot;).
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001147 &quot;postalCode&quot;: &quot;A String&quot;, # Postal Code or ZIP (e.g. &quot;94043&quot;).
1148 &quot;locality&quot;: &quot;A String&quot;, # City, town or commune. May also include dependent localities or sublocalities (e.g. neighborhoods or suburbs).
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001149 &quot;fullAddress&quot;: [ # Strings representing the lines of the printed label for mailing the order, for example: John Smith 1600 Amphitheatre Parkway Mountain View, CA, 94043 United States
1150 &quot;A String&quot;,
1151 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001152 &quot;recipientName&quot;: &quot;A String&quot;, # Name of the recipient.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001153 &quot;streetAddress&quot;: [ # Street-level part of the address.
1154 &quot;A String&quot;,
1155 ],
1156 &quot;country&quot;: &quot;A String&quot;, # CLDR country code (e.g. &quot;US&quot;).
1157 &quot;isPostOfficeBox&quot;: True or False, # Whether the address is a post office box.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001158 },
1159 &quot;phoneNumber&quot;: &quot;A String&quot;, # The phone number of the person receiving the delivery.
1160 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001161 &quot;promotions&quot;: [ # Promotions associated with the order.
1162 {
1163 &quot;priceValue&quot;: { # Estimated discount applied to price. Amount is pre-tax or post-tax depending on location of order.
1164 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1165 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1166 },
1167 &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`.
1168 &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;.
1169 &quot;taxValue&quot;: { # Estimated discount applied to tax (if allowed by law). Do not provide for `orders.createtestorder`.
1170 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1171 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1172 },
1173 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the promotion.
1174 &quot;merchantPromotionId&quot;: &quot;A String&quot;, # Required. This field is used to identify promotions within merchants&#x27; own systems.
1175 &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.
1176 {
1177 &quot;lineItemId&quot;: &quot;A String&quot;, # The line item ID of a product. Do not provide for `orders.createtestorder`.
1178 &quot;quantity&quot;: 42, # The quantity of the associated product. Do not provide for `orders.createtestorder`.
1179 &quot;productId&quot;: &quot;A String&quot;, # `orders.createtestorder`.
1180 &quot;offerId&quot;: &quot;A String&quot;, # Required. Offer ID of a product. Only for `orders.createtestorder`.
1181 },
1182 ],
1183 &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;
1184 &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;.
1185 &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;
1186 &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.
1187 {
1188 &quot;lineItemId&quot;: &quot;A String&quot;, # The line item ID of a product. Do not provide for `orders.createtestorder`.
1189 &quot;quantity&quot;: 42, # The quantity of the associated product. Do not provide for `orders.createtestorder`.
1190 &quot;productId&quot;: &quot;A String&quot;, # `orders.createtestorder`.
1191 &quot;offerId&quot;: &quot;A String&quot;, # Required. Offer ID of a product. Only for `orders.createtestorder`.
1192 },
1193 ],
1194 &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;
1195 },
1196 ],
1197 &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.
1198 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1199 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1200 },
1201 &quot;predefinedBillingAddress&quot;: &quot;A String&quot;, # Required. The billing address. Acceptable values are: - &quot;`dwight`&quot; - &quot;`jim`&quot; - &quot;`pam`&quot;
1202 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#testOrder`&quot;
1203 &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;
1204 &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;
1205 &quot;lineItems&quot;: [ # Required. Line items that are ordered. At least one line item must be provided.
1206 {
1207 &quot;product&quot;: { # Required. Product data from the time of the order placement.
1208 &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;
1209 &quot;mpn&quot;: &quot;A String&quot;, # Manufacturer Part Number (MPN) of the item. Optional.
1210 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the product.
1211 &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.
1212 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1213 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1214 },
1215 &quot;itemGroupId&quot;: &quot;A String&quot;, # Shared identifier for all variants of the same product. Optional.
1216 &quot;condition&quot;: &quot;A String&quot;, # Required. Condition or state of the item. Acceptable values are: - &quot;`new`&quot;
1217 &quot;variantAttributes&quot;: [ # Variant attributes for the item. Optional.
1218 {
1219 &quot;dimension&quot;: &quot;A String&quot;, # The dimension of the variant.
1220 &quot;value&quot;: &quot;A String&quot;, # The value for the dimension.
1221 },
1222 ],
1223 &quot;offerId&quot;: &quot;A String&quot;, # Required. An identifier of the item.
1224 &quot;brand&quot;: &quot;A String&quot;, # Required. Brand of the item.
1225 &quot;gtin&quot;: &quot;A String&quot;, # Global Trade Item Number (GTIN) of the item. Optional.
1226 &quot;imageLink&quot;: &quot;A String&quot;, # Required. URL of an image of the item.
1227 &quot;fees&quot;: [ # Fees for the item. Optional.
1228 {
1229 &quot;amount&quot;: { # Amount of the fee.
1230 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1231 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1232 },
1233 &quot;name&quot;: &quot;A String&quot;, # Name of the fee.
1234 },
1235 ],
1236 &quot;targetCountry&quot;: &quot;A String&quot;, # Required. The CLDR territory // code of the target country of the product.
1237 },
1238 &quot;quantityOrdered&quot;: 42, # Required. Number of items ordered.
1239 &quot;returnInfo&quot;: { # Required. Details of the return policy for the line item.
1240 &quot;isReturnable&quot;: True or False, # Required. Whether the item is returnable.
1241 &quot;daysToReturn&quot;: 42, # Required. How many days later the item can be returned.
1242 &quot;policyUrl&quot;: &quot;A String&quot;, # Required. URL of the item return policy.
1243 },
1244 &quot;shippingDetails&quot;: { # Required. Details of the requested shipping for the line item.
1245 &quot;shipByDate&quot;: &quot;A String&quot;, # Required. The ship by date, in ISO 8601 format.
1246 &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;
1247 &quot;method&quot;: { # Required. Details of the shipping method.
1248 &quot;carrier&quot;: &quot;A String&quot;, # The carrier for the shipping. Optional. See `shipments[].carrier` for a list of acceptable values.
1249 &quot;methodName&quot;: &quot;A String&quot;, # Required. The name of the shipping method.
1250 &quot;maxDaysInTransit&quot;: 42, # Required. Maximum transit time.
1251 &quot;minDaysInTransit&quot;: 42, # Required. Minimum transit time.
1252 },
1253 &quot;deliverByDate&quot;: &quot;A String&quot;, # Required. The delivery by date, in ISO 8601 format.
1254 &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.
1255 },
1256 },
1257 ],
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{
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001273 &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;
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001274 &quot;priceAmount&quot;: { # The amount to be refunded. This may be pre-tax or post-tax depending on the location of the order. Required.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001275 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001276 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
Bu Sun Kim65020912020-05-20 12:08:20 -07001277 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001278 &quot;taxAmount&quot;: { # The amount of tax to be refunded. Required.
1279 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1280 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1281 },
1282 &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.
1283 &quot;lineItemId&quot;: &quot;A String&quot;, # The ID of the line item to return. Either lineItemId or productId is required.
1284 &quot;operationId&quot;: &quot;A String&quot;, # The ID of the operation. Unique across all operations for a given order.
1285 &quot;reasonText&quot;: &quot;A String&quot;, # The explanation of the reason.
1286 &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 {
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001298 &quot;executionStatus&quot;: &quot;A String&quot;, # The status of the execution. Acceptable values are: - &quot;`duplicate`&quot; - &quot;`executed`&quot;
1299 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;content#ordersInStoreRefundLineItemResponse&quot;.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001300 }</pre>
1301</div>
1302
1303<div class="method">
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001304 <code class="details" id="list">list(merchantId, maxResults=None, acknowledged=None, orderBy=None, pageToken=None, placedDateEnd=None, placedDateStart=None, statuses=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001305 <pre>Lists the orders in your Merchant Center account.
1306
1307Args:
1308 merchantId: string, The ID of the account that manages the order. This cannot be a multi-client account. (required)
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001309 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.
1310 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.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001311 orderBy: string, Order results by placement date in descending or ascending order. Acceptable values are: - placedDateAsc - placedDateDesc
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001312 pageToken: string, The token returned by the previous request.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001313 placedDateEnd: string, Obtains orders placed before this date (exclusively), in ISO 8601 format.
1314 placedDateStart: string, Obtains orders placed after this date (inclusively), in ISO 8601 format.
Dan O'Mearadd494642020-05-01 07:42:23 -07001315 statuses: string, Obtains orders that match any of the specified statuses. Please note that `active` is a shortcut for `pendingShipment` and `partiallyShipped`, and `completed` is a shortcut for `shipped`, `partiallyDelivered`, `delivered`, `partiallyReturned`, `returned`, and `canceled`. (repeated)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001316 Allowed values
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001317 ACTIVE -
1318 COMPLETED -
1319 CANCELED -
1320 IN_PROGRESS -
1321 PENDING_SHIPMENT -
1322 PARTIALLY_SHIPPED -
1323 SHIPPED -
1324 PARTIALLY_DELIVERED -
1325 DELIVERED -
1326 PARTIALLY_RETURNED -
1327 RETURNED -
1328 x__xgafv: string, V1 error format.
1329 Allowed values
1330 1 - v1 error format
1331 2 - v2 error format
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001332
1333Returns:
1334 An object of the form:
1335
1336 {
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001337 &quot;nextPageToken&quot;: &quot;A String&quot;, # The token for the retrieval of the next page of orders.
1338 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;content#ordersListResponse&quot;.
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 Botc2228be2020-11-24 15:48:03 -08001341 &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;
1342 &quot;refunds&quot;: [ # Refunds for the order.
Bu Sun Kim65020912020-05-20 12:08:20 -07001343 {
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001344 &quot;reasonText&quot;: &quot;A String&quot;, # The explanation of the reason.
1345 &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;
1346 &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;
1347 &quot;amount&quot;: { # The amount that is refunded.
1348 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1349 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1350 },
1351 &quot;creationDate&quot;: &quot;A String&quot;, # Date on which the item has been created, in ISO 8601 format.
1352 },
1353 ],
1354 &quot;shippingCost&quot;: { # The total cost of shipping for all items.
1355 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1356 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1357 },
1358 &quot;customer&quot;: { # The details of the customer who placed the order.
1359 &quot;fullName&quot;: &quot;A String&quot;, # Full name of the customer.
1360 &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.
1361 &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.
1362 &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;
1363 &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.
1364 &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.
1365 },
1366 &quot;loyaltyInfo&quot;: { # Loyalty program information.
1367 &quot;loyaltyNumber&quot;: &quot;A String&quot;, # The loyalty card/membership number.
1368 &quot;name&quot;: &quot;A String&quot;, # Name of card/membership holder, this field will be populated when
1369 },
1370 },
1371 &quot;id&quot;: &quot;A String&quot;, # The REST ID of the order. Globally unique.
1372 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#order`&quot;
1373 &quot;billingAddress&quot;: { # The billing address.
1374 &quot;isPostOfficeBox&quot;: True or False, # Whether the address is a post office box.
1375 &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
1376 &quot;A String&quot;,
1377 ],
1378 &quot;recipientName&quot;: &quot;A String&quot;, # Name of the recipient.
1379 &quot;postalCode&quot;: &quot;A String&quot;, # Postal Code or ZIP (e.g. &quot;94043&quot;).
1380 &quot;country&quot;: &quot;A String&quot;, # CLDR country code (e.g. &quot;US&quot;).
1381 &quot;streetAddress&quot;: [ # Street-level part of the address.
1382 &quot;A String&quot;,
1383 ],
1384 &quot;locality&quot;: &quot;A String&quot;, # City, town or commune. May also include dependent localities or sublocalities (e.g. neighborhoods or suburbs).
1385 &quot;region&quot;: &quot;A String&quot;, # Top-level administrative subdivision of the country. For example, a state like California (&quot;CA&quot;) or a province like Quebec (&quot;QC&quot;).
1386 },
1387 &quot;shipments&quot;: [ # Shipments of the order.
1388 {
1389 &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;
1390 &quot;id&quot;: &quot;A String&quot;, # The ID of the shipment.
1391 &quot;scheduledDeliveryDetails&quot;: { # Delivery details of the shipment if scheduling is needed.
1392 &quot;scheduledDate&quot;: &quot;A String&quot;, # The date a shipment is scheduled for delivery, in ISO 8601 format.
1393 &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;).
1394 },
1395 &quot;creationDate&quot;: &quot;A String&quot;, # Date on which the shipment has been created, in ISO 8601 format.
1396 &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)
1397 &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`
1398 &quot;lineItems&quot;: [ # The line items that are shipped.
Bu Sun Kim65020912020-05-20 12:08:20 -07001399 {
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001400 &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.
1401 &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.
1402 &quot;quantity&quot;: 42, # The quantity that is shipped.
Bu Sun Kim65020912020-05-20 12:08:20 -07001403 },
1404 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001405 &quot;shipmentGroupId&quot;: &quot;A String&quot;, # The shipment group ID of the shipment. This is set in shiplineitems request.
1406 &quot;trackingId&quot;: &quot;A String&quot;, # The tracking ID for the shipment.
1407 },
1408 ],
1409 &quot;merchantOrderId&quot;: &quot;A String&quot;, # Merchant-provided ID of the order.
1410 &quot;deliveryDetails&quot;: { # Delivery details for shipments of type `delivery`.
1411 &quot;phoneNumber&quot;: &quot;A String&quot;, # The phone number of the person receiving the delivery.
1412 &quot;address&quot;: { # The delivery address
1413 &quot;isPostOfficeBox&quot;: True or False, # Whether the address is a post office box.
1414 &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
1415 &quot;A String&quot;,
1416 ],
1417 &quot;recipientName&quot;: &quot;A String&quot;, # Name of the recipient.
1418 &quot;postalCode&quot;: &quot;A String&quot;, # Postal Code or ZIP (e.g. &quot;94043&quot;).
1419 &quot;country&quot;: &quot;A String&quot;, # CLDR country code (e.g. &quot;US&quot;).
1420 &quot;streetAddress&quot;: [ # Street-level part of the address.
1421 &quot;A String&quot;,
1422 ],
1423 &quot;locality&quot;: &quot;A String&quot;, # City, town or commune. May also include dependent localities or sublocalities (e.g. neighborhoods or suburbs).
1424 &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;).
1425 },
1426 },
1427 &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.
1428 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1429 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1430 },
1431 &quot;annotations&quot;: [ # List of key-value pairs that are attached to a given order.
1432 {
1433 &quot;value&quot;: &quot;A String&quot;, # Value for additional google provided (as key-value pairs) annotation.
1434 &quot;key&quot;: &quot;A String&quot;, # Key for additional google provided (as key-value pairs) annotation.
1435 },
1436 ],
1437 &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;
1438 &quot;pickupDetails&quot;: { # Pickup details for shipments of type `pickup`.
1439 &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.
1440 &quot;isPostOfficeBox&quot;: True or False, # Whether the address is a post office box.
1441 &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
1442 &quot;A String&quot;,
1443 ],
1444 &quot;recipientName&quot;: &quot;A String&quot;, # Name of the recipient.
1445 &quot;postalCode&quot;: &quot;A String&quot;, # Postal Code or ZIP (e.g. &quot;94043&quot;).
1446 &quot;country&quot;: &quot;A String&quot;, # CLDR country code (e.g. &quot;US&quot;).
1447 &quot;streetAddress&quot;: [ # Street-level part of the address.
1448 &quot;A String&quot;,
1449 ],
1450 &quot;locality&quot;: &quot;A String&quot;, # City, town or commune. May also include dependent localities or sublocalities (e.g. neighborhoods or suburbs).
1451 &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;).
1452 },
1453 &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;
1454 &quot;locationId&quot;: &quot;A String&quot;, # ID of the pickup location.
1455 &quot;collectors&quot;: [ # Collectors authorized to pick up shipment from the pickup location.
1456 {
1457 &quot;phoneNumber&quot;: &quot;A String&quot;, # Phone number of the person picking up the shipment.
1458 &quot;name&quot;: &quot;A String&quot;, # Name of the person picking up the shipment.
1459 },
1460 ],
1461 },
1462 &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.
1463 {
1464 &quot;priceValue&quot;: { # Estimated discount applied to price. Amount is pre-tax or post-tax depending on location of order.
1465 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1466 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1467 },
1468 &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`.
1469 &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;.
1470 &quot;taxValue&quot;: { # Estimated discount applied to tax (if allowed by law). Do not provide for `orders.createtestorder`.
1471 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1472 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1473 },
1474 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the promotion.
1475 &quot;merchantPromotionId&quot;: &quot;A String&quot;, # Required. This field is used to identify promotions within merchants&#x27; own systems.
1476 &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.
1477 {
1478 &quot;lineItemId&quot;: &quot;A String&quot;, # The line item ID of a product. Do not provide for `orders.createtestorder`.
1479 &quot;quantity&quot;: 42, # The quantity of the associated product. Do not provide for `orders.createtestorder`.
1480 &quot;productId&quot;: &quot;A String&quot;, # `orders.createtestorder`.
1481 &quot;offerId&quot;: &quot;A String&quot;, # Required. Offer ID of a product. Only for `orders.createtestorder`.
1482 },
1483 ],
1484 &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;
1485 &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;.
1486 &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;
1487 &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.
1488 {
1489 &quot;lineItemId&quot;: &quot;A String&quot;, # The line item ID of a product. Do not provide for `orders.createtestorder`.
1490 &quot;quantity&quot;: 42, # The quantity of the associated product. Do not provide for `orders.createtestorder`.
1491 &quot;productId&quot;: &quot;A String&quot;, # `orders.createtestorder`.
1492 &quot;offerId&quot;: &quot;A String&quot;, # Required. Offer ID of a product. Only for `orders.createtestorder`.
1493 },
1494 ],
1495 &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;
1496 },
1497 ],
1498 &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.
1499 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1500 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1501 },
1502 &quot;placedDate&quot;: &quot;A String&quot;, # The date when the order was placed, in ISO 8601 format.
1503 &quot;merchantId&quot;: &quot;A String&quot;,
1504 &quot;lineItems&quot;: [ # Line items that are ordered.
1505 {
1506 &quot;adjustments&quot;: [ # Price and tax adjustments applied on the line item.
1507 {
1508 &quot;priceAdjustment&quot;: { # Adjustment for total price of the line item.
1509 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1510 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1511 },
1512 &quot;type&quot;: &quot;A String&quot;, # Type of this adjustment. Acceptable values are: - &quot;`promotion`&quot;
1513 &quot;taxAdjustment&quot;: { # Adjustment for total tax of the line item.
1514 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1515 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1516 },
1517 },
1518 ],
1519 &quot;quantityPending&quot;: 42, # Number of items pending.
1520 &quot;cancellations&quot;: [ # Cancellations of the line item.
1521 {
1522 &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;
1523 &quot;creationDate&quot;: &quot;A String&quot;, # Date on which the cancellation has been created, in ISO 8601 format.
1524 &quot;reasonText&quot;: &quot;A String&quot;, # The explanation of the reason.
1525 &quot;quantity&quot;: 42, # The quantity that was canceled.
1526 &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;
1527 },
1528 ],
1529 &quot;price&quot;: { # Total price for the line item. For example, if two items for $10 are purchased, the total price will be $20.
1530 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1531 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1532 },
1533 &quot;returnInfo&quot;: { # Details of the return policy for the line item.
1534 &quot;isReturnable&quot;: True or False, # Required. Whether the item is returnable.
1535 &quot;daysToReturn&quot;: 42, # Required. How many days later the item can be returned.
1536 &quot;policyUrl&quot;: &quot;A String&quot;, # Required. URL of the item return policy.
1537 },
1538 &quot;quantityUndeliverable&quot;: 42, # Number of items undeliverable.
1539 &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.
1540 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1541 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1542 },
1543 &quot;quantityReturned&quot;: 42, # Number of items returned.
1544 &quot;quantityShipped&quot;: 42, # Number of items shipped.
1545 &quot;quantityReadyForPickup&quot;: 42, # Number of items ready for pickup.
1546 &quot;quantityOrdered&quot;: 42, # Number of items ordered.
Bu Sun Kim65020912020-05-20 12:08:20 -07001547 &quot;annotations&quot;: [ # Annotations that are attached to the line item.
1548 {
Bu Sun Kim65020912020-05-20 12:08:20 -07001549 &quot;value&quot;: &quot;A String&quot;, # Value for additional merchant provided (as key-value pairs) annotation about the line item.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001550 &quot;key&quot;: &quot;A String&quot;, # Key for additional merchant provided (as key-value pairs) annotation about the line item.
Bu Sun Kim65020912020-05-20 12:08:20 -07001551 },
1552 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001553 &quot;quantityCanceled&quot;: 42, # Number of items canceled.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001554 &quot;shippingDetails&quot;: { # Details of the requested shipping for the line item.
1555 &quot;shipByDate&quot;: &quot;A String&quot;, # Required. The ship by date, in ISO 8601 format.
1556 &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;
1557 &quot;method&quot;: { # Required. Details of the shipping method.
1558 &quot;carrier&quot;: &quot;A String&quot;, # The carrier for the shipping. Optional. See `shipments[].carrier` for a list of acceptable values.
1559 &quot;methodName&quot;: &quot;A String&quot;, # Required. The name of the shipping method.
1560 &quot;maxDaysInTransit&quot;: 42, # Required. Maximum transit time.
1561 &quot;minDaysInTransit&quot;: 42, # Required. Minimum transit time.
Bu Sun Kim65020912020-05-20 12:08:20 -07001562 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001563 &quot;deliverByDate&quot;: &quot;A String&quot;, # Required. The delivery by date, in ISO 8601 format.
1564 &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.
Bu Sun Kim65020912020-05-20 12:08:20 -07001565 },
1566 &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.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001567 &quot;shownImage&quot;: &quot;A String&quot;, # URL to the cached image shown to the user when order was placed.
1568 &quot;mpn&quot;: &quot;A String&quot;, # Manufacturer Part Number (MPN) of the item.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001569 &quot;targetCountry&quot;: &quot;A String&quot;, # The CLDR territory // code of the target country of the product.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001570 &quot;gtin&quot;: &quot;A String&quot;, # Global Trade Item Number (GTIN) of the item.
1571 &quot;itemGroupId&quot;: &quot;A String&quot;, # Shared identifier for all variants of the same product.
1572 &quot;offerId&quot;: &quot;A String&quot;, # An identifier of the item.
1573 &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;
1574 &quot;contentLanguage&quot;: &quot;A String&quot;, # The two-letter ISO 639-1 language code for the item.
1575 &quot;price&quot;: { # Price of the item.
1576 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1577 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1578 },
1579 &quot;id&quot;: &quot;A String&quot;, # The REST ID of the product.
1580 &quot;brand&quot;: &quot;A String&quot;, # Brand of the item.
Bu Sun Kim65020912020-05-20 12:08:20 -07001581 &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.
1582 {
1583 &quot;dimension&quot;: &quot;A String&quot;, # The dimension of the variant.
1584 &quot;value&quot;: &quot;A String&quot;, # The value for the dimension.
1585 },
1586 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001587 &quot;fees&quot;: [ # Associated fees at order creation time.
1588 {
1589 &quot;amount&quot;: { # Amount of the fee.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001590 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001591 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001592 },
1593 &quot;name&quot;: &quot;A String&quot;, # Name of the fee.
1594 },
1595 ],
1596 &quot;imageLink&quot;: &quot;A String&quot;, # URL of an image of the item.
1597 &quot;title&quot;: &quot;A String&quot;, # The title of the product.
Bu Sun Kim65020912020-05-20 12:08:20 -07001598 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001599 &quot;returns&quot;: [ # Returns of the line item.
Bu Sun Kim65020912020-05-20 12:08:20 -07001600 {
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001601 &quot;reasonText&quot;: &quot;A String&quot;, # The explanation of the reason.
1602 &quot;creationDate&quot;: &quot;A String&quot;, # Date on which the item has been created, in ISO 8601 format.
1603 &quot;quantity&quot;: 42, # Quantity that is returned.
1604 &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;
1605 &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;
Bu Sun Kim65020912020-05-20 12:08:20 -07001606 },
1607 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001608 &quot;quantityDelivered&quot;: 42, # Number of items delivered.
1609 &quot;id&quot;: &quot;A String&quot;, # The ID of the line item.
Bu Sun Kim65020912020-05-20 12:08:20 -07001610 },
1611 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001612 &quot;shippingCostTax&quot;: { # The tax for the total shipping cost.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001613 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001614 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001615 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001616 &quot;taxCollector&quot;: &quot;A String&quot;, # The party responsible for collecting and remitting taxes. Acceptable values are: - &quot;`marketplaceFacilitator`&quot; - &quot;`merchant`&quot;
1617 &quot;acknowledged&quot;: True or False, # Whether the order was acknowledged.
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{
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001648 &quot;shipping&quot;: { # The refund on shipping. Optional, but either Item or Shipping must be provided in the request.
1649 &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.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001650 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001651 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001652 },
1653 &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.
1654 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001655 &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 -08001656 &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;
1657 &quot;items&quot;: [ # The items that are refunded. Either Item or Shipping must be provided in the request.
1658 {
1659 &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.
1660 &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.
1661 &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`.
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 },
1665 &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 .
1666 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1667 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1668 },
1669 },
1670 &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.
1671 &quot;lineItemId&quot;: &quot;A String&quot;, # The ID of the line item. Either lineItemId or productId is required.
1672 &quot;quantity&quot;: 42, # The number of products that are refunded.
1673 },
1674 ],
1675 &quot;reasonText&quot;: &quot;A String&quot;, # The explanation of the reason.
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 {
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001687 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;content#ordersRefundItemResponse&quot;.
1688 &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 Botc2228be2020-11-24 15:48:03 -08001703 &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.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001704 &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.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001705 &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`.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001706 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001707 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1708 },
1709 &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 .
1710 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1711 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001712 },
1713 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001714 &quot;reasonText&quot;: &quot;A String&quot;, # The explanation of the reason.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001715 &quot;reason&quot;: &quot;A String&quot;, # The reason for the refund. Acceptable values are: - &quot;`courtesyAdjustment`&quot; - &quot;`other`&quot;
1716 &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 -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 {
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001728 &quot;executionStatus&quot;: &quot;A String&quot;, # The status of the execution. Acceptable values are: - &quot;`duplicate`&quot; - &quot;`executed`&quot;
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001729 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;content#ordersRefundOrderResponse&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 Botc2228be2020-11-24 15:48:03 -08001744 &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.
1745 &quot;quantity&quot;: 42, # The quantity to return and refund.
1746 &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;
Bu Sun Kim65020912020-05-20 12:08:20 -07001747 &quot;reasonText&quot;: &quot;A String&quot;, # The explanation of the reason.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001748 &quot;lineItemId&quot;: &quot;A String&quot;, # The ID of the line item to return. Either lineItemId or productId is required.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001749 &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 -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 {
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001761 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;content#ordersRejectReturnLineItemResponse&quot;.
Yoshi Automation Botc2228be2020-11-24 15:48: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 Botc2228be2020-11-24 15:48:03 -08001777 &quot;reasonText&quot;: &quot;A String&quot;, # The explanation of the reason.
Bu Sun Kim65020912020-05-20 12:08:20 -07001778 &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.
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 Kim673ec5c2020-11-16 11:05:03 -07001781 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001782 &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 -07001783 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001784 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001785 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001786 &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 -08001787 &quot;lineItemId&quot;: &quot;A String&quot;, # The ID of the line item to return. Either lineItemId or productId is required.
Bu Sun Kim65020912020-05-20 12:08:20 -07001788 &quot;quantity&quot;: 42, # The quantity to return and refund.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001789 &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;
1790 &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 -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 {
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001802 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;content#ordersReturnRefundLineItemResponse&quot;.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001803 &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 -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{
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001818 &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.
1819 &quot;lineItemId&quot;: &quot;A String&quot;, # The ID of the line item to set metadata. Either lineItemId or productId is required.
1820 &quot;operationId&quot;: &quot;A String&quot;, # The ID of the operation. Unique across all operations for a given order.
Bu Sun Kim65020912020-05-20 12:08:20 -07001821 &quot;annotations&quot;: [
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001822 {
Bu Sun Kim65020912020-05-20 12:08:20 -07001823 &quot;value&quot;: &quot;A String&quot;, # Value for additional merchant provided (as key-value pairs) annotation about the line item.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001824 &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 -07001825 },
1826 ],
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 {
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001838 &quot;executionStatus&quot;: &quot;A String&quot;, # The status of the execution. Acceptable values are: - &quot;`duplicate`&quot; - &quot;`executed`&quot;
Yoshi Automation Botc2228be2020-11-24 15:48: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{
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001854 &quot;operationId&quot;: &quot;A String&quot;, # The ID of the operation. Unique across all operations for a given order.
Bu Sun Kim65020912020-05-20 12:08:20 -07001855 &quot;lineItems&quot;: [ # Line items to ship.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001856 {
Bu Sun Kim65020912020-05-20 12:08:20 -07001857 &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 Botc2228be2020-11-24 15:48:03 -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.
1859 &quot;quantity&quot;: 42, # The quantity that is shipped.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001860 },
1861 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001862 &quot;shipmentInfos&quot;: [ # Shipment information. This field is repeated because a single line item can be shipped in several packages (and have several tracking IDs).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001863 {
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001864 &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.
Bu Sun Kim65020912020-05-20 12:08:20 -07001865 &quot;trackingId&quot;: &quot;A String&quot;, # The tracking ID for the shipment.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001866 &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.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001867 },
1868 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001869 &quot;shipmentGroupId&quot;: &quot;A String&quot;, # ID of the shipment group. Required for orders that use the orderinvoices service.
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 {
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001881 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;content#ordersShipLineItemsResponse&quot;.
1882 &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 -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{
Bu Sun Kim65020912020-05-20 12:08:20 -07001897 &quot;productId&quot;: &quot;A String&quot;, # The ID of the product to set metadata. This is the REST ID used in the products service. Either lineItemId or productId is required.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001898 &quot;lineItemId&quot;: &quot;A String&quot;, # The ID of the line item to set metadata. Either lineItemId or productId is required.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001899 &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 -08001900 &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.
1901 &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.
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{
Bu Sun Kim65020912020-05-20 12:08:20 -07001929 &quot;merchantOrderId&quot;: &quot;A String&quot;, # The merchant order id to be assigned to the order. Must be unique per merchant.
1930 &quot;operationId&quot;: &quot;A String&quot;, # The ID of the operation. Unique across all operations for a given order.
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 {
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001942 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;content#ordersUpdateMerchantOrderIdResponse&quot;.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001943 &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 -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{
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001958 &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 -08001959 &quot;trackingId&quot;: &quot;A String&quot;, # The tracking ID for the shipment. Not updated if missing.
1960 &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 Kim673ec5c2020-11-16 11:05:03 -07001961 &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 Botc2228be2020-11-24 15:48:03 -08001962 &quot;shipmentId&quot;: &quot;A String&quot;, # The ID of the shipment.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001963 &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;
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001964 &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`.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001965 &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`.
1966 &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.
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 {
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001978 &quot;executionStatus&quot;: &quot;A String&quot;, # The status of the execution. Acceptable values are: - &quot;`duplicate`&quot; - &quot;`executed`&quot;
1979 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;content#ordersUpdateShipmentResponse&quot;.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001980 }</pre>
1981</div>
1982
1983</body></html>