How to find specific time-based orders using REST API?

Solved

How to find specific time-based orders using REST API?

DanielM99code
Shopify Partner
7 1 0

Hi!

On 11/14 I was looking for the 11/12 orders using API url. I could not see any orders placed on 11/12 morning before 11:00 am. Also I can see orders for 11/11. I am located in EST.

admin/api/2021-10/orders.json?status=any&created_at_min=2021-11-12T00:00:00&fields=created_at  

Accepted Solution (1)

DanielM99code
Shopify Partner
7 1 0

This is an accepted solution.

Never mind. I forgot to put limits. 

dt_string = now.strftime("%d-%m-%Y")

td = str(dt_string)

admin/api/2021-10/orders.json?status=any&created_at_min=' + td + '(-05:00)&limit=250

 

Works perfectly.

View solution in original post

Reply 1 (1)

DanielM99code
Shopify Partner
7 1 0

This is an accepted solution.

Never mind. I forgot to put limits. 

dt_string = now.strftime("%d-%m-%Y")

td = str(dt_string)

admin/api/2021-10/orders.json?status=any&created_at_min=' + td + '(-05:00)&limit=250

 

Works perfectly.