- HTTP request
- Path parameters
- Request body
- Response body
- Authorization scopes
- PosInventoryRequest
- Try it!
Submit inventory for the given merchant.
HTTP request
POST https://shoppingcontent.googleapis.com/content/v2.1/{merchantId}/pos/{targetMerchantId}/inventory
Path parameters
Parameters | |
---|---|
merchant |
The ID of the POS or inventory data provider. |
target |
The ID of the target merchant. |
Request body
The request body contains an instance of PosInventoryRequest
.
Response body
If successful, the response body contains data with the following structure:
JSON representation |
---|
{
"kind": string,
"storeCode": string,
"itemId": string,
"targetCountry": string,
"contentLanguage": string,
"gtin": string,
"price": {
object ( |
Fields | |
---|---|
kind |
Identifies what kind of resource this is. Value: the fixed string " |
store |
Required. The identifier of the merchant's store. Either a |
item |
Required. A unique identifier for the item. |
target |
Required. The CLDR territory code for the item. |
content |
Required. The two-letter ISO 639-1 language code for the item. |
gtin |
Global Trade Item Number. |
price |
Required. The current price of the item. |
quantity |
Required. The available quantity of the item. |
timestamp |
Required. The inventory timestamp, in ISO 8601 format. |
pickup |
Optional. Supported pickup method for this offer. Unless the value is "not supported", this field must be submitted together with |
pickup |
Optional. Expected date that an order will be ready for pickup relative to the order date. Must be submitted together with |
Authorization scopes
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/content
For more information, see the OAuth 2.0 Overview.
PosInventoryRequest
JSON representation |
---|
{
"storeCode": string,
"itemId": string,
"targetCountry": string,
"contentLanguage": string,
"gtin": string,
"price": {
object ( |
Fields | |
---|---|
store |
Required. The identifier of the merchant's store. Either a |
item |
Required. A unique identifier for the item. |
target |
Required. The CLDR territory code for the item. |
content |
Required. The two-letter ISO 639-1 language code for the item. |
gtin |
Global Trade Item Number. |
price |
Required. The current price of the item. |
quantity |
Required. The available quantity of the item. |
timestamp |
Required. The inventory timestamp, in ISO 8601 format. |
pickup |
Optional. Supported pickup method for this offer. Unless the value is "not supported", this field must be submitted together with |
pickup |
Optional. Expected date that an order will be ready for pickup relative to the order date. Must be submitted together with |