Orders API Date Range (by week)

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
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