Overview
These endpoints manage employee breaks during their work shifts. The system supports different types of breaks including meal breaks (COMIDA) and other breaks (OTRA).Start Break
Initiates a break period for an employee during their active work shift.Request Body
The unique identifier of the employee starting a break
The ID of the unit/location where the break is being started
The type of break being started. Allowed values:
COMIDA- Meal breakOTRA- Other type of break
Base64-encoded photo of the employee (optional)
The ID of the employee’s assigned unit (optional)
Custom time for break start in HH:mm:ss format (optional). If not provided, current time is used
Response
Indicates whether the operation was successful
No data is returned for this endpoint
Confirmation message: “Pausa iniciada”
Example Request
cURL
Response Example
Success Response
End Break
Finalizes an active break period for an employee.Request Body
The unique identifier of the employee ending a break
The ID of the unit/location where the break is being ended
The type of break being ended. Must match the type of the active break:
COMIDA- Meal breakOTRA- Other type of break
Base64-encoded photo of the employee (optional)
The ID of the employee’s assigned unit (optional)
Custom time for break end in HH:mm:ss format (optional). If not provided, current time is used
Response
Indicates whether the operation was successful
No data is returned for this endpoint
Confirmation message: “Pausa registrada”
Example Request
cURL
Response Example
Success Response
Error Response
Break Types
COMIDA (Meal Break)
Used for scheduled meal breaks during the work shift. Typically longer in duration and may have specific scheduling rules.OTRA (Other Break)
Used for any other type of break (bathroom, rest, etc.). Generally shorter in duration.Business Rules
- An employee must have an active shift to start a break
- Only one break can be active at a time per employee
- The break type when ending must match the break type that was started
- Break end time must be after break start time
- The
empleadoId,unidadId, andpausafields are mandatory - Break duration may be subject to company policies and labor regulations