Orders API Date Range (by week)

Orders API Date Range (by week)

kurtiswarren
Visitor
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!

Reply 1 (1)

SBD_
Shopify Staff
1829 271 415

Hey @kurtiswarren 

 

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

Scott | Developer Advocate @ Shopify