Admin Reporting: Customers
Reporting — customers (View Details)
Changed onThe detailed table form of a customer stat (the admin "View Details" page). statistics is { columns, records }. ?type= picks the stat group.
get/reporting/customers/view
Request
- Base URLhttp://localhost:8000/api/admin
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
type'total-customers' | 'customers-with-most-sales' | 'customers-with-most-orders' | 'customers-with-most-reviews' | 'top-customer-groups'
Stat group.
startstring date
Start date.
endstring date
End date.
channelstring
Channel code.
Response
AdminReportingCustomers collection
Example response
[
{
"statistics": {
"customers": {
"previous": 1,
"current": 9,
"progress": 800
},
"over_time": {
"previous": [
{
"label": "23 May",
"total": 1
}
],
"current": [
{
"label": "26 May",
"total": 9
}
]
}
}
}
]Changes
- breaking
removed the enum value
customers-trafficfrom thequeryrequest parametertype
- breaking