How to get list of orders for a single customer



I’m looking at the documentation but I can’t seem to find how to get a list of all orders made by a single client. Is it possible? I want to add the possibility to my customers to see and maybe delete their orders.


Hey Bica :wave:

Great question! You can use customer JWT to retrieve orders associated with a specific customer. This is assuming that the customer ID was used on checkout.

If you can provide a more specific use case, including if you’re using a Moltin SDK library, I can provide some examples :slight_smile:


Thanks for the quick answer. I’m making direct api calls and I tried using the token during the checkout by putting it in the authorization header like: “Authorization: Bearer ” but it gives me a 401 unauthorized error.


Hey @Bica. Take a look at this answer in your other thread.


This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.