Overview
The Integra Reports API provides powerful endpoints to generate attendance reports in JSON and Excel formats, track inconsistencies, analyze monthly summaries, and identify employees without attendance records.Generating Attendance Reports (JSON)
Retrieve consolidated attendance data for employees in JSON format for custom processing and analysis.Configure report parameters
Endpoint:
GET /asistencia/reporte/asistenciasQuery Parameters:empleadoId- Filter by specific employee IDdesde- Start date/time (LocalDateTime format: yyyy-MM-ddTHH:mm:ss)hasta- End date/time (LocalDateTime format: yyyy-MM-ddTHH:mm:ss)unidadId- Filter by unit/locationempleadoResponsableId- Filter by responsible employeesupervisorId- Filter by supervisorzonaId- Filter by zonepuestoId- Filter by position
Request the report
Example: Get attendance for a specific employee in a date rangeExample: Get attendance for all employees in a unitExample: Get attendance by supervisor and zone
Generating Excel Reports
Export detailed attendance reports with nested break information to Excel format for easy sharing and analysis.Prepare Excel export parameters
Endpoint:
GET /asistencia/reporte/asistencias/detallado/excelUses the same filter parameters as the JSON endpoint:empleadoIddesdeandhasta(required for meaningful reports)unidadIdempleadoResponsableIdsupervisorIdzonaIdpuestoId
Download the Excel file
Example: Generate Excel report for a unitExample: Generate report for specific employee
Detecting Attendance Inconsistencies
Identify attendance records with anomalies, missing data, or validation issues.Query inconsistencies
Endpoint: Example: Check inconsistencies for specific employee
GET /asistencia/reporte/inconsistenciasQuery Parameters:fechaInicio- Start datefechaFin- End dateempleadoId- Filter by employee (optional)
Monthly Attendance Summary
Get a summary of worked and non-worked days for an employee in a specific month.Request monthly summary
Endpoint: Example: Get summary for specific month
GET /asistencia/reporte/resumen-mesQuery Parameters:empleadoId- Employee ID (required)anio- Year (optional, defaults to current year)mes- Month 1-12 (optional, defaults to current month)
Getting Worked Days in a Month
Retrieve the specific dates when an employee had attendance records.Query worked days
Endpoint:
GET /asistencia/reporte/dias-laboradosQuery Parameters:empleadoId- Employee ID (required)anio- Year (required, e.g., 2026)mes- Month 1-12 (required, e.g., 3 for March)
Identifying Employees Without Attendance
Find employees who did not register attendance in a specified date range.Configure absence filters
Endpoint:
GET /asistencia/reporte/empleados-sin-asistenciaQuery Parameters:desde- Start date (required)hasta- End date (required)unidadId- Filter by unit (optional)puestoId- Filter by position (optional)zonaId- Filter by zone (optional)supervisorId- Filter by supervisor (optional)
Request absence report
Example: Get employees without attendance in date rangeExample: Filter by unit and supervisor
Viewing Attendance Photos
Retrieve the photos captured during attendance registration. Endpoint:GET /asistencia/reporte/{filename}
Report Best Practices
Date Range Selection
- Use specific date ranges to improve performance
- For monthly reports, use the first and last day of the month
- Include time component (00:00:00 to 23:59:59) for complete day coverage
Filter Combinations
By organizational structure:Performance Tips
- Narrow date ranges for faster responses
- Use Excel export for large datasets
- Apply unit/department filters to reduce data volume
- Schedule reports during off-peak hours for large exports
Reference
Controller:ReporteQueryController.java at /asistencia/controller/ReporteQueryController.java:1
Related Models:
EmpleadoReporteRequest.java- Report filter parametersEmpleadoReporte- Employee report data structureResumenMesAsistencia- Monthly summary modelInasistenciaPorFechaResponse- Absence by date responseIncidencia- Inconsistency/incident model
Next Steps
Attendance Recording
Record attendance data for reporting
Employee Management
Manage employee information