POST api/Payroll/InsertOvertimeSheet?isOpen={isOpen}&userId={userId}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| isOpen | boolean |
Required |
|
| userId | integer |
Required |
Body Parameters
OvertimeModel| Name | Description | Type | Additional information |
|---|---|---|---|
| IsPosted | boolean |
None. |
|
| OverTimeID | integer |
None. |
|
| GenerateDate | date |
None. |
|
| SalaryMonth | date |
None. |
|
| DepartmentID | integer |
None. |
|
| DesignationID | integer |
None. |
|
| ShiftID | integer |
None. |
|
| Remarks | string |
None. |
|
| TotalSalary | decimal number |
None. |
|
| UserID | integer |
None. |
|
| ListBody | Collection of OvertimeBodyModel |
None. |
Request Formats
application/json, text/json
Sample:
{
"IsPosted": true,
"OverTimeID": 2,
"GenerateDate": "2025-12-16T08:18:46.8301266+05:00",
"SalaryMonth": "2025-12-16T08:18:46.8301266+05:00",
"DepartmentID": 5,
"DesignationID": 6,
"ShiftID": 7,
"Remarks": "sample string 8",
"TotalSalary": 9.0,
"UserID": 10,
"ListBody": [
{
"OverTimeID": 1,
"EmployeeID": 2,
"GrossSalary": 3.0,
"ExcessShort": 4.0,
"OvertimeAmount": 5.0,
"TotalSalary": 6.0,
"EmployeeName": "sample string 7",
"AcceptedTime": 8.0,
"BasicSalary": 9.0,
"PerSalary": 10.0
},
{
"OverTimeID": 1,
"EmployeeID": 2,
"GrossSalary": 3.0,
"ExcessShort": 4.0,
"OvertimeAmount": 5.0,
"TotalSalary": 6.0,
"EmployeeName": "sample string 7",
"AcceptedTime": 8.0,
"BasicSalary": 9.0,
"PerSalary": 10.0
}
]
}
application/xml, text/xml
Sample:
<OvertimeModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Ultrabiz_ERP_API.Models.Payroll">
<DepartmentID>5</DepartmentID>
<DesignationID>6</DesignationID>
<GenerateDate>2025-12-16T08:18:46.8301266+05:00</GenerateDate>
<IsPosted>true</IsPosted>
<ListBody>
<OvertimeBodyModel>
<AcceptedTime>8</AcceptedTime>
<BasicSalary>9</BasicSalary>
<EmployeeID>2</EmployeeID>
<EmployeeName>sample string 7</EmployeeName>
<ExcessShort>4</ExcessShort>
<GrossSalary>3</GrossSalary>
<OverTimeID>1</OverTimeID>
<OvertimeAmount>5</OvertimeAmount>
<PerSalary>10</PerSalary>
<TotalSalary>6</TotalSalary>
</OvertimeBodyModel>
<OvertimeBodyModel>
<AcceptedTime>8</AcceptedTime>
<BasicSalary>9</BasicSalary>
<EmployeeID>2</EmployeeID>
<EmployeeName>sample string 7</EmployeeName>
<ExcessShort>4</ExcessShort>
<GrossSalary>3</GrossSalary>
<OverTimeID>1</OverTimeID>
<OvertimeAmount>5</OvertimeAmount>
<PerSalary>10</PerSalary>
<TotalSalary>6</TotalSalary>
</OvertimeBodyModel>
</ListBody>
<OverTimeID>2</OverTimeID>
<Remarks>sample string 8</Remarks>
<SalaryMonth>2025-12-16T08:18:46.8301266+05:00</SalaryMonth>
<ShiftID>7</ShiftID>
<TotalSalary>9</TotalSalary>
<UserID>10</UserID>
</OvertimeModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
HttpResponseMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| Version | Version |
None. |
|
| Content | HttpContent |
None. |
|
| StatusCode | HttpStatusCode |
None. |
|
| ReasonPhrase | string |
None. |
|
| Headers | Collection of Object |
None. |
|
| RequestMessage | HttpRequestMessage |
None. |
|
| IsSuccessStatusCode | boolean |
None. |