The Stats API provides analytics dashboards for bakers and admins. Baker stats cover their own bakery; admin stats aggregate the entire platform. All monetary values and counts exclude cancelled orders.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/AndrewwCO/Panahashi-Backend/llms.txt
Use this file to discover all available pages before exploring further.
GET /api/v1/stats/bakery
Returns statistics for the authenticated baker’s bakery. All calculations use the America/Bogota timezone. Auth required: Yes — BAKERThe bakery ID.
Lifetime non-cancelled orders.
Lifetime revenue.
Average order value.
Orders placed today.
Revenue earned today.
Orders this week.
Revenue this week.
Top 5 products by units sold.
Map of hour (0–23) to order count.
Map of OrderStatus to count.
GET /api/v1/stats/admin
Returns platform-wide statistics. Auth required: Yes — ADMINTotal bakeries on the platform.
Bakeries with ACTIVE status.
Total registered users.
Lifetime non-cancelled orders.
Lifetime platform revenue.
Orders placed today.
Revenue today.
Top 10 bakeries by revenue.