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=2022-07-02&toDate=2022-07-03&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>2022-07-02T20:00:08.336</PunchTimeDate>
        <Type>In</Type>
      </RawTimePunch>
      <RawTimePunch>
        <PunchTimeDate>2022-07-02T22:00:08.336</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>2022-07-03T01:00:08.336</PunchTimeDate>
        <Type>InLunch</Type>
      </RawTimePunch>
      <RawTimePunch>
        <PunchTimeDate>2022-07-03T02:00:08.336</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": "2022-07-02T20:00:08.336"
      },
      {
        "Type": "OutLunch",
        "PunchTimeDate": "2022-07-02T22:00:08.336"
      }
    ]
  },
  {
    "BusinessUnit_Cd": "11A",
    "Company_Cd": "111",
    "Department_Cd": "001",
    "Division_Cd": "ABC111",
    "Employee_Cd": "EMPLOYEE3",
    "Employee_Id": 2,
    "Location_Cd": "",
    "Punches": [
      {
        "Type": "InLunch",
        "PunchTimeDate": "2022-07-03T01:00:08.336"
      },
      {
        "Type": "Out",
        "PunchTimeDate": "2022-07-03T02:00:08.336"
      }
    ]
  }
]