GET api/RawTimePunches?fromDate={fromDate}&toDate={toDate}&companyCodes={companyCodes}
Gets Raw Time Punch data for all the employees of the companies in the list between the passed in dates.
Request Information
Parameters
Name | Description | Additional information |
---|---|---|
fromDate | Start date. ignores UTC |
Define this parameter in the request URI. |
toDate | End date. ignores UTC and will default to end of day when time part is specified as zero |
Define this parameter in the request URI. |
companyCodes | The company codes as a comma delimited list. |
Define this parameter in the request URI. |
Request body formats
application/x-www-form-urlencoded
Sample:
api/RawTimePunches?fromDate=2024-12-25&toDate=2024-12-26&companyCodes=111,222,333
Response Information
List of TimePunches.
Response body formats
text/xml, application/xml
Sample:
<ArrayOfTimePunchGetDataItem xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Netchex.Internal.Core.Models.TimeAndAttendance"> <TimePunchGetDataItem> <BusinessUnit_Cd>11A</BusinessUnit_Cd> <Company_Cd>111</Company_Cd> <Department_Cd>001</Department_Cd> <Division_Cd>ABC111</Division_Cd> <Employee_Cd>EMPLOYEE3</Employee_Cd> <Employee_Id>1</Employee_Id> <Location_Cd></Location_Cd> <Punches> <RawTimePunch> <PunchTimeDate>2024-12-25T23:17:54.132</PunchTimeDate> <Type>In</Type> </RawTimePunch> <RawTimePunch> <PunchTimeDate>2024-12-26T01:17:54.132</PunchTimeDate> <Type>OutLunch</Type> </RawTimePunch> </Punches> </TimePunchGetDataItem> <TimePunchGetDataItem> <BusinessUnit_Cd>11A</BusinessUnit_Cd> <Company_Cd>111</Company_Cd> <Department_Cd>001</Department_Cd> <Division_Cd>ABC111</Division_Cd> <Employee_Cd>EMPLOYEE3</Employee_Cd> <Employee_Id>2</Employee_Id> <Location_Cd></Location_Cd> <Punches> <RawTimePunch> <PunchTimeDate>2024-12-26T04:17:54.132</PunchTimeDate> <Type>InLunch</Type> </RawTimePunch> <RawTimePunch> <PunchTimeDate>2024-12-26T05:17:54.132</PunchTimeDate> <Type>Out</Type> </RawTimePunch> </Punches> </TimePunchGetDataItem> </ArrayOfTimePunchGetDataItem>
text/json, application/json
Sample:
[ { "BusinessUnit_Cd": "11A", "Company_Cd": "111", "Department_Cd": "001", "Division_Cd": "ABC111", "Employee_Cd": "EMPLOYEE3", "Employee_Id": 1, "Location_Cd": "", "Punches": [ { "Type": "In", "PunchTimeDate": "2024-12-25T23:17:54.132" }, { "Type": "OutLunch", "PunchTimeDate": "2024-12-26T01:17:54.132" } ] }, { "BusinessUnit_Cd": "11A", "Company_Cd": "111", "Department_Cd": "001", "Division_Cd": "ABC111", "Employee_Cd": "EMPLOYEE3", "Employee_Id": 2, "Location_Cd": "", "Punches": [ { "Type": "InLunch", "PunchTimeDate": "2024-12-26T04:17:54.132" }, { "Type": "Out", "PunchTimeDate": "2024-12-26T05:17:54.132" } ] } ]