Overview
These endpoints allow you to query the current attendance status and shift information for employees. They are primarily used by the kiosk system to display employee information and validate attendance actions.Get Employee by NIP
Retrieves employee attendance information using their NIP (Personal Identification Number).Path Parameters
The employee’s personal identification number (NIP/PIN)
Response
Indicates whether the operation was successful
Employee attendance information object
Employee’s unique identifier
Employee’s code/key
Employee’s full name
Indicates whether the employee currently has an active shift in progress
Indicates whether the employee works night shift
Type of active break if any (“COMIDA”, “OTRA”, or null if no active break)
ID of the unit/location assigned to the employee
ID of the employee’s position/job role
Name of the employee’s position/job role
Confirmation message: “Jornada de empleado consultado”
Example Request
cURL
Response Example
Success Response
Employee Without Active Shift
Error Response
Get Employee by ID
Retrieves employee attendance information using their employee ID. This endpoint is typically used for administrative interfaces or when the employee ID is already known.Path Parameters
The employee’s unique identifier
Response
The response structure is identical to the “Get Employee by NIP” endpoint.Indicates whether the operation was successful
Employee attendance information object (same structure as NIP endpoint)
Confirmation message: “Jornada de empleado consultado”
Example Request
cURL
Response Example
Success Response
Error Response
Use Cases
Kiosk Interface
The kiosk uses these endpoints to:- Display employee information when they enter their NIP
- Show current shift status (active/inactive)
- Display active break status
- Determine which attendance actions are available
Shift Status Validation
Before performing attendance actions, the system checks:- Whether the employee has an active shift (
jornadaIniciada) - Whether the employee is on break (
tipoPausa) - Employee’s shift type (
esNocturno)
Administrative Dashboards
Administrators can use these endpoints to:- Monitor employee attendance in real-time
- Verify shift status before making manual corrections
- Display employee information in administrative interfaces
Business Rules
- The NIP must not be null or empty
- The employee ID must be a valid integer
- If an employee is not found, an appropriate error message is returned
- The
jornadaIniciadaflag indicates whether a shift is currently active - The
tipoPausafield is null when no break is active - Night shift employees (
esNocturno) may have different scheduling rules - These are read-only endpoints and do not modify attendance data