Orders API Date Range (by week)

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?



Reply 1 (1)
Shopify Staff
Shopify Staff
1649 230 339

Hey @kurtiswarren 


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

Scott | Developer Advocate @ Shopify