Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

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
1831 273 423

Hey @kurtiswarren 

 

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

Scott | Developer Advocate @ Shopify