Rest API

Solved
poojafmile
Tourist
13 1 0

Hello, 

the limit for rest API is 250.  I wan to get all the orders from my store, which is more than 250

Is there any other way to implement it ?

0 Likes
Speedimize
Shopify Partner
213 35 93

This is an accepted solution.

Hi @poojafmile 

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_idShow 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. 

Stay safe!

We Speedimize your store
Have a problem with speed performance, send me email here: hello@speedimize.io


If our advice was helpful please LIKE or ACCEPT SOLUTION
0 Likes