You can use the Merchant API to add a checkout feature of free listings where the business can provide a direct link to their checkout page or cart page.
For more information, see Add a checkout link for your products.
To opt into the checkout program and use the Checkout API, you must meet the following criteria:
- Have an active product feed in Merchant Center.
- Your business account must be enrolled in the free listings program.
- The countries where your online store products are available must include the United States.
Requests
To make requests, use the following URL.
https://merchantapi.googleapis.com/accounts/v1beta/{parent=accounts/ACCOUNT_ID/programs/checkout/checkoutSettings}
Here's a sample comparison of the requests in Content API for Shopping to the Merchant Checkout API:
Content API | Merchant API | |
---|---|---|
URL | https://shoppingcontent.googleapis.com/content/v2.1/{MERCHANT_ID}/freelistingsprogram/checkoutsettings | https://merchantapi.googleapis.com/checkoutsettings/v1beta/{NAME} |
Identifiers | {ID} |
{NAME}
|
Methods
The Merchant API supports the following methods for checkout settings:
- Create
- Update
- Get
- Delete
Here's a comparison of checkout methods availability in the Content API for Shopping and the Merchant API:
Method | Content API for Shopping | Merchant API |
---|---|---|
get |
Yes | Yes |
insert |
Yes | Yes |
delete |
Yes | Yes |
customBatch |
No | No |
Identifiers
In the Content API for Shopping:
{MERCHANT_ID}/freelistingsprogram/checkoutsettings
In Merchant API becomes:
{NAME}/programs/checkout/checkoutSettings
{NAME} will be replaced with the format: accounts/{ACCOUNT_ID}.