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 |
|---|---|
|
fromDate
(param in the URI) |
Start date. ignores UTC |
|
toDate
(param in the URI) |
End date. ignores UTC and will default to end of day when time part is specified as zero |
|
companyCodes
(param in the URI) |
The company codes as a comma delimited list. |
Request body formats
application/x-www-form-urlencoded
Sample:
api/RawTimePunches?fromDate=2025-11-22&toDate=2025-11-23&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>2025-11-22T18:20:02.589</PunchTimeDate>
<Type>In</Type>
</RawTimePunch>
<RawTimePunch>
<PunchTimeDate>2025-11-22T20:20:02.589</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>2025-11-22T23:20:02.589</PunchTimeDate>
<Type>InLunch</Type>
</RawTimePunch>
<RawTimePunch>
<PunchTimeDate>2025-11-23T00:20:02.589</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": "2025-11-22T18:20:02.589"
},
{
"Type": "OutLunch",
"PunchTimeDate": "2025-11-22T20:20:02.589"
}
]
},
{
"BusinessUnit_Cd": "11A",
"Company_Cd": "111",
"Department_Cd": "001",
"Division_Cd": "ABC111",
"Employee_Cd": "EMPLOYEE3",
"Employee_Id": 2,
"Location_Cd": "",
"Punches": [
{
"Type": "InLunch",
"PunchTimeDate": "2025-11-22T23:20:02.589"
},
{
"Type": "Out",
"PunchTimeDate": "2025-11-23T00:20:02.589"
}
]
}
]