Extract all orders from the API

Ouss91
New Member
3 0 0

 

Hello there =) 

 

I'm trying to retrieve all orders of my shop (13K + orders).

I made a simple loop with the 'since_id' to try to extract them all (with the 250 orders limit per request), the problem is that i can only get 499 of them.

I even tried to exctract date playin with created_at_min and created_at_max, same result, only 499/13K orders.

i can share the python code if needed.

How can you help with that Team.

 

Ps: i already put status=any in the url

 

Cheers

0 Likes
Jason
Shopify Expert
10360 158 2009

Do you have access to all orders in your app?

Take a read of the caution listed at the top of the docs page (but also pasted below):
https://shopify.dev/docs/admin-api/rest/reference/orders/order?api[version]=2020-04

As of June 6th, 2018, only the last 60 days' worth of orders from a store will be accessible from the Order resource by default. If you want to access older orders, then you need to request access to all orders. If your app is granted access, then you can add the read_all_orders scope to your app along with read_orders or write_ordersPrivate apps are not affected by this change and are automatically granted the scope.

I jump on these forums to help and share some insights. Not looking to be hired, and not looking for work.

Don't hand out staff invites or give admin password to forum members unless absolutely needed. In most cases the help you need can be handled without that.


★ http://freakdesign.com.au ★
0 Likes
Ouss91
New Member
3 0 0

Thank you, but it's a private app. we don't need that permission: "Private and custom apps that have permission to access a store's orders are not limited to the last 60 days. Private and custom apps don't need additional permission to access all a store's orders."

The problem is that i only have access to orders of the last 10 days only...

0 Likes