| 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.html">Content API for Shopping</a> . <a href="content_v2.pos.html">pos</a></h1> |
| 76 |
<h2>Instance Methods</h2> |
| 77 |
<p class="toc_element"> |
| 78 |
<code><a href="#close">close()</a></code></p> |
| 79 |
<p class="firstline">Close httplib2 connections.</p> |
| 80 |
<p class="toc_element"> |
| 81 |
<code><a href="#custombatch">custombatch(body=None, dryRun=None, x__xgafv=None)</a></code></p> |
| 82 |
<p class="firstline">Batches multiple POS-related calls in a single request.</p> |
| 83 |
<p class="toc_element"> |
| 84 |
<code><a href="#delete">delete(merchantId, targetMerchantId, storeCode, dryRun=None, x__xgafv=None)</a></code></p> |
| 85 |
<p class="firstline">Deletes a store for the given merchant.</p> |
| 86 |
<p class="toc_element"> |
| 87 |
<code><a href="#get">get(merchantId, targetMerchantId, storeCode, x__xgafv=None)</a></code></p> |
| 88 |
<p class="firstline">Retrieves information about the given store.</p> |
| 89 |
<p class="toc_element"> |
| 90 |
<code><a href="#insert">insert(merchantId, targetMerchantId, body=None, dryRun=None, x__xgafv=None)</a></code></p> |
| 91 |
<p class="firstline">Creates a store for the given merchant.</p> |
| 92 |
<p class="toc_element"> |
| 93 |
<code><a href="#inventory">inventory(merchantId, targetMerchantId, body=None, dryRun=None, x__xgafv=None)</a></code></p> |
| 94 |
<p class="firstline">Submit inventory for the given merchant.</p> |
| 95 |
<p class="toc_element"> |
| 96 |
<code><a href="#list">list(merchantId, targetMerchantId, x__xgafv=None)</a></code></p> |
| 97 |
<p class="firstline">Lists the stores of the target merchant.</p> |
| 98 |
<p class="toc_element"> |
| 99 |
<code><a href="#sale">sale(merchantId, targetMerchantId, body=None, dryRun=None, x__xgafv=None)</a></code></p> |
| 100 |
<p class="firstline">Submit a sale event for the given merchant.</p> |
| 101 |
<h3>Method Details</h3> |
| 102 |
<div class="method"> |
| 103 |
<code class="details" id="close">close()</code> |
| 104 |
<pre>Close httplib2 connections.</pre> |
| 105 |
</div> |
| 106 |
|
| 107 |
<div class="method"> |
| 108 |
<code class="details" id="custombatch">custombatch(body=None, dryRun=None, x__xgafv=None)</code> |
| 109 |
<pre>Batches multiple POS-related calls in a single request. |
| 110 |
|
| 111 |
Args: |
| 112 |
body: object, The request body. |
| 113 |
The object takes the form of: |
| 114 |
|
| 115 |
{ |
| 116 |
"entries": [ # The request entries to be processed in the batch. |
| 117 |
{ |
| 118 |
"batchId": 42, # An entry ID, unique within the batch request. |
| 119 |
"inventory": { # The absolute quantity of an item available at the given store. # The inventory to submit. This should be set only if the method is `inventory`. |
| 120 |
"contentLanguage": "A String", # Required. The two-letter ISO 639-1 language code for the item. |
| 121 |
"gtin": "A String", # Global Trade Item Number. |
| 122 |
"itemId": "A String", # Required. A unique identifier for the item. |
| 123 |
"kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "`content#posInventory`" |
| 124 |
"price": { # Required. The current price of the item. |
| 125 |
"currency": "A String", # The currency of the price. |
| 126 |
"value": "A String", # The price represented as a number. |
| 127 |
}, |
| 128 |
"quantity": "A String", # Required. The available quantity of the item. |
| 129 |
"storeCode": "A String", # Required. The identifier of the merchant's store. Either a `storeCode` inserted via the API or the code of the store in Google My Business. |
| 130 |
"targetCountry": "A String", # Required. The CLDR territory code for the item. |
| 131 |
"timestamp": "A String", # Required. The inventory timestamp, in ISO 8601 format. |
| 132 |
}, |
| 133 |
"merchantId": "A String", # The ID of the POS data provider. |
| 134 |
"method": "A String", # The method of the batch entry. Acceptable values are: - "`delete`" - "`get`" - "`insert`" - "`inventory`" - "`sale`" |
| 135 |
"sale": { # The change of the available quantity of an item at the given store. # The sale information to submit. This should be set only if the method is `sale`. |
| 136 |
"contentLanguage": "A String", # Required. The two-letter ISO 639-1 language code for the item. |
| 137 |
"gtin": "A String", # Global Trade Item Number. |
| 138 |
"itemId": "A String", # Required. A unique identifier for the item. |
| 139 |
"kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "`content#posSale`" |
| 140 |
"price": { # Required. The price of the item. |
| 141 |
"currency": "A String", # The currency of the price. |
| 142 |
"value": "A String", # The price represented as a number. |
| 143 |
}, |
| 144 |
"quantity": "A String", # Required. The relative change of the available quantity. Negative for items returned. |
| 145 |
"saleId": "A String", # A unique ID to group items from the same sale event. |
| 146 |
"storeCode": "A String", # Required. The identifier of the merchant's store. Either a `storeCode` inserted via the API or the code of the store in Google My Business. |
| 147 |
"targetCountry": "A String", # Required. The CLDR territory code for the item. |
| 148 |
"timestamp": "A String", # Required. The inventory timestamp, in ISO 8601 format. |
| 149 |
}, |
| 150 |
"store": { # Store resource. # The store information to submit. This should be set only if the method is `insert`. |
| 151 |
"gcidCategory": [ # The business type of the store. |
| 152 |
"A String", |
| 153 |
], |
| 154 |
"kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "`content#posStore`" |
| 155 |
"phoneNumber": "A String", # The store phone number. |
| 156 |
"placeId": "A String", # The Google Place Id of the store location. |
| 157 |
"storeAddress": "A String", # Required. The street address of the store. |
| 158 |
"storeCode": "A String", # Required. A store identifier that is unique for the given merchant. |
| 159 |
"storeName": "A String", # The merchant or store name. |
| 160 |
"websiteUrl": "A String", # The website url for the store or merchant. |
| 161 |
}, |
| 162 |
"storeCode": "A String", # The store code. This should be set only if the method is `delete` or `get`. |
| 163 |
"targetMerchantId": "A String", # The ID of the account for which to get/submit data. |
| 164 |
}, |
| 165 |
], |
| 166 |
} |
| 167 |
|
| 168 |
dryRun: boolean, Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the validity of the request and returns errors (if any). |
| 169 |
x__xgafv: string, V1 error format. |
| 170 |
Allowed values |
| 171 |
1 - v1 error format |
| 172 |
2 - v2 error format |
| 173 |
|
| 174 |
Returns: |
| 175 |
An object of the form: |
| 176 |
|
| 177 |
{ |
| 178 |
"entries": [ # The result of the execution of the batch requests. |
| 179 |
{ |
| 180 |
"batchId": 42, # The ID of the request entry to which this entry responds. |
| 181 |
"errors": { # A list of errors returned by a failed batch entry. # A list of errors defined if, and only if, the request failed. |
| 182 |
"code": 42, # The HTTP status of the first error in `errors`. |
| 183 |
"errors": [ # A list of errors. |
| 184 |
{ # An error returned by the API. |
| 185 |
"domain": "A String", # The domain of the error. |
| 186 |
"message": "A String", # A description of the error. |
| 187 |
"reason": "A String", # The error code. |
| 188 |
}, |
| 189 |
], |
| 190 |
"message": "A String", # The message of the first error in `errors`. |
| 191 |
}, |
| 192 |
"inventory": { # The absolute quantity of an item available at the given store. # The updated inventory information. |
| 193 |
"contentLanguage": "A String", # Required. The two-letter ISO 639-1 language code for the item. |
| 194 |
"gtin": "A String", # Global Trade Item Number. |
| 195 |
"itemId": "A String", # Required. A unique identifier for the item. |
| 196 |
"kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "`content#posInventory`" |
| 197 |
"price": { # Required. The current price of the item. |
| 198 |
"currency": "A String", # The currency of the price. |
| 199 |
"value": "A String", # The price represented as a number. |
| 200 |
}, |
| 201 |
"quantity": "A String", # Required. The available quantity of the item. |
| 202 |
"storeCode": "A String", # Required. The identifier of the merchant's store. Either a `storeCode` inserted via the API or the code of the store in Google My Business. |
| 203 |
"targetCountry": "A String", # Required. The CLDR territory code for the item. |
| 204 |
"timestamp": "A String", # Required. The inventory timestamp, in ISO 8601 format. |
| 205 |
}, |
| 206 |
"kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "`content#posCustomBatchResponseEntry`" |
| 207 |
"sale": { # The change of the available quantity of an item at the given store. # The updated sale information. |
| 208 |
"contentLanguage": "A String", # Required. The two-letter ISO 639-1 language code for the item. |
| 209 |
"gtin": "A String", # Global Trade Item Number. |
| 210 |
"itemId": "A String", # Required. A unique identifier for the item. |
| 211 |
"kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "`content#posSale`" |
| 212 |
"price": { # Required. The price of the item. |
| 213 |
"currency": "A String", # The currency of the price. |
| 214 |
"value": "A String", # The price represented as a number. |
| 215 |
}, |
| 216 |
"quantity": "A String", # Required. The relative change of the available quantity. Negative for items returned. |
| 217 |
"saleId": "A String", # A unique ID to group items from the same sale event. |
| 218 |
"storeCode": "A String", # Required. The identifier of the merchant's store. Either a `storeCode` inserted via the API or the code of the store in Google My Business. |
| 219 |
"targetCountry": "A String", # Required. The CLDR territory code for the item. |
| 220 |
"timestamp": "A String", # Required. The inventory timestamp, in ISO 8601 format. |
| 221 |
}, |
| 222 |
"store": { # Store resource. # The retrieved or updated store information. |
| 223 |
"gcidCategory": [ # The business type of the store. |
| 224 |
"A String", |
| 225 |
], |
| 226 |
"kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "`content#posStore`" |
| 227 |
"phoneNumber": "A String", # The store phone number. |
| 228 |
"placeId": "A String", # The Google Place Id of the store location. |
| 229 |
"storeAddress": "A String", # Required. The street address of the store. |
| 230 |
"storeCode": "A String", # Required. A store identifier that is unique for the given merchant. |
| 231 |
"storeName": "A String", # The merchant or store name. |
| 232 |
"websiteUrl": "A String", # The website url for the store or merchant. |
| 233 |
}, |
| 234 |
}, |
| 235 |
], |
| 236 |
"kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "content#posCustomBatchResponse". |
| 237 |
}</pre> |
| 238 |
</div> |
| 239 |
|
| 240 |
<div class="method"> |
| 241 |
<code class="details" id="delete">delete(merchantId, targetMerchantId, storeCode, dryRun=None, x__xgafv=None)</code> |
| 242 |
<pre>Deletes a store for the given merchant. |
| 243 |
|
| 244 |
Args: |
| 245 |
merchantId: string, The ID of the POS or inventory data provider. (required) |
| 246 |
targetMerchantId: string, The ID of the target merchant. (required) |
| 247 |
storeCode: string, A store code that is unique per merchant. (required) |
| 248 |
dryRun: boolean, Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the validity of the request and returns errors (if any). |
| 249 |
x__xgafv: string, V1 error format. |
| 250 |
Allowed values |
| 251 |
1 - v1 error format |
| 252 |
2 - v2 error format |
| 253 |
</pre> |
| 254 |
</div> |
| 255 |
|
| 256 |
<div class="method"> |
| 257 |
<code class="details" id="get">get(merchantId, targetMerchantId, storeCode, x__xgafv=None)</code> |
| 258 |
<pre>Retrieves information about the given store. |
| 259 |
|
| 260 |
Args: |
| 261 |
merchantId: string, The ID of the POS or inventory data provider. (required) |
| 262 |
targetMerchantId: string, The ID of the target merchant. (required) |
| 263 |
storeCode: string, A store code that is unique per merchant. (required) |
| 264 |
x__xgafv: string, V1 error format. |
| 265 |
Allowed values |
| 266 |
1 - v1 error format |
| 267 |
2 - v2 error format |
| 268 |
|
| 269 |
Returns: |
| 270 |
An object of the form: |
| 271 |
|
| 272 |
{ # Store resource. |
| 273 |
"gcidCategory": [ # The business type of the store. |
| 274 |
"A String", |
| 275 |
], |
| 276 |
"kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "`content#posStore`" |
| 277 |
"phoneNumber": "A String", # The store phone number. |
| 278 |
"placeId": "A String", # The Google Place Id of the store location. |
| 279 |
"storeAddress": "A String", # Required. The street address of the store. |
| 280 |
"storeCode": "A String", # Required. A store identifier that is unique for the given merchant. |
| 281 |
"storeName": "A String", # The merchant or store name. |
| 282 |
"websiteUrl": "A String", # The website url for the store or merchant. |
| 283 |
}</pre> |
| 284 |
</div> |
| 285 |
|
| 286 |
<div class="method"> |
| 287 |
<code class="details" id="insert">insert(merchantId, targetMerchantId, body=None, dryRun=None, x__xgafv=None)</code> |
| 288 |
<pre>Creates a store for the given merchant. |
| 289 |
|
| 290 |
Args: |
| 291 |
merchantId: string, The ID of the POS or inventory data provider. (required) |
| 292 |
targetMerchantId: string, The ID of the target merchant. (required) |
| 293 |
body: object, The request body. |
| 294 |
The object takes the form of: |
| 295 |
|
| 296 |
{ # Store resource. |
| 297 |
"gcidCategory": [ # The business type of the store. |
| 298 |
"A String", |
| 299 |
], |
| 300 |
"kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "`content#posStore`" |
| 301 |
"phoneNumber": "A String", # The store phone number. |
| 302 |
"placeId": "A String", # The Google Place Id of the store location. |
| 303 |
"storeAddress": "A String", # Required. The street address of the store. |
| 304 |
"storeCode": "A String", # Required. A store identifier that is unique for the given merchant. |
| 305 |
"storeName": "A String", # The merchant or store name. |
| 306 |
"websiteUrl": "A String", # The website url for the store or merchant. |
| 307 |
} |
| 308 |
|
| 309 |
dryRun: boolean, Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the validity of the request and returns errors (if any). |
| 310 |
x__xgafv: string, V1 error format. |
| 311 |
Allowed values |
| 312 |
1 - v1 error format |
| 313 |
2 - v2 error format |
| 314 |
|
| 315 |
Returns: |
| 316 |
An object of the form: |
| 317 |
|
| 318 |
{ # Store resource. |
| 319 |
"gcidCategory": [ # The business type of the store. |
| 320 |
"A String", |
| 321 |
], |
| 322 |
"kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "`content#posStore`" |
| 323 |
"phoneNumber": "A String", # The store phone number. |
| 324 |
"placeId": "A String", # The Google Place Id of the store location. |
| 325 |
"storeAddress": "A String", # Required. The street address of the store. |
| 326 |
"storeCode": "A String", # Required. A store identifier that is unique for the given merchant. |
| 327 |
"storeName": "A String", # The merchant or store name. |
| 328 |
"websiteUrl": "A String", # The website url for the store or merchant. |
| 329 |
}</pre> |
| 330 |
</div> |
| 331 |
|
| 332 |
<div class="method"> |
| 333 |
<code class="details" id="inventory">inventory(merchantId, targetMerchantId, body=None, dryRun=None, x__xgafv=None)</code> |
| 334 |
<pre>Submit inventory for the given merchant. |
| 335 |
|
| 336 |
Args: |
| 337 |
merchantId: string, The ID of the POS or inventory data provider. (required) |
| 338 |
targetMerchantId: string, The ID of the target merchant. (required) |
| 339 |
body: object, The request body. |
| 340 |
The object takes the form of: |
| 341 |
|
| 342 |
{ |
| 343 |
"contentLanguage": "A String", # Required. The two-letter ISO 639-1 language code for the item. |
| 344 |
"gtin": "A String", # Global Trade Item Number. |
| 345 |
"itemId": "A String", # Required. A unique identifier for the item. |
| 346 |
"price": { # Required. The current price of the item. |
| 347 |
"currency": "A String", # The currency of the price. |
| 348 |
"value": "A String", # The price represented as a number. |
| 349 |
}, |
| 350 |
"quantity": "A String", # Required. The available quantity of the item. |
| 351 |
"storeCode": "A String", # Required. The identifier of the merchant's store. Either a `storeCode` inserted via the API or the code of the store in Google My Business. |
| 352 |
"targetCountry": "A String", # Required. The CLDR territory code for the item. |
| 353 |
"timestamp": "A String", # Required. The inventory timestamp, in ISO 8601 format. |
| 354 |
} |
| 355 |
|
| 356 |
dryRun: boolean, Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the validity of the request and returns errors (if any). |
| 357 |
x__xgafv: string, V1 error format. |
| 358 |
Allowed values |
| 359 |
1 - v1 error format |
| 360 |
2 - v2 error format |
| 361 |
|
| 362 |
Returns: |
| 363 |
An object of the form: |
| 364 |
|
| 365 |
{ |
| 366 |
"contentLanguage": "A String", # Required. The two-letter ISO 639-1 language code for the item. |
| 367 |
"gtin": "A String", # Global Trade Item Number. |
| 368 |
"itemId": "A String", # Required. A unique identifier for the item. |
| 369 |
"kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "content#posInventoryResponse". |
| 370 |
"price": { # Required. The current price of the item. |
| 371 |
"currency": "A String", # The currency of the price. |
| 372 |
"value": "A String", # The price represented as a number. |
| 373 |
}, |
| 374 |
"quantity": "A String", # Required. The available quantity of the item. |
| 375 |
"storeCode": "A String", # Required. The identifier of the merchant's store. Either a `storeCode` inserted via the API or the code of the store in Google My Business. |
| 376 |
"targetCountry": "A String", # Required. The CLDR territory code for the item. |
| 377 |
"timestamp": "A String", # Required. The inventory timestamp, in ISO 8601 format. |
| 378 |
}</pre> |
| 379 |
</div> |
| 380 |
|
| 381 |
<div class="method"> |
| 382 |
<code class="details" id="list">list(merchantId, targetMerchantId, x__xgafv=None)</code> |
| 383 |
<pre>Lists the stores of the target merchant. |
| 384 |
|
| 385 |
Args: |
| 386 |
merchantId: string, The ID of the POS or inventory data provider. (required) |
| 387 |
targetMerchantId: string, The ID of the target merchant. (required) |
| 388 |
x__xgafv: string, V1 error format. |
| 389 |
Allowed values |
| 390 |
1 - v1 error format |
| 391 |
2 - v2 error format |
| 392 |
|
| 393 |
Returns: |
| 394 |
An object of the form: |
| 395 |
|
| 396 |
{ |
| 397 |
"kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "content#posListResponse". |
| 398 |
"resources": [ |
| 399 |
{ # Store resource. |
| 400 |
"gcidCategory": [ # The business type of the store. |
| 401 |
"A String", |
| 402 |
], |
| 403 |
"kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "`content#posStore`" |
| 404 |
"phoneNumber": "A String", # The store phone number. |
| 405 |
"placeId": "A String", # The Google Place Id of the store location. |
| 406 |
"storeAddress": "A String", # Required. The street address of the store. |
| 407 |
"storeCode": "A String", # Required. A store identifier that is unique for the given merchant. |
| 408 |
"storeName": "A String", # The merchant or store name. |
| 409 |
"websiteUrl": "A String", # The website url for the store or merchant. |
| 410 |
}, |
| 411 |
], |
| 412 |
}</pre> |
| 413 |
</div> |
| 414 |
|
| 415 |
<div class="method"> |
| 416 |
<code class="details" id="sale">sale(merchantId, targetMerchantId, body=None, dryRun=None, x__xgafv=None)</code> |
| 417 |
<pre>Submit a sale event for the given merchant. |
| 418 |
|
| 419 |
Args: |
| 420 |
merchantId: string, The ID of the POS or inventory data provider. (required) |
| 421 |
targetMerchantId: string, The ID of the target merchant. (required) |
| 422 |
body: object, The request body. |
| 423 |
The object takes the form of: |
| 424 |
|
| 425 |
{ |
| 426 |
"contentLanguage": "A String", # Required. The two-letter ISO 639-1 language code for the item. |
| 427 |
"gtin": "A String", # Global Trade Item Number. |
| 428 |
"itemId": "A String", # Required. A unique identifier for the item. |
| 429 |
"price": { # Required. The price of the item. |
| 430 |
"currency": "A String", # The currency of the price. |
| 431 |
"value": "A String", # The price represented as a number. |
| 432 |
}, |
| 433 |
"quantity": "A String", # Required. The relative change of the available quantity. Negative for items returned. |
| 434 |
"saleId": "A String", # A unique ID to group items from the same sale event. |
| 435 |
"storeCode": "A String", # Required. The identifier of the merchant's store. Either a `storeCode` inserted via the API or the code of the store in Google My Business. |
| 436 |
"targetCountry": "A String", # Required. The CLDR territory code for the item. |
| 437 |
"timestamp": "A String", # Required. The inventory timestamp, in ISO 8601 format. |
| 438 |
} |
| 439 |
|
| 440 |
dryRun: boolean, Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the validity of the request and returns errors (if any). |
| 441 |
x__xgafv: string, V1 error format. |
| 442 |
Allowed values |
| 443 |
1 - v1 error format |
| 444 |
2 - v2 error format |
| 445 |
|
| 446 |
Returns: |
| 447 |
An object of the form: |
| 448 |
|
| 449 |
{ |
| 450 |
"contentLanguage": "A String", # Required. The two-letter ISO 639-1 language code for the item. |
| 451 |
"gtin": "A String", # Global Trade Item Number. |
| 452 |
"itemId": "A String", # Required. A unique identifier for the item. |
| 453 |
"kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "content#posSaleResponse". |
| 454 |
"price": { # Required. The price of the item. |
| 455 |
"currency": "A String", # The currency of the price. |
| 456 |
"value": "A String", # The price represented as a number. |
| 457 |
}, |
| 458 |
"quantity": "A String", # Required. The relative change of the available quantity. Negative for items returned. |
| 459 |
"saleId": "A String", # A unique ID to group items from the same sale event. |
| 460 |
"storeCode": "A String", # Required. The identifier of the merchant's store. Either a `storeCode` inserted via the API or the code of the store in Google My Business. |
| 461 |
"targetCountry": "A String", # Required. The CLDR territory code for the item. |
| 462 |
"timestamp": "A String", # Required. The inventory timestamp, in ISO 8601 format. |
| 463 |
}</pre> |
| 464 |
</div> |
| 465 |
|
| 466 |
</body></html> |