| Metric | What it tells you |
|---|---|
total_earned | Total points given out to customers — higher means more customer engagement |
total_redeemed | Total points spent by customers — higher means customers find your rewards valuable |
active_customers | Customers who earned or redeemed at least once in the period — your "active base" |
total_points_balance | Combined unspent points across all customers — this is your outstanding liability |
total_transactions | Total number of credit + debit operations — measures overall program activity |
period parameter to compare performance across different time windows (today, 7 days, 30 days, or all time).curl --location --request GET 'https://rewrd-api-staging.fly.dev/v1/merchant/analytics?period=30d' \
--header 'Authorization: Bearer <token>'{
"status": true,
"message": "Analytics retrieved successfully",
"data": {
"period": "30d",
"total_earned": 25000,
"total_redeemed": 8500,
"active_customers": 142,
"total_points_balance": 175000,
"total_transactions": 854
}
}