Solved

Fulfillment do not filtered by created_at_max using page_info

mz_m1
Shopify Partner
3 0 1

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...

 

2) 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...

 

3) 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_i...

 

Looks like a bug.

Accepted Solution (1)
hassain
Shopify Staff (Retired)
624 104 187

This is an accepted solution.

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!

To learn more visit the Shopify Help Center or the Community Blog.

View solution in original post

Replies 3 (3)

hassain
Shopify Staff (Retired)
624 104 187

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

To learn more visit the Shopify Help Center or the Community Blog.

hassain
Shopify Staff (Retired)
624 104 187

This is an accepted solution.

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!

To learn more visit the Shopify Help Center or the Community Blog.

vbhoj
New Member
8 0 0

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 ?