curl --request GET \
--url https://api.sprucecollective.co.uk/reports/payment-metrics \
--header 'Authorization: <api-key>'{
"average_order_value_cents": 123,
"quantity_one_orders": 123,
"raffles_purchased": 123,
"total_orders": 123,
"total_quantity": 123,
"total_value_cents": 123
}Returns payment metrics including orders, quantity, revenue, and analytics data
curl --request GET \
--url https://api.sprucecollective.co.uk/reports/payment-metrics \
--header 'Authorization: <api-key>'{
"average_order_value_cents": 123,
"quantity_one_orders": 123,
"raffles_purchased": 123,
"total_orders": 123,
"total_quantity": 123,
"total_value_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