AI-generated Key Takeaways
- 
          
Enables updating regional inventory for multiple products or regions within a single request.
 - 
          
Utilizes a batch system where individual entries specify product IDs, methods (like "insert"), and regional inventory data.
 - 
          
Responses include details about each entry's success or failure, along with any associated errors.
 - 
          
Requires authorization with the
https://www.googleapis.com/auth/contentscope for access. 
- HTTP request
 - Request body
 - Response body
 - Authorization scopes
 - RegionalinventoryCustomBatchRequest
 - RegionalinventoryCustomBatchRequestEntry
 - RegionalinventoryCustomBatchResponseEntry
 - Try it!
 
Updates regional inventory for multiple products or regions in a single request.
HTTP request
POST https://shoppingcontent.googleapis.com/content/v2.1/regionalinventory/batch
Request body
The request body contains an instance of RegionalinventoryCustomBatchRequest.
Response body
If successful, the response body contains data with the following structure:
| JSON representation | 
|---|
{
  "entries": [
    {
      object ( | 
                  
| Fields | |
|---|---|
entries[] | 
                    
                       
 The result of the execution of the batch requests.  | 
                  
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.
RegionalinventoryCustomBatchRequest
| JSON representation | 
|---|
{
  "entries": [
    {
      object ( | 
              
| Fields | |
|---|---|
entries[] | 
                
                   
 The request entries to be processed in the batch.  | 
              
RegionalinventoryCustomBatchRequestEntry
A batch entry encoding a single non-batch regional inventory request.
| JSON representation | 
|---|
{
  "batchId": integer,
  "merchantId": string,
  "method": string,
  "productId": string,
  "regionalInventory": {
    object ( | 
              
| Fields | |
|---|---|
batchId | 
                
                   
 An entry ID, unique within the batch request.  | 
              
merchantId | 
                
                   
 The ID of the managing account.  | 
              
method | 
                
                   
 Method of the batch request entry. Acceptable values are: 
  | 
              
productId | 
                
                   
 The ID of the product for which to update price and availability.  | 
              
regionalInventory | 
                
                   
 Price and availability of the product.  | 
              
RegionalinventoryCustomBatchResponseEntry
A batch entry encoding a single non-batch regional inventory response.
| JSON representation | 
|---|
{ "batchId": integer, "errors": { object (  | 
              
| Fields | |
|---|---|
batchId | 
                
                   
 The ID of the request entry this entry responds to.  | 
              
errors | 
                
                   
 A list of errors for failed custombatch entries.  | 
              
regionalInventory | 
                
                   
 Price and availability of the product.  | 
              
kind | 
                
                   
 Identifies what kind of resource this is. Value: the fixed string "  |