blob: 2297ad7986fa199d83da801804a4ae7494ad6c41 [file] [log] [blame]
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13}
14
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54 margin-top: 0.5em;
55}
56
57.firstline {
58 margin-left: 2 em;
59}
60
61.method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66}
67
68.details {
69 font-weight: bold;
70 font-size: 14px;
71}
72
73</style>
74
75<h1><a href="content_v2.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">
Dan O'Mearadd494642020-05-01 07:42:23 -070078 <code><a href="#custombatch">custombatch(body=None, dryRun=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070079<p class="firstline">Batches multiple POS-related calls in a single request.</p>
80<p class="toc_element">
81 <code><a href="#delete">delete(merchantId, targetMerchantId, storeCode, dryRun=None)</a></code></p>
82<p class="firstline">Deletes a store for the given merchant.</p>
83<p class="toc_element">
84 <code><a href="#get">get(merchantId, targetMerchantId, storeCode)</a></code></p>
85<p class="firstline">Retrieves information about the given store.</p>
86<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070087 <code><a href="#insert">insert(merchantId, targetMerchantId, body=None, dryRun=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070088<p class="firstline">Creates a store for the given merchant.</p>
89<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070090 <code><a href="#inventory">inventory(merchantId, targetMerchantId, body=None, dryRun=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070091<p class="firstline">Submit inventory for the given merchant.</p>
92<p class="toc_element">
93 <code><a href="#list">list(merchantId, targetMerchantId)</a></code></p>
94<p class="firstline">Lists the stores of the target merchant.</p>
95<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070096 <code><a href="#sale">sale(merchantId, targetMerchantId, body=None, dryRun=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070097<p class="firstline">Submit a sale event for the given merchant.</p>
98<h3>Method Details</h3>
99<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700100 <code class="details" id="custombatch">custombatch(body=None, dryRun=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700101 <pre>Batches multiple POS-related calls in a single request.
102
103Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700104 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700105 The object takes the form of:
106
107{
Bu Sun Kim65020912020-05-20 12:08:20 -0700108 &quot;entries&quot;: [ # The request entries to be processed in the batch.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700109 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700110 &quot;batchId&quot;: 42, # An entry ID, unique within the batch request.
111 &quot;inventory&quot;: { # The absolute quantity of an item available at the given store. # The inventory to submit. Set this only if the method is `inventory`.
112 &quot;contentLanguage&quot;: &quot;A String&quot;, # Required. The two-letter ISO 639-1 language code for the item.
113 &quot;gtin&quot;: &quot;A String&quot;, # Global Trade Item Number.
114 &quot;itemId&quot;: &quot;A String&quot;, # Required. A unique identifier for the item.
115 &quot;kind&quot;: &quot;content#posInventory&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#posInventory`&quot;
116 &quot;price&quot;: { # Required. The current price of the item.
117 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
118 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700119 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700120 &quot;quantity&quot;: &quot;A String&quot;, # Required. The available quantity of the item.
121 &quot;storeCode&quot;: &quot;A String&quot;, # Required. The identifier of the merchant&#x27;s store. Either a `storeCode` inserted via the API or the code of the store in Google My Business.
122 &quot;targetCountry&quot;: &quot;A String&quot;, # Required. The CLDR territory code for the item.
123 &quot;timestamp&quot;: &quot;A String&quot;, # Required. The inventory timestamp, in ISO 8601 format.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700124 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700125 &quot;merchantId&quot;: &quot;A String&quot;, # The ID of the POS data provider.
126 &quot;method&quot;: &quot;A String&quot;, # The method of the batch entry.
Dan O'Mearadd494642020-05-01 07:42:23 -0700127 #
128 # Acceptable values are:
Bu Sun Kim65020912020-05-20 12:08:20 -0700129 # - &quot;`delete`&quot;
130 # - &quot;`get`&quot;
131 # - &quot;`insert`&quot;
132 # - &quot;`inventory`&quot;
133 # - &quot;`sale`&quot;
134 &quot;sale&quot;: { # The change of the available quantity of an item at the given store. # The sale information to submit. Set this only if the method is `sale`.
135 &quot;contentLanguage&quot;: &quot;A String&quot;, # Required. The two-letter ISO 639-1 language code for the item.
136 &quot;gtin&quot;: &quot;A String&quot;, # Global Trade Item Number.
137 &quot;itemId&quot;: &quot;A String&quot;, # Required. A unique identifier for the item.
138 &quot;kind&quot;: &quot;content#posSale&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#posSale`&quot;
139 &quot;price&quot;: { # Required. The price of the item.
140 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
141 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700142 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700143 &quot;quantity&quot;: &quot;A String&quot;, # Required. The relative change of the available quantity. Negative for items returned.
144 &quot;saleId&quot;: &quot;A String&quot;, # A unique ID to group items from the same sale event.
145 &quot;storeCode&quot;: &quot;A String&quot;, # Required. The identifier of the merchant&#x27;s store. Either a `storeCode` inserted via the API or the code of the store in Google My Business.
146 &quot;targetCountry&quot;: &quot;A String&quot;, # Required. The CLDR territory code for the item.
147 &quot;timestamp&quot;: &quot;A String&quot;, # Required. The inventory timestamp, in ISO 8601 format.
148 },
149 &quot;store&quot;: { # Store resource. # The store information to submit. Set this only if the method is `insert`.
150 &quot;kind&quot;: &quot;content#posStore&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#posStore`&quot;
151 &quot;storeAddress&quot;: &quot;A String&quot;, # Required. The street address of the store.
152 &quot;storeCode&quot;: &quot;A String&quot;, # Required. A store identifier that is unique for the given merchant.
153 },
154 &quot;storeCode&quot;: &quot;A String&quot;, # The store code. Set this only if the method is `delete` or `get`.
155 &quot;targetMerchantId&quot;: &quot;A String&quot;, # The ID of the account for which to get/submit data.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700156 },
157 ],
158 }
159
160 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).
161
162Returns:
163 An object of the form:
164
165 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700166 &quot;entries&quot;: [ # The result of the execution of the batch requests.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700167 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700168 &quot;batchId&quot;: 42, # The ID of the request entry to which this entry responds.
169 &quot;errors&quot;: { # A list of errors returned by a failed batch entry. # A list of errors defined if, and only if, the request failed.
170 &quot;code&quot;: 42, # The HTTP status of the first error in `errors`.
171 &quot;errors&quot;: [ # A list of errors.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700172 { # An error returned by the API.
Bu Sun Kim65020912020-05-20 12:08:20 -0700173 &quot;domain&quot;: &quot;A String&quot;, # The domain of the error.
174 &quot;message&quot;: &quot;A String&quot;, # A description of the error.
175 &quot;reason&quot;: &quot;A String&quot;, # The error code.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700176 },
177 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700178 &quot;message&quot;: &quot;A String&quot;, # The message of the first error in `errors`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700179 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700180 &quot;inventory&quot;: { # The absolute quantity of an item available at the given store. # The updated inventory information.
181 &quot;contentLanguage&quot;: &quot;A String&quot;, # Required. The two-letter ISO 639-1 language code for the item.
182 &quot;gtin&quot;: &quot;A String&quot;, # Global Trade Item Number.
183 &quot;itemId&quot;: &quot;A String&quot;, # Required. A unique identifier for the item.
184 &quot;kind&quot;: &quot;content#posInventory&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#posInventory`&quot;
185 &quot;price&quot;: { # Required. The current price of the item.
186 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
187 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700188 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700189 &quot;quantity&quot;: &quot;A String&quot;, # Required. The available quantity of the item.
190 &quot;storeCode&quot;: &quot;A String&quot;, # Required. The identifier of the merchant&#x27;s store. Either a `storeCode` inserted via the API or the code of the store in Google My Business.
191 &quot;targetCountry&quot;: &quot;A String&quot;, # Required. The CLDR territory code for the item.
192 &quot;timestamp&quot;: &quot;A String&quot;, # Required. The inventory timestamp, in ISO 8601 format.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700193 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700194 &quot;kind&quot;: &quot;content#posCustomBatchResponseEntry&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#posCustomBatchResponseEntry`&quot;
195 &quot;sale&quot;: { # The change of the available quantity of an item at the given store. # The updated sale information.
196 &quot;contentLanguage&quot;: &quot;A String&quot;, # Required. The two-letter ISO 639-1 language code for the item.
197 &quot;gtin&quot;: &quot;A String&quot;, # Global Trade Item Number.
198 &quot;itemId&quot;: &quot;A String&quot;, # Required. A unique identifier for the item.
199 &quot;kind&quot;: &quot;content#posSale&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#posSale`&quot;
200 &quot;price&quot;: { # Required. The price of the item.
201 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
202 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700203 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700204 &quot;quantity&quot;: &quot;A String&quot;, # Required. The relative change of the available quantity. Negative for items returned.
205 &quot;saleId&quot;: &quot;A String&quot;, # A unique ID to group items from the same sale event.
206 &quot;storeCode&quot;: &quot;A String&quot;, # Required. The identifier of the merchant&#x27;s store. Either a `storeCode` inserted via the API or the code of the store in Google My Business.
207 &quot;targetCountry&quot;: &quot;A String&quot;, # Required. The CLDR territory code for the item.
208 &quot;timestamp&quot;: &quot;A String&quot;, # Required. The inventory timestamp, in ISO 8601 format.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700209 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700210 &quot;store&quot;: { # Store resource. # The retrieved or updated store information.
211 &quot;kind&quot;: &quot;content#posStore&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#posStore`&quot;
212 &quot;storeAddress&quot;: &quot;A String&quot;, # Required. The street address of the store.
213 &quot;storeCode&quot;: &quot;A String&quot;, # Required. A store identifier that is unique for the given merchant.
214 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700215 },
216 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700217 &quot;kind&quot;: &quot;content#posCustomBatchResponse&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;content#posCustomBatchResponse&quot;.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700218 }</pre>
219</div>
220
221<div class="method">
222 <code class="details" id="delete">delete(merchantId, targetMerchantId, storeCode, dryRun=None)</code>
223 <pre>Deletes a store for the given merchant.
224
225Args:
226 merchantId: string, The ID of the POS or inventory data provider. (required)
227 targetMerchantId: string, The ID of the target merchant. (required)
228 storeCode: string, A store code that is unique per merchant. (required)
229 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).
230</pre>
231</div>
232
233<div class="method">
234 <code class="details" id="get">get(merchantId, targetMerchantId, storeCode)</code>
235 <pre>Retrieves information about the given store.
236
237Args:
238 merchantId: string, The ID of the POS or inventory data provider. (required)
239 targetMerchantId: string, The ID of the target merchant. (required)
240 storeCode: string, A store code that is unique per merchant. (required)
241
242Returns:
243 An object of the form:
244
245 { # Store resource.
Bu Sun Kim65020912020-05-20 12:08:20 -0700246 &quot;kind&quot;: &quot;content#posStore&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#posStore`&quot;
247 &quot;storeAddress&quot;: &quot;A String&quot;, # Required. The street address of the store.
248 &quot;storeCode&quot;: &quot;A String&quot;, # Required. A store identifier that is unique for the given merchant.
249 }</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700250</div>
251
252<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700253 <code class="details" id="insert">insert(merchantId, targetMerchantId, body=None, dryRun=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700254 <pre>Creates a store for the given merchant.
255
256Args:
257 merchantId: string, The ID of the POS or inventory data provider. (required)
258 targetMerchantId: string, The ID of the target merchant. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700259 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700260 The object takes the form of:
261
262{ # Store resource.
Bu Sun Kim65020912020-05-20 12:08:20 -0700263 &quot;kind&quot;: &quot;content#posStore&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#posStore`&quot;
264 &quot;storeAddress&quot;: &quot;A String&quot;, # Required. The street address of the store.
265 &quot;storeCode&quot;: &quot;A String&quot;, # Required. A store identifier that is unique for the given merchant.
266}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700267
268 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).
269
270Returns:
271 An object of the form:
272
273 { # Store resource.
Bu Sun Kim65020912020-05-20 12:08:20 -0700274 &quot;kind&quot;: &quot;content#posStore&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#posStore`&quot;
275 &quot;storeAddress&quot;: &quot;A String&quot;, # Required. The street address of the store.
276 &quot;storeCode&quot;: &quot;A String&quot;, # Required. A store identifier that is unique for the given merchant.
277 }</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700278</div>
279
280<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700281 <code class="details" id="inventory">inventory(merchantId, targetMerchantId, body=None, dryRun=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700282 <pre>Submit inventory for the given merchant.
283
284Args:
285 merchantId: string, The ID of the POS or inventory data provider. (required)
286 targetMerchantId: string, The ID of the target merchant. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700287 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700288 The object takes the form of:
289
290{
Bu Sun Kim65020912020-05-20 12:08:20 -0700291 &quot;contentLanguage&quot;: &quot;A String&quot;, # Required. The two-letter ISO 639-1 language code for the item.
292 &quot;gtin&quot;: &quot;A String&quot;, # Global Trade Item Number.
293 &quot;itemId&quot;: &quot;A String&quot;, # Required. A unique identifier for the item.
294 &quot;price&quot;: { # Required. The current price of the item.
295 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
296 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700297 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700298 &quot;quantity&quot;: &quot;A String&quot;, # Required. The available quantity of the item.
299 &quot;storeCode&quot;: &quot;A String&quot;, # Required. The identifier of the merchant&#x27;s store. Either a `storeCode` inserted via the API or the code of the store in Google My Business.
300 &quot;targetCountry&quot;: &quot;A String&quot;, # Required. The CLDR territory code for the item.
301 &quot;timestamp&quot;: &quot;A String&quot;, # Required. The inventory timestamp, in ISO 8601 format.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700302 }
303
304 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).
305
306Returns:
307 An object of the form:
308
309 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700310 &quot;contentLanguage&quot;: &quot;A String&quot;, # Required. The two-letter ISO 639-1 language code for the item.
311 &quot;gtin&quot;: &quot;A String&quot;, # Global Trade Item Number.
312 &quot;itemId&quot;: &quot;A String&quot;, # Required. A unique identifier for the item.
313 &quot;kind&quot;: &quot;content#posInventoryResponse&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;content#posInventoryResponse&quot;.
314 &quot;price&quot;: { # Required. The current price of the item.
315 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
316 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700317 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700318 &quot;quantity&quot;: &quot;A String&quot;, # Required. The available quantity of the item.
319 &quot;storeCode&quot;: &quot;A String&quot;, # Required. The identifier of the merchant&#x27;s store. Either a `storeCode` inserted via the API or the code of the store in Google My Business.
320 &quot;targetCountry&quot;: &quot;A String&quot;, # Required. The CLDR territory code for the item.
321 &quot;timestamp&quot;: &quot;A String&quot;, # Required. The inventory timestamp, in ISO 8601 format.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700322 }</pre>
323</div>
324
325<div class="method">
326 <code class="details" id="list">list(merchantId, targetMerchantId)</code>
327 <pre>Lists the stores of the target merchant.
328
329Args:
330 merchantId: string, The ID of the POS or inventory data provider. (required)
331 targetMerchantId: string, The ID of the target merchant. (required)
332
333Returns:
334 An object of the form:
335
336 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700337 &quot;kind&quot;: &quot;content#posListResponse&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;content#posListResponse&quot;.
338 &quot;resources&quot;: [
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700339 { # Store resource.
Bu Sun Kim65020912020-05-20 12:08:20 -0700340 &quot;kind&quot;: &quot;content#posStore&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#posStore`&quot;
341 &quot;storeAddress&quot;: &quot;A String&quot;, # Required. The street address of the store.
342 &quot;storeCode&quot;: &quot;A String&quot;, # Required. A store identifier that is unique for the given merchant.
343 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700344 ],
345 }</pre>
346</div>
347
348<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700349 <code class="details" id="sale">sale(merchantId, targetMerchantId, body=None, dryRun=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700350 <pre>Submit a sale event for the given merchant.
351
352Args:
353 merchantId: string, The ID of the POS or inventory data provider. (required)
354 targetMerchantId: string, The ID of the target merchant. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700355 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700356 The object takes the form of:
357
358{
Bu Sun Kim65020912020-05-20 12:08:20 -0700359 &quot;contentLanguage&quot;: &quot;A String&quot;, # Required. The two-letter ISO 639-1 language code for the item.
360 &quot;gtin&quot;: &quot;A String&quot;, # Global Trade Item Number.
361 &quot;itemId&quot;: &quot;A String&quot;, # Required. A unique identifier for the item.
362 &quot;price&quot;: { # Required. The price of the item.
363 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
364 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700365 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700366 &quot;quantity&quot;: &quot;A String&quot;, # Required. The relative change of the available quantity. Negative for items returned.
367 &quot;saleId&quot;: &quot;A String&quot;, # A unique ID to group items from the same sale event.
368 &quot;storeCode&quot;: &quot;A String&quot;, # Required. The identifier of the merchant&#x27;s store. Either a `storeCode` inserted via the API or the code of the store in Google My Business.
369 &quot;targetCountry&quot;: &quot;A String&quot;, # Required. The CLDR territory code for the item.
370 &quot;timestamp&quot;: &quot;A String&quot;, # Required. The inventory timestamp, in ISO 8601 format.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700371 }
372
373 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).
374
375Returns:
376 An object of the form:
377
378 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700379 &quot;contentLanguage&quot;: &quot;A String&quot;, # Required. The two-letter ISO 639-1 language code for the item.
380 &quot;gtin&quot;: &quot;A String&quot;, # Global Trade Item Number.
381 &quot;itemId&quot;: &quot;A String&quot;, # Required. A unique identifier for the item.
382 &quot;kind&quot;: &quot;content#posSaleResponse&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;content#posSaleResponse&quot;.
383 &quot;price&quot;: { # Required. The price of the item.
384 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
385 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700386 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700387 &quot;quantity&quot;: &quot;A String&quot;, # Required. The relative change of the available quantity. Negative for items returned.
388 &quot;saleId&quot;: &quot;A String&quot;, # A unique ID to group items from the same sale event.
389 &quot;storeCode&quot;: &quot;A String&quot;, # Required. The identifier of the merchant&#x27;s store. Either a `storeCode` inserted via the API or the code of the store in Google My Business.
390 &quot;targetCountry&quot;: &quot;A String&quot;, # Required. The CLDR territory code for the item.
391 &quot;timestamp&quot;: &quot;A String&quot;, # Required. The inventory timestamp, in ISO 8601 format.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700392 }</pre>
393</div>
394
395</body></html>