How to add ordering to Shopify rest API calls for orders and products

Highlighted
New Member
2 0 0

Hi,

 I need to sort the response from Shopify for orders and products. If there are more than 250 enteries in a response, shopify does not guarantee any ordering. Is there any query param that can be added to solve this.

Earlier tried this - /admin/orders.json?created_at_max=2020-08-27&order=created_at+ASC . This used to work, but now this also fails and there is no official documentation supporting ordering in rest apis.

Any help is appreciated. Thanks.

0 Likes