Orders API Date Range (by week)

kurtiswarren
New Member
1 0 0

Noob question - did some searching and couldn't find anything:

I recognize that the orders API updated_at_max, and updated_at_min allow you to select a range of dates.

Is there a way i can query the API to pull a range like "last week", "2 weeks ago", and so on?

 

Thanks!

0 Likes
SBD_
Shopify Staff
Shopify Staff
1044 141 185

Hey @kurtiswarren 

 

The API won't understand relative dates. You'll need to calculate the date range first.

0 Likes