Quantcast
Channel: Opinion: Shopify Community - Shopify APIs & SDKs
Viewing all articles
Browse latest Browse all 25503

How can I get the cart items of a given shopfi customer via the Shopify Api? by 7Spikes

$
0
0

down vote favorite

I understand that the Shopify Rest Api does not have the capability to return shopping cart items. I also understand that the Shopify Ajax Api has the /cart.js endpoint which allows you to retrieve the current user shopping cart. It uses a session cookie to identify the current user. But this means that the Ajax Api /cart.js could be used only from the context of a Shopify front-end.

Still I can see various Shopify apps or services that seem to be able to get the shopping cart for a given customer outside the context of a Shopify front-end. Does anyone know how I can call the Ajax Api /cart.js or any other endpoint in the Rest or Ajax api, and give it a user id perhaps or a shopping cart id and get the cart items for it?

Thanks


Viewing all articles
Browse latest Browse all 25503

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>