Have your say in Community Polls: What was/is your greatest motivation to start your own business?

Storefront API: Create Cart and get the cart url, not the checkout url

Storefront API: Create Cart and get the cart url, not the checkout url

stage32
Tourist
3 0 4

I am creating a cart using the Storefront API: https://shopify.dev/docs/api/storefront/2024-01/mutations/cartCreate

 

I have a headless store though I would like to leverage the cart and checkout functionality from shopify.

 

I see the cart has a field called checkoutUrl. This url takes the user directly to the checkout experience for this particular cart.

 

Is there a way to send the user to the view cart experience where they can modify the quantity and remove items? I have the cart id, is there a standard /cart/{id} url or something similar?  

Reply 1 (1)

fbonizzi
Shopify Partner
3 0 0

Hi! Same problem here. Did you solve it?