Order JSON not containing all orders

New Member
2 0 0

I'm pulling an order.json through the API but for some reason not all of the orders are coming through 50/67. Is there a reason why this might be happening?

0 Likes
Excursionist
70 0 14

Basically all Shopify API calls limit the number of results returned, so that the result sets aren't huge.  For orders, like most resources, this limit defaults to 50, and you can return more records by specifying a higher 'limit' number, 'limit=250' being the max, as shown in the docs: http://docs.shopify.com/api/order#index  :)

Product Customizer - Creating extremely customizable products within Shopify is no longer a hassle! BlogFeeder - Automatically pull updates from any RSS feed into your Shopify blog Happy Ending - Personalize your thank you page
1 Like
New Member
2 0 0

Awesome, Thanks!

 

0 Likes
Highlighted
Shopify Staff
Shopify Staff
591 0 45

You'll probably want to start implementing pagination logic.

If you were to request the other 17 orders (assuming the same request limit), you could include page=2 to your query.

0 Likes