將結帳連結加入免費產品資訊
您可以使用
checkoutSettings
敬上
屬性,提供連結,方便消費者直接前往
結帳頁面。如需詳細資訊,請參閱新增免費的結帳連結
商家資訊。
您必須先提供商家和產品的特定資訊。
你可以選擇加入結帳計畫你必須符合下列條件,
使用 checkoutSettings
:
請前往 Google Merchant Center 使用者介面,確認是否已註冊
免費產品資訊計畫如果您尚未註冊,請完成免費產品資訊
新手上路步驟。使用
格式如下:
https://mystore.com/path-to-product/{id}
消費者點按免費產品資訊中的結帳網址時,{id}
會自動替換為產品的 offerId
。
新增結帳網址
別擔心!您可以使用
freelistingsprogram.checkoutsettings.insert
至
新增或更新結帳網址範本。這項呼叫會更新結帳網址
範本,並將所有有效商品加入結帳選項
而不是每個特徵的分數
POST https://shoppingcontent.googleapis.com/content/v2.1/{merchantId}/freelistingsprogram/checkoutsettings
範例如下:
{
uri_settings: {
checkout_uri_template: "https://domain_name.com/custom_path/{id}"
}
}
查看目前的結帳網址
別擔心!您可以使用
freelistingsprogram.checkoutsettings.get
敬上
即可查看現有的結帳網址。get
是唯讀檔案,需要您的
merchantId
。get
方法會傳回對應的 checkout
資源。
GET https://shoppingcontent.googleapis.com/content/v2.1/{merchantId}/freelistingsprogram/checkoutsettings
移除結帳網址
你可以移除結帳網址:
freelistingsprogram.checkoutsettings.delete
。
這項操作會停用結帳功能。
DELETE https://shoppingcontent.googleapis.com/content/v2.1/{merchantId}/freelistingsprogram/checkoutsettings
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2024-08-29 (世界標準時間)。
[null,null,["上次更新時間:2024-08-29 (世界標準時間)。"],[[["Google is introducing the Merchant API beta, the new version of the Content API for Shopping."],["Use the `checkoutSettings` attribute to add a checkout link directly to your free listings, enhancing the customer shopping experience."],["To utilize `checkoutSettings`, you need an active product feed in Google Merchant Center and be enrolled in the free listings program."],["Implement the checkout feature by adding or updating your checkout URL template using the provided API calls, allowing customers to purchase directly from your free listings."],["Manage your checkout URL by viewing, updating, or removing it via the respective API calls, giving you control over the checkout process for your free listings."]]],["The Merchant API beta, a new version of the Content API for Shopping, is introduced. To use `checkoutSettings` for free listings, users need an active product feed and enrollment in the free listings program. Merchants can add or update their checkout URL templates using `freelistingsprogram.checkoutsettings.insert`, view existing URLs with `get`, and remove them with `delete`. The checkout URL directs customers to a product's checkout page, automatically replacing `{id}` with the product's `offerId`.\n"]]