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 | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame^] | 114 | <code><a href="#list">list(merchantId, maxResults=None, acknowledged=None, statuses=None, orderBy=None, placedDateEnd=None, placedDateStart=None, pageToken=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 | { |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 170 | "executionStatus": "A String", # The status of the execution. Acceptable values are: - "`duplicate`" - "`executed`" |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 171 | "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "content#ordersAcknowledgeResponse". |
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 | { |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 206 | "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] | 207 | "reason": "A String", # The reason for the cancellation. Acceptable values are: - "`customerInitiatedCancel`" - "`invalidCoupon`" - "`malformedShippingAddress`" - "`noInventory`" - "`other`" - "`priceError`" - "`shippingPriceError`" - "`taxError`" - "`undeliverableShippingAddress`" - "`unsupportedPoBoxAddress`" |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 208 | "reasonText": "A String", # The explanation of the reason. |
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 | "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "content#ordersCancelResponse". |
| 221 | "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] | 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 | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame^] | 236 | "reason": "A String", # The reason for the cancellation. Acceptable values are: - "`customerInitiatedCancel`" - "`invalidCoupon`" - "`malformedShippingAddress`" - "`noInventory`" - "`other`" - "`priceError`" - "`shippingPriceError`" - "`taxError`" - "`undeliverableShippingAddress`" - "`unsupportedPoBoxAddress`" |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 237 | "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. |
| 238 | "lineItemId": "A String", # The ID of the line item to cancel. Either lineItemId or productId is required. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame^] | 239 | "operationId": "A String", # The ID of the operation. Unique across all operations for a given order. |
| 240 | "reasonText": "A String", # The explanation of the reason. |
| 241 | "quantity": 42, # The quantity to cancel. |
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 | c2228be | 2020-11-24 15:48: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 | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame^] | 302 | "deliveryDetails": { # Overrides the predefined delivery details if provided. |
| 303 | "phoneNumber": "A String", # The phone number of the person receiving the delivery. |
| 304 | "address": { # The delivery address |
| 305 | "isPostOfficeBox": True or False, # Whether the address is a post office box. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 306 | "region": "A String", # Top-level administrative subdivision of the country. For example, a state like California ("CA") or a province like Quebec ("QC"). |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 307 | "locality": "A String", # City, town or commune. May also include dependent localities or sublocalities (e.g. neighborhoods or suburbs). |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame^] | 308 | "country": "A String", # CLDR country code (e.g. "US"). |
| 309 | "postalCode": "A String", # Postal Code or ZIP (e.g. "94043"). |
| 310 | "recipientName": "A String", # Name of the recipient. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 311 | "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 |
| 312 | "A String", |
| 313 | ], |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 314 | "streetAddress": [ # Street-level part of the address. |
| 315 | "A String", |
| 316 | ], |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 317 | }, |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame^] | 318 | }, |
| 319 | "enableOrderinvoices": True or False, # Whether the orderinvoices service should support this order. |
| 320 | "promotions": [ # Promotions associated with the order. |
| 321 | { |
| 322 | "funder": "A String", # Required. The party funding the promotion. Only `merchant` is supported for `orders.createtestorder`. Acceptable values are: - "`google`" - "`merchant`" |
| 323 | "merchantPromotionId": "A String", # Required. This field is used to identify promotions within merchants' own systems. |
| 324 | "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". |
| 325 | "taxValue": { # Estimated discount applied to tax (if allowed by law). Do not provide for `orders.createtestorder`. |
| 326 | "currency": "A String", # The currency of the price. |
| 327 | "value": "A String", # The price represented as a number. |
| 328 | }, |
| 329 | "priceValue": { # Estimated discount applied to price. Amount is pre-tax or post-tax depending on location of order. |
| 330 | "currency": "A String", # The currency of the price. |
| 331 | "value": "A String", # The price represented as a number. |
| 332 | }, |
| 333 | "shortTitle": "A String", # A short title of the promotion to be shown on the checkout page. Do not provide for `orders.createtestorder`. |
| 334 | "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. |
| 335 | { |
| 336 | "quantity": 42, # The quantity of the associated product. Do not provide for `orders.createtestorder`. |
| 337 | "lineItemId": "A String", # The line item ID of a product. Do not provide for `orders.createtestorder`. |
| 338 | "productId": "A String", # `orders.createtestorder`. |
| 339 | "offerId": "A String", # Required. Offer ID of a product. Only for `orders.createtestorder`. |
| 340 | }, |
| 341 | ], |
| 342 | "title": "A String", # Required. The title of the promotion. |
| 343 | "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". |
| 344 | "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. |
| 345 | { |
| 346 | "quantity": 42, # The quantity of the associated product. Do not provide for `orders.createtestorder`. |
| 347 | "lineItemId": "A String", # The line item ID of a product. Do not provide for `orders.createtestorder`. |
| 348 | "productId": "A String", # `orders.createtestorder`. |
| 349 | "offerId": "A String", # Required. Offer ID of a product. Only for `orders.createtestorder`. |
| 350 | }, |
| 351 | ], |
| 352 | "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`" |
| 353 | "type": "A String", # Required. The scope of the promotion. Only `product` is supported for `orders.createtestorder`. Acceptable values are: - "`product`" - "`shipping`" |
| 354 | }, |
| 355 | ], |
| 356 | "lineItems": [ # Required. Line items that are ordered. At least one line item must be provided. |
| 357 | { |
| 358 | "returnInfo": { # Required. Details of the return policy for the line item. |
| 359 | "daysToReturn": 42, # Required. How many days later the item can be returned. |
| 360 | "isReturnable": True or False, # Required. Whether the item is returnable. |
| 361 | "policyUrl": "A String", # Required. URL of the item return policy. |
| 362 | }, |
| 363 | "shippingDetails": { # Required. Details of the requested shipping for the line item. |
| 364 | "shipByDate": "A String", # Required. The ship by date, in ISO 8601 format. |
| 365 | "type": "A String", # Type of shipment. Indicates whether `deliveryDetails` or `pickupDetails` is applicable for this shipment. Acceptable values are: - "`delivery`" - "`pickup`" |
| 366 | "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. |
| 367 | "deliverByDate": "A String", # Required. The delivery by date, in ISO 8601 format. |
| 368 | "method": { # Required. Details of the shipping method. |
| 369 | "methodName": "A String", # Required. The name of the shipping method. |
| 370 | "minDaysInTransit": 42, # Required. Minimum transit time. |
| 371 | "carrier": "A String", # The carrier for the shipping. Optional. See `shipments[].carrier` for a list of acceptable values. |
| 372 | "maxDaysInTransit": 42, # Required. Maximum transit time. |
| 373 | }, |
| 374 | }, |
| 375 | "product": { # Required. Product data from the time of the order placement. |
| 376 | "condition": "A String", # Required. Condition or state of the item. Acceptable values are: - "`new`" |
| 377 | "variantAttributes": [ # Variant attributes for the item. Optional. |
| 378 | { |
| 379 | "value": "A String", # The value for the dimension. |
| 380 | "dimension": "A String", # The dimension of the variant. |
| 381 | }, |
| 382 | ], |
| 383 | "title": "A String", # Required. The title of the product. |
| 384 | "imageLink": "A String", # Required. URL of an image of the item. |
| 385 | "gtin": "A String", # Global Trade Item Number (GTIN) of the item. Optional. |
| 386 | "contentLanguage": "A String", # Required. The two-letter ISO 639-1 language code for the item. Acceptable values are: - "`en`" - "`fr`" |
| 387 | "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. |
| 388 | "currency": "A String", # The currency of the price. |
| 389 | "value": "A String", # The price represented as a number. |
| 390 | }, |
| 391 | "itemGroupId": "A String", # Shared identifier for all variants of the same product. Optional. |
| 392 | "mpn": "A String", # Manufacturer Part Number (MPN) of the item. Optional. |
| 393 | "brand": "A String", # Required. Brand of the item. |
| 394 | "fees": [ # Fees for the item. Optional. |
| 395 | { |
| 396 | "name": "A String", # Name of the fee. |
| 397 | "amount": { # Amount of the fee. |
| 398 | "currency": "A String", # The currency of the price. |
| 399 | "value": "A String", # The price represented as a number. |
| 400 | }, |
| 401 | }, |
| 402 | ], |
| 403 | "targetCountry": "A String", # Required. The CLDR territory // code of the target country of the product. |
| 404 | "offerId": "A String", # Required. An identifier of the item. |
| 405 | }, |
| 406 | "quantityOrdered": 42, # Required. Number of items ordered. |
| 407 | }, |
| 408 | ], |
| 409 | "predefinedDeliveryAddress": "A String", # Required. Identifier of one of the predefined delivery addresses for the delivery. Acceptable values are: - "`dwight`" - "`jim`" - "`pam`" |
| 410 | "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`" |
| 411 | "pickupDetails": { # Overrides the predefined pickup details if provided. |
| 412 | "pickupLocationAddress": { # Required. Pickup location address. |
| 413 | "isPostOfficeBox": True or False, # Whether the address is a post office box. |
| 414 | "region": "A String", # Top-level administrative subdivision of the country. For example, a state like California ("CA") or a province like Quebec ("QC"). |
| 415 | "locality": "A String", # City, town or commune. May also include dependent localities or sublocalities (e.g. neighborhoods or suburbs). |
| 416 | "country": "A String", # CLDR country code (e.g. "US"). |
| 417 | "postalCode": "A String", # Postal Code or ZIP (e.g. "94043"). |
| 418 | "recipientName": "A String", # Name of the recipient. |
| 419 | "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 |
| 420 | "A String", |
| 421 | ], |
| 422 | "streetAddress": [ # Street-level part of the address. |
| 423 | "A String", |
| 424 | ], |
| 425 | }, |
| 426 | "locationCode": "A String", # Required. Code of the location defined by provider or merchant. |
| 427 | "pickupLocationType": "A String", # Pickup location type. Acceptable values are: - "`locker`" - "`store`" - "`curbside`" |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 428 | "pickupPersons": [ # Required. all pickup persons set by users. |
| 429 | { |
| 430 | "name": "A String", # Required. Full name of the pickup person. |
| 431 | "phoneNumber": "A String", # Required. The phone number of the person picking up the items. |
| 432 | }, |
| 433 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 434 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 435 | "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. |
| 436 | "currency": "A String", # The currency of the price. |
| 437 | "value": "A String", # The price represented as a number. |
| 438 | }, |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame^] | 439 | "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`" |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 440 | "shippingOption": "A String", # Required. The requested shipping option. Acceptable values are: - "`economy`" - "`expedited`" - "`oneDay`" - "`sameDay`" - "`standard`" - "`twoDay`" |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame^] | 441 | "predefinedBillingAddress": "A String", # Required. The billing address. Acceptable values are: - "`dwight`" - "`jim`" - "`pam`" |
| 442 | "notificationMode": "A String", # Restricted. Do not use. |
| 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 | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 457 | "orderId": "A String", # The ID of the newly created test order. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 458 | "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "content#ordersCreateTestOrderResponse". |
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 | { |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 490 | "returnId": "A String", # The ID of the newly created test order return. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame^] | 491 | "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "content#ordersCreateTestReturnResponse". |
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 | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame^] | 511 | "taxCollector": "A String", # The party responsible for collecting and remitting taxes. Acceptable values are: - "`marketplaceFacilitator`" - "`merchant`" |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 512 | "lineItems": [ # Line items that are ordered. |
| 513 | { |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame^] | 514 | "quantityUndeliverable": 42, # Number of items undeliverable. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 515 | "returnInfo": { # Details of the return policy for the line item. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 516 | "daysToReturn": 42, # Required. How many days later the item can be returned. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame^] | 517 | "isReturnable": True or False, # Required. Whether the item is returnable. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 518 | "policyUrl": "A String", # Required. URL of the item return policy. |
| 519 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 520 | "quantityReadyForPickup": 42, # Number of items ready for pickup. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 521 | "annotations": [ # Annotations that are attached to the line item. |
| 522 | { |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 523 | "value": "A String", # Value for additional merchant provided (as key-value pairs) annotation about the line item. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 524 | "key": "A String", # Key for additional merchant provided (as key-value pairs) annotation about the line item. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 525 | }, |
| 526 | ], |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame^] | 527 | "quantityDelivered": 42, # Number of items delivered. |
| 528 | "cancellations": [ # Cancellations of the line item. |
| 529 | { |
| 530 | "actor": "A String", # The actor that created the cancellation. Acceptable values are: - "`customer`" - "`googleBot`" - "`googleCustomerService`" - "`googlePayments`" - "`googleSabre`" - "`merchant`" |
| 531 | "creationDate": "A String", # Date on which the cancellation has been created, in ISO 8601 format. |
| 532 | "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`" |
| 533 | "reasonText": "A String", # The explanation of the reason. |
| 534 | "quantity": 42, # The quantity that was canceled. |
| 535 | }, |
| 536 | ], |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 537 | "quantityCanceled": 42, # Number of items canceled. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame^] | 538 | "quantityOrdered": 42, # Number of items ordered. |
| 539 | "returns": [ # Returns of the line item. |
| 540 | { |
| 541 | "quantity": 42, # Quantity that is returned. |
| 542 | "actor": "A String", # The actor that created the refund. Acceptable values are: - "`customer`" - "`googleBot`" - "`googleCustomerService`" - "`googlePayments`" - "`googleSabre`" - "`merchant`" |
| 543 | "creationDate": "A String", # Date on which the item has been created, in ISO 8601 format. |
| 544 | "reason": "A String", # The reason for the return. Acceptable values are: - "`customerDiscretionaryReturn`" - "`customerInitiatedMerchantCancel`" - "`deliveredTooLate`" - "`expiredItem`" - "`invalidCoupon`" - "`malformedShippingAddress`" - "`other`" - "`productArrivedDamaged`" - "`productNotAsDescribed`" - "`qualityNotAsExpected`" - "`undeliverableShippingAddress`" - "`unsupportedPoBoxAddress`" - "`wrongProductShipped`" |
| 545 | "reasonText": "A String", # The explanation of the reason. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 546 | }, |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame^] | 547 | ], |
| 548 | "quantityPending": 42, # Number of items pending. |
| 549 | "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. |
| 550 | "currency": "A String", # The currency of the price. |
| 551 | "value": "A String", # The price represented as a number. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 552 | }, |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame^] | 553 | "quantityShipped": 42, # Number of items shipped. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 554 | "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. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame^] | 555 | "title": "A String", # The title of the product. |
| 556 | "imageLink": "A String", # URL of an image of the item. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 557 | "itemGroupId": "A String", # Shared identifier for all variants of the same product. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 558 | "brand": "A String", # Brand of the item. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame^] | 559 | "shownImage": "A String", # URL to the cached image shown to the user when order was placed. |
| 560 | "id": "A String", # The REST ID of the product. |
| 561 | "mpn": "A String", # Manufacturer Part Number (MPN) of the item. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 562 | "fees": [ # Associated fees at order creation time. |
| 563 | { |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame^] | 564 | "name": "A String", # Name of the fee. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 565 | "amount": { # Amount of the fee. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 566 | "currency": "A String", # The currency of the price. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 567 | "value": "A String", # The price represented as a number. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 568 | }, |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 569 | }, |
| 570 | ], |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame^] | 571 | "offerId": "A String", # An identifier of the item. |
| 572 | "gtin": "A String", # Global Trade Item Number (GTIN) of the item. |
| 573 | "targetCountry": "A String", # The CLDR territory // code of the target country of the product. |
| 574 | "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. |
| 575 | { |
| 576 | "value": "A String", # The value for the dimension. |
| 577 | "dimension": "A String", # The dimension of the variant. |
| 578 | }, |
| 579 | ], |
| 580 | "condition": "A String", # Condition or state of the item. Acceptable values are: - "`new`" - "`refurbished`" - "`used`" |
| 581 | "price": { # Price of the item. |
| 582 | "currency": "A String", # The currency of the price. |
| 583 | "value": "A String", # The price represented as a number. |
| 584 | }, |
| 585 | "contentLanguage": "A String", # The two-letter ISO 639-1 language code for the item. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 586 | }, |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame^] | 587 | "shippingDetails": { # Details of the requested shipping for the line item. |
| 588 | "shipByDate": "A String", # Required. The ship by date, in ISO 8601 format. |
| 589 | "type": "A String", # Type of shipment. Indicates whether `deliveryDetails` or `pickupDetails` is applicable for this shipment. Acceptable values are: - "`delivery`" - "`pickup`" |
| 590 | "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. |
| 591 | "deliverByDate": "A String", # Required. The delivery by date, in ISO 8601 format. |
| 592 | "method": { # Required. Details of the shipping method. |
| 593 | "methodName": "A String", # Required. The name of the shipping method. |
| 594 | "minDaysInTransit": 42, # Required. Minimum transit time. |
| 595 | "carrier": "A String", # The carrier for the shipping. Optional. See `shipments[].carrier` for a list of acceptable values. |
| 596 | "maxDaysInTransit": 42, # Required. Maximum transit time. |
| 597 | }, |
| 598 | }, |
| 599 | "price": { # Total price for the line item. For example, if two items for $10 are purchased, the total price will be $20. |
| 600 | "currency": "A String", # The currency of the price. |
| 601 | "value": "A String", # The price represented as a number. |
| 602 | }, |
| 603 | "id": "A String", # The ID of the line item. |
| 604 | "quantityReturned": 42, # Number of items returned. |
| 605 | "adjustments": [ # Price and tax adjustments applied on the line item. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 606 | { |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame^] | 607 | "type": "A String", # Type of this adjustment. Acceptable values are: - "`promotion`" |
| 608 | "taxAdjustment": { # Adjustment for total tax of the line item. |
| 609 | "currency": "A String", # The currency of the price. |
| 610 | "value": "A String", # The price represented as a number. |
| 611 | }, |
| 612 | "priceAdjustment": { # Adjustment for total price of the line item. |
| 613 | "currency": "A String", # The currency of the price. |
| 614 | "value": "A String", # The price represented as a number. |
| 615 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 616 | }, |
| 617 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 618 | }, |
| 619 | ], |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame^] | 620 | "id": "A String", # The REST ID of the order. Globally unique. |
| 621 | "shippingCost": { # The total cost of shipping for all items. |
| 622 | "currency": "A String", # The currency of the price. |
| 623 | "value": "A String", # The price represented as a number. |
| 624 | }, |
| 625 | "refunds": [ # Refunds for the order. |
| 626 | { |
| 627 | "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`" |
| 628 | "creationDate": "A String", # Date on which the item has been created, in ISO 8601 format. |
| 629 | "amount": { # The amount that is refunded. |
| 630 | "currency": "A String", # The currency of the price. |
| 631 | "value": "A String", # The price represented as a number. |
| 632 | }, |
| 633 | "actor": "A String", # The actor that created the refund. Acceptable values are: - "`customer`" - "`googleBot`" - "`googleCustomerService`" - "`googlePayments`" - "`googleSabre`" - "`merchant`" |
| 634 | "reasonText": "A String", # The explanation of the reason. |
| 635 | }, |
| 636 | ], |
| 637 | "status": "A String", # The status of the order. Acceptable values are: - "`canceled`" - "`delivered`" - "`inProgress`" - "`partiallyDelivered`" - "`partiallyReturned`" - "`partiallyShipped`" - "`pendingShipment`" - "`returned`" - "`shipped`" |
| 638 | "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. |
| 639 | { |
| 640 | "funder": "A String", # Required. The party funding the promotion. Only `merchant` is supported for `orders.createtestorder`. Acceptable values are: - "`google`" - "`merchant`" |
| 641 | "merchantPromotionId": "A String", # Required. This field is used to identify promotions within merchants' own systems. |
| 642 | "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". |
| 643 | "taxValue": { # Estimated discount applied to tax (if allowed by law). Do not provide for `orders.createtestorder`. |
| 644 | "currency": "A String", # The currency of the price. |
| 645 | "value": "A String", # The price represented as a number. |
| 646 | }, |
| 647 | "priceValue": { # Estimated discount applied to price. Amount is pre-tax or post-tax depending on location of order. |
| 648 | "currency": "A String", # The currency of the price. |
| 649 | "value": "A String", # The price represented as a number. |
| 650 | }, |
| 651 | "shortTitle": "A String", # A short title of the promotion to be shown on the checkout page. Do not provide for `orders.createtestorder`. |
| 652 | "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. |
| 653 | { |
| 654 | "quantity": 42, # The quantity of the associated product. Do not provide for `orders.createtestorder`. |
| 655 | "lineItemId": "A String", # The line item ID of a product. Do not provide for `orders.createtestorder`. |
| 656 | "productId": "A String", # `orders.createtestorder`. |
| 657 | "offerId": "A String", # Required. Offer ID of a product. Only for `orders.createtestorder`. |
| 658 | }, |
| 659 | ], |
| 660 | "title": "A String", # Required. The title of the promotion. |
| 661 | "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". |
| 662 | "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. |
| 663 | { |
| 664 | "quantity": 42, # The quantity of the associated product. Do not provide for `orders.createtestorder`. |
| 665 | "lineItemId": "A String", # The line item ID of a product. Do not provide for `orders.createtestorder`. |
| 666 | "productId": "A String", # `orders.createtestorder`. |
| 667 | "offerId": "A String", # Required. Offer ID of a product. Only for `orders.createtestorder`. |
| 668 | }, |
| 669 | ], |
| 670 | "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`" |
| 671 | "type": "A String", # Required. The scope of the promotion. Only `product` is supported for `orders.createtestorder`. Acceptable values are: - "`product`" - "`shipping`" |
| 672 | }, |
| 673 | ], |
| 674 | "placedDate": "A String", # The date when the order was placed, in ISO 8601 format. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 675 | "shippingCostTax": { # The tax for the total shipping cost. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 676 | "currency": "A String", # The currency of the price. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 677 | "value": "A String", # The price represented as a number. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 678 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 679 | "acknowledged": True or False, # Whether the order was acknowledged. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame^] | 680 | "customer": { # The details of the customer who placed the order. |
| 681 | "loyaltyInfo": { # Loyalty program information. |
| 682 | "loyaltyNumber": "A String", # The loyalty card/membership number. |
| 683 | "name": "A String", # Name of card/membership holder, this field will be populated when |
| 684 | }, |
| 685 | "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. |
| 686 | "fullName": "A String", # Full name of the customer. |
| 687 | "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. |
| 688 | "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. |
| 689 | "lastUpdatedTimestamp": "A String", # Timestamp when last time marketing preference was updated. Could be empty, if user wasn't offered a selection yet. |
| 690 | "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`" |
| 691 | }, |
| 692 | }, |
| 693 | "billingAddress": { # The billing address. |
| 694 | "postalCode": "A String", # Postal Code or ZIP (e.g. "94043"). |
| 695 | "streetAddress": [ # Street-level part of the address. |
| 696 | "A String", |
| 697 | ], |
| 698 | "country": "A String", # CLDR country code (e.g. "US"). |
| 699 | "locality": "A String", # City, town or commune. May also include dependent localities or sublocalities (e.g. neighborhoods or suburbs). |
| 700 | "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 |
| 701 | "A String", |
| 702 | ], |
| 703 | "recipientName": "A String", # Name of the recipient. |
| 704 | "region": "A String", # Top-level administrative subdivision of the country. For example, a state like California ("CA") or a province like Quebec ("QC"). |
| 705 | "isPostOfficeBox": True or False, # Whether the address is a post office box. |
| 706 | }, |
| 707 | "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. |
| 708 | "currency": "A String", # The currency of the price. |
| 709 | "value": "A String", # The price represented as a number. |
| 710 | }, |
| 711 | "deliveryDetails": { # Delivery details for shipments of type `delivery`. |
| 712 | "address": { # The delivery address |
| 713 | "postalCode": "A String", # Postal Code or ZIP (e.g. "94043"). |
| 714 | "streetAddress": [ # Street-level part of the address. |
| 715 | "A String", |
| 716 | ], |
| 717 | "country": "A String", # CLDR country code (e.g. "US"). |
| 718 | "locality": "A String", # City, town or commune. May also include dependent localities or sublocalities (e.g. neighborhoods or suburbs). |
| 719 | "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 |
| 720 | "A String", |
| 721 | ], |
| 722 | "recipientName": "A String", # Name of the recipient. |
| 723 | "region": "A String", # Top-level administrative subdivision of the country. For example, a state like California ("CA") or a province like Quebec ("QC"). |
| 724 | "isPostOfficeBox": True or False, # Whether the address is a post office box. |
| 725 | }, |
| 726 | "phoneNumber": "A String", # The phone number of the person receiving the delivery. |
| 727 | }, |
| 728 | "paymentStatus": "A String", # The status of the payment. Acceptable values are: - "`paymentCaptured`" - "`paymentRejected`" - "`paymentSecured`" - "`pendingAuthorization`" |
| 729 | "shipments": [ # Shipments of the order. |
| 730 | { |
| 731 | "status": "A String", # The status of the shipment. Acceptable values are: - "`delivered`" - "`readyForPickup`" - "`shipped`" - "`undeliverable`" |
| 732 | "lineItems": [ # The line items that are shipped. |
| 733 | { |
| 734 | "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. |
| 735 | "quantity": 42, # The quantity that is shipped. |
| 736 | "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. |
| 737 | }, |
| 738 | ], |
| 739 | "creationDate": "A String", # Date on which the shipment has been created, in ISO 8601 format. |
| 740 | "trackingId": "A String", # The tracking ID for the shipment. |
| 741 | "scheduledDeliveryDetails": { # Delivery details of the shipment if scheduling is needed. |
| 742 | "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"). |
| 743 | "scheduledDate": "A String", # The date a shipment is scheduled for delivery, in ISO 8601 format. |
| 744 | }, |
| 745 | "id": "A String", # The ID of the shipment. |
| 746 | "shipmentGroupId": "A String", # The shipment group ID of the shipment. This is set in shiplineitems request. |
| 747 | "deliveryDate": "A String", # Date on which the shipment has been delivered, in ISO 8601 format. Present only if `status` is `delivered` |
| 748 | "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) |
| 749 | }, |
| 750 | ], |
| 751 | "pickupDetails": { # Pickup details for shipments of type `pickup`. |
| 752 | "collectors": [ # Collectors authorized to pick up shipment from the pickup location. |
| 753 | { |
| 754 | "phoneNumber": "A String", # Phone number of the person picking up the shipment. |
| 755 | "name": "A String", # Name of the person picking up the shipment. |
| 756 | }, |
| 757 | ], |
| 758 | "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. |
| 759 | "postalCode": "A String", # Postal Code or ZIP (e.g. "94043"). |
| 760 | "streetAddress": [ # Street-level part of the address. |
| 761 | "A String", |
| 762 | ], |
| 763 | "country": "A String", # CLDR country code (e.g. "US"). |
| 764 | "locality": "A String", # City, town or commune. May also include dependent localities or sublocalities (e.g. neighborhoods or suburbs). |
| 765 | "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 |
| 766 | "A String", |
| 767 | ], |
| 768 | "recipientName": "A String", # Name of the recipient. |
| 769 | "region": "A String", # Top-level administrative subdivision of the country. For example, a state like California ("CA") or a province like Quebec ("QC"). |
| 770 | "isPostOfficeBox": True or False, # Whether the address is a post office box. |
| 771 | }, |
| 772 | "locationId": "A String", # ID of the pickup location. |
| 773 | "pickupType": "A String", # The pickup type of this order. Acceptable values are: - "`merchantStore`" - "`merchantStoreCurbside`" - "`merchantStoreLocker`" - "`thirdPartyPickupPoint`" - "`thirdPartyLocker`" |
| 774 | }, |
| 775 | "merchantOrderId": "A String", # Merchant-provided ID of the order. |
| 776 | "merchantId": "A String", |
| 777 | "annotations": [ # List of key-value pairs that are attached to a given order. |
| 778 | { |
| 779 | "value": "A String", # Value for additional google provided (as key-value pairs) annotation. |
| 780 | "key": "A String", # Key for additional google provided (as key-value pairs) annotation. |
| 781 | }, |
| 782 | ], |
| 783 | "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "`content#order`" |
| 784 | "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. |
| 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 | { |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame^] | 807 | "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] | 808 | "order": { # Order. Production access (all methods) requires the order manager role. Sandbox access does not. # The requested order. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame^] | 809 | "taxCollector": "A String", # The party responsible for collecting and remitting taxes. Acceptable values are: - "`marketplaceFacilitator`" - "`merchant`" |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 810 | "lineItems": [ # Line items that are ordered. |
| 811 | { |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame^] | 812 | "quantityUndeliverable": 42, # Number of items undeliverable. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 813 | "returnInfo": { # Details of the return policy for the line item. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 814 | "daysToReturn": 42, # Required. How many days later the item can be returned. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame^] | 815 | "isReturnable": True or False, # Required. Whether the item is returnable. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 816 | "policyUrl": "A String", # Required. URL of the item return policy. |
| 817 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 818 | "quantityReadyForPickup": 42, # Number of items ready for pickup. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 819 | "annotations": [ # Annotations that are attached to the line item. |
| 820 | { |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 821 | "value": "A String", # Value for additional merchant provided (as key-value pairs) annotation about the line item. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 822 | "key": "A String", # Key for additional merchant provided (as key-value pairs) annotation about the line item. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 823 | }, |
| 824 | ], |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame^] | 825 | "quantityDelivered": 42, # Number of items delivered. |
| 826 | "cancellations": [ # Cancellations of the line item. |
| 827 | { |
| 828 | "actor": "A String", # The actor that created the cancellation. Acceptable values are: - "`customer`" - "`googleBot`" - "`googleCustomerService`" - "`googlePayments`" - "`googleSabre`" - "`merchant`" |
| 829 | "creationDate": "A String", # Date on which the cancellation has been created, in ISO 8601 format. |
| 830 | "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`" |
| 831 | "reasonText": "A String", # The explanation of the reason. |
| 832 | "quantity": 42, # The quantity that was canceled. |
| 833 | }, |
| 834 | ], |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 835 | "quantityCanceled": 42, # Number of items canceled. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame^] | 836 | "quantityOrdered": 42, # Number of items ordered. |
| 837 | "returns": [ # Returns of the line item. |
| 838 | { |
| 839 | "quantity": 42, # Quantity that is returned. |
| 840 | "actor": "A String", # The actor that created the refund. Acceptable values are: - "`customer`" - "`googleBot`" - "`googleCustomerService`" - "`googlePayments`" - "`googleSabre`" - "`merchant`" |
| 841 | "creationDate": "A String", # Date on which the item has been created, in ISO 8601 format. |
| 842 | "reason": "A String", # The reason for the return. Acceptable values are: - "`customerDiscretionaryReturn`" - "`customerInitiatedMerchantCancel`" - "`deliveredTooLate`" - "`expiredItem`" - "`invalidCoupon`" - "`malformedShippingAddress`" - "`other`" - "`productArrivedDamaged`" - "`productNotAsDescribed`" - "`qualityNotAsExpected`" - "`undeliverableShippingAddress`" - "`unsupportedPoBoxAddress`" - "`wrongProductShipped`" |
| 843 | "reasonText": "A String", # The explanation of the reason. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 844 | }, |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame^] | 845 | ], |
| 846 | "quantityPending": 42, # Number of items pending. |
| 847 | "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. |
| 848 | "currency": "A String", # The currency of the price. |
| 849 | "value": "A String", # The price represented as a number. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 850 | }, |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame^] | 851 | "quantityShipped": 42, # Number of items shipped. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 852 | "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. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame^] | 853 | "title": "A String", # The title of the product. |
| 854 | "imageLink": "A String", # URL of an image of the item. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 855 | "itemGroupId": "A String", # Shared identifier for all variants of the same product. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 856 | "brand": "A String", # Brand of the item. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame^] | 857 | "shownImage": "A String", # URL to the cached image shown to the user when order was placed. |
| 858 | "id": "A String", # The REST ID of the product. |
| 859 | "mpn": "A String", # Manufacturer Part Number (MPN) of the item. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 860 | "fees": [ # Associated fees at order creation time. |
| 861 | { |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame^] | 862 | "name": "A String", # Name of the fee. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 863 | "amount": { # Amount of the fee. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 864 | "currency": "A String", # The currency of the price. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 865 | "value": "A String", # The price represented as a number. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 866 | }, |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 867 | }, |
| 868 | ], |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame^] | 869 | "offerId": "A String", # An identifier of the item. |
| 870 | "gtin": "A String", # Global Trade Item Number (GTIN) of the item. |
| 871 | "targetCountry": "A String", # The CLDR territory // code of the target country of the product. |
| 872 | "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. |
| 873 | { |
| 874 | "value": "A String", # The value for the dimension. |
| 875 | "dimension": "A String", # The dimension of the variant. |
| 876 | }, |
| 877 | ], |
| 878 | "condition": "A String", # Condition or state of the item. Acceptable values are: - "`new`" - "`refurbished`" - "`used`" |
| 879 | "price": { # Price of the item. |
| 880 | "currency": "A String", # The currency of the price. |
| 881 | "value": "A String", # The price represented as a number. |
| 882 | }, |
| 883 | "contentLanguage": "A String", # The two-letter ISO 639-1 language code for the item. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 884 | }, |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame^] | 885 | "shippingDetails": { # Details of the requested shipping for the line item. |
| 886 | "shipByDate": "A String", # Required. The ship by date, in ISO 8601 format. |
| 887 | "type": "A String", # Type of shipment. Indicates whether `deliveryDetails` or `pickupDetails` is applicable for this shipment. Acceptable values are: - "`delivery`" - "`pickup`" |
| 888 | "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. |
| 889 | "deliverByDate": "A String", # Required. The delivery by date, in ISO 8601 format. |
| 890 | "method": { # Required. Details of the shipping method. |
| 891 | "methodName": "A String", # Required. The name of the shipping method. |
| 892 | "minDaysInTransit": 42, # Required. Minimum transit time. |
| 893 | "carrier": "A String", # The carrier for the shipping. Optional. See `shipments[].carrier` for a list of acceptable values. |
| 894 | "maxDaysInTransit": 42, # Required. Maximum transit time. |
| 895 | }, |
| 896 | }, |
| 897 | "price": { # Total price for the line item. For example, if two items for $10 are purchased, the total price will be $20. |
| 898 | "currency": "A String", # The currency of the price. |
| 899 | "value": "A String", # The price represented as a number. |
| 900 | }, |
| 901 | "id": "A String", # The ID of the line item. |
| 902 | "quantityReturned": 42, # Number of items returned. |
| 903 | "adjustments": [ # Price and tax adjustments applied on the line item. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 904 | { |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame^] | 905 | "type": "A String", # Type of this adjustment. Acceptable values are: - "`promotion`" |
| 906 | "taxAdjustment": { # Adjustment for total tax of the line item. |
| 907 | "currency": "A String", # The currency of the price. |
| 908 | "value": "A String", # The price represented as a number. |
| 909 | }, |
| 910 | "priceAdjustment": { # Adjustment for total price of the line item. |
| 911 | "currency": "A String", # The currency of the price. |
| 912 | "value": "A String", # The price represented as a number. |
| 913 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 914 | }, |
| 915 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 916 | }, |
| 917 | ], |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame^] | 918 | "id": "A String", # The REST ID of the order. Globally unique. |
| 919 | "shippingCost": { # The total cost of shipping for all items. |
| 920 | "currency": "A String", # The currency of the price. |
| 921 | "value": "A String", # The price represented as a number. |
| 922 | }, |
| 923 | "refunds": [ # Refunds for the order. |
| 924 | { |
| 925 | "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`" |
| 926 | "creationDate": "A String", # Date on which the item has been created, in ISO 8601 format. |
| 927 | "amount": { # The amount that is refunded. |
| 928 | "currency": "A String", # The currency of the price. |
| 929 | "value": "A String", # The price represented as a number. |
| 930 | }, |
| 931 | "actor": "A String", # The actor that created the refund. Acceptable values are: - "`customer`" - "`googleBot`" - "`googleCustomerService`" - "`googlePayments`" - "`googleSabre`" - "`merchant`" |
| 932 | "reasonText": "A String", # The explanation of the reason. |
| 933 | }, |
| 934 | ], |
| 935 | "status": "A String", # The status of the order. Acceptable values are: - "`canceled`" - "`delivered`" - "`inProgress`" - "`partiallyDelivered`" - "`partiallyReturned`" - "`partiallyShipped`" - "`pendingShipment`" - "`returned`" - "`shipped`" |
| 936 | "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. |
| 937 | { |
| 938 | "funder": "A String", # Required. The party funding the promotion. Only `merchant` is supported for `orders.createtestorder`. Acceptable values are: - "`google`" - "`merchant`" |
| 939 | "merchantPromotionId": "A String", # Required. This field is used to identify promotions within merchants' own systems. |
| 940 | "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". |
| 941 | "taxValue": { # Estimated discount applied to tax (if allowed by law). Do not provide for `orders.createtestorder`. |
| 942 | "currency": "A String", # The currency of the price. |
| 943 | "value": "A String", # The price represented as a number. |
| 944 | }, |
| 945 | "priceValue": { # Estimated discount applied to price. Amount is pre-tax or post-tax depending on location of order. |
| 946 | "currency": "A String", # The currency of the price. |
| 947 | "value": "A String", # The price represented as a number. |
| 948 | }, |
| 949 | "shortTitle": "A String", # A short title of the promotion to be shown on the checkout page. Do not provide for `orders.createtestorder`. |
| 950 | "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. |
| 951 | { |
| 952 | "quantity": 42, # The quantity of the associated product. Do not provide for `orders.createtestorder`. |
| 953 | "lineItemId": "A String", # The line item ID of a product. Do not provide for `orders.createtestorder`. |
| 954 | "productId": "A String", # `orders.createtestorder`. |
| 955 | "offerId": "A String", # Required. Offer ID of a product. Only for `orders.createtestorder`. |
| 956 | }, |
| 957 | ], |
| 958 | "title": "A String", # Required. The title of the promotion. |
| 959 | "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". |
| 960 | "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. |
| 961 | { |
| 962 | "quantity": 42, # The quantity of the associated product. Do not provide for `orders.createtestorder`. |
| 963 | "lineItemId": "A String", # The line item ID of a product. Do not provide for `orders.createtestorder`. |
| 964 | "productId": "A String", # `orders.createtestorder`. |
| 965 | "offerId": "A String", # Required. Offer ID of a product. Only for `orders.createtestorder`. |
| 966 | }, |
| 967 | ], |
| 968 | "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`" |
| 969 | "type": "A String", # Required. The scope of the promotion. Only `product` is supported for `orders.createtestorder`. Acceptable values are: - "`product`" - "`shipping`" |
| 970 | }, |
| 971 | ], |
| 972 | "placedDate": "A String", # The date when the order was placed, in ISO 8601 format. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 973 | "shippingCostTax": { # The tax for the total shipping cost. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 974 | "currency": "A String", # The currency of the price. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 975 | "value": "A String", # The price represented as a number. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 976 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 977 | "acknowledged": True or False, # Whether the order was acknowledged. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame^] | 978 | "customer": { # The details of the customer who placed the order. |
| 979 | "loyaltyInfo": { # Loyalty program information. |
| 980 | "loyaltyNumber": "A String", # The loyalty card/membership number. |
| 981 | "name": "A String", # Name of card/membership holder, this field will be populated when |
| 982 | }, |
| 983 | "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. |
| 984 | "fullName": "A String", # Full name of the customer. |
| 985 | "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. |
| 986 | "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. |
| 987 | "lastUpdatedTimestamp": "A String", # Timestamp when last time marketing preference was updated. Could be empty, if user wasn't offered a selection yet. |
| 988 | "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`" |
| 989 | }, |
| 990 | }, |
| 991 | "billingAddress": { # The billing address. |
| 992 | "postalCode": "A String", # Postal Code or ZIP (e.g. "94043"). |
| 993 | "streetAddress": [ # Street-level part of the address. |
| 994 | "A String", |
| 995 | ], |
| 996 | "country": "A String", # CLDR country code (e.g. "US"). |
| 997 | "locality": "A String", # City, town or commune. May also include dependent localities or sublocalities (e.g. neighborhoods or suburbs). |
| 998 | "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 |
| 999 | "A String", |
| 1000 | ], |
| 1001 | "recipientName": "A String", # Name of the recipient. |
| 1002 | "region": "A String", # Top-level administrative subdivision of the country. For example, a state like California ("CA") or a province like Quebec ("QC"). |
| 1003 | "isPostOfficeBox": True or False, # Whether the address is a post office box. |
| 1004 | }, |
| 1005 | "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. |
| 1006 | "currency": "A String", # The currency of the price. |
| 1007 | "value": "A String", # The price represented as a number. |
| 1008 | }, |
| 1009 | "deliveryDetails": { # Delivery details for shipments of type `delivery`. |
| 1010 | "address": { # The delivery address |
| 1011 | "postalCode": "A String", # Postal Code or ZIP (e.g. "94043"). |
| 1012 | "streetAddress": [ # Street-level part of the address. |
| 1013 | "A String", |
| 1014 | ], |
| 1015 | "country": "A String", # CLDR country code (e.g. "US"). |
| 1016 | "locality": "A String", # City, town or commune. May also include dependent localities or sublocalities (e.g. neighborhoods or suburbs). |
| 1017 | "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 |
| 1018 | "A String", |
| 1019 | ], |
| 1020 | "recipientName": "A String", # Name of the recipient. |
| 1021 | "region": "A String", # Top-level administrative subdivision of the country. For example, a state like California ("CA") or a province like Quebec ("QC"). |
| 1022 | "isPostOfficeBox": True or False, # Whether the address is a post office box. |
| 1023 | }, |
| 1024 | "phoneNumber": "A String", # The phone number of the person receiving the delivery. |
| 1025 | }, |
| 1026 | "paymentStatus": "A String", # The status of the payment. Acceptable values are: - "`paymentCaptured`" - "`paymentRejected`" - "`paymentSecured`" - "`pendingAuthorization`" |
| 1027 | "shipments": [ # Shipments of the order. |
| 1028 | { |
| 1029 | "status": "A String", # The status of the shipment. Acceptable values are: - "`delivered`" - "`readyForPickup`" - "`shipped`" - "`undeliverable`" |
| 1030 | "lineItems": [ # The line items that are shipped. |
| 1031 | { |
| 1032 | "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. |
| 1033 | "quantity": 42, # The quantity that is shipped. |
| 1034 | "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. |
| 1035 | }, |
| 1036 | ], |
| 1037 | "creationDate": "A String", # Date on which the shipment has been created, in ISO 8601 format. |
| 1038 | "trackingId": "A String", # The tracking ID for the shipment. |
| 1039 | "scheduledDeliveryDetails": { # Delivery details of the shipment if scheduling is needed. |
| 1040 | "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"). |
| 1041 | "scheduledDate": "A String", # The date a shipment is scheduled for delivery, in ISO 8601 format. |
| 1042 | }, |
| 1043 | "id": "A String", # The ID of the shipment. |
| 1044 | "shipmentGroupId": "A String", # The shipment group ID of the shipment. This is set in shiplineitems request. |
| 1045 | "deliveryDate": "A String", # Date on which the shipment has been delivered, in ISO 8601 format. Present only if `status` is `delivered` |
| 1046 | "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) |
| 1047 | }, |
| 1048 | ], |
| 1049 | "pickupDetails": { # Pickup details for shipments of type `pickup`. |
| 1050 | "collectors": [ # Collectors authorized to pick up shipment from the pickup location. |
| 1051 | { |
| 1052 | "phoneNumber": "A String", # Phone number of the person picking up the shipment. |
| 1053 | "name": "A String", # Name of the person picking up the shipment. |
| 1054 | }, |
| 1055 | ], |
| 1056 | "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. |
| 1057 | "postalCode": "A String", # Postal Code or ZIP (e.g. "94043"). |
| 1058 | "streetAddress": [ # Street-level part of the address. |
| 1059 | "A String", |
| 1060 | ], |
| 1061 | "country": "A String", # CLDR country code (e.g. "US"). |
| 1062 | "locality": "A String", # City, town or commune. May also include dependent localities or sublocalities (e.g. neighborhoods or suburbs). |
| 1063 | "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 |
| 1064 | "A String", |
| 1065 | ], |
| 1066 | "recipientName": "A String", # Name of the recipient. |
| 1067 | "region": "A String", # Top-level administrative subdivision of the country. For example, a state like California ("CA") or a province like Quebec ("QC"). |
| 1068 | "isPostOfficeBox": True or False, # Whether the address is a post office box. |
| 1069 | }, |
| 1070 | "locationId": "A String", # ID of the pickup location. |
| 1071 | "pickupType": "A String", # The pickup type of this order. Acceptable values are: - "`merchantStore`" - "`merchantStoreCurbside`" - "`merchantStoreLocker`" - "`thirdPartyPickupPoint`" - "`thirdPartyLocker`" |
| 1072 | }, |
| 1073 | "merchantOrderId": "A String", # Merchant-provided ID of the order. |
| 1074 | "merchantId": "A String", |
| 1075 | "annotations": [ # List of key-value pairs that are attached to a given order. |
| 1076 | { |
| 1077 | "value": "A String", # Value for additional google provided (as key-value pairs) annotation. |
| 1078 | "key": "A String", # Key for additional google provided (as key-value pairs) annotation. |
| 1079 | }, |
| 1080 | ], |
| 1081 | "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "`content#order`" |
| 1082 | "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. |
| 1083 | "currency": "A String", # The currency of the price. |
| 1084 | "value": "A String", # The price represented as a number. |
| 1085 | }, |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1086 | }, |
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 | { |
| 1114 | "template": { # The requested test order template. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame^] | 1115 | "deliveryDetails": { # Overrides the predefined delivery details if provided. |
| 1116 | "phoneNumber": "A String", # The phone number of the person receiving the delivery. |
| 1117 | "address": { # The delivery address |
| 1118 | "isPostOfficeBox": True or False, # Whether the address is a post office box. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 1119 | "region": "A String", # Top-level administrative subdivision of the country. For example, a state like California ("CA") or a province like Quebec ("QC"). |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 1120 | "locality": "A String", # City, town or commune. May also include dependent localities or sublocalities (e.g. neighborhoods or suburbs). |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame^] | 1121 | "country": "A String", # CLDR country code (e.g. "US"). |
| 1122 | "postalCode": "A String", # Postal Code or ZIP (e.g. "94043"). |
| 1123 | "recipientName": "A String", # Name of the recipient. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 1124 | "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 |
| 1125 | "A String", |
| 1126 | ], |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 1127 | "streetAddress": [ # Street-level part of the address. |
| 1128 | "A String", |
| 1129 | ], |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 1130 | }, |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame^] | 1131 | }, |
| 1132 | "enableOrderinvoices": True or False, # Whether the orderinvoices service should support this order. |
| 1133 | "promotions": [ # Promotions associated with the order. |
| 1134 | { |
| 1135 | "funder": "A String", # Required. The party funding the promotion. Only `merchant` is supported for `orders.createtestorder`. Acceptable values are: - "`google`" - "`merchant`" |
| 1136 | "merchantPromotionId": "A String", # Required. This field is used to identify promotions within merchants' own systems. |
| 1137 | "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". |
| 1138 | "taxValue": { # Estimated discount applied to tax (if allowed by law). Do not provide for `orders.createtestorder`. |
| 1139 | "currency": "A String", # The currency of the price. |
| 1140 | "value": "A String", # The price represented as a number. |
| 1141 | }, |
| 1142 | "priceValue": { # Estimated discount applied to price. Amount is pre-tax or post-tax depending on location of order. |
| 1143 | "currency": "A String", # The currency of the price. |
| 1144 | "value": "A String", # The price represented as a number. |
| 1145 | }, |
| 1146 | "shortTitle": "A String", # A short title of the promotion to be shown on the checkout page. Do not provide for `orders.createtestorder`. |
| 1147 | "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. |
| 1148 | { |
| 1149 | "quantity": 42, # The quantity of the associated product. Do not provide for `orders.createtestorder`. |
| 1150 | "lineItemId": "A String", # The line item ID of a product. Do not provide for `orders.createtestorder`. |
| 1151 | "productId": "A String", # `orders.createtestorder`. |
| 1152 | "offerId": "A String", # Required. Offer ID of a product. Only for `orders.createtestorder`. |
| 1153 | }, |
| 1154 | ], |
| 1155 | "title": "A String", # Required. The title of the promotion. |
| 1156 | "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". |
| 1157 | "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. |
| 1158 | { |
| 1159 | "quantity": 42, # The quantity of the associated product. Do not provide for `orders.createtestorder`. |
| 1160 | "lineItemId": "A String", # The line item ID of a product. Do not provide for `orders.createtestorder`. |
| 1161 | "productId": "A String", # `orders.createtestorder`. |
| 1162 | "offerId": "A String", # Required. Offer ID of a product. Only for `orders.createtestorder`. |
| 1163 | }, |
| 1164 | ], |
| 1165 | "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`" |
| 1166 | "type": "A String", # Required. The scope of the promotion. Only `product` is supported for `orders.createtestorder`. Acceptable values are: - "`product`" - "`shipping`" |
| 1167 | }, |
| 1168 | ], |
| 1169 | "lineItems": [ # Required. Line items that are ordered. At least one line item must be provided. |
| 1170 | { |
| 1171 | "returnInfo": { # Required. Details of the return policy for the line item. |
| 1172 | "daysToReturn": 42, # Required. How many days later the item can be returned. |
| 1173 | "isReturnable": True or False, # Required. Whether the item is returnable. |
| 1174 | "policyUrl": "A String", # Required. URL of the item return policy. |
| 1175 | }, |
| 1176 | "shippingDetails": { # Required. Details of the requested shipping for the line item. |
| 1177 | "shipByDate": "A String", # Required. The ship by date, in ISO 8601 format. |
| 1178 | "type": "A String", # Type of shipment. Indicates whether `deliveryDetails` or `pickupDetails` is applicable for this shipment. Acceptable values are: - "`delivery`" - "`pickup`" |
| 1179 | "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. |
| 1180 | "deliverByDate": "A String", # Required. The delivery by date, in ISO 8601 format. |
| 1181 | "method": { # Required. Details of the shipping method. |
| 1182 | "methodName": "A String", # Required. The name of the shipping method. |
| 1183 | "minDaysInTransit": 42, # Required. Minimum transit time. |
| 1184 | "carrier": "A String", # The carrier for the shipping. Optional. See `shipments[].carrier` for a list of acceptable values. |
| 1185 | "maxDaysInTransit": 42, # Required. Maximum transit time. |
| 1186 | }, |
| 1187 | }, |
| 1188 | "product": { # Required. Product data from the time of the order placement. |
| 1189 | "condition": "A String", # Required. Condition or state of the item. Acceptable values are: - "`new`" |
| 1190 | "variantAttributes": [ # Variant attributes for the item. Optional. |
| 1191 | { |
| 1192 | "value": "A String", # The value for the dimension. |
| 1193 | "dimension": "A String", # The dimension of the variant. |
| 1194 | }, |
| 1195 | ], |
| 1196 | "title": "A String", # Required. The title of the product. |
| 1197 | "imageLink": "A String", # Required. URL of an image of the item. |
| 1198 | "gtin": "A String", # Global Trade Item Number (GTIN) of the item. Optional. |
| 1199 | "contentLanguage": "A String", # Required. The two-letter ISO 639-1 language code for the item. Acceptable values are: - "`en`" - "`fr`" |
| 1200 | "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. |
| 1201 | "currency": "A String", # The currency of the price. |
| 1202 | "value": "A String", # The price represented as a number. |
| 1203 | }, |
| 1204 | "itemGroupId": "A String", # Shared identifier for all variants of the same product. Optional. |
| 1205 | "mpn": "A String", # Manufacturer Part Number (MPN) of the item. Optional. |
| 1206 | "brand": "A String", # Required. Brand of the item. |
| 1207 | "fees": [ # Fees for the item. Optional. |
| 1208 | { |
| 1209 | "name": "A String", # Name of the fee. |
| 1210 | "amount": { # Amount of the fee. |
| 1211 | "currency": "A String", # The currency of the price. |
| 1212 | "value": "A String", # The price represented as a number. |
| 1213 | }, |
| 1214 | }, |
| 1215 | ], |
| 1216 | "targetCountry": "A String", # Required. The CLDR territory // code of the target country of the product. |
| 1217 | "offerId": "A String", # Required. An identifier of the item. |
| 1218 | }, |
| 1219 | "quantityOrdered": 42, # Required. Number of items ordered. |
| 1220 | }, |
| 1221 | ], |
| 1222 | "predefinedDeliveryAddress": "A String", # Required. Identifier of one of the predefined delivery addresses for the delivery. Acceptable values are: - "`dwight`" - "`jim`" - "`pam`" |
| 1223 | "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`" |
| 1224 | "pickupDetails": { # Overrides the predefined pickup details if provided. |
| 1225 | "pickupLocationAddress": { # Required. Pickup location address. |
| 1226 | "isPostOfficeBox": True or False, # Whether the address is a post office box. |
| 1227 | "region": "A String", # Top-level administrative subdivision of the country. For example, a state like California ("CA") or a province like Quebec ("QC"). |
| 1228 | "locality": "A String", # City, town or commune. May also include dependent localities or sublocalities (e.g. neighborhoods or suburbs). |
| 1229 | "country": "A String", # CLDR country code (e.g. "US"). |
| 1230 | "postalCode": "A String", # Postal Code or ZIP (e.g. "94043"). |
| 1231 | "recipientName": "A String", # Name of the recipient. |
| 1232 | "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 |
| 1233 | "A String", |
| 1234 | ], |
| 1235 | "streetAddress": [ # Street-level part of the address. |
| 1236 | "A String", |
| 1237 | ], |
| 1238 | }, |
| 1239 | "locationCode": "A String", # Required. Code of the location defined by provider or merchant. |
| 1240 | "pickupLocationType": "A String", # Pickup location type. Acceptable values are: - "`locker`" - "`store`" - "`curbside`" |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1241 | "pickupPersons": [ # Required. all pickup persons set by users. |
| 1242 | { |
| 1243 | "name": "A String", # Required. Full name of the pickup person. |
| 1244 | "phoneNumber": "A String", # Required. The phone number of the person picking up the items. |
| 1245 | }, |
| 1246 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1247 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 1248 | "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. |
| 1249 | "currency": "A String", # The currency of the price. |
| 1250 | "value": "A String", # The price represented as a number. |
| 1251 | }, |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame^] | 1252 | "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`" |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 1253 | "shippingOption": "A String", # Required. The requested shipping option. Acceptable values are: - "`economy`" - "`expedited`" - "`oneDay`" - "`sameDay`" - "`standard`" - "`twoDay`" |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame^] | 1254 | "predefinedBillingAddress": "A String", # Required. The billing address. Acceptable values are: - "`dwight`" - "`jim`" - "`pam`" |
| 1255 | "notificationMode": "A String", # Restricted. Do not use. |
| 1256 | "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] | 1257 | }, |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame^] | 1258 | "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "content#ordersGetTestOrderTemplateResponse". |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 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 | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame^] | 1273 | "reasonText": "A String", # The explanation of the reason. |
| 1274 | "operationId": "A String", # The ID of the operation. Unique across all operations for a given order. |
| 1275 | "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. |
| 1276 | "quantity": 42, # The quantity to return and refund. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1277 | "priceAmount": { # The amount to be refunded. This may be pre-tax or post-tax depending on the location of the order. Required. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1278 | "currency": "A String", # The currency of the price. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 1279 | "value": "A String", # The price represented as a number. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1280 | }, |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame^] | 1281 | "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 | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 1282 | "taxAmount": { # The amount of tax to be refunded. Required. |
| 1283 | "currency": "A String", # The currency of the price. |
| 1284 | "value": "A String", # The price represented as a number. |
| 1285 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 1286 | "lineItemId": "A String", # The ID of the line item to return. Either lineItemId or productId is required. |
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 | { |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1298 | "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "content#ordersInStoreRefundLineItemResponse". |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame^] | 1299 | "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] | 1300 | }</pre> |
| 1301 | </div> |
| 1302 | |
| 1303 | <div class="method"> |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame^] | 1304 | <code class="details" id="list">list(merchantId, maxResults=None, acknowledged=None, statuses=None, orderBy=None, placedDateEnd=None, placedDateStart=None, pageToken=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) |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1309 | maxResults: integer, The maximum number of orders to return in the response, used for paging. The default value is 25 orders per page, and the maximum allowed value is 250 orders per page. |
| 1310 | acknowledged: boolean, Obtains orders that match the acknowledgement status. When set to true, obtains orders that have been acknowledged. When false, obtains orders that have not been acknowledged. We recommend using this filter set to `false`, in conjunction with the `acknowledge` call, such that only un-acknowledged orders are returned. |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 1311 | 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] | 1312 | Allowed values |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1313 | ACTIVE - |
| 1314 | COMPLETED - |
| 1315 | CANCELED - |
| 1316 | IN_PROGRESS - |
| 1317 | PENDING_SHIPMENT - |
| 1318 | PARTIALLY_SHIPPED - |
| 1319 | SHIPPED - |
| 1320 | PARTIALLY_DELIVERED - |
| 1321 | DELIVERED - |
| 1322 | PARTIALLY_RETURNED - |
| 1323 | RETURNED - |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame^] | 1324 | orderBy: string, Order results by placement date in descending or ascending order. Acceptable values are: - placedDateAsc - placedDateDesc |
| 1325 | placedDateEnd: string, Obtains orders placed before this date (exclusively), in ISO 8601 format. |
| 1326 | placedDateStart: string, Obtains orders placed after this date (inclusively), in ISO 8601 format. |
| 1327 | pageToken: string, The token returned by the previous request. |
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 | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 1337 | "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] | 1338 | "resources": [ |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1339 | { # Order. Production access (all methods) requires the order manager role. Sandbox access does not. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame^] | 1340 | "taxCollector": "A String", # The party responsible for collecting and remitting taxes. Acceptable values are: - "`marketplaceFacilitator`" - "`merchant`" |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 1341 | "lineItems": [ # Line items that are ordered. |
| 1342 | { |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame^] | 1343 | "quantityUndeliverable": 42, # Number of items undeliverable. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 1344 | "returnInfo": { # Details of the return policy for the line item. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 1345 | "daysToReturn": 42, # Required. How many days later the item can be returned. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame^] | 1346 | "isReturnable": True or False, # Required. Whether the item is returnable. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 1347 | "policyUrl": "A String", # Required. URL of the item return policy. |
| 1348 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 1349 | "quantityReadyForPickup": 42, # Number of items ready for pickup. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1350 | "annotations": [ # Annotations that are attached to the line item. |
| 1351 | { |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1352 | "value": "A String", # Value for additional merchant provided (as key-value pairs) annotation about the line item. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1353 | "key": "A String", # Key for additional merchant provided (as key-value pairs) annotation about the line item. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1354 | }, |
| 1355 | ], |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame^] | 1356 | "quantityDelivered": 42, # Number of items delivered. |
| 1357 | "cancellations": [ # Cancellations of the line item. |
| 1358 | { |
| 1359 | "actor": "A String", # The actor that created the cancellation. Acceptable values are: - "`customer`" - "`googleBot`" - "`googleCustomerService`" - "`googlePayments`" - "`googleSabre`" - "`merchant`" |
| 1360 | "creationDate": "A String", # Date on which the cancellation has been created, in ISO 8601 format. |
| 1361 | "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`" |
| 1362 | "reasonText": "A String", # The explanation of the reason. |
| 1363 | "quantity": 42, # The quantity that was canceled. |
| 1364 | }, |
| 1365 | ], |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1366 | "quantityCanceled": 42, # Number of items canceled. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame^] | 1367 | "quantityOrdered": 42, # Number of items ordered. |
| 1368 | "returns": [ # Returns of the line item. |
| 1369 | { |
| 1370 | "quantity": 42, # Quantity that is returned. |
| 1371 | "actor": "A String", # The actor that created the refund. Acceptable values are: - "`customer`" - "`googleBot`" - "`googleCustomerService`" - "`googlePayments`" - "`googleSabre`" - "`merchant`" |
| 1372 | "creationDate": "A String", # Date on which the item has been created, in ISO 8601 format. |
| 1373 | "reason": "A String", # The reason for the return. Acceptable values are: - "`customerDiscretionaryReturn`" - "`customerInitiatedMerchantCancel`" - "`deliveredTooLate`" - "`expiredItem`" - "`invalidCoupon`" - "`malformedShippingAddress`" - "`other`" - "`productArrivedDamaged`" - "`productNotAsDescribed`" - "`qualityNotAsExpected`" - "`undeliverableShippingAddress`" - "`unsupportedPoBoxAddress`" - "`wrongProductShipped`" |
| 1374 | "reasonText": "A String", # The explanation of the reason. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1375 | }, |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame^] | 1376 | ], |
| 1377 | "quantityPending": 42, # Number of items pending. |
| 1378 | "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. |
| 1379 | "currency": "A String", # The currency of the price. |
| 1380 | "value": "A String", # The price represented as a number. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1381 | }, |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame^] | 1382 | "quantityShipped": 42, # Number of items shipped. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1383 | "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. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame^] | 1384 | "title": "A String", # The title of the product. |
| 1385 | "imageLink": "A String", # URL of an image of the item. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 1386 | "itemGroupId": "A String", # Shared identifier for all variants of the same product. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 1387 | "brand": "A String", # Brand of the item. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame^] | 1388 | "shownImage": "A String", # URL to the cached image shown to the user when order was placed. |
| 1389 | "id": "A String", # The REST ID of the product. |
| 1390 | "mpn": "A String", # Manufacturer Part Number (MPN) of the item. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1391 | "fees": [ # Associated fees at order creation time. |
| 1392 | { |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame^] | 1393 | "name": "A String", # Name of the fee. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1394 | "amount": { # Amount of the fee. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1395 | "currency": "A String", # The currency of the price. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 1396 | "value": "A String", # The price represented as a number. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1397 | }, |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1398 | }, |
| 1399 | ], |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame^] | 1400 | "offerId": "A String", # An identifier of the item. |
| 1401 | "gtin": "A String", # Global Trade Item Number (GTIN) of the item. |
| 1402 | "targetCountry": "A String", # The CLDR territory // code of the target country of the product. |
| 1403 | "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. |
| 1404 | { |
| 1405 | "value": "A String", # The value for the dimension. |
| 1406 | "dimension": "A String", # The dimension of the variant. |
| 1407 | }, |
| 1408 | ], |
| 1409 | "condition": "A String", # Condition or state of the item. Acceptable values are: - "`new`" - "`refurbished`" - "`used`" |
| 1410 | "price": { # Price of the item. |
| 1411 | "currency": "A String", # The currency of the price. |
| 1412 | "value": "A String", # The price represented as a number. |
| 1413 | }, |
| 1414 | "contentLanguage": "A String", # The two-letter ISO 639-1 language code for the item. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1415 | }, |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame^] | 1416 | "shippingDetails": { # Details of the requested shipping for the line item. |
| 1417 | "shipByDate": "A String", # Required. The ship by date, in ISO 8601 format. |
| 1418 | "type": "A String", # Type of shipment. Indicates whether `deliveryDetails` or `pickupDetails` is applicable for this shipment. Acceptable values are: - "`delivery`" - "`pickup`" |
| 1419 | "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. |
| 1420 | "deliverByDate": "A String", # Required. The delivery by date, in ISO 8601 format. |
| 1421 | "method": { # Required. Details of the shipping method. |
| 1422 | "methodName": "A String", # Required. The name of the shipping method. |
| 1423 | "minDaysInTransit": 42, # Required. Minimum transit time. |
| 1424 | "carrier": "A String", # The carrier for the shipping. Optional. See `shipments[].carrier` for a list of acceptable values. |
| 1425 | "maxDaysInTransit": 42, # Required. Maximum transit time. |
| 1426 | }, |
| 1427 | }, |
| 1428 | "price": { # Total price for the line item. For example, if two items for $10 are purchased, the total price will be $20. |
| 1429 | "currency": "A String", # The currency of the price. |
| 1430 | "value": "A String", # The price represented as a number. |
| 1431 | }, |
| 1432 | "id": "A String", # The ID of the line item. |
| 1433 | "quantityReturned": 42, # Number of items returned. |
| 1434 | "adjustments": [ # Price and tax adjustments applied on the line item. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1435 | { |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame^] | 1436 | "type": "A String", # Type of this adjustment. Acceptable values are: - "`promotion`" |
| 1437 | "taxAdjustment": { # Adjustment for total tax of the line item. |
| 1438 | "currency": "A String", # The currency of the price. |
| 1439 | "value": "A String", # The price represented as a number. |
| 1440 | }, |
| 1441 | "priceAdjustment": { # Adjustment for total price of the line item. |
| 1442 | "currency": "A String", # The currency of the price. |
| 1443 | "value": "A String", # The price represented as a number. |
| 1444 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1445 | }, |
| 1446 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1447 | }, |
| 1448 | ], |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame^] | 1449 | "id": "A String", # The REST ID of the order. Globally unique. |
| 1450 | "shippingCost": { # The total cost of shipping for all items. |
| 1451 | "currency": "A String", # The currency of the price. |
| 1452 | "value": "A String", # The price represented as a number. |
| 1453 | }, |
| 1454 | "refunds": [ # Refunds for the order. |
| 1455 | { |
| 1456 | "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`" |
| 1457 | "creationDate": "A String", # Date on which the item has been created, in ISO 8601 format. |
| 1458 | "amount": { # The amount that is refunded. |
| 1459 | "currency": "A String", # The currency of the price. |
| 1460 | "value": "A String", # The price represented as a number. |
| 1461 | }, |
| 1462 | "actor": "A String", # The actor that created the refund. Acceptable values are: - "`customer`" - "`googleBot`" - "`googleCustomerService`" - "`googlePayments`" - "`googleSabre`" - "`merchant`" |
| 1463 | "reasonText": "A String", # The explanation of the reason. |
| 1464 | }, |
| 1465 | ], |
| 1466 | "status": "A String", # The status of the order. Acceptable values are: - "`canceled`" - "`delivered`" - "`inProgress`" - "`partiallyDelivered`" - "`partiallyReturned`" - "`partiallyShipped`" - "`pendingShipment`" - "`returned`" - "`shipped`" |
| 1467 | "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. |
| 1468 | { |
| 1469 | "funder": "A String", # Required. The party funding the promotion. Only `merchant` is supported for `orders.createtestorder`. Acceptable values are: - "`google`" - "`merchant`" |
| 1470 | "merchantPromotionId": "A String", # Required. This field is used to identify promotions within merchants' own systems. |
| 1471 | "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". |
| 1472 | "taxValue": { # Estimated discount applied to tax (if allowed by law). Do not provide for `orders.createtestorder`. |
| 1473 | "currency": "A String", # The currency of the price. |
| 1474 | "value": "A String", # The price represented as a number. |
| 1475 | }, |
| 1476 | "priceValue": { # Estimated discount applied to price. Amount is pre-tax or post-tax depending on location of order. |
| 1477 | "currency": "A String", # The currency of the price. |
| 1478 | "value": "A String", # The price represented as a number. |
| 1479 | }, |
| 1480 | "shortTitle": "A String", # A short title of the promotion to be shown on the checkout page. Do not provide for `orders.createtestorder`. |
| 1481 | "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. |
| 1482 | { |
| 1483 | "quantity": 42, # The quantity of the associated product. Do not provide for `orders.createtestorder`. |
| 1484 | "lineItemId": "A String", # The line item ID of a product. Do not provide for `orders.createtestorder`. |
| 1485 | "productId": "A String", # `orders.createtestorder`. |
| 1486 | "offerId": "A String", # Required. Offer ID of a product. Only for `orders.createtestorder`. |
| 1487 | }, |
| 1488 | ], |
| 1489 | "title": "A String", # Required. The title of the promotion. |
| 1490 | "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". |
| 1491 | "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. |
| 1492 | { |
| 1493 | "quantity": 42, # The quantity of the associated product. Do not provide for `orders.createtestorder`. |
| 1494 | "lineItemId": "A String", # The line item ID of a product. Do not provide for `orders.createtestorder`. |
| 1495 | "productId": "A String", # `orders.createtestorder`. |
| 1496 | "offerId": "A String", # Required. Offer ID of a product. Only for `orders.createtestorder`. |
| 1497 | }, |
| 1498 | ], |
| 1499 | "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`" |
| 1500 | "type": "A String", # Required. The scope of the promotion. Only `product` is supported for `orders.createtestorder`. Acceptable values are: - "`product`" - "`shipping`" |
| 1501 | }, |
| 1502 | ], |
| 1503 | "placedDate": "A String", # The date when the order was placed, in ISO 8601 format. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1504 | "shippingCostTax": { # The tax for the total shipping cost. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1505 | "currency": "A String", # The currency of the price. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1506 | "value": "A String", # The price represented as a number. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1507 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 1508 | "acknowledged": True or False, # Whether the order was acknowledged. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame^] | 1509 | "customer": { # The details of the customer who placed the order. |
| 1510 | "loyaltyInfo": { # Loyalty program information. |
| 1511 | "loyaltyNumber": "A String", # The loyalty card/membership number. |
| 1512 | "name": "A String", # Name of card/membership holder, this field will be populated when |
| 1513 | }, |
| 1514 | "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. |
| 1515 | "fullName": "A String", # Full name of the customer. |
| 1516 | "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. |
| 1517 | "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. |
| 1518 | "lastUpdatedTimestamp": "A String", # Timestamp when last time marketing preference was updated. Could be empty, if user wasn't offered a selection yet. |
| 1519 | "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`" |
| 1520 | }, |
| 1521 | }, |
| 1522 | "billingAddress": { # The billing address. |
| 1523 | "postalCode": "A String", # Postal Code or ZIP (e.g. "94043"). |
| 1524 | "streetAddress": [ # Street-level part of the address. |
| 1525 | "A String", |
| 1526 | ], |
| 1527 | "country": "A String", # CLDR country code (e.g. "US"). |
| 1528 | "locality": "A String", # City, town or commune. May also include dependent localities or sublocalities (e.g. neighborhoods or suburbs). |
| 1529 | "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 |
| 1530 | "A String", |
| 1531 | ], |
| 1532 | "recipientName": "A String", # Name of the recipient. |
| 1533 | "region": "A String", # Top-level administrative subdivision of the country. For example, a state like California ("CA") or a province like Quebec ("QC"). |
| 1534 | "isPostOfficeBox": True or False, # Whether the address is a post office box. |
| 1535 | }, |
| 1536 | "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. |
| 1537 | "currency": "A String", # The currency of the price. |
| 1538 | "value": "A String", # The price represented as a number. |
| 1539 | }, |
| 1540 | "deliveryDetails": { # Delivery details for shipments of type `delivery`. |
| 1541 | "address": { # The delivery address |
| 1542 | "postalCode": "A String", # Postal Code or ZIP (e.g. "94043"). |
| 1543 | "streetAddress": [ # Street-level part of the address. |
| 1544 | "A String", |
| 1545 | ], |
| 1546 | "country": "A String", # CLDR country code (e.g. "US"). |
| 1547 | "locality": "A String", # City, town or commune. May also include dependent localities or sublocalities (e.g. neighborhoods or suburbs). |
| 1548 | "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 |
| 1549 | "A String", |
| 1550 | ], |
| 1551 | "recipientName": "A String", # Name of the recipient. |
| 1552 | "region": "A String", # Top-level administrative subdivision of the country. For example, a state like California ("CA") or a province like Quebec ("QC"). |
| 1553 | "isPostOfficeBox": True or False, # Whether the address is a post office box. |
| 1554 | }, |
| 1555 | "phoneNumber": "A String", # The phone number of the person receiving the delivery. |
| 1556 | }, |
| 1557 | "paymentStatus": "A String", # The status of the payment. Acceptable values are: - "`paymentCaptured`" - "`paymentRejected`" - "`paymentSecured`" - "`pendingAuthorization`" |
| 1558 | "shipments": [ # Shipments of the order. |
| 1559 | { |
| 1560 | "status": "A String", # The status of the shipment. Acceptable values are: - "`delivered`" - "`readyForPickup`" - "`shipped`" - "`undeliverable`" |
| 1561 | "lineItems": [ # The line items that are shipped. |
| 1562 | { |
| 1563 | "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. |
| 1564 | "quantity": 42, # The quantity that is shipped. |
| 1565 | "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. |
| 1566 | }, |
| 1567 | ], |
| 1568 | "creationDate": "A String", # Date on which the shipment has been created, in ISO 8601 format. |
| 1569 | "trackingId": "A String", # The tracking ID for the shipment. |
| 1570 | "scheduledDeliveryDetails": { # Delivery details of the shipment if scheduling is needed. |
| 1571 | "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"). |
| 1572 | "scheduledDate": "A String", # The date a shipment is scheduled for delivery, in ISO 8601 format. |
| 1573 | }, |
| 1574 | "id": "A String", # The ID of the shipment. |
| 1575 | "shipmentGroupId": "A String", # The shipment group ID of the shipment. This is set in shiplineitems request. |
| 1576 | "deliveryDate": "A String", # Date on which the shipment has been delivered, in ISO 8601 format. Present only if `status` is `delivered` |
| 1577 | "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) |
| 1578 | }, |
| 1579 | ], |
| 1580 | "pickupDetails": { # Pickup details for shipments of type `pickup`. |
| 1581 | "collectors": [ # Collectors authorized to pick up shipment from the pickup location. |
| 1582 | { |
| 1583 | "phoneNumber": "A String", # Phone number of the person picking up the shipment. |
| 1584 | "name": "A String", # Name of the person picking up the shipment. |
| 1585 | }, |
| 1586 | ], |
| 1587 | "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. |
| 1588 | "postalCode": "A String", # Postal Code or ZIP (e.g. "94043"). |
| 1589 | "streetAddress": [ # Street-level part of the address. |
| 1590 | "A String", |
| 1591 | ], |
| 1592 | "country": "A String", # CLDR country code (e.g. "US"). |
| 1593 | "locality": "A String", # City, town or commune. May also include dependent localities or sublocalities (e.g. neighborhoods or suburbs). |
| 1594 | "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 |
| 1595 | "A String", |
| 1596 | ], |
| 1597 | "recipientName": "A String", # Name of the recipient. |
| 1598 | "region": "A String", # Top-level administrative subdivision of the country. For example, a state like California ("CA") or a province like Quebec ("QC"). |
| 1599 | "isPostOfficeBox": True or False, # Whether the address is a post office box. |
| 1600 | }, |
| 1601 | "locationId": "A String", # ID of the pickup location. |
| 1602 | "pickupType": "A String", # The pickup type of this order. Acceptable values are: - "`merchantStore`" - "`merchantStoreCurbside`" - "`merchantStoreLocker`" - "`thirdPartyPickupPoint`" - "`thirdPartyLocker`" |
| 1603 | }, |
| 1604 | "merchantOrderId": "A String", # Merchant-provided ID of the order. |
| 1605 | "merchantId": "A String", |
| 1606 | "annotations": [ # List of key-value pairs that are attached to a given order. |
| 1607 | { |
| 1608 | "value": "A String", # Value for additional google provided (as key-value pairs) annotation. |
| 1609 | "key": "A String", # Key for additional google provided (as key-value pairs) annotation. |
| 1610 | }, |
| 1611 | ], |
| 1612 | "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "`content#order`" |
| 1613 | "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. |
| 1614 | "currency": "A String", # The currency of the price. |
| 1615 | "value": "A String", # The price represented as a number. |
| 1616 | }, |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1617 | }, |
| 1618 | ], |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame^] | 1619 | "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "content#ordersListResponse". |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 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 | { |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1648 | "shipping": { # The refund on shipping. Optional, but either Item or Shipping must be provided in the request. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame^] | 1649 | "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. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1650 | "amount": { # The amount that is refunded. If this is not the first refund for the shipment, this should be the newly refunded amount. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1651 | "currency": "A String", # The currency of the price. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 1652 | "value": "A String", # The price represented as a number. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1653 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1654 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 1655 | "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 | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame^] | 1656 | "reasonText": "A String", # The explanation of the reason. |
| 1657 | "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] | 1658 | "items": [ # The items that are refunded. Either Item or Shipping must be provided in the request. |
| 1659 | { |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame^] | 1660 | "quantity": 42, # The number of products that are refunded. |
| 1661 | "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. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 1662 | "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 | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame^] | 1663 | "lineItemId": "A String", # The ID of the line item. Either lineItemId or productId is required. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 1664 | "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 | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 1665 | "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 . |
| 1666 | "currency": "A String", # The currency of the price. |
| 1667 | "value": "A String", # The price represented as a number. |
| 1668 | }, |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame^] | 1669 | "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`. |
| 1670 | "currency": "A String", # The currency of the price. |
| 1671 | "value": "A String", # The price represented as a number. |
| 1672 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 1673 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 1674 | }, |
| 1675 | ], |
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 | { |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1687 | "executionStatus": "A String", # The status of the execution. Acceptable values are: - "`duplicate`" - "`executed`" |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame^] | 1688 | "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "content#ordersRefundItemResponse". |
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 | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame^] | 1703 | "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] | 1704 | "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. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame^] | 1705 | "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] | 1706 | "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^] | 1707 | "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 . |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1708 | "currency": "A String", # The currency of the price. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 1709 | "value": "A String", # The price represented as a number. |
| 1710 | }, |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame^] | 1711 | "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] | 1712 | "currency": "A String", # The currency of the price. |
| 1713 | "value": "A String", # The price represented as a number. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1714 | }, |
| 1715 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1716 | "reasonText": "A String", # The explanation of the reason. |
| 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 | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame^] | 1744 | "lineItemId": "A String", # The ID of the line item to return. Either lineItemId or productId is required. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 1745 | "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. |
| 1746 | "quantity": 42, # The quantity to return and refund. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1747 | "reasonText": "A String", # The explanation of the reason. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1748 | "operationId": "A String", # The ID of the operation. Unique across all operations for a given order. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame^] | 1749 | "reason": "A String", # The reason for the return. Acceptable values are: - "`damagedOrUsed`" - "`missingComponent`" - "`notEligible`" - "`other`" - "`outOfReturnWindow`" |
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 | { |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1761 | "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "content#ordersRejectReturnLineItemResponse". |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48: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 | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame^] | 1777 | "lineItemId": "A String", # The ID of the line item to return. Either lineItemId or productId is required. |
| 1778 | "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] | 1779 | "reasonText": "A String", # The explanation of the reason. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame^] | 1780 | "reason": "A String", # The reason for the return. Acceptable values are: - "`customerDiscretionaryReturn`" - "`customerInitiatedMerchantCancel`" - "`deliveredTooLate`" - "`expiredItem`" - "`invalidCoupon`" - "`malformedShippingAddress`" - "`other`" - "`productArrivedDamaged`" - "`productNotAsDescribed`" - "`qualityNotAsExpected`" - "`undeliverableShippingAddress`" - "`unsupportedPoBoxAddress`" - "`wrongProductShipped`" |
| 1781 | "quantity": 42, # The quantity to return and refund. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1782 | "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. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1783 | "currency": "A String", # The currency of the price. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 1784 | "value": "A String", # The price represented as a number. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1785 | }, |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame^] | 1786 | "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. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1787 | "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] | 1788 | "currency": "A String", # The currency of the price. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 1789 | "value": "A String", # The price represented as a number. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1790 | }, |
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 | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 1802 | "executionStatus": "A String", # The status of the execution. Acceptable values are: - "`duplicate`" - "`executed`" |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -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 | { |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1820 | "value": "A String", # Value for additional merchant provided (as key-value pairs) annotation about the line item. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [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 | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame^] | 1824 | "lineItemId": "A String", # The ID of the line item to set metadata. Either lineItemId or productId is required. |
| 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. |
| 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 | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 1838 | "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "content#ordersSetLineItemMetadataResponse". |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame^] | 1839 | "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] | 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 | { |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 1854 | "operationId": "A String", # The ID of the operation. Unique across all operations for a given order. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame^] | 1855 | "shipmentGroupId": "A String", # ID of the shipment group. Required for orders that use the orderinvoices service. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1856 | "lineItems": [ # Line items to ship. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1857 | { |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1858 | "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 | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 1859 | "quantity": 42, # The quantity that is shipped. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame^] | 1860 | "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] | 1861 | }, |
| 1862 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1863 | "shipmentInfos": [ # Shipment information. This field is repeated because a single line item can be shipped in several packages (and have several tracking IDs). |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1864 | { |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 1865 | "carrier": "A String", # The carrier handling the shipment. See `shipments[].carrier` in the Orders resource representation for a list of acceptable values. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1866 | "trackingId": "A String", # The tracking ID for the shipment. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1867 | "shipmentId": "A String", # Required. The ID of the shipment. This is assigned by the merchant and is unique to each shipment. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 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 | { |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1881 | "executionStatus": "A String", # The status of the execution. Acceptable values are: - "`duplicate`" - "`executed`" |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -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 | { |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1897 | "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 | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 1898 | "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. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame^] | 1899 | "lineItemId": "A String", # The ID of the line item to set metadata. Either lineItemId or productId is required. |
| 1900 | "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. |
| 1901 | "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] | 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 | { |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1929 | "merchantOrderId": "A String", # The merchant order id to be assigned to the order. Must be unique per merchant. |
| 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 | { |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1942 | "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "content#ordersUpdateMerchantOrderIdResponse". |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 1943 | "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] | 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 | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame^] | 1958 | "status": "A String", # New status for the shipment. Not updated if missing. Acceptable values are: - "`delivered`" - "`undeliverable`" - "`readyForPickup`" |
| 1959 | "shipmentId": "A String", # The ID of the shipment. |
| 1960 | "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`. |
| 1961 | "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`. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 1962 | "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 | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1963 | "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 | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame^] | 1964 | "trackingId": "A String", # The tracking ID for the shipment. Not updated if missing. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 1965 | "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 | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame^] | 1966 | "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] | 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 | { |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1978 | "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "content#ordersUpdateShipmentResponse". |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame^] | 1979 | "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] | 1980 | }</pre> |
| 1981 | </div> |
| 1982 | |
| 1983 | </body></html> |