Page Summary
-
The LfpInventory resource represents a merchant's local product inventory, including details like price, availability, and quantity.
-
It requires key identifiers such as targetAccount, storeCode, and offerId to uniquely identify products.
-
Merchants can manage their local product inventory by inserting LfpInventory resources using the
insertmethod. -
The resource utilizes standardized codes for region, language, and product identifiers like GTIN for consistency.
-
Optional fields like pickupMethod and pickupSla allow merchants to specify order fulfillment options.
Resource: LfpInventory
Local Inventory for the merchant.
| JSON representation |
|---|
{
"name"
:
string
,
"targetAccount"
:
string
,
"storeCode"
:
string
,
"offerId"
:
string
,
"regionCode"
:
string
,
"contentLanguage"
:
string
,
"price"
:
{
object (
|
| Fields | |
|---|---|
name
|
Output only. Identifier. The name for the |
targetAccount
|
Required. The Merchant Center ID of the merchant to submit the inventory for. |
storeCode
|
Required. The identifier of the merchant's store. Either the store code inserted through |
offerId
|
Required. Immutable. A unique identifier for the product. If both inventories and sales are submitted for a merchant, this id should match for the same product. Note: if the merchant sells the same product new and used, they should have different IDs. |
regionCode
|
Required. The CLDR territory code for the country where the product is sold. |
contentLanguage
|
Required. The two-letter ISO 639-1 language code for the item. |
price
|
Optional. The current price of the product. |
availability
|
Required. Availability of the product at this store. For accepted attribute values, see the local product inventory data specification |
collectionTime
|
Optional. The time when the inventory is collected. If not set, it will be set to the time when the inventory is submitted. |
gtin
|
Optional. The Global Trade Item Number of the product. |
quantity
|
Optional. Quantity of the product available at this store. Must be greater than or equal to zero. |
pickupMethod
|
Optional. Supported pickup method for this offer. Unless the value is "not supported", this field must be submitted together with |
pickupSla
|
Optional. Expected date that an order will be ready for pickup relative to the order date. Must be submitted together with |
feedLabel
|
Optional. The feed label
for the product. If this is not set, it will default to |
Methods |
|
|---|---|
|
Inserts a LfpInventory
resource for the given target merchant account. |

