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