Get Order by ID - does not return the order

Solved
NotAGuru
Tourist
11 0 23

Hi Community,

I am getting an empty response from the order.json?ids=<123456789> endpoint.

The order does exist... i can see it in the front end... search works perfectly fine, but the API just does not like me at all.

 

Any ideas?

 

What am I doing? simply: admin/api/2020-04/orders.json?ids=2028069584960

when searching for this number in my shopify front-end it shows and confirms the existance of the order

Capture.JPG

 

THanks,

 

Christian 

 

SBD_
Shopify Staff
Shopify Staff
1071 143 189

This is an accepted solution.

Hey @NotAGuru 

 

The orders endpoint only returns open orders by default. Try adding status=any to the params:

 

/admin/api/2020-04/orders.json?ids=...&status=any
NotAGuru
Tourist
11 0 23

Thank you!

 

It indeed states in the documentation that the default is open. .. I think I have to become a more careful reader.