POST api/Payroll/InsertSalarySheet?isOpen={isOpen}&userId={userId}&totalSalary={totalSalary}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
isOpen

boolean

Required

userId

integer

Required

totalSalary

decimal number

Required

Body Parameters

SalarySheetModel
NameDescriptionTypeAdditional information
IsPosted

boolean

None.

SalaryID

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 SalarySheetBodyModel

None.

Request Formats

application/json, text/json

Sample:
{
  "IsPosted": true,
  "SalaryID": 2,
  "GenerateDate": "2025-07-04T19:23:33.6625502+05:00",
  "SalaryMonth": "2025-07-04T19:23:33.6625502+05:00",
  "DepartmentID": 5,
  "DesignationID": 6,
  "ShiftID": 7,
  "Remarks": "sample string 8",
  "TotalSalary": 9.0,
  "UserID": 10,
  "ListBody": [
    {
      "EOBI": 1.0,
      "SESSI": 2.0,
      "ITAX": 3.0,
      "WHTAX": 4.0,
      "SerialNo": 5,
      "SalaryID": 6,
      "EmployeeID": 7,
      "Presents": 8.0,
      "Leaves": 9.0,
      "BasicSalary": 10.0,
      "Allowances": 11.0,
      "Bonus": 12.0,
      "Deduction": 13.0,
      "NetSalary": 14.0,
      "AdvanceAmount": 15.0,
      "LECash": 16.0,
      "TotalWorkingHour": 17.0,
      "ShiftHour": 18.0,
      "EmployeeName": "sample string 19"
    },
    {
      "EOBI": 1.0,
      "SESSI": 2.0,
      "ITAX": 3.0,
      "WHTAX": 4.0,
      "SerialNo": 5,
      "SalaryID": 6,
      "EmployeeID": 7,
      "Presents": 8.0,
      "Leaves": 9.0,
      "BasicSalary": 10.0,
      "Allowances": 11.0,
      "Bonus": 12.0,
      "Deduction": 13.0,
      "NetSalary": 14.0,
      "AdvanceAmount": 15.0,
      "LECash": 16.0,
      "TotalWorkingHour": 17.0,
      "ShiftHour": 18.0,
      "EmployeeName": "sample string 19"
    }
  ]
}

application/xml, text/xml

Sample:
<SalarySheetModel 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-07-04T19:23:33.6625502+05:00</GenerateDate>
  <IsPosted>true</IsPosted>
  <ListBody>
    <SalarySheetBodyModel>
      <AdvanceAmount>15</AdvanceAmount>
      <Allowances>11</Allowances>
      <BasicSalary>10</BasicSalary>
      <Bonus>12</Bonus>
      <Deduction>13</Deduction>
      <EOBI>1</EOBI>
      <EmployeeID>7</EmployeeID>
      <EmployeeName>sample string 19</EmployeeName>
      <ITAX>3</ITAX>
      <LECash>16</LECash>
      <Leaves>9</Leaves>
      <NetSalary>14</NetSalary>
      <Presents>8</Presents>
      <SESSI>2</SESSI>
      <SalaryID>6</SalaryID>
      <SerialNo>5</SerialNo>
      <ShiftHour>18</ShiftHour>
      <TotalWorkingHour>17</TotalWorkingHour>
      <WHTAX>4</WHTAX>
    </SalarySheetBodyModel>
    <SalarySheetBodyModel>
      <AdvanceAmount>15</AdvanceAmount>
      <Allowances>11</Allowances>
      <BasicSalary>10</BasicSalary>
      <Bonus>12</Bonus>
      <Deduction>13</Deduction>
      <EOBI>1</EOBI>
      <EmployeeID>7</EmployeeID>
      <EmployeeName>sample string 19</EmployeeName>
      <ITAX>3</ITAX>
      <LECash>16</LECash>
      <Leaves>9</Leaves>
      <NetSalary>14</NetSalary>
      <Presents>8</Presents>
      <SESSI>2</SESSI>
      <SalaryID>6</SalaryID>
      <SerialNo>5</SerialNo>
      <ShiftHour>18</ShiftHour>
      <TotalWorkingHour>17</TotalWorkingHour>
      <WHTAX>4</WHTAX>
    </SalarySheetBodyModel>
  </ListBody>
  <Remarks>sample string 8</Remarks>
  <SalaryID>2</SalaryID>
  <SalaryMonth>2025-07-04T19:23:33.6625502+05:00</SalaryMonth>
  <ShiftID>7</ShiftID>
  <TotalSalary>9</TotalSalary>
  <UserID>10</UserID>
</SalarySheetModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.