Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

Get orders not working pagination in requisition

Get orders not working pagination in requisition

meurodape
New Member
4 0 0

 

Good morning, everyone.
I'm facing an issue where, when I retrieve a list of orders with a limit of 250 orders per page, it returns correctly. However, when I move to the next page, it's returning the same orders.

Can you assist me with this?


URL of requistion:
myshopify.com/admin/api/2023-01/orders.json?limit=3&updated_at_min=2023-07-24T00:00:00-04:00&updated_at_max=2023-08-24T00:00:00-04:00&status=any

I'm forwarding the page change parameter in the request header
["Content-Type: application/json","X-Shopify-Access-Token: {token}","rel: next"]

Replies 2 (2)

meurodape
New Member
4 0 0

Note: Even limiting the limit to only 3 orders, the rel:next parameter does not work. It keeps going through only the 3 orders. I have already limited it to 5, 10, 15, 30 days, and even then the problem continues.

meurodape
New Member
4 0 0

Could someone please help me with how I can resolve this issue???!