AI-generated Key Takeaways
-
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.
You can use the
checkoutSettings
attribute of free listings to provide a link for customers to go directly to the
checkout page. For more information, see add a checkout link for your free
listings.
You must provide specific information about your business and products before
you can opt in to the checkout program. You must meet the following criteria to
use checkoutSettings
:
- Have an active product feed in the Google Merchant Center.
- Your merchant account must be enrolled in the free listings program.
Check the Google Merchant Center UI to see if you're already enrolled in the free listings program. If you're not enrolled, complete the free listings onboarding steps. Use the following format for your checkout URLs:
https://mystore.com/path-to-product/{id}
When a customer clicks on the checkout URL in your free listing, {id}
is
automatically replaced with the offerId
of the product.
Add your checkout URL
You can use
freelistingsprogram.checkoutsettings.insert
to
add or update your checkout URL template. This call updates your checkout URL
template at the account level, and opts all valid offers into the checkout
feature.
POST https://shoppingcontent.googleapis.com/content/v2.1/{merchantId}/freelistingsprogram/checkoutsettings
Here's an example:
{
uri_settings: {
checkout_uri_template: "https://domain_name.com/custom_path/{id}"
}
}
View your current checkout URL
You can use
freelistingsprogram.checkoutsettings.get
to view your existing checkout URL. get
is read-only, and requires your
merchantId
. The get
method returns the corresponding checkout
resource.
GET https://shoppingcontent.googleapis.com/content/v2.1/{merchantId}/freelistingsprogram/checkoutsettings
Remove your checkout URL
You can remove your checkout URL by using
freelistingsprogram.checkoutsettings.delete
.
This opts all your offers out of the checkout feature.
DELETE https://shoppingcontent.googleapis.com/content/v2.1/{merchantId}/freelistingsprogram/checkoutsettings