Have your say in Community Polls: What was/is your greatest motivation to start your own business?
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.

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

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 Partner
11206 226 2315

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.