The stats endpoint returns a single aggregated snapshot covering the authenticated bakery’s historical performance. The response groups data by time period (today, this week, all time), by product, by hour of day, and by order status. The app renders this data as summary cards, a bar chart, and ranked product lists — all from this one call.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/AndrewwCO/Pana-Baker/llms.txt
Use this file to discover all available pages before exploring further.
GET /stats/bakery
Returns the full statistics snapshot for the authenticated bakery.Response
Response fields
Total number of orders ever placed at this bakery across all statuses.
Cumulative revenue in COP across all completed orders.
Mean order value in COP across all orders.
Revenue in COP from orders placed today (server’s local date).
Number of orders placed today.
Number of orders placed during the current calendar week.
Revenue in COP from orders placed during the current calendar week.
Ranked list of best-selling products, ordered by
totalSold descending.A map of hour strings (
"07", "08", etc.) to order counts. Only hours with at least one order are included. The app renders this as a bar chart.A map of order status strings to the count of orders in that status. Keys correspond to the standard status values:
PENDING, CONFIRMED, BAKING, READY, COMPLETED, CANCELLED.The
revenueToday and ordersToday fields reflect the server’s notion of “today” based on its local timezone. The ordersThisWeek and revenueThisWeek fields cover the current calendar week as defined by the server. Consult your backend configuration if the boundaries don’t align with your expected timezone.