curl --request GET \
--url https://api.sprucecollective.co.uk/reports/quantity-distribution \
--header 'Authorization: <api-key>'{
"box_plot": {
"max": 123,
"median": 123,
"min": 123,
"q1": 123,
"q3": 123
},
"buckets": [
{
"count": 123,
"cumulative_percent": 123,
"label": "<string>",
"max": 123,
"min": 123,
"revenue_cents": 123
}
]
}Returns quantity distribution analysis with buckets and box plot statistics
curl --request GET \
--url https://api.sprucecollective.co.uk/reports/quantity-distribution \
--header 'Authorization: <api-key>'{
"box_plot": {
"max": 123,
"median": 123,
"min": 123,
"q1": 123,
"q3": 123
},
"buckets": [
{
"count": 123,
"cumulative_percent": 123,
"label": "<string>",
"max": 123,
"min": 123,
"revenue_cents": 123
}
]
}Type "Bearer" followed by a space and JWT token.
Number of days to analyze (default: 30)
Start date (YYYY-MM-DD)
End date (YYYY-MM-DD)
Site ID for multi-tenant filtering
OK