Method: accounts.products.localInventories.insert

LocalInventory 資源插入商家帳戶中的產品。

如果產品已有相同的 storeCode,則取代完整的 LocalInventory 資源。

全新或更新的 LocalInventory 資源最多可能需要 30 分鐘才會顯示在產品中。

HTTP 要求

POST https://merchantapi.googleapis.com/inventories/v1beta/{parent=accounts/*/products/*}/localInventories:insert

這個網址使用 gRPC 轉碼語法。

路徑參數

參數
parent

string

必要欄位。要插入這個商品目錄的帳戶和產品。格式:accounts/{account}/products/{product}

要求主體

要求主體包含 LocalInventory 的例項。

回應主體

如果成功,回應主體會包含 LocalInventory 的執行例項。

授權範圍

需要下列 OAuth 範圍:

  • https://www.googleapis.com/auth/content

詳情請參閱 OAuth 2.0 總覽