POST api/TimesheetImport

Imports timesheets to be used in a future payroll.

Request Information

Parameters

NameDescriptionAdditional information
timesheets
Array of timesheet records by day. Entry date, Employee ID and a number of hours or dollar amount are required. Employee ID can be the employee code or social security number (with no dashes). Number of hours or dollar amount, if given with no other options, will be applied to the given employee's default earning.
            *Note: If XML is used, all properties must be supplied

Define this parameter in the request body.

Request body formats

application/json, text/json

Sample:
[
  {
    "CompanyCode": "sample string 1",
    "EntryDate": "2024-12-26T12:23:46.7749884-06:00",
    "EmployeeId": "sample string 3",
    "GrossToNetCode": "sample string 4",
    "TypeCode": "sample string 5",
    "HoursOrAmount": 6.0,
    "TemporaryRate": 7.0,
    "DistributedDivisionCode": "sample string 8",
    "DistributedBusinessUnitCode": "sample string 9",
    "DistributedDepartmentCode": "sample string 10",
    "WorkersCompCode": "sample string 11",
    "ProjectClientName": "sample string 12",
    "ProjectName": "sample string 13"
  },
  {
    "CompanyCode": "sample string 1",
    "EntryDate": "2024-12-26T12:23:46.7749884-06:00",
    "EmployeeId": "sample string 3",
    "GrossToNetCode": "sample string 4",
    "TypeCode": "sample string 5",
    "HoursOrAmount": 6.0,
    "TemporaryRate": 7.0,
    "DistributedDivisionCode": "sample string 8",
    "DistributedBusinessUnitCode": "sample string 9",
    "DistributedDepartmentCode": "sample string 10",
    "WorkersCompCode": "sample string 11",
    "ProjectClientName": "sample string 12",
    "ProjectName": "sample string 13"
  },
  {
    "CompanyCode": "sample string 1",
    "EntryDate": "2024-12-26T12:23:46.7749884-06:00",
    "EmployeeId": "sample string 3",
    "GrossToNetCode": "sample string 4",
    "TypeCode": "sample string 5",
    "HoursOrAmount": 6.0,
    "TemporaryRate": 7.0,
    "DistributedDivisionCode": "sample string 8",
    "DistributedBusinessUnitCode": "sample string 9",
    "DistributedDepartmentCode": "sample string 10",
    "WorkersCompCode": "sample string 11",
    "ProjectClientName": "sample string 12",
    "ProjectName": "sample string 13"
  }
]

application/xml, text/xml

Sample:
<ArrayOfTimesheetImportDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Netchex.API.External.Areas.Payroll.Models">
  <TimesheetImportDto>
    <CompanyCode>sample string 1</CompanyCode>
    <DistributedBusinessUnitCode>sample string 9</DistributedBusinessUnitCode>
    <DistributedDepartmentCode>sample string 10</DistributedDepartmentCode>
    <DistributedDivisionCode>sample string 8</DistributedDivisionCode>
    <EmployeeId>sample string 3</EmployeeId>
    <EntryDate>2024-12-26T12:23:46.7749884-06:00</EntryDate>
    <GrossToNetCode>sample string 4</GrossToNetCode>
    <HoursOrAmount>6</HoursOrAmount>
    <ProjectClientName>sample string 12</ProjectClientName>
    <ProjectName>sample string 13</ProjectName>
    <TemporaryRate>7</TemporaryRate>
    <TypeCode>sample string 5</TypeCode>
    <WorkersCompCode>sample string 11</WorkersCompCode>
  </TimesheetImportDto>
  <TimesheetImportDto>
    <CompanyCode>sample string 1</CompanyCode>
    <DistributedBusinessUnitCode>sample string 9</DistributedBusinessUnitCode>
    <DistributedDepartmentCode>sample string 10</DistributedDepartmentCode>
    <DistributedDivisionCode>sample string 8</DistributedDivisionCode>
    <EmployeeId>sample string 3</EmployeeId>
    <EntryDate>2024-12-26T12:23:46.7749884-06:00</EntryDate>
    <GrossToNetCode>sample string 4</GrossToNetCode>
    <HoursOrAmount>6</HoursOrAmount>
    <ProjectClientName>sample string 12</ProjectClientName>
    <ProjectName>sample string 13</ProjectName>
    <TemporaryRate>7</TemporaryRate>
    <TypeCode>sample string 5</TypeCode>
    <WorkersCompCode>sample string 11</WorkersCompCode>
  </TimesheetImportDto>
  <TimesheetImportDto>
    <CompanyCode>sample string 1</CompanyCode>
    <DistributedBusinessUnitCode>sample string 9</DistributedBusinessUnitCode>
    <DistributedDepartmentCode>sample string 10</DistributedDepartmentCode>
    <DistributedDivisionCode>sample string 8</DistributedDivisionCode>
    <EmployeeId>sample string 3</EmployeeId>
    <EntryDate>2024-12-26T12:23:46.7749884-06:00</EntryDate>
    <GrossToNetCode>sample string 4</GrossToNetCode>
    <HoursOrAmount>6</HoursOrAmount>
    <ProjectClientName>sample string 12</ProjectClientName>
    <ProjectName>sample string 13</ProjectName>
    <TemporaryRate>7</TemporaryRate>
    <TypeCode>sample string 5</TypeCode>
    <WorkersCompCode>sample string 11</WorkersCompCode>
  </TimesheetImportDto>
</ArrayOfTimesheetImportDto>

Response Information

Response body formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.