POST api/LeaveEncash/Save

Request Information

URI Parameters

None.

Body Parameters

LeaveEncashSaveVM
NameDescriptionTypeAdditional information
LencashDate

string

Required

Refno

string

Required

String length: inclusive between 0 and 15

Employee

EmployeeLookup

Required

LeaveType

PayrollLeaveTypeLookupVM

Required

ApplyDate

string

Required

TotlErnLeaveInCr

decimal number

None.

TotalSickLeaveAvailed

decimal number

None.

TotalElAvailed

decimal number

None.

EncashLeaveCount

decimal number

None.

BalanceEarnLeave

decimal number

None.

BasicSal

decimal number

None.

Da

decimal number

None.

SpecialAllowance

decimal number

None.

OtherAllowance

decimal number

None.

TotalAmount

decimal number

None.

Status

string

Required

Matching regular expression pattern: A|C

ConfirmStatus

string

Required

Matching regular expression pattern: Y|N

CreateUser

integer

Required

CreateIp

string

Required

String length: inclusive between 0 and 20

FinYear

integer

None.

CalenderYear

integer

Required

PaymentType

string

Required

Matching regular expression pattern: B|C

ElRemainDays

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "LencashDate": "sample string 1",
  "Refno": "sample string 2",
  "Employee": {
    "EmployeeId": 1,
    "EmployeeName": "sample string 2",
    "Prefix": "sample string 3",
    "PresentHouseName": "sample string 4",
    "PresentAddress": "sample string 5",
    "EmployeeStatus": "sample string 6"
  },
  "LeaveType": {
    "LeaveTypeId": 1,
    "LeaveTypeName": "sample string 2"
  },
  "ApplyDate": "sample string 3",
  "TotlErnLeaveInCr": 4.0,
  "TotalSickLeaveAvailed": 5.0,
  "TotalElAvailed": 6.0,
  "EncashLeaveCount": 7.0,
  "BalanceEarnLeave": 8.0,
  "BasicSal": 9.0,
  "Da": 10.0,
  "SpecialAllowance": 11.0,
  "OtherAllowance": 12.0,
  "TotalAmount": 13.0,
  "Status": "sample string 14",
  "ConfirmStatus": "sample string 15",
  "CreateUser": 16,
  "CreateIp": "sample string 17",
  "FinYear": 18,
  "CalenderYear": 19,
  "PaymentType": "sample string 20",
  "ElRemainDays": 21
}

application/xml, text/xml

Sample:
<LeaveEncashSaveVM xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Models">
  <ApplyDate>sample string 3</ApplyDate>
  <BalanceEarnLeave>8</BalanceEarnLeave>
  <BasicSal>9</BasicSal>
  <CalenderYear>19</CalenderYear>
  <ConfirmStatus>sample string 15</ConfirmStatus>
  <CreateIp>sample string 17</CreateIp>
  <CreateUser>16</CreateUser>
  <Da>10</Da>
  <ElRemainDays>21</ElRemainDays>
  <Employee>
    <EmployeeId>1</EmployeeId>
    <EmployeeName>sample string 2</EmployeeName>
    <EmployeeStatus>sample string 6</EmployeeStatus>
    <Prefix>sample string 3</Prefix>
    <PresentAddress>sample string 5</PresentAddress>
    <PresentHouseName>sample string 4</PresentHouseName>
  </Employee>
  <EncashLeaveCount>7</EncashLeaveCount>
  <FinYear>18</FinYear>
  <LeaveType>
    <LeaveTypeId>1</LeaveTypeId>
    <LeaveTypeName>sample string 2</LeaveTypeName>
  </LeaveType>
  <LencashDate>sample string 1</LencashDate>
  <OtherAllowance>12</OtherAllowance>
  <PaymentType>sample string 20</PaymentType>
  <Refno>sample string 2</Refno>
  <SpecialAllowance>11</SpecialAllowance>
  <Status>sample string 14</Status>
  <TotalAmount>13</TotalAmount>
  <TotalElAvailed>6</TotalElAvailed>
  <TotalSickLeaveAvailed>5</TotalSickLeaveAvailed>
  <TotlErnLeaveInCr>4</TotlErnLeaveInCr>
</LeaveEncashSaveVM>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.