Hi everyone,
We are running an online shop that uses Odoo purely as a backend via its API. Our goal is to handle as much as possible through Odoo, including shopping carts, checkout, login, and payment.
Everything works fine for logged-in users. For anonymous users(not logged-in users), we can retrieve all draft orders (shopping carts) through the API. However, the challenge is matching a specific cart to a specific anonymous user, for example by the browser session_id.
Currently, all anonymous carts are linked to the public user (ID 4). My assumption is that Odoo tracks them via the session_id, but I haven’t been able to find a way to associate the session or any client-side identifier with a cart via the API.
Does anyone know the recommended way to retrieve the correct cart for a specific anonymous user using Odoo’s API? Is there a standard approach for linking carts to sessions for public users? Is it even possible?
Thanks in advance for any guidance!