blob: 3260dde971e38fa7f610e37df5c21e5571b3c8ab [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">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070078 <code><a href="#close">close()</a></code></p>
79<p class="firstline">Close httplib2 connections.</p>
80<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070081 <code><a href="#custombatch">custombatch(body=None, dryRun=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070082<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)</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)</a></code></p>
88<p class="firstline">Retrieves information about the given store.</p>
89<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070090 <code><a href="#insert">insert(merchantId, targetMerchantId, body=None, dryRun=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070091<p class="firstline">Creates a store for the given merchant.</p>
92<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070093 <code><a href="#inventory">inventory(merchantId, targetMerchantId, body=None, dryRun=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070094<p class="firstline">Submit inventory for the given merchant.</p>
95<p class="toc_element">
96 <code><a href="#list">list(merchantId, targetMerchantId)</a></code></p>
97<p class="firstline">Lists the stores of the target merchant.</p>
98<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070099 <code><a href="#sale">sale(merchantId, targetMerchantId, body=None, dryRun=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700100<p class="firstline">Submit a sale event for the given merchant.</p>
101<h3>Method Details</h3>
102<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700103 <code class="details" id="close">close()</code>
104 <pre>Close httplib2 connections.</pre>
105</div>
106
107<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700108 <code class="details" id="custombatch">custombatch(body=None, dryRun=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700109 <pre>Batches multiple POS-related calls in a single request.
110
111Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700112 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700113 The object takes the form of:
114
115{
Bu Sun Kim65020912020-05-20 12:08:20 -0700116 &quot;entries&quot;: [ # The request entries to be processed in the batch.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700117 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700118 &quot;batchId&quot;: 42, # An entry ID, unique within the batch request.
119 &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`.
120 &quot;contentLanguage&quot;: &quot;A String&quot;, # Required. The two-letter ISO 639-1 language code for the item.
121 &quot;gtin&quot;: &quot;A String&quot;, # Global Trade Item Number.
122 &quot;itemId&quot;: &quot;A String&quot;, # Required. A unique identifier for the item.
123 &quot;kind&quot;: &quot;content#posInventory&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#posInventory`&quot;
124 &quot;price&quot;: { # Required. The current price of the item.
125 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
126 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700127 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700128 &quot;quantity&quot;: &quot;A String&quot;, # Required. The available quantity of the item.
129 &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.
130 &quot;targetCountry&quot;: &quot;A String&quot;, # Required. The CLDR territory code for the item.
131 &quot;timestamp&quot;: &quot;A String&quot;, # Required. The inventory timestamp, in ISO 8601 format.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700132 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700133 &quot;merchantId&quot;: &quot;A String&quot;, # The ID of the POS data provider.
134 &quot;method&quot;: &quot;A String&quot;, # The method of the batch entry.
Dan O'Mearadd494642020-05-01 07:42:23 -0700135 #
136 # Acceptable values are:
Bu Sun Kim65020912020-05-20 12:08:20 -0700137 # - &quot;`delete`&quot;
138 # - &quot;`get`&quot;
139 # - &quot;`insert`&quot;
140 # - &quot;`inventory`&quot;
141 # - &quot;`sale`&quot;
142 &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`.
143 &quot;contentLanguage&quot;: &quot;A String&quot;, # Required. The two-letter ISO 639-1 language code for the item.
144 &quot;gtin&quot;: &quot;A String&quot;, # Global Trade Item Number.
145 &quot;itemId&quot;: &quot;A String&quot;, # Required. A unique identifier for the item.
146 &quot;kind&quot;: &quot;content#posSale&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#posSale`&quot;
147 &quot;price&quot;: { # Required. The price of the item.
148 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
149 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700150 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700151 &quot;quantity&quot;: &quot;A String&quot;, # Required. The relative change of the available quantity. Negative for items returned.
152 &quot;saleId&quot;: &quot;A String&quot;, # A unique ID to group items from the same sale event.
153 &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.
154 &quot;targetCountry&quot;: &quot;A String&quot;, # Required. The CLDR territory code for the item.
155 &quot;timestamp&quot;: &quot;A String&quot;, # Required. The inventory timestamp, in ISO 8601 format.
156 },
157 &quot;store&quot;: { # Store resource. # The store information to submit. Set this only if the method is `insert`.
158 &quot;kind&quot;: &quot;content#posStore&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#posStore`&quot;
159 &quot;storeAddress&quot;: &quot;A String&quot;, # Required. The street address of the store.
160 &quot;storeCode&quot;: &quot;A String&quot;, # Required. A store identifier that is unique for the given merchant.
161 },
162 &quot;storeCode&quot;: &quot;A String&quot;, # The store code. Set this only if the method is `delete` or `get`.
163 &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 -0700164 },
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
170Returns:
171 An object of the form:
172
173 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700174 &quot;entries&quot;: [ # The result of the execution of the batch requests.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700175 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700176 &quot;batchId&quot;: 42, # The ID of the request entry to which this entry responds.
177 &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.
178 &quot;code&quot;: 42, # The HTTP status of the first error in `errors`.
179 &quot;errors&quot;: [ # A list of errors.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700180 { # An error returned by the API.
Bu Sun Kim65020912020-05-20 12:08:20 -0700181 &quot;domain&quot;: &quot;A String&quot;, # The domain of the error.
182 &quot;message&quot;: &quot;A String&quot;, # A description of the error.
183 &quot;reason&quot;: &quot;A String&quot;, # The error code.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700184 },
185 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700186 &quot;message&quot;: &quot;A String&quot;, # The message of the first error in `errors`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700187 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700188 &quot;inventory&quot;: { # The absolute quantity of an item available at the given store. # The updated inventory information.
189 &quot;contentLanguage&quot;: &quot;A String&quot;, # Required. The two-letter ISO 639-1 language code for the item.
190 &quot;gtin&quot;: &quot;A String&quot;, # Global Trade Item Number.
191 &quot;itemId&quot;: &quot;A String&quot;, # Required. A unique identifier for the item.
192 &quot;kind&quot;: &quot;content#posInventory&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#posInventory`&quot;
193 &quot;price&quot;: { # Required. The current price of the item.
194 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
195 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700196 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700197 &quot;quantity&quot;: &quot;A String&quot;, # Required. The available quantity of the item.
198 &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.
199 &quot;targetCountry&quot;: &quot;A String&quot;, # Required. The CLDR territory code for the item.
200 &quot;timestamp&quot;: &quot;A String&quot;, # Required. The inventory timestamp, in ISO 8601 format.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700201 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700202 &quot;kind&quot;: &quot;content#posCustomBatchResponseEntry&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#posCustomBatchResponseEntry`&quot;
203 &quot;sale&quot;: { # The change of the available quantity of an item at the given store. # The updated sale information.
204 &quot;contentLanguage&quot;: &quot;A String&quot;, # Required. The two-letter ISO 639-1 language code for the item.
205 &quot;gtin&quot;: &quot;A String&quot;, # Global Trade Item Number.
206 &quot;itemId&quot;: &quot;A String&quot;, # Required. A unique identifier for the item.
207 &quot;kind&quot;: &quot;content#posSale&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#posSale`&quot;
208 &quot;price&quot;: { # Required. The price of the item.
209 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
210 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700211 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700212 &quot;quantity&quot;: &quot;A String&quot;, # Required. The relative change of the available quantity. Negative for items returned.
213 &quot;saleId&quot;: &quot;A String&quot;, # A unique ID to group items from the same sale event.
214 &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.
215 &quot;targetCountry&quot;: &quot;A String&quot;, # Required. The CLDR territory code for the item.
216 &quot;timestamp&quot;: &quot;A String&quot;, # Required. The inventory timestamp, in ISO 8601 format.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700217 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700218 &quot;store&quot;: { # Store resource. # The retrieved or updated store information.
219 &quot;kind&quot;: &quot;content#posStore&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#posStore`&quot;
220 &quot;storeAddress&quot;: &quot;A String&quot;, # Required. The street address of the store.
221 &quot;storeCode&quot;: &quot;A String&quot;, # Required. A store identifier that is unique for the given merchant.
222 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700223 },
224 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700225 &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 -0700226 }</pre>
227</div>
228
229<div class="method">
230 <code class="details" id="delete">delete(merchantId, targetMerchantId, storeCode, dryRun=None)</code>
231 <pre>Deletes a store for the given merchant.
232
233Args:
234 merchantId: string, The ID of the POS or inventory data provider. (required)
235 targetMerchantId: string, The ID of the target merchant. (required)
236 storeCode: string, A store code that is unique per merchant. (required)
237 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).
238</pre>
239</div>
240
241<div class="method">
242 <code class="details" id="get">get(merchantId, targetMerchantId, storeCode)</code>
243 <pre>Retrieves information about the given store.
244
245Args:
246 merchantId: string, The ID of the POS or inventory data provider. (required)
247 targetMerchantId: string, The ID of the target merchant. (required)
248 storeCode: string, A store code that is unique per merchant. (required)
249
250Returns:
251 An object of the form:
252
253 { # Store resource.
Bu Sun Kim65020912020-05-20 12:08:20 -0700254 &quot;kind&quot;: &quot;content#posStore&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#posStore`&quot;
255 &quot;storeAddress&quot;: &quot;A String&quot;, # Required. The street address of the store.
256 &quot;storeCode&quot;: &quot;A String&quot;, # Required. A store identifier that is unique for the given merchant.
257 }</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700258</div>
259
260<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700261 <code class="details" id="insert">insert(merchantId, targetMerchantId, body=None, dryRun=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700262 <pre>Creates a store for the given merchant.
263
264Args:
265 merchantId: string, The ID of the POS or inventory data provider. (required)
266 targetMerchantId: string, The ID of the target merchant. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700267 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700268 The object takes the form of:
269
270{ # Store resource.
Bu Sun Kim65020912020-05-20 12:08:20 -0700271 &quot;kind&quot;: &quot;content#posStore&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#posStore`&quot;
272 &quot;storeAddress&quot;: &quot;A String&quot;, # Required. The street address of the store.
273 &quot;storeCode&quot;: &quot;A String&quot;, # Required. A store identifier that is unique for the given merchant.
274}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700275
276 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).
277
278Returns:
279 An object of the form:
280
281 { # Store resource.
Bu Sun Kim65020912020-05-20 12:08:20 -0700282 &quot;kind&quot;: &quot;content#posStore&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#posStore`&quot;
283 &quot;storeAddress&quot;: &quot;A String&quot;, # Required. The street address of the store.
284 &quot;storeCode&quot;: &quot;A String&quot;, # Required. A store identifier that is unique for the given merchant.
285 }</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700286</div>
287
288<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700289 <code class="details" id="inventory">inventory(merchantId, targetMerchantId, body=None, dryRun=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700290 <pre>Submit inventory for the given merchant.
291
292Args:
293 merchantId: string, The ID of the POS or inventory data provider. (required)
294 targetMerchantId: string, The ID of the target merchant. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700295 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700296 The object takes the form of:
297
298{
Bu Sun Kim65020912020-05-20 12:08:20 -0700299 &quot;contentLanguage&quot;: &quot;A String&quot;, # Required. The two-letter ISO 639-1 language code for the item.
300 &quot;gtin&quot;: &quot;A String&quot;, # Global Trade Item Number.
301 &quot;itemId&quot;: &quot;A String&quot;, # Required. A unique identifier for the item.
302 &quot;price&quot;: { # Required. The current price of the item.
303 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
304 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700305 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700306 &quot;quantity&quot;: &quot;A String&quot;, # Required. The available quantity of the item.
307 &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.
308 &quot;targetCountry&quot;: &quot;A String&quot;, # Required. The CLDR territory code for the item.
309 &quot;timestamp&quot;: &quot;A String&quot;, # Required. The inventory timestamp, in ISO 8601 format.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700310 }
311
312 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).
313
314Returns:
315 An object of the form:
316
317 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700318 &quot;contentLanguage&quot;: &quot;A String&quot;, # Required. The two-letter ISO 639-1 language code for the item.
319 &quot;gtin&quot;: &quot;A String&quot;, # Global Trade Item Number.
320 &quot;itemId&quot;: &quot;A String&quot;, # Required. A unique identifier for the item.
321 &quot;kind&quot;: &quot;content#posInventoryResponse&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;content#posInventoryResponse&quot;.
322 &quot;price&quot;: { # Required. The current price of the item.
323 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
324 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700325 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700326 &quot;quantity&quot;: &quot;A String&quot;, # Required. The available quantity of the item.
327 &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.
328 &quot;targetCountry&quot;: &quot;A String&quot;, # Required. The CLDR territory code for the item.
329 &quot;timestamp&quot;: &quot;A String&quot;, # Required. The inventory timestamp, in ISO 8601 format.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700330 }</pre>
331</div>
332
333<div class="method">
334 <code class="details" id="list">list(merchantId, targetMerchantId)</code>
335 <pre>Lists the stores of the target merchant.
336
337Args:
338 merchantId: string, The ID of the POS or inventory data provider. (required)
339 targetMerchantId: string, The ID of the target merchant. (required)
340
341Returns:
342 An object of the form:
343
344 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700345 &quot;kind&quot;: &quot;content#posListResponse&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;content#posListResponse&quot;.
346 &quot;resources&quot;: [
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700347 { # Store resource.
Bu Sun Kim65020912020-05-20 12:08:20 -0700348 &quot;kind&quot;: &quot;content#posStore&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#posStore`&quot;
349 &quot;storeAddress&quot;: &quot;A String&quot;, # Required. The street address of the store.
350 &quot;storeCode&quot;: &quot;A String&quot;, # Required. A store identifier that is unique for the given merchant.
351 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700352 ],
353 }</pre>
354</div>
355
356<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700357 <code class="details" id="sale">sale(merchantId, targetMerchantId, body=None, dryRun=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700358 <pre>Submit a sale event for the given merchant.
359
360Args:
361 merchantId: string, The ID of the POS or inventory data provider. (required)
362 targetMerchantId: string, The ID of the target merchant. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700363 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700364 The object takes the form of:
365
366{
Bu Sun Kim65020912020-05-20 12:08:20 -0700367 &quot;contentLanguage&quot;: &quot;A String&quot;, # Required. The two-letter ISO 639-1 language code for the item.
368 &quot;gtin&quot;: &quot;A String&quot;, # Global Trade Item Number.
369 &quot;itemId&quot;: &quot;A String&quot;, # Required. A unique identifier for the item.
370 &quot;price&quot;: { # Required. The price of the item.
371 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
372 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700373 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700374 &quot;quantity&quot;: &quot;A String&quot;, # Required. The relative change of the available quantity. Negative for items returned.
375 &quot;saleId&quot;: &quot;A String&quot;, # A unique ID to group items from the same sale event.
376 &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.
377 &quot;targetCountry&quot;: &quot;A String&quot;, # Required. The CLDR territory code for the item.
378 &quot;timestamp&quot;: &quot;A String&quot;, # Required. The inventory timestamp, in ISO 8601 format.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700379 }
380
381 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).
382
383Returns:
384 An object of the form:
385
386 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700387 &quot;contentLanguage&quot;: &quot;A String&quot;, # Required. The two-letter ISO 639-1 language code for the item.
388 &quot;gtin&quot;: &quot;A String&quot;, # Global Trade Item Number.
389 &quot;itemId&quot;: &quot;A String&quot;, # Required. A unique identifier for the item.
390 &quot;kind&quot;: &quot;content#posSaleResponse&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;content#posSaleResponse&quot;.
391 &quot;price&quot;: { # Required. The price of the item.
392 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
393 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700394 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700395 &quot;quantity&quot;: &quot;A String&quot;, # Required. The relative change of the available quantity. Negative for items returned.
396 &quot;saleId&quot;: &quot;A String&quot;, # A unique ID to group items from the same sale event.
397 &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.
398 &quot;targetCountry&quot;: &quot;A String&quot;, # Required. The CLDR territory code for the item.
399 &quot;timestamp&quot;: &quot;A String&quot;, # Required. The inventory timestamp, in ISO 8601 format.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700400 }</pre>
401</div>
402
403</body></html>