curl -X GET "https://api.gatepass.io/api/analytics/organizer/stats?period=month" \
-H "Authorization: Bearer YOUR_TOKEN"
{
"totalRevenue": 542750.00,
"ticketsSold": 5234,
"activeEvents": 8,
"totalEvents": 24,
"revenueGrowth": 23.5,
"ticketsGrowth": 18.2,
"recentSales": [
{
"id": "clx1234567890abcdef",
"buyer": "customer@example.com",
"amount": 102.50,
"tickets": 2,
"timestamp": "2024-05-20T14:30:00Z",
"eventName": "Tech Conference 2024"
},
{
"id": "clx0987654321fedcba",
"buyer": "john.doe@example.com",
"amount": 51.25,
"tickets": 1,
"timestamp": "2024-05-20T13:45:00Z",
"eventName": "Music Festival 2024"
},
{
"id": "clxabcdef123456789",
"buyer": "jane.smith@example.com",
"amount": 205.00,
"tickets": 4,
"timestamp": "2024-05-20T12:20:00Z",
"eventName": "Startup Networking Event"
}
],
"topEvents": [
{
"eventId": "clx1111111111111111",
"title": "Tech Conference 2024",
"revenue": 125500.00,
"ticketsSold": 1247,
"totalTickets": 1500,
"selloutPercentage": 83.1
},
{
"eventId": "clx2222222222222222",
"title": "Music Festival 2024",
"revenue": 98750.00,
"ticketsSold": 1956,
"totalTickets": 2000,
"selloutPercentage": 97.8
},
{
"eventId": "clx3333333333333333",
"title": "Startup Pitch Night",
"revenue": 45200.00,
"ticketsSold": 892,
"totalTickets": 1000,
"selloutPercentage": 89.2
},
{
"eventId": "clx4444444444444444",
"title": "Art Exhibition Opening",
"revenue": 32100.00,
"ticketsSold": 634,
"totalTickets": 800,
"selloutPercentage": 79.3
},
{
"eventId": "clx5555555555555555",
"title": "Food & Wine Tasting",
"revenue": 28400.00,
"ticketsSold": 505,
"totalTickets": 600,
"selloutPercentage": 84.2
}
],
"averageOrderValue": 103.68,
"conversionRate": 12.3
}
Get aggregated sales analytics for all events by an organizer
curl -X GET "https://api.gatepass.io/api/analytics/organizer/stats?period=month" \
-H "Authorization: Bearer YOUR_TOKEN"
{
"totalRevenue": 542750.00,
"ticketsSold": 5234,
"activeEvents": 8,
"totalEvents": 24,
"revenueGrowth": 23.5,
"ticketsGrowth": 18.2,
"recentSales": [
{
"id": "clx1234567890abcdef",
"buyer": "customer@example.com",
"amount": 102.50,
"tickets": 2,
"timestamp": "2024-05-20T14:30:00Z",
"eventName": "Tech Conference 2024"
},
{
"id": "clx0987654321fedcba",
"buyer": "john.doe@example.com",
"amount": 51.25,
"tickets": 1,
"timestamp": "2024-05-20T13:45:00Z",
"eventName": "Music Festival 2024"
},
{
"id": "clxabcdef123456789",
"buyer": "jane.smith@example.com",
"amount": 205.00,
"tickets": 4,
"timestamp": "2024-05-20T12:20:00Z",
"eventName": "Startup Networking Event"
}
],
"topEvents": [
{
"eventId": "clx1111111111111111",
"title": "Tech Conference 2024",
"revenue": 125500.00,
"ticketsSold": 1247,
"totalTickets": 1500,
"selloutPercentage": 83.1
},
{
"eventId": "clx2222222222222222",
"title": "Music Festival 2024",
"revenue": 98750.00,
"ticketsSold": 1956,
"totalTickets": 2000,
"selloutPercentage": 97.8
},
{
"eventId": "clx3333333333333333",
"title": "Startup Pitch Night",
"revenue": 45200.00,
"ticketsSold": 892,
"totalTickets": 1000,
"selloutPercentage": 89.2
},
{
"eventId": "clx4444444444444444",
"title": "Art Exhibition Opening",
"revenue": 32100.00,
"ticketsSold": 634,
"totalTickets": 800,
"selloutPercentage": 79.3
},
{
"eventId": "clx5555555555555555",
"title": "Food & Wine Tasting",
"revenue": 28400.00,
"ticketsSold": 505,
"totalTickets": 600,
"selloutPercentage": 84.2
}
],
"averageOrderValue": 103.68,
"conversionRate": 12.3
}
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.
all, year, month, weekcurl -X GET "https://api.gatepass.io/api/analytics/organizer/stats?period=month" \
-H "Authorization: Bearer YOUR_TOKEN"
{
"totalRevenue": 542750.00,
"ticketsSold": 5234,
"activeEvents": 8,
"totalEvents": 24,
"revenueGrowth": 23.5,
"ticketsGrowth": 18.2,
"recentSales": [
{
"id": "clx1234567890abcdef",
"buyer": "customer@example.com",
"amount": 102.50,
"tickets": 2,
"timestamp": "2024-05-20T14:30:00Z",
"eventName": "Tech Conference 2024"
},
{
"id": "clx0987654321fedcba",
"buyer": "john.doe@example.com",
"amount": 51.25,
"tickets": 1,
"timestamp": "2024-05-20T13:45:00Z",
"eventName": "Music Festival 2024"
},
{
"id": "clxabcdef123456789",
"buyer": "jane.smith@example.com",
"amount": 205.00,
"tickets": 4,
"timestamp": "2024-05-20T12:20:00Z",
"eventName": "Startup Networking Event"
}
],
"topEvents": [
{
"eventId": "clx1111111111111111",
"title": "Tech Conference 2024",
"revenue": 125500.00,
"ticketsSold": 1247,
"totalTickets": 1500,
"selloutPercentage": 83.1
},
{
"eventId": "clx2222222222222222",
"title": "Music Festival 2024",
"revenue": 98750.00,
"ticketsSold": 1956,
"totalTickets": 2000,
"selloutPercentage": 97.8
},
{
"eventId": "clx3333333333333333",
"title": "Startup Pitch Night",
"revenue": 45200.00,
"ticketsSold": 892,
"totalTickets": 1000,
"selloutPercentage": 89.2
},
{
"eventId": "clx4444444444444444",
"title": "Art Exhibition Opening",
"revenue": 32100.00,
"ticketsSold": 634,
"totalTickets": 800,
"selloutPercentage": 79.3
},
{
"eventId": "clx5555555555555555",
"title": "Food & Wine Tasting",
"revenue": 28400.00,
"ticketsSold": 505,
"totalTickets": 600,
"selloutPercentage": 84.2
}
],
"averageOrderValue": 103.68,
"conversionRate": 12.3
}
growth = ((current - previous) / previous) * 100
<MetricCard
title="Total Revenue"
value={`$${stats.totalRevenue.toLocaleString()}`}
growth={stats.revenueGrowth}
/>
<MetricCard
title="Tickets Sold"
value={stats.ticketsSold.toLocaleString()}
growth={stats.ticketsGrowth}
/>
<MetricCard
title="Active Events"
value={stats.activeEvents}
/>
<MetricCard
title="Avg Order Value"
value={`$${stats.averageOrderValue.toFixed(2)}`}
/>
<ActivityFeed>
{stats.recentSales.map(sale => (
<ActivityItem
key={sale.id}
buyer={sale.buyer}
amount={sale.amount}
tickets={sale.tickets}
event={sale.eventName}
time={sale.timestamp}
/>
))}
</ActivityFeed>
<EventLeaderboard>
{stats.topEvents.map(event => (
<LeaderboardItem
key={event.eventId}
title={event.title}
revenue={event.revenue}
soldOut={event.selloutPercentage}
/>
))}
</EventLeaderboard>
const response = await fetch(
'/api/analytics/organizer/stats?' + new URLSearchParams({
startDate: '2024-01-01T00:00:00Z',
endDate: '2024-03-31T23:59:59Z'
}),
{
headers: { 'Authorization': 'Bearer YOUR_TOKEN' }
}
);
period parameter for quick filters in your UI, and startDate/endDate for custom date range selection.// Fetch data
const stats = await fetch('/api/analytics/organizer/stats?period=year');
const data = await stats.json();
// Convert to CSV
const csv = convertToCSV(data.recentSales);
// Download file
const blob = new Blob([csv], { type: 'text/csv' });
const url = URL.createObjectURL(blob);
const a = document.createElement('a');
a.href = url;
a.download = 'sales-report.csv';
a.click();
ORGANIZER role. Standard users will receive a 403 Forbidden error.