Method: accounts.products.localInventories.insert
Koleksiyonlar ile düzeninizi koruyun
İçeriği tercihlerinize göre kaydedin ve kategorilere ayırın.
Satıcı hesabınızdaki bir ürüne LocalInventory kaynağı ekler.
Ürün için aynı storeCode değerine sahip bir giriş varsa tam LocalInventory kaynağının yerini alır.
Yeni veya güncellenmiş LocalInventory kaynağının ürünlerde görünmesi 30 dakikayı bulabilir.
HTTP isteği
POST https://merchantapi.googleapis.com/inventories/v1beta/{parent=accounts/*/products/*}/localInventories:insert
URL, gRPC Kod Dönüştürme söz dizimini kullanır.
Yol parametreleri
| Parametreler |
parent |
string
Zorunlu. Bu envanterin ekleneceği hesap ve ürün. Biçim: accounts/{account}/products/{product}
|
İstek içeriği
İstek metni, LocalInventory öğesinin bir örneğini içerir.
Yanıt gövdesi
Başarılıysa yanıt metni, LocalInventory öğesinin bir örneğini içerir.
Yetkilendirme kapsamları
Aşağıdaki OAuth kapsamını gerektirir:
https://www.googleapis.com/auth/content
Daha fazla bilgi için OAuth 2.0 Overview sayfasına bakın.
Aksi belirtilmediği sürece bu sayfanın içeriği Creative Commons Atıf 4.0 Lisansı altında ve kod örnekleri Apache 2.0 Lisansı altında lisanslanmıştır. Ayrıntılı bilgi için Google Developers Site Politikaları'na göz atın. Java, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2025-01-23 UTC.
[null,null,["Son güncelleme tarihi: 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"]]