- HTTP request
- Path parameters
- Query parameters
- Request body
- Response body
- Authorization Scopes
- InventorySetRequest
- Try it!
Updates price and availability of a product in your Merchant Center account.
HTTP request
POST https://shoppingcontent.googleapis.com/content/v2/{merchantId}/inventory/{storeCode}/products/{productId}
Path parameters
Parameters | |
---|---|
merchantId |
The ID of the account that contains the product. This account cannot be a multi-client account. |
storeCode |
The code of the store for which to update price and availability. Use |
productId |
The REST ID of the product for which to update price and availability. |
Query parameters
Parameters | |
---|---|
dryRun |
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). |
Request body
The request body contains an instance of InventorySetRequest
.
Response body
If successful, the response body contains data with the following structure:
JSON representation | |
---|---|
{ "kind": string } |
Fields | |
---|---|
kind |
Identifies what kind of resource this is. Value: the fixed string
. |
Authorization Scopes
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/content
For more information, see the OAuth 2.0 Overview.
InventorySetRequest
JSON representation | |
---|---|
{ "price": { object ( |
Fields | |
---|---|
price |
The price of the product. |
availability |
The availability of the product.
|
salePrice |
The sale price of the product. Mandatory if |
salePriceEffectiveDate |
A date range represented by a pair of ISO 8601 dates separated by a space, comma, or slash. Both dates might be specified as 'null' if undecided. |
quantity |
The quantity of the product. Must be equal to or greater than zero. Supported only for local products. |
sellOnGoogleQuantity |
The quantity of the product that is available for selling on Google. Supported only for online products. |
installment |
Number and amount of installments to pay for an item. Brazil only. |
loyaltyPoints |
Loyalty points that users receive after purchasing the item. Japan only. |
pickup |
Store pickup information. Only supported for local inventory. Not setting |
instoreProductLocation |
The instore product location. Supported only for local products. |
customLabel0 |
Custom label 0 for custom grouping of items in a Shopping campaign. Only supported for online products. |
customLabel1 |
Custom label 1 for custom grouping of items in a Shopping campaign. Only supported for online products. |
customLabel2 |
Custom label 2 for custom grouping of items in a Shopping campaign. Only supported for online products. |
customLabel3 |
Custom label 3 for custom grouping of items in a Shopping campaign. Only supported for online products. |
customLabel4 |
Custom label 3 for custom grouping of items in a Shopping campaign. Only supported for online products. |