Issue In Fetching All the Orders For a Customer with admin/api/2021-10/customers/{customer_id}/order

New Member
1 0 0

I am trying to fetch all the orders of a particular customer by using admin/api/2021-10/customers/{customer_id}/orders.json API. I have noticed that for some of the customers it is giving empty list in responses ({"orders": []}). The customer ids that I am using are valid and the customers have placed orders as well (admin/api/2021-07/customers/{customer_id}.json API is giving ids of previous orders made by these customers). This is happening for about half of the customers while for others I am getting correct responses.

Reply 1 (1)
Shopify Staff
152 23 32

Hello @miteshparmar13 ,


If you are still experiencing this issue, can you pass me an x-request-id from your last api interaction? I can take a look to see what might be happening here

Graham S | API Support @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit or the Shopify Web Design and Development Blog