You can use the
[`checkoutSettings`](https://developers.google.com/shopping-content/reference/rest/v2.1/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](https://support.google.com/merchants/answer/13580732).

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](https://support.google.com/merchants/answer/7439882) in the [Google
  Merchant Center](https://merchants.google.com/).
- 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](https://support.google.com/merchants/answer/9455788) 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`](https://developers.google.com/shopping-content/guides/products/product-id) of the product.

## Add your checkout URL

You can use
[`freelistingsprogram.checkoutsettings.insert`](https://developers.google.com/shopping-content/reference/rest/v2.1/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`](https://developers.google.com/shopping-content/reference/rest/v2.1/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`](https://developers.google.com/shopping-content/reference/rest/v2.1/freelistingsprogram.checkoutsettings/delete).
This opts all your offers out of the checkout feature.

    DELETE https://shoppingcontent.googleapis.com/content/v2.1/{merchantId}/freelistingsprogram/checkoutsettings