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

NameDescriptionAdditional 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-11-19&toDate=2024-11-20&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-11-19T18:18:33.219</PunchTimeDate>
        <Type>In</Type>
      </RawTimePunch>
      <RawTimePunch>
        <PunchTimeDate>2024-11-19T20:18:33.219</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-11-19T23:18:33.219</PunchTimeDate>
        <Type>InLunch</Type>
      </RawTimePunch>
      <RawTimePunch>
        <PunchTimeDate>2024-11-20T00:18:33.219</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-11-19T18:18:33.219"
      },
      {
        "Type": "OutLunch",
        "PunchTimeDate": "2024-11-19T20:18:33.219"
      }
    ]
  },
  {
    "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-11-19T23:18:33.219"
      },
      {
        "Type": "Out",
        "PunchTimeDate": "2024-11-20T00:18:33.219"
      }
    ]
  }
]