Discussions

Ask a Question
Back to All

Get current cart

Hi,

We have some cart api calls and recently ran into issues where more than one cart is returned. In this particular example, it was an orphaned cart from over a month ago that was the extra, so we know we can filter out older carts based on date updated in our calls. However, is there a more accurate way to tell which cart is the one currently being referenced in our user session when we are logged in to our website? We are mostly asking this question to ensure we are getting the correct cart, especially if you have multiple carts in the same day.

Kind regards,

Julie