What's your biggest current challenge? Have your say in Community Polls along the right column.
Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

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

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

miteshparmar13
Visitor
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)

GrahamS
Shopify Staff (Retired)
193 37 55

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

To learn more visit the Shopify Help Center or the Community Blog.