New-vs-returning customer split for a date range (guests excluded)
GET
/admin/v1/stats/customer-breakdown
const url = 'https://your-store.example.com/admin/v1/stats/customer-breakdown?from=example&to=example';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://your-store.example.com/admin/v1/stats/customer-breakdown?from=example&to=example'Parameters
Section titled “ Parameters ”Query Parameters
Section titled “Query Parameters ” from
required
string
to
required
string