Lazy Forum Question about RestAPI Order paging

Highlighted
Shopify Expert
4182 29 403

If you use the since ID to start a query, asking for all orders since since_id is the last order Shopify returns in paging sets going to be the latest order? Is ordering preserved through these calls? Without seeing the internal Shopify cursors and SQL it is hard to say, and running experiments does not seem definitive either. Any hints Shopify?

Custom Shopify Apps built just for you! hunkybill@gmail.com http://www.resistorsoftware.com
0 Likes
Highlighted
Shopify Expert
4182 29 403

Seems that anecdotal evidence shows it is internally sorted. YMMV:

 

Pulling Shopify orders from ID: 2032047063119
Since ID was updated to be 2032154771535
Since ID was updated to be 2032470360143
Since ID was updated to be 2032587636815
Since ID was updated to be 2032940810319
Since ID was updated to be 2032990158927
Since ID was updated to be 2033011425359
Since ID was updated to be 2033318199375
Since ID was updated to be 2033348411471
Since ID was updated to be 2033460281423
Since ID was updated to be 2033464672335
Since ID was updated to be 2033473388623
Custom Shopify Apps built just for you! hunkybill@gmail.com http://www.resistorsoftware.com
0 Likes