Cart API, but open Shopify site for checkout

Hi,

We have a request from a client for a “shoppable experience” where the user can add and remove items in their cart on a microsite, and when ready, click “checkout” and have that link them to a Shopify site with said items already in the cart, effectively porting their cart from the microsite to the Shopify site. Is that even possible? And if so, how might one achieve it?

Thanks in advance!

Hi @Thinkingbox this process is possible but needs specifics

When you say

cart from the microsite to the Shopify site

By “site” If this means the online-sales channel theme i.e MyShop - Your Shopping Cart ,etc then you can use either the ajax-api , or the buy button SDK (embed shopify), or the storefront api(frontend and backend app).

Ajax api you’d build a url to fill cart with items and use the /return_to param to then redirect them to the desired page on the shopify site.

If by “site” you mean to start the checkout process, i.e. MyShop - MyShop, then use permalinks. Dev docs https://shopify.dev/apps/channels/cart-permalinks/cart-permalinks

Customization discussion https://community.shopify.com/c/shopify-design/cart-use-permalinks-to-pre-load-the-cart/td-p/613702