POST api/TimePunches
Inserts a time punch. note: A calculation must occur for the punch earning to account for inserted time punches, as well as any system punch generated at the time of calculation based on company rule configurations.
Request Information
Parameters
Name | Description | Additional information |
---|---|---|
postData | No documentation available. |
Define this parameter in the request body. |
Request body formats
application/json, text/json
Sample:
{ "BusinessUnitCode": "11A", "CompanyCode": "111", "DepartmentCode": "001", "DivisionCode": "ABC123", "EmployeeCode": "EMPLOYEE1", "PunchTimeDate": "2024-12-26T06:17:54.083", "PunchType": "In", "TimeZoneOffset": 0 }
application/xml, text/xml
Sample:
<TimePunchPostDataItem xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Netchex.Internal.Core.Models.TimeAndAttendance"> <BusinessUnitCode>11A</BusinessUnitCode> <CompanyCode>111</CompanyCode> <DepartmentCode>001</DepartmentCode> <DivisionCode>ABC123</DivisionCode> <EmployeeCode>EMPLOYEE1</EmployeeCode> <PunchTimeDate>2024-12-26T06:17:54.083</PunchTimeDate> <PunchType>In</PunchType> <TimeZoneOffset>0</TimeZoneOffset> </TimePunchPostDataItem>
Response Information
200 status code if accepted, otherwise 400 badrequest with { message:string } stating reason(s).
Response body formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.