rocket
ขอแนะนำ
Merchant API
ซึ่งเป็นเวอร์ชันต่อไปอย่างเป็นทางการของ Content API for Shopping
update
รับข้อมูลล่าสุด
เกี่ยวกับฟีเจอร์ใหม่ การแก้ไขข้อบกพร่อง และการอัปเดตของ Merchant API
add_alert
หมายเหตุ: Content API for Shopping จะหยุดให้บริการในวันที่ 18 สิงหาคม 2026
เพิ่มลิงก์การชำระเงินลงในข้อมูลที่แสดงฟรี
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
คุณสามารถใช้แอตทริบิวต์
checkoutSettings
ของข้อมูลที่แสดงฟรีเพื่อระบุลิงก์ให้ลูกค้าไปยัง
หน้าชำระเงินโดยตรง ดูข้อมูลเพิ่มเติมได้ที่เพิ่มลิงก์หน้าชำระเงินสำหรับข้อมูลที่แสดงฟรี
คุณต้องระบุข้อมูลที่เฉพาะเจาะจงเกี่ยวกับธุรกิจและผลิตภัณฑ์ก่อนจึงจะเลือกใช้โปรแกรมชำระเงินได้ คุณต้องมีคุณสมบัติตามเกณฑ์ต่อไปนี้จึงจะ
ใช้ checkoutSettings
ได้
ตรวจสอบ UI ของ Google Merchant Center เพื่อดูว่าคุณได้ลงทะเบียนใน
โปรแกรมข้อมูลที่แสดงฟรีแล้วหรือยัง หากยังไม่ได้ลงทะเบียน ให้ทำตามขั้นตอนการเริ่มต้นใช้งานข้อมูลที่แสดงฟรี ใช้รูปแบบต่อไปนี้สำหรับ URL การชำระเงิน
https://mystore.com/path-to-product/{id}
เมื่อลูกค้าคลิก URL การชำระเงินในข้อมูลที่แสดงฟรี {id}
จะ
แทนที่ด้วย offerId
ของผลิตภัณฑ์โดยอัตโนมัติ
เพิ่ม URL การชำระเงิน
คุณใช้
freelistingsprogram.checkoutsettings.insert
เพื่อ
เพิ่มหรืออัปเดตเทมเพลต URL การชำระเงินได้ การเรียกนี้จะอัปเดตเทมเพลต URL การชำระเงินที่ระดับบัญชี และเลือกใช้ข้อเสนอที่ถูกต้องทั้งหมดในฟีเจอร์การชำระเงิน
POST https://shoppingcontent.googleapis.com/content/v2.1/{merchantId}/freelistingsprogram/checkoutsettings
เช่น
{
uri_settings: {
checkout_uri_template: "https://domain_name.com/custom_path/{id}"
}
}
ดู URL การชำระเงินปัจจุบัน
คุณใช้
freelistingsprogram.checkoutsettings.get
เพื่อดู URL การชำระเงินที่มีอยู่ได้ get
เป็นแบบอ่านอย่างเดียวและต้องใช้
merchantId
เมธอด get
จะแสดงผลทรัพยากร checkout
ที่เกี่ยวข้อง
GET https://shoppingcontent.googleapis.com/content/v2.1/{merchantId}/freelistingsprogram/checkoutsettings
นำ URL การชำระเงินออก
คุณนำ URL การชำระเงินออกได้โดยใช้
freelistingsprogram.checkoutsettings.delete
การดำเนินการนี้จะเลือกไม่ใช้ข้อเสนอทั้งหมดในฟีเจอร์การชำระเงิน
DELETE https://shoppingcontent.googleapis.com/content/v2.1/{merchantId}/freelistingsprogram/checkoutsettings
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-08-13 UTC
[null,null,["อัปเดตล่าสุด 2025-08-13 UTC"],[[["\u003cp\u003eGoogle is introducing the Merchant API beta, the new version of the Content API for Shopping.\u003c/p\u003e\n"],["\u003cp\u003eUse the \u003ccode\u003echeckoutSettings\u003c/code\u003e attribute to add a checkout link directly to your free listings, enhancing the customer shopping experience.\u003c/p\u003e\n"],["\u003cp\u003eTo utilize \u003ccode\u003echeckoutSettings\u003c/code\u003e, you need an active product feed in Google Merchant Center and be enrolled in the free listings program.\u003c/p\u003e\n"],["\u003cp\u003eImplement 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.\u003c/p\u003e\n"],["\u003cp\u003eManage 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.\u003c/p\u003e\n"]]],["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"],null,["# Add a checkout link to your free listings\n\nYou can use the\n[`checkoutSettings`](/shopping-content/reference/rest/v2.1/CheckoutSettings)\nattribute of free listings to provide a link for customers to go directly to the\ncheckout page. For more information, see [add a checkout link for your free\nlistings](//support.google.com/merchants/answer/13580732).\n\nYou must provide specific information about your business and products before\nyou can opt in to the checkout program. You must meet the following criteria to\nuse `checkoutSettings`:\n\n- Have an active [product\n feed](//support.google.com/merchants/answer/7439882?) in the [Google\n Merchant Center](//merchants.google.com/).\n- Your merchant account must be enrolled in the free listings program.\n\nCheck the Google Merchant Center UI to see if you're already enrolled in the\nfree listings program. If you're not enrolled, complete the [free listings\nonboarding](//support.google.com/merchants/answer/9455788) steps. Use the\nfollowing format for your checkout URLs: \n\n https://mystore.com/path-to-product/{id}\n\nWhen a customer clicks on the checkout URL in your free listing, `{id}` is\nautomatically replaced with the [`offerId`](/shopping-content/guides/products/product-id) of the product.\n\nAdd your checkout URL\n---------------------\n\nYou can use\n[`freelistingsprogram.checkoutsettings.insert`](/shopping-content/reference/rest/v2.1/freelistingsprogram.checkoutsettings/insert)to\nadd or update your checkout URL template. This call updates your checkout URL\ntemplate at the account level, and opts all valid offers into the checkout\nfeature. \n\n POST https://shoppingcontent.googleapis.com/content/v2.1/{merchantId}/freelistingsprogram/checkoutsettings\n\nHere's an example: \n\n {\n uri_settings: {\n checkout_uri_template: \"https://domain_name.com/custom_path/{id}\"\n }\n }\n\nView your current checkout URL\n------------------------------\n\nYou can use\n[`freelistingsprogram.checkoutsettings.get`](/shopping-content/reference/rest/v2.1/freelistingsprogram.checkoutsettings/get)\nto view your existing checkout URL. `get` is read-only, and requires your\n`merchantId`. The `get` method returns the corresponding `checkout` resource. \n\n GET https://shoppingcontent.googleapis.com/content/v2.1/{merchantId}/freelistingsprogram/checkoutsettings\n\nRemove your checkout URL\n------------------------\n\nYou can remove your checkout URL by using\n[`freelistingsprogram.checkoutsettings.delete`](/shopping-content/reference/rest/v2.1/freelistingsprogram.checkoutsettings/delete).\nThis opts all your offers out of the checkout feature. \n\n DELETE https://shoppingcontent.googleapis.com/content/v2.1/{merchantId}/freelistingsprogram/checkoutsettings"]]