curl --request GET \
--url https://api.sprucecollective.co.uk/reports/top-products \
--header 'Authorization: <api-key>'{}Returns top products by revenue with order counts
curl --request GET \
--url https://api.sprucecollective.co.uk/reports/top-products \
--header 'Authorization: <api-key>'{}Type "Bearer" followed by a space and JWT token.
Number of products to return (default: 5, max: 50)
Number of days to analyze (default: 30)
Start date (YYYY-MM-DD)
End date (YYYY-MM-DD)
Site ID for multi-tenant filtering
OK
The response is of type object.