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???!