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

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=1006

Can anyone help me with this ?

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

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.

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,