AI-generated Key Takeaways
-
LocalInventoryresource represents in-store information for a specific product at a given store, allowing management of local product availability and pricing. -
It includes details like price, sale price, availability, quantity, pickup options, and custom attributes, adhering to the local product inventory data specification.
-
You can manage
LocalInventoryusing methods to insert, delete, and list inventory data for specific products in your merchant account.
Resource: 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
| JSON representation |
|---|
{ "name": string, "account": string, "storeCode": string, "price": { object ( |
| 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. |
storeCode |
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. |
salePrice |
Optional. Sale price of the product at this store. Mandatory if |
salePriceEffectiveDate |
Optional. The |
customAttributes[] |
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. |
pickupMethod |
Supported pickup method for this product. Unless the value is |
pickupSla |
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 |
instoreProductLocation |
Location of the product inside the store. Maximum length is 20 bytes. |
Methods |
|
|---|---|
|
Deletes the specified LocalInventory from the given product in your merchant account. |
|
Inserts a LocalInventory resource to a product in your merchant account. |
|
Lists the LocalInventory resources for the given product in your merchant account. |