I feel that I am missing a lot of context on what you're building so this might not answer your question at all. If you add items via the AJAX API, then the cart would be available via /cart.js or simply by viewing the cart page.
User | Count |
---|---|
16 | |
12 | |
7 | |
5 | |
5 |