Admin API for Orders does not return all orders even if status = any

hkumar
New Member
4 0 0

I am using Admin Rest API for orders to fetch the list orders but not all orders are included. I also used parameter "status = any" but no success. Below is the request URL - 

 

https://teststore.myshopify.com/admin/api/2021-01/orders.json?fields=order_number,id&status=any&name...

 

Can anyone help me with this ?

Replies 3 (3)

Jason
Shopify Expert
11196 226 2287

How many do you expect to see in that single response?

★ I jump on these forums in my free time to help and share some insights. Not looking to be hired, and not looking for work. http://freakdesign.com.au ★
hkumar
New Member
4 0 0

I tried also with shopify order id using API https://teststore.myshopify.com/admin/api/2021-01/orders/{orderid}.json 
but it is returning 

{
    "errors""Not Found"
}
 
we have capture the shopify order id from order/create webhook and when we tried to fetch the details of order it return not found.

csam
Shopify Staff (Retired)
267 40 51

It looks like you are querying one specific order, name = 1006. If the order is older than 60 days, you will need to request that access for your app. You can read more about this here: https://shopify.dev/api/admin-rest/2021-10/resources/order#top

 

Regards,

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