We have a free product offer we're working on. I came up with the idea of trying to prevent abuse by using the custom shipping endpoint to hit our server where I'd like to do the following:
1. check for the free product in the cart (done)
2. grab customer details (can't find their email in the cart_details array)
3. grab customer's orders via the API (I can do that)
4. check if they've already purchased this free product. If so, remove this new one from the cart.
Does that logic sound decent to you? Is there a smarter way I can do this? Or, how can I grab the customer details along with the cart details in the custom shipping endpoint?
Thanks as always!