Submit inventory for the given merchant. Try it now.
Request
HTTP request
POST https://www.googleapis.com/content/v2/merchantId/pos/targetMerchantId/inventory
Parameters
Parameter name | Value | Description |
---|---|---|
Path parameters | ||
merchantId |
unsigned long |
The ID of the POS or inventory data provider. |
targetMerchantId |
unsigned long |
The ID of the target merchant. |
Optional query parameters | ||
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). |
Authorization
This request requires authorization with the following scope:
Scope |
---|
https://www.googleapis.com/auth/content |
For more information, see the authentication and authorization page.
Request body
In the request body, supply data with the following structure:
{ "storeCode": string, "itemId": string, "targetCountry": string, "contentLanguage": string, "gtin": string, "price": { "value": string, "currency": string }, "quantity": long, "timestamp": string }
Property name | Value | Description | Notes |
---|---|---|---|
storeCode |
string |
The identifier of the merchant's store. Either a storeCode inserted via the API or the code of the store in Google My Business. |
|
itemId |
string |
A unique identifier for the item. | |
targetCountry |
string |
The CLDR territory code for the item. | |
contentLanguage |
string |
The two-letter ISO 639-1 language code for the item. | |
gtin |
string |
Global Trade Item Number. | |
price |
nested object |
The current price of the item. | |
price.value |
string |
The price represented as a number. | writable |
price.currency |
string |
The currency of the price. | writable |
quantity |
long |
The available quantity of the item. | |
timestamp |
string |
The inventory timestamp, in ISO 8601 format. |
Response
If successful, this method returns a response body with the following structure:
{ "kind": "content#posInventoryResponse", "storeCode": string, "itemId": string, "targetCountry": string, "contentLanguage": string, "gtin": string, "price": { "value": string, "currency": string }, "quantity": long, "timestamp": string }
Property name | Value | Description | Notes |
---|---|---|---|
kind |
string |
Identifies what kind of resource this is. Value: the fixed string "content#posInventoryResponse" . |
|
storeCode |
string |
The identifier of the merchant's store. Either a storeCode inserted via the API or the code of the store in Google My Business. |
|
itemId |
string |
A unique identifier for the item. | |
targetCountry |
string |
The CLDR territory code for the item. | |
contentLanguage |
string |
The two-letter ISO 639-1 language code for the item. | |
gtin |
string |
Global Trade Item Number. | |
price |
nested object |
The current price of the item. | |
price.value |
string |
The price represented as a number. | writable |
price.currency |
string |
The currency of the price. | writable |
quantity |
long |
The available quantity of the item. | |
timestamp |
string |
The inventory timestamp, in ISO 8601 format. |
Try it!
Use the APIs Explorer below to call this method on live data and see the response.