Method: accounts.products.localInventories.insert
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
แทรกทรัพยากร LocalInventory ลงในผลิตภัณฑ์ในบัญชีผู้ขาย
แทนที่ทรัพยากร LocalInventory แบบเต็มหากผลิตภัณฑ์มีรายการที่มี storeCode เดียวกันอยู่แล้ว
ระบบอาจใช้เวลาถึง 30 นาทีกว่าที่ทรัพยากร LocalInventory ใหม่หรือที่อัปเดตแล้วจะปรากฏในผลิตภัณฑ์
คำขอ HTTP
POST https://merchantapi.googleapis.com/inventories/v1beta/{parent=accounts/*/products/*}/localInventories:insert
URL ใช้ไวยากรณ์การแปลง gRPC
พารามิเตอร์เส้นทาง
| พารามิเตอร์ |
parent |
string
ต้องระบุ บัญชีและผลิตภัณฑ์ที่จะแทรกสินค้าคงคลังนี้ รูปแบบ: accounts/{account}/products/{product}
|
เนื้อหาของคำขอ
เนื้อความของคำขอมีอินสแตนซ์ของ LocalInventory
เนื้อหาการตอบกลับ
หากทำสำเร็จ เนื้อหาการตอบกลับจะมีอินสแตนซ์ LocalInventory
ขอบเขตการให้สิทธิ์
ต้องใช้ขอบเขต OAuth ต่อไปนี้
https://www.googleapis.com/auth/content
ดูข้อมูลเพิ่มเติมได้ที่ OAuth 2.0 Overview
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-01-23 UTC
[null,null,["อัปเดตล่าสุด 2025-01-23 UTC"],[],["This operation inserts a `LocalInventory` resource for a product within a merchant account, replacing existing entries with the same `storeCode`. The process can take up to 30 minutes to reflect changes. A POST request to `https://merchantapi.googleapis.com/inventories/v1beta/{parent=accounts/*/products/*}/localInventories:insert` is used, with `parent` specifying the account and product. The request and response bodies utilize the `LocalInventory` resource. Authorization requires the `https://www.googleapis.com/auth/content` OAuth scope.\n"]]