Cannot get all sale orders over REST-API - link for next page is missing

Hello,

please, I have a serious problem. No matter I do I cannot get enough sales orders over REST-API.

I cannot get much more than 600 orders but I should get more than 11000.
We have this problem for a lot of accounts. Can you please help me to discover what can we do wrong?

https://{shop}.myshopify.com/admin/api/2021-10/orders/count.json?status=any

{
"count": 11040
}
https://{shop}.myshopify.com/admin/api/2021-10/orders.json?limit=250&status=any

- get 250 orders and next link (utilize rel=next)

```css

```css

Thank you

Just a thought: Are you getting orders within 60 days and missing orders beyond that?

Have a look at https://community.shopify.com/c/shopify-apis-and-sdks/rest-api-orders-older-then-60-days/m-p/827789

and the caution section in https://shopify.dev/api/admin-rest/2022-04/resources/order#top

1 Like

Hello,

thank you for reminding me this. The true is the scope is not contain “read_all_orders” nevertheless we have more than 100 clients and for most of them we have this scope. But sometimes it must go strange. We download bunch of data over bulk at first run and after some time when we needed to download some customer again from scratch, problem appeared. It would be hard to guess. Anyway thank you for you help.