Fulfillment do not filtered by created_at_max using page_info

Hellom, when I send request to get all fulfillments to the order and filter them by created_at_max it work okey. But if I add limit and go though the pagination using page_info it won’t filter my fulfillments by created_at_max, it will return all fulfillments.

Using created_at_min works as expected in all cases.

For example

  1. This request returns 4 fulfillments as expected.

https://mz-web.myshopify.com/admin/api/2020-01/orders/2100831486030/fulfillments.json?created_at_max=2020-03-23T22:44:09+0000

  1. If I add limit and it works as expected

https://mz-web.myshopify.com/admin/api/2020-01/orders/2100831486030/fulfillments.json?created_at_max=2020-03-23T22:44:09+0000&limit=3

  1. But using page_info parameter from step 2 won’t filter fulfillments by created_at_max. It should return only 1 fulfillment instead of 2.

https://mz-web.myshopify.com/admin/api/2020-01/orders/2100831486030/fulfillments.json?limit=3&page_info=eyJjcmVhdGVkX2F0X21heCI6IjIwMjAtMDMtMjMgMjI6NDQ6MDkgVVRDIiwibGFzdF9pZCI6MTk4MDcyNzMyODg0NiwibGFzdF92YWx1ZSI6IjE5ODA3MjczMjg4NDYiLCJkaXJlY3Rpb24iOiJuZXh0In0

Looks like a bug.

Hey @mz_m1 ,

Thanks for bringing this up. This seems to be a known issue that is still under investigation. I will provide you with updates when I can

1 Like

Hey @mz_m1 ,

As of yesterday, this issue has been resolved. However feel free to let me know if you are still experiencing this problem.

Thanks again for reporting this!

1 Like

What was the solution ? I am facing the same issue,

First call for /admin/api/2021-10/orders.json
processed_at_min=“2022-07-10T00:00:00-08:00”
processed_at_max= “2022-07-10T11:59:59-08:00”
After that for remain pages In a while loop I am passing page_info for pagination.
However in page_info response the API is not honoring processed_at_min or max date and returning all the orders from previous dates.
I need orders processed only for a specific date.
Can you please help ?