REST Resource: accounts.products.localInventories
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
资源:LocalInventory
JSON 表示法 |
{
"name": string,
"account": string,
"storeCode": string,
"price": {
object (Price )
},
"salePrice": {
object (Price )
},
"salePriceEffectiveDate": {
object (Interval )
},
"customAttributes": [
{
object (CustomAttribute )
}
],
"availability": string,
"quantity": string,
"pickupMethod": string,
"pickupSla": string,
"instoreProductLocation": string
} |
字段 |
name |
string
仅限输出。LocalInventory 资源的名称。格式:accounts/{account}/products/{product}/localInventories/{storeCode}
|
account |
string (int64 format)
仅限输出。产品所属的账号。如果由客户端设置,系统会忽略此字段。
|
storeCode |
string
必需。不可变。销售相应商品的实体店的商店代码(商家资料中的商店 ID)。如需了解详情,请参阅本地商品目录数据规范。
|
price |
object (Price )
商品在此商店中的价格。
|
salePrice |
object (Price )
商品在此商店中的促销价。如果定义了 salePriceEffectiveDate ,则必须提供。
|
salePriceEffectiveDate |
object (Interval )
此商店的促销活动的 TimePeriod 。
|
customAttributes[] |
object (CustomAttribute )
自定义(商家提供)属性的列表。您还可以使用 CustomAttribute 以通用形式提交数据规范的任何属性。
|
availability |
string
此商店的商品库存状况。如需了解接受的属性值,请参阅本地商品目录数据规范
|
quantity |
string (int64 format)
此商店中提供的商品数量。必须大于或等于零。
|
pickupMethod |
string
此商品支持的自提方法。除非值为 "not
supported" ,否则必须将此字段与 pickupSla 一起提交。如需了解接受的属性值,请参阅本地商品目录数据规范
|
pickupSla |
string
从此商品在该商店的订单下单之日到可自提的相对时间段。必须与 pickupMethod 一起提交。如需了解接受的属性值,请参阅本地商品目录数据规范
|
instoreProductLocation |
string
商品在商店内的具体位置。长度上限为 20 个字节。
|
方法 |
|
从商家账号中的指定商品中删除指定的 LocalInventory 。 |
|
将 LocalInventory 资源插入到商家账号中的商品中。 |
|
列出商家账号中指定商品的 LocalInventory 资源。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-11-21。
[null,null,["最后更新时间 (UTC):2024-11-21。"],[[["\u003cp\u003e\u003ccode\u003eLocalInventory\u003c/code\u003e resource represents in-store information for a specific product at a given store, allowing management of local product availability and pricing.\u003c/p\u003e\n"],["\u003cp\u003eIt includes details like price, sale price, availability, quantity, pickup options, and custom attributes, adhering to the local product inventory data specification.\u003c/p\u003e\n"],["\u003cp\u003eYou can manage \u003ccode\u003eLocalInventory\u003c/code\u003e using methods to insert, delete, and list inventory data for specific products in your merchant account.\u003c/p\u003e\n"]]],["LocalInventory provides in-store product details, using a `storeCode` to specify the store. Key data includes the product's `price`, `salePrice`, `availability`, and `quantity`. It also contains information such as `pickupMethod`, `pickupSla`, and `instoreProductLocation`. Supported actions include deleting, inserting, and listing LocalInventory resources for a specific product within a merchant account. Data can be represented in JSON format and can also contain customer-defined attributes.\n"],null,["# REST Resource: accounts.products.localInventories\n\n- [Resource: LocalInventory](#LocalInventory)\n - [JSON representation](#LocalInventory.SCHEMA_REPRESENTATION)\n- [Methods](#METHODS_SUMMARY)\n\nResource: LocalInventory\n------------------------\n\nLocal inventory information for the product. Represents in-store information for a specific product at the store specified by [`storeCode`](/merchant/api/reference/rest/inventories_v1beta/accounts.products.localInventories#LocalInventory.FIELDS.store_code). For a list of all accepted attribute values, see the [local product inventory data specification](https://support.google.com/merchants/answer/3061342).\n\n| JSON representation |\n|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"name\": string, \"account\": string, \"storeCode\": string, \"price\": { object (/merchant/api/reference/rest/Shared.Types/Price) }, \"salePrice\": { object (/merchant/api/reference/rest/Shared.Types/Price) }, \"salePriceEffectiveDate\": { object (/merchant/api/reference/rest/Shared.Types/Interval) }, \"customAttributes\": [ { object (/merchant/api/reference/rest/Shared.Types/CustomAttribute) } ], \"availability\": string, \"quantity\": string, \"pickupMethod\": string, \"pickupSla\": string, \"instoreProductLocation\": string } ``` |\n\n| Fields ||\n|---------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `name` | `string` Output only. The name of the `LocalInventory` resource. Format: `accounts/{account}/products/{product}/localInventories/{storeCode}` |\n| `account` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` Output only. The account that owns the product. This field will be ignored if set by the client. |\n| `storeCode` | `string` 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](https://support.google.com/merchants/answer/3061342) for more information. |\n| `price` | `object (`[Price](/merchant/api/reference/rest/Shared.Types/Price)`)` Optional. Price of the product at this store. |\n| `salePrice` | `object (`[Price](/merchant/api/reference/rest/Shared.Types/Price)`)` Optional. Sale price of the product at this store. Mandatory if [`salePriceEffectiveDate`](/merchant/api/reference/rest/inventories_v1beta/accounts.products.localInventories#LocalInventory.FIELDS.sale_price_effective_date) is defined. |\n| `salePriceEffectiveDate` | `object (`[Interval](/merchant/api/reference/rest/Shared.Types/Interval)`)` Optional. The `TimePeriod` of the sale at this store. |\n| `customAttributes[]` **(deprecated)** | `object (`[CustomAttribute](/merchant/api/reference/rest/Shared.Types/CustomAttribute)`)` | This item is deprecated! A list of custom (merchant-provided) attributes. You can also use `CustomAttribute` to submit any attribute of the data specification in its generic form. |\n| `availability` | `string` Availability of the product at this store. For accepted attribute values, see the [local product inventory data specification](https://support.google.com/merchants/answer/3061342) |\n| `quantity` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` Quantity of the product available at this store. Must be greater than or equal to zero. |\n| `pickupMethod` | `string` Supported pickup method for this product. Unless the value is `\"not supported\"`, this field must be submitted together with `pickupSla`. For accepted attribute values, see the [local product inventory data specification](https://support.google.com/merchants/answer/3061342) |\n| `pickupSla` | `string` 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 `pickupMethod`. For accepted attribute values, see the [local product inventory data specification](https://support.google.com/merchants/answer/3061342) |\n| `instoreProductLocation` | `string` Location of the product inside the store. Maximum length is 20 bytes. |\n\n| Methods ------- ||\n|---------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------|\n| ### [delete](/merchant/api/reference/rest/inventories_v1beta/accounts.products.localInventories/delete) | Deletes the specified `LocalInventory` from the given product in your merchant account. |\n| ### [insert](/merchant/api/reference/rest/inventories_v1beta/accounts.products.localInventories/insert) | Inserts a `LocalInventory` resource to a product in your merchant account. |\n| ### [list](/merchant/api/reference/rest/inventories_v1beta/accounts.products.localInventories/list) | Lists the `LocalInventory` resources for the given product in your merchant account. |"]]