const https = require('https');

const url = 'https://fiesta.nearle.app/live/api/v1/web/orders/gettimeseries?tenantid=1087&granularity=day&fromdate=2026-05-15&todate=2026-06-15';

https.get(url, (res) => {
  let data = '';
  res.on('data', (chunk) => { data += chunk; });
  res.on('end', () => {
    console.log("STATUS:", res.statusCode);
    console.log("RESPONSE:", data.substring(0, 500));
  });
}).on('error', (err) => {
  console.error("ERROR:", err.message);
});
