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

stage32
Visitor
2 0 0

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?  

Replies 0 (0)