Basket Functionality with Ajax API

Highlighted
New Member
8 0 0

Hi all

 

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,

David  

0 Likes
Highlighted
Shopify Staff
Shopify Staff
586 71 128

Hey @dh-thetin,

 

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 

0 Likes
Highlighted
New Member
8 0 0

Hi @_JB ,

 

The Storefront API has nothing about any basket implementation? 

 

Thanks

David

0 Likes