Add a variant to the cart (optional)
For headless or cross-domain installs: proxies a Shopify Storefront cart mutation and returns checkoutUrl…
POST
For headless or cross-domain installs: proxies a Shopify Storefront cart mutation and returns
checkoutUrl. Not needed when cartMode: 'shopify_ajax' lets the widget call Shopify’s /cart/add.js directly.
Request body
CartAdd
string
required
e.g.
gid://shopify/ProductVariant/123number
required
string
Response
CartAddResponse
string