Getting all orders of a customer with API is pretty staight forward way of API use. And it's a pretty common case, right? To know which orders belong to a customer, when having thousands of existing orders, is very useful.
I do not know why this is not supported by API. I did not find a way how to filer orders by email address, even the solution this forum offers does not work.
What I am trying to do is to use admin/orders.json with a filter for email (or customer ID if there is a way). Could anybody help me with this? Or could Shopify developers add this obvious filter?
Thank you very much.
You can get orders attached to a customer via their ID.
As per notes in the docs:
To get all customer orders: you have to add order "status" as well else you will get only "open" orders.
So endpoint can be something like this: