I'm working on creating a e-commerce platform using Shopify headless, can anyone guide me in how we can leverage the basket functionality of Shopify?
I see there's the Cart API (https://shopify.dev/docs/themes/ajax-api/reference/cart) using the Ajax API but this appears to be aimed towards Shopify Themes, is there any reason we can't utilise this API from outside of Shopify? if not then what other approaches are there?
thank in advance,
If you're looking to implement a headless setup, you can have a look at our [Storefront API](https://shopify.dev/docs/storefront-api/). The storefront API allows you to build a custom experience by leveraging Shopify's APIs to display products/collections on your app, and make use of Shopify's checkout to securely process payments. That link contains a guide to getting started with the storefront API, as well the API reference docs.
JB | Developer Support @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Click Accept as Solution