Have your say in Community Polls: What was/is your greatest motivation to start your own business?
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.

SearchApi query by updated_at not working

Solved

SearchApi query by updated_at not working

tinyemail
Shopify Partner
8 1 2

Hello,

we are using search API 'GET /admin/api/2022-01/customers/search.json' passing the next query parameter

'updated_at:>2022-03-13T14:00:00.000Z' we observed that this call returns all entries updated at that date not only those that have been updated after 14:00. Is there a bug in this API, how we can use hours+minute to get the last updated customers?

 

Bets regards,

TinyEmail

 

Accepted Solution (1)
tinyemail
Shopify Partner
8 1 2

This is an accepted solution.

In the end, figured it out that: if we separate the date in apostrophes it works

Ex :

updated_at:>'2022-03-13T14:00:00.000Z'

 

Wrong Notation: updated_at:>2022-03-13T14:00:00.000Z

 

It will be great to specify it somewhere in the documentation!

View solution in original post

Replies 2 (2)

tinyemail
Shopify Partner
8 1 2

Anybody is here from Shopify? We cannot find this neither in documentation neither in other posts

tinyemail
Shopify Partner
8 1 2

This is an accepted solution.

In the end, figured it out that: if we separate the date in apostrophes it works

Ex :

updated_at:>'2022-03-13T14:00:00.000Z'

 

Wrong Notation: updated_at:>2022-03-13T14:00:00.000Z

 

It will be great to specify it somewhere in the documentation!