Analytics
Sales Analytics
Get aggregated sales analytics for all events by an organizer
GET
Documentation Index
Fetch the complete documentation index at: https://mintlify.com/GoodnessFx/GatePass/llms.txt
Use this file to discover all available pages before exploring further.
Retrieve comprehensive sales statistics across all events organized by the authenticated user, including revenue, ticket sales, growth metrics, and recent transactions.
Authentication
Bearer token for authentication (organizer role required)
Query Parameters
Time period for analytics:
all, year, month, weekCustom start date for analytics (ISO 8601)
Custom end date for analytics (ISO 8601)
Response
Total revenue across all completed orders
Total number of tickets sold
Number of currently active (published and on-sale) events
Total number of events created
Revenue growth percentage compared to previous period
Ticket sales growth percentage compared to previous period
Recent sales transactions (last 10)
Top 5 events by revenue
Average order amount
Percentage of event views that resulted in ticket purchases
Growth Calculation
Growth percentages are calculated by comparing:- Current Period: Selected date range or default period
- Previous Period: Equal length period immediately before current period
Dashboard Integration
This endpoint provides all data needed for an organizer dashboard:Key Metrics Cards
Recent Activity Feed
Performance Leaderboard
Period Filters
Predefined Periods
- all: All-time statistics
- year: Last 365 days
- month: Last 30 days
- week: Last 7 days
Custom Date Range
Real-Time Updates
Statistics are calculated in real-time from the database. No caching is applied, ensuring you always see the latest data. For high-traffic organizers, consider:- Client-side caching with a 5-minute TTL
- Implementing webhook listeners for order updates
- Using Server-Sent Events (SSE) for live dashboard updates