Reports API
Endpoints for submitting and retrieving shift and manager reports
Overview
The Reports API handles the submission of operational data from both staff (Shift Reports) and management (Manager Reports). It also includes endpoints for compliance reminders and data aggregation.
Endpoints
Submit Shift Report
Used by staff to file end-of-shift data.
POST /api/reports/shift
Request Body
locationId: string (UUID)date: string (YYYY-MM-DD)shift: "morning" | "afternoon" | "evening"actualSales: numbergoalSales: numberhero: string (optional)
Submit Manager Report
Used by managers to file daily operational summaries and staff reviews.
POST /api/reports/manager
Request Body
locationId: string (UUID)date: string (YYYY-MM-DD)totalSales: numberemployeeReviews: array (optional)
Automated Tasks (Cron)
| Endpoint | Schedule | Purpose |
|---|---|---|
GET /cron/report-reminder | Daily | Sends Slack nudges for unfiled reports. |
GET /cron/aggregate-heroes | Weekly | Calculates MVPs from staff nominations. |