Specifications related to theCheckoutURL. TheUriTemplateis of the formhttps://www.mystore.com/checkout?item_id={id}
where{id}will be automatically replaced with data from the merchant account with this attributeofferId
JSON representation
{// Union fieldurl_templatecan be only one of the following:"checkoutUriTemplate":string,"cartUriTemplate":string// End of list of possible types for union fieldurl_template.}
Fields
Union fieldurl_template.
url_templatecan be only one of the following:
checkoutUriTemplate
string
URL template when the placeholders are expanded will redirect the buyer to the merchant checkout page with the item in the cart.
cartUriTemplate
string
URL template when the placeholders are expanded will redirect the buyer to the cart page on the merchant website with the selected item in cart.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-25 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eCheckout\u003c/code\u003e URL directs buyers to the merchant's checkout page with the specified item.\u003c/p\u003e\n"],["\u003cp\u003eThe URL template uses placeholders that are automatically replaced with the merchant's \u003ccode\u003eofferId\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003echeckoutUriTemplate\u003c/code\u003e field provides the URL template for the checkout process.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ecartUriTemplate\u003c/code\u003e field (if available) provides the URL template for adding an item to the merchant's cart.\u003c/p\u003e\n"]]],["The `Checkout` URL utilizes a `UriTemplate` like `https://www.mystore.com/checkout?item_id={id}`, with `{id}` replaced by the merchant's `offerId`. The `url_template` field, a union type, can be either `checkoutUriTemplate` or `cartUriTemplate`. `checkoutUriTemplate` directs buyers to the checkout page, while `cartUriTemplate` leads to the merchant's cart page, each with the selected item included. Only one of them can be defined.\n"],null,["# UrlSettings\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n\nSpecifications related to the `Checkout` URL. The `UriTemplate` is of the form `https://www.mystore.com/checkout?item_id={id}`\n\nwhere `{id}` will be automatically replaced with data from the merchant account with this attribute [offerId](https://developers.google.com/shopping-content/reference/rest/v2.1/products#Product.FIELDS.offer_id)\n\n| JSON representation |\n|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { // Union field `url_template` can be only one of the following: \"checkoutUriTemplate\": string, \"cartUriTemplate\": string // End of list of possible types for union field `url_template`. } ``` |\n\n| Fields ||\n|-----------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Union field `url_template`. `url_template` can be only one of the following: ||\n| `checkoutUriTemplate` | `string` URL template when the placeholders are expanded will redirect the buyer to the merchant checkout page with the item in the cart. |\n| `cartUriTemplate` | `string` URL template when the placeholders are expanded will redirect the buyer to the cart page on the merchant website with the selected item in cart. |"]]