在非付费商品详情中添加结账链接
您可以使用
checkoutSettings
属性,为客户提供直接前往
结账页。有关更多信息,请参阅免费添加结账链接
商品详情。
您必须先提供有关您的商家和商品的具体信息,然后才能
您可以选择加入 Google Checkout 计划。您必须满足以下条件才能
使用 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
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-08-29。
[null,null,["最后更新时间 (UTC):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"]]