REST Resource: accounts.lfpInventories
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
ทรัพยากร: LfpInventory
สินค้าคงคลังในร้านสำหรับผู้ขาย
การแสดง JSON |
{
"name": string,
"targetAccount": string,
"storeCode": string,
"offerId": string,
"regionCode": string,
"contentLanguage": string,
"price": {
object (Price )
},
"availability": string,
"collectionTime": string,
"gtin": string,
"quantity": string,
"pickupMethod": string,
"pickupSla": string,
"feedLabel": string
} |
ช่อง |
name |
string
เอาต์พุตเท่านั้น ตัวระบุ ชื่อของทรัพยากร LfpInventory รูปแบบ: accounts/{account}/lfpInventories/{target_merchant}~{storeCode}~{offer}
|
targetAccount |
string (int64 format)
ต้องระบุ รหัส Merchant Center ของผู้ขายที่จะส่งสินค้าคงคลัง
|
storeCode |
string
ต้องระบุ ตัวระบุร้านค้าของผู้ขาย รหัสร้านค้าที่แทรกผ่าน InsertLfpStore หรือรหัสร้านค้าใน Business Profile
|
offerId |
string
ต้องระบุ เปลี่ยนแปลงไม่ได้ ตัวระบุที่ไม่ซ้ำสำหรับผลิตภัณฑ์ หากส่งทั้งสินค้าคงคลังและยอดขายสำหรับผู้ขาย รหัสนี้ควรตรงกันสำหรับผลิตภัณฑ์เดียวกัน หมายเหตุ: หากผู้ขายขายผลิตภัณฑ์เดียวกันทั้งแบบสินค้าใหม่และมือสอง ผู้ขายควรใช้รหัสที่ต่างกัน
|
regionCode |
string
ต้องระบุ รหัสเขตแดน CLDR สำหรับประเทศที่ขายผลิตภัณฑ์
|
contentLanguage |
string
ต้องระบุ รหัสภาษา ISO 639-1 แบบ 2 ตัวอักษรของรายการ
|
price |
object (Price )
ไม่บังคับ ราคาปัจจุบันของผลิตภัณฑ์
|
availability |
string
ต้องระบุ ความพร้อมจำหน่ายผลิตภัณฑ์ที่ร้านค้านี้ ดูค่าแอตทริบิวต์ที่ยอมรับได้ที่ข้อกำหนดในการจัดทำข้อมูลสินค้าคงคลังของผลิตภัณฑ์ในร้าน
|
collectionTime |
string (Timestamp format)
ไม่บังคับ เวลาที่รวบรวมข้อมูลสินค้าคงคลัง หากไม่ได้ตั้งค่าไว้ ระบบจะตั้งค่าเป็นเวลาที่ส่งพื้นที่โฆษณา
|
gtin |
string
ไม่บังคับ หมายเลขสินค้าการค้าสากลของผลิตภัณฑ์
|
quantity |
string (int64 format)
ไม่บังคับ จำนวนผลิตภัณฑ์ที่พร้อมจำหน่ายในร้านค้านี้ ต้องมากกว่าหรือเท่ากับ 0
|
pickupMethod |
string
ไม่บังคับ วิธีรับสินค้าที่รองรับสำหรับข้อเสนอนี้ คุณต้องส่งช่องนี้พร้อมกับ pickupSla เว้นแต่ว่าค่าจะเป็น "ไม่รองรับ" ดูค่าแอตทริบิวต์ที่ยอมรับได้ที่ข้อกำหนดในการจัดทำข้อมูลสินค้าคงคลังของผลิตภัณฑ์ในร้าน
|
pickupSla |
string
ไม่บังคับ วันที่คาดว่าจะรับสินค้าได้เมื่อนับจากวันที่สั่งซื้อ ต้องส่งพร้อมกับ pickupMethod ดูค่าแอตทริบิวต์ที่ยอมรับได้ที่ข้อกำหนดในการจัดทำข้อมูลสินค้าคงคลังของผลิตภัณฑ์ในร้าน
|
feedLabel |
string
ไม่บังคับ ป้ายกำกับฟีดของผลิตภัณฑ์ หากไม่ได้ตั้งค่านี้ไว้ ระบบจะใช้ regionCode เป็นค่าเริ่มต้น
|
เมธอด |
|
แทรกทรัพยากร LfpInventory สําหรับบัญชีผู้ขายเป้าหมายที่ระบุ |
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2024-11-21 UTC
[null,null,["อัปเดตล่าสุด 2024-11-21 UTC"],[[["\u003cp\u003eThe LfpInventory resource represents a merchant's local product inventory, including details like price, availability, and quantity.\u003c/p\u003e\n"],["\u003cp\u003eIt requires key identifiers such as targetAccount, storeCode, and offerId to uniquely identify products.\u003c/p\u003e\n"],["\u003cp\u003eMerchants can manage their local product inventory by inserting LfpInventory resources using the \u003ccode\u003einsert\u003c/code\u003e method.\u003c/p\u003e\n"],["\u003cp\u003eThe resource utilizes standardized codes for region, language, and product identifiers like GTIN for consistency.\u003c/p\u003e\n"],["\u003cp\u003eOptional fields like pickupMethod and pickupSla allow merchants to specify order fulfillment options.\u003c/p\u003e\n"]]],["The `LfpInventory` resource represents a merchant's local product inventory. Key information includes `targetAccount` (merchant ID), `storeCode`, `offerId` (product ID), `regionCode`, and `contentLanguage`. It also contains product details like `price`, `availability`, `gtin`, and `quantity`. Optional data points are `collectionTime`, `pickupMethod`, `pickupSla`, and `feedLabel`. The primary action is the `insert` method, which submits inventory data for a specific merchant account.\n"],null,["# REST Resource: accounts.lfpInventories\n\n- [Resource: LfpInventory](#LfpInventory)\n - [JSON representation](#LfpInventory.SCHEMA_REPRESENTATION)\n- [Methods](#METHODS_SUMMARY)\n\nResource: LfpInventory\n----------------------\n\nLocal Inventory for the merchant.\n\n| JSON representation |\n|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"name\": string, \"targetAccount\": string, \"storeCode\": string, \"offerId\": string, \"regionCode\": string, \"contentLanguage\": string, \"price\": { object (/merchant/api/reference/rest/Shared.Types/Price) }, \"availability\": string, \"collectionTime\": string, \"gtin\": string, \"quantity\": string, \"pickupMethod\": string, \"pickupSla\": string, \"feedLabel\": string } ``` |\n\n| Fields ||\n|-------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `name` | `string` Output only. Identifier. The name for the `LfpInventory` resource. Format: `accounts/{account}/lfpInventories/{target_merchant}~{storeCode}~{offer}` |\n| `targetAccount` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` Required. The Merchant Center ID of the merchant to submit the inventory for. |\n| `storeCode` | `string` Required. The identifier of the merchant's store. Either the store code inserted through `InsertLfpStore` or the store code in the Business Profile. |\n| `offerId` | `string` 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. |\n| `regionCode` | `string` Required. The [CLDR territory code](https://github.com/unicode-org/cldr/blob/latest/common/main/en.xml) for the country where the product is sold. |\n| `contentLanguage` | `string` Required. The two-letter ISO 639-1 language code for the item. |\n| `price` | `object (`[Price](/merchant/api/reference/rest/Shared.Types/Price)`)` Optional. The current price of the product. |\n| `availability` | `string` Required. 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| `collectionTime` | `string (`[Timestamp](https://protobuf.dev/reference/protobuf/google.protobuf/#timestamp)` format)` Optional. The time when the inventory is collected. If not set, it will be set to the time when the inventory is submitted. |\n| `gtin` | `string` Optional. The Global Trade Item Number of the product. |\n| `quantity` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` Optional. Quantity of the product available at this store. Must be greater than or equal to zero. |\n| `pickupMethod` | `string` Optional. Supported pickup method for this offer. 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` Optional. Expected date that an order will be ready for pickup relative to the order date. Must be submitted together with `pickupMethod`. For accepted attribute values, see the [local product inventory data specification](https://support.google.com/merchants/answer/3061342). |\n| `feedLabel` | `string` Optional. The [feed label](https://developers.google.com/shopping-content/guides/products/feed-labels) for the product. If this is not set, it will default to `regionCode`. |\n\n| Methods ------- ||\n|--------------------------------------------------------------------------------------|--------------------------------------------------------------------------|\n| ### [insert](/merchant/api/reference/rest/lfp_v1beta/accounts.lfpInventories/insert) | Inserts a `LfpInventory` resource for the given target merchant account. |"]]