Home > Factory Productivity and Scheduling > Advanced Topics > Import Export Data > Empower API > Using The API To Retrieve Data > Employee Clock In and Out Times
Employee Clock In and Out Times
Employee Clock In and Clock Out times can be retrieved through the API using the function calls
1. GetClockInTimes(StartDate As String, EndDate As String)
This function takes two arguments and returns the List of Clock In / Out times between the start date and end date.
As a result the request body should be based on the following:
<soapenv:Body>
<web:GetClockInTimes>
<web:StartDate>START DATE(Format : YYYY-MM-DD)</web:StartDate>
<web:EndDate>END DATE (Format : YYYY-MM-DD)</web:EndDate>
</web:GetClockInTimes>
</soapenv:Body>
2. GetClockInTimesForEmployee(EmployeeLoginId As String, StartDate As String, EndDate As String)
This function takes three arguments and returns the List of Clock In / Out times between the start date and end date.
As a result the request body should be based on the following
<soapenv:Body>
<web:GetClockInTimesForEmployee>
<web:EmployeeLoginId>EMPLOYEE LOGIN ID</web:EmployeeLoginId>
<web:StartDate>START DATE(Format : YYYY-MM-DD)</web:StartDate>
<web:EndDate>END DATE (Format : YYYY-MM-DD)</web:EndDate>
</web:GetClockInTimesForEmployee>
</soapenv:Body>
Response XML Format
<soap:Body>
<GetClockInTimesResponse xmlns="http://empowersoftware.co.nz/WebService">
<GetClockInTimesResult>
<!--Zero or more repetitions:-->
<ClockInOutTime>
<ClockedInEmployee>
<EmployeeLoginId>LOGIN ID</EmployeeLoginId>
<EmployeeFirstName>FIRST NAME</EmployeeFirstName>
<EmployeeSurname>LAST NAME</EmployeeSurname>
<EmployeePosition>POSITION</EmployeePosition>
<EmployeeSubFactory>SUBFACTORY</EmployeeSubFactory>
<EmployeeWorkcenter>WORK CENTER NAME</EmployeeWorkcenter>
<EmployeeId>EMPLOYEE ID</EmployeeId>
</ClockedInEmployee>
<LeaveType>LEAVE TYPE NAME</LeaveType>
<ClockInTime>CLOCKED IN TIME</ClockInTime>
<ClockOutTime>CLOCKED OUT TIME (If exists)</ClockOutTime>
</ClockInOutTime>
</GetClockInTimesResult>
</GetClockInTimesResponse>
</soap:Body>
The following data types are used
ClockInOutTime
ClockedInEmployee As EmployeeData
LeaveType As String
ClockInTime As String
ClockOutTime As String
Comment As String
EmployeeData
EmployeeLoginId As String
EmployeeFirstName As String
EmployeeSurname As String
EmployeePosition As String
EmployeeSubFactory As String
EmployeeWorkcenter As String
EmployeeNotes As String
EmployeeId as String
For more information see
Example Code
WDSL Schema
See also
|