This is an accepted solution.
Aibek is here from Speedimize.io agency.
Hope this message finds you well.
You will not be able to get all the orders at once. You will get a maximum of 250 orders at a time. Depending on the programming language you use, you should save the since_id as soon as you get the first response. Check here: https://shopify.dev/docs/admin-api/rest/reference/orders/order#index-2021-04
|since_id||Show orders after the specified ID|
With the help of since_id, you will get the rest of the orders.
That is, the logic will be like this, with the help of a loop after the first response, you save the since_id. (In the beginning, the request will go without the since_id) When there is a second call in the loop, you will send already the since_id and get the products starting from the specific order_id. That is, everything else. And this will continue until you get all the orders. It may be a little confusing, but the developers need to figure it out. That's how we use it at our end. Using the loop and the since_id, you get all the necessary data.
Hope this will helps you.