Unable to retrieve orders marked as `fulfilled` from Orders REST endpoint

Solved
Highlighted
Tourist
4 1 0

I'm trying to fetch all orders from GET orders endpoint (REST). But I observed that the orders that are marked as `fulfilled` are not available from that endpoint. 

Is there any other way through which we can get all the `fulfilled` orders from REST? 

0 Likes
Highlighted
Shopify Partner
4 0 1

Exactly having the same problem since last 3 days..Could someone help plz? Not seeing any error messages..But the retrieval gives me null results..We are on 2020 01.

Jay

1 Like
Highlighted
Tourist
4 1 0

This is an accepted solution.

Hello,

I was able to fetch "fulfilled" orders by using filter `status = any` on REST 'orders' endpoint.

REST (GET) : /admin/api/2020-01/orders.json?status=any

 

0 Likes
Highlighted
Tourist
4 1 0

Hello,

I was able to fetch "fulfilled" orders by using filter `status = any` on REST 'orders' endpoint.

REST (GET) : /admin/api/2020-01/orders.json?status=any

0 Likes
Highlighted
Shopify Partner
4 0 1

Thanks for taking time to respond. Much appreciated..But marking status = Any will return fulfilled and not fulfilled orders as well? We need to get just those orders that were marked as fulfilled..  Thoughts ?

Jay

0 Likes
Highlighted
Shopify Partner
318 21 65

That status=any gotcha is annoying. You'd think that if you are passing an API request without a slew of query parameters then logically your response set would include the wide-open array. Unfortunately not. Also, I've found sometimes most API providers that might not have fully-fleshed out query parameters results in the API consumer having to pull _too many_ records. And then parse through the iteration of them in order to weed out what they don't want. Although that's an expensive operation with API rate limits and whatnot. But it is what it is  

0 Likes