I’d like to code a page on my site that will display certain products to a SnipCart user if they are logged in and have the product in their order history, but I’m at a loss as to how I would call the currently logged-in user via the API. Once I have that, it seems like I can fetch their orders via the API but I don’t see how to fetch the current user without also creating an account on our website for them, which we’d prefer not to do.
Can someone help me with the curl language to get me started?
Thanks!