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-04-26&toDate=2025-04-27&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-04-26T23:19:24.216</PunchTimeDate>
        <Type>In</Type>
      </RawTimePunch>
      <RawTimePunch>
        <PunchTimeDate>2025-04-27T01:19:24.216</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-04-27T04:19:24.216</PunchTimeDate>
        <Type>InLunch</Type>
      </RawTimePunch>
      <RawTimePunch>
        <PunchTimeDate>2025-04-27T05:19:24.216</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-04-26T23:19:24.216"
      },
      {
        "Type": "OutLunch",
        "PunchTimeDate": "2025-04-27T01:19:24.216"
      }
    ]
  },
  {
    "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-04-27T04:19:24.216"
      },
      {
        "Type": "Out",
        "PunchTimeDate": "2025-04-27T05:19:24.216"
      }
    ]
  }
]