Page Summary
-
The LocalInventoryService and RegionalInventoryService manage local and regional inventory for products, respectively, with methods to insert, delete, and list inventory data.
-
LocalInventoryrepresents in-store product information for a specific store, including price, availability, and pickup options, whileRegionalInventoryprovides similar details for a specific region. -
Requests for managing inventory require specifying the account, product, and either store code (for local) or region (for regional) using resource names in a defined format.
-
Responses include the requested inventory data or a token for pagination if more data is available, and resources might take some time to be reflected in products after updates.
-
Both services require the OAuth scope
https://www.googleapis.com/auth/contentfor authorization.
Index
LocalInventoryService(interface)RegionalInventoryService(interface)DeleteLocalInventoryRequest(message)DeleteRegionalInventoryRequest(message)InsertLocalInventoryRequest(message)InsertRegionalInventoryRequest(message)ListLocalInventoriesRequest(message)ListLocalInventoriesResponse(message)ListRegionalInventoriesRequest(message)ListRegionalInventoriesResponse(message)LocalInventory(message)RegionalInventory(message)
LocalInventoryService
Service to manage local inventory for products
| DeleteLocalInventory |
|---|
|
Deletes the specified
|
| InsertLocalInventory |
|---|
|
Inserts a Replaces the full It might take up to 30 minutes for the new or updated
|
| ListLocalInventories |
|---|
|
Lists the
|
RegionalInventoryService
Service to manage regional inventory for products. There is also separate regions resource and API to manage regions definitions.
| DeleteRegionalInventory |
|---|
|
Deletes the specified
|
| InsertRegionalInventory |
|---|
|
Inserts a Replaces the full It might take up to 30 minutes for the new or updated
|
| ListRegionalInventories |
|---|
|
Lists the
|
DeleteLocalInventoryRequest
Request message for the DeleteLocalInventory method.
| Fields | |
|---|---|
name |
Required. The name of the local inventory for the given product to delete. Format: The The format of the
We recommend using the Encoded Format for all product IDs to ensure correct parsing, especially those containing special characters. The presence of tilde ( Note: For calls to the v1beta version, the plain format for the product segment is |
DeleteRegionalInventoryRequest
Request message for the DeleteRegionalInventory method.
| Fields | |
|---|---|
name |
Required. The name of the The The format of the
We recommend using the Encoded Format for all product IDs to ensure correct parsing, especially those containing special characters. The presence of tilde ( Note: For calls to the v1beta version, the plain format for the product segment is |
InsertLocalInventoryRequest
Request message for the InsertLocalInventory method.
| Fields | |
|---|---|
parent |
Required. The account and product where this inventory will be inserted. Format: The The format of the
We recommend using the Encoded Format for all product IDs to ensure correct parsing, especially those containing special characters. The presence of tilde ( Note: For calls to the v1beta version, the plain format is |
local_inventory |
Required. Local inventory information of the product. If the product already has a |
InsertRegionalInventoryRequest
Request message for the InsertRegionalInventory method.
| Fields | |
|---|---|
parent |
Required. The account and product where this inventory will be inserted. Format: The The format of the
We recommend using the Encoded Format for all product IDs to ensure correct parsing, especially those containing special characters. The presence of tilde ( Note: For calls to the v1beta version, the plain format is |
regional_inventory |
Required. Regional inventory information to add to the product. If the product already has a |
ListLocalInventoriesRequest
Request message for the ListLocalInventories method.
| Fields | |
|---|---|
parent |
Required. The The The format of the
We recommend using the Encoded Format for all product IDs to ensure correct parsing, especially those containing special characters. The presence of tilde ( Note: For calls to the v1beta version, the plain format is |
page_size |
The maximum number of |
page_token |
A page token, received from a previous When paginating, all other parameters provided to |
ListLocalInventoriesResponse
Response message for the ListLocalInventories method.
| Fields | |
|---|---|
local_inventories[] |
The |
next_page_token |
A token, which can be sent as |
ListRegionalInventoriesRequest
Request message for the ListRegionalInventories method.
| Fields | |
|---|---|
parent |
Required. The The The format of the
We recommend using the Encoded Format for all product IDs to ensure correct parsing, especially those containing special characters. The presence of tilde ( Note: For calls to the v1beta version, the plain format is |
page_size |
The maximum number of |
page_token |
A page token, received from a previous When paginating, all other parameters provided to |
ListRegionalInventoriesResponse
Response message for the ListRegionalInventories method.
| Fields | |
|---|---|
regional_inventories[] |
The |
next_page_token |
A token, which can be sent as |
LocalInventory
Local inventory information for the product. Represents in-store information for a specific product at the store specified by . For a list of all accepted attribute values, see the local product inventory data specification.storeCode
| Fields | |
|---|---|
name |
Output only. The name of the The The format of the
We recommend using the Encoded Format for all product IDs to ensure correct parsing, especially those containing special characters. The presence of tilde ( Note: For calls to the v1beta version, the plain format for the product segment is |
account |
Output only. The account that owns the product. This field will be ignored if set by the client. |
store_code |
Required. Immutable. Store code (the store ID from your Business Profile) of the physical store the product is sold in. See the Local product inventory data specification for more information. |
price |
Optional. Price of the product at this store. |
sale_price |
Optional. Sale price of the product at this store. Mandatory if |
sale_price_effective_date |
Optional. The |
custom_attributes[] |
A list of custom (merchant-provided) attributes. You can also use |
availability |
Availability of the product at this store. For accepted attribute values, see the local product inventory data specification |
quantity |
Quantity of the product available at this store. Must be greater than or equal to zero. |
pickup_method |
Supported pickup method for this product. Unless the value is |
pickup_sla |
Relative time period from the order date for an order for this product, from this store, to be ready for pickup. Must be submitted with |
instore_product_location |
Location of the product inside the store. Maximum length is 20 bytes. |
RegionalInventory
Regional inventory information for the product. Represents specific information like price and availability for a given product in a specific . For a list of all accepted attribute values, see the regional product inventory data specification.region
| Fields | |
|---|---|
name |
Output only. The name of the The The format of the
We recommend using the Encoded Format for all product IDs to ensure correct parsing, especially those containing special characters. The presence of tilde ( Note: For calls to the v1beta version, the plain format for the product segment is |
account |
Output only. The account that owns the product. This field will be ignored if set by the client. |
region |
Required. Immutable. ID of the region for this |
price |
Optional. Price of the product in this region. |
sale_price |
Optional. Sale price of the product in this region. Mandatory if |
sale_price_effective_date |
Optional. The |
custom_attributes[] |
A list of custom (merchant-provided) attributes. You can also use |
availability |
Availability of the product in this region. For accepted attribute values, see the regional product inventory data specification. |