Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Order seems to be missing from query

Solved

Order seems to be missing from query

bbarr
Shopify Partner
33 4 10

Hi all,

I have an order with the following property:

"created_at": "2021-09-28T11:28:06-07:00",

 

But when I make the following query:

https://####.myshopify.com/admin/api/2021-04/orders.json?created_at_min=2021-09-27T00:00:00-07:00&created_at_max=2021-09-29T23:59:59-07:00

 

I receive an empty array. I assumed I was giving it enough room on either side of the query to account for unexpected timezone handling and such, so shouldn't this order definitely be returned here?

 

Thanks,

Brendan

Accepted Solution (1)

bbarr
Shopify Partner
33 4 10

This is an accepted solution.

Never mind, I noticed that this was a "pos" order, and those don't appear in the API unless you include "?status=any" in the query. So I will call this "resolved", but maybe it will help others when they stumble upon this issue.

View solution in original post

Reply 1 (1)

bbarr
Shopify Partner
33 4 10

This is an accepted solution.

Never mind, I noticed that this was a "pos" order, and those don't appear in the API unless you include "?status=any" in the query. So I will call this "resolved", but maybe it will help others when they stumble upon this issue.