curl --location --request GET '/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
}
}