Hi,
i’d like to retrieve top selling products from 1 month ago.
In the API reference there is a query string “from” that accept a Datetime type.
I’m trying something like this:
let d = new Date()
d.setMonth(d.getMonth() - 1)
d.toISOString()
const products = await axios.get(`https://app.snipcart.com/api/products?from=${d}&orderBy=nbrSales`
is it right?