GET api/EmployeeLeaveApproval/getRecord/{Id}/{EmployeeId}/{YearId}/{OrganizationId}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
Id

integer

Required

EmployeeId

integer

Required

YearId

integer

Required

OrganizationId

integer

Required

Body Parameters

None.

Response Information

Resource Description

EmployeeLeaveRequestDto
NameDescriptionTypeAdditional information
EmployeeLeaveRequestId

decimal number

None.

BranchId

decimal number

None.

EmployeeId

decimal number

None.

OrganizationId

decimal number

None.

LeaveFromDate

date

None.

LeaveEndDate

date

None.

LeaveApprovedFromDate

date

None.

LeaveApprovedEndDate

date

None.

LeaveRequestStatus

integer

None.

LeaveRequestStatusName

string

None.

EmployeeName

string

None.

LeaveReason

string

None.

AcademicYear

string

None.

YearId

decimal number

None.

LeaveApprovedBy

decimal number

None.

LeaveApprovedByName

string

None.

LeaveRemark

string

None.

TotalRecords

decimal number

None.

EditReason

string

None.

CreatedBy

decimal number

None.

CreatedByEmployee

string

None.

CreatedDate

date

None.

UpdatedBy

decimal number

None.

UpdatedByEmployee

string

None.

UpdatedDate

date

None.

AllowDelete

decimal number

None.

Status

string

None.

EmployeeLeaveRequestDetailsList

Collection of EmployeeLeaveRequestDetailsListDto

None.

Response Formats

application/json, text/json

Sample:
{
  "EmployeeLeaveRequestId": 1.0,
  "BranchId": 1.0,
  "EmployeeId": 1.0,
  "OrganizationId": 2.0,
  "LeaveFromDate": "2022-05-27T09:24:40.6894997+05:30",
  "LeaveEndDate": "2022-05-27T09:24:40.6894997+05:30",
  "LeaveApprovedFromDate": "2022-05-27T09:24:40.6894997+05:30",
  "LeaveApprovedEndDate": "2022-05-27T09:24:40.6894997+05:30",
  "LeaveRequestStatus": 1,
  "LeaveRequestStatusName": "sample string 3",
  "EmployeeName": "sample string 4",
  "LeaveReason": "sample string 5",
  "AcademicYear": "sample string 6",
  "YearId": 1.0,
  "LeaveApprovedBy": 1.0,
  "LeaveApprovedByName": "sample string 7",
  "LeaveRemark": "sample string 8",
  "TotalRecords": 1.0,
  "EditReason": "sample string 9",
  "CreatedBy": 10.0,
  "CreatedByEmployee": "sample string 11",
  "CreatedDate": "2022-05-27T09:24:40.6894997+05:30",
  "UpdatedBy": 12.0,
  "UpdatedByEmployee": "sample string 13",
  "UpdatedDate": "2022-05-27T09:24:40.6894997+05:30",
  "AllowDelete": 1.0,
  "Status": "sample string 14",
  "EmployeeLeaveRequestDetailsList": [
    {
      "EmployeeLeaveTypeId": 1.0,
      "EmployeeLeaveType": "sample string 2",
      "TotalNoOfLeaves": 3,
      "MinNoOfLeavesOneTime": 1,
      "MaxNoOfLeaveOneTime": 1,
      "EmployeeId": 4.0,
      "NoOfLeaveUsed": 5,
      "BalanceLeaves": 1,
      "EmployeeLeaveRequestDetailsId": 1.0,
      "EmployeeLeaveRequestId": 1.0,
      "NoOfDaysLeave": 1
    },
    {
      "EmployeeLeaveTypeId": 1.0,
      "EmployeeLeaveType": "sample string 2",
      "TotalNoOfLeaves": 3,
      "MinNoOfLeavesOneTime": 1,
      "MaxNoOfLeaveOneTime": 1,
      "EmployeeId": 4.0,
      "NoOfLeaveUsed": 5,
      "BalanceLeaves": 1,
      "EmployeeLeaveRequestDetailsId": 1.0,
      "EmployeeLeaveRequestId": 1.0,
      "NoOfDaysLeave": 1
    }
  ]
}

application/xml, text/xml

Sample:
<EmployeeLeaveRequestDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ZenoxERP.API.Models.Extensions">
  <AcademicYear>sample string 6</AcademicYear>
  <AllowDelete>1</AllowDelete>
  <BranchId>1</BranchId>
  <CreatedBy>10</CreatedBy>
  <CreatedByEmployee>sample string 11</CreatedByEmployee>
  <CreatedDate>2022-05-27T09:24:40.6894997+05:30</CreatedDate>
  <EditReason>sample string 9</EditReason>
  <EmployeeId>1</EmployeeId>
  <EmployeeLeaveRequestDetailsList>
    <EmployeeLeaveRequestDetailsListDto>
      <BalanceLeaves>1</BalanceLeaves>
      <EmployeeId>4</EmployeeId>
      <EmployeeLeaveRequestDetailsId>1</EmployeeLeaveRequestDetailsId>
      <EmployeeLeaveRequestId>1</EmployeeLeaveRequestId>
      <EmployeeLeaveType>sample string 2</EmployeeLeaveType>
      <EmployeeLeaveTypeId>1</EmployeeLeaveTypeId>
      <MaxNoOfLeaveOneTime>1</MaxNoOfLeaveOneTime>
      <MinNoOfLeavesOneTime>1</MinNoOfLeavesOneTime>
      <NoOfDaysLeave>1</NoOfDaysLeave>
      <NoOfLeaveUsed>5</NoOfLeaveUsed>
      <TotalNoOfLeaves>3</TotalNoOfLeaves>
    </EmployeeLeaveRequestDetailsListDto>
    <EmployeeLeaveRequestDetailsListDto>
      <BalanceLeaves>1</BalanceLeaves>
      <EmployeeId>4</EmployeeId>
      <EmployeeLeaveRequestDetailsId>1</EmployeeLeaveRequestDetailsId>
      <EmployeeLeaveRequestId>1</EmployeeLeaveRequestId>
      <EmployeeLeaveType>sample string 2</EmployeeLeaveType>
      <EmployeeLeaveTypeId>1</EmployeeLeaveTypeId>
      <MaxNoOfLeaveOneTime>1</MaxNoOfLeaveOneTime>
      <MinNoOfLeavesOneTime>1</MinNoOfLeavesOneTime>
      <NoOfDaysLeave>1</NoOfDaysLeave>
      <NoOfLeaveUsed>5</NoOfLeaveUsed>
      <TotalNoOfLeaves>3</TotalNoOfLeaves>
    </EmployeeLeaveRequestDetailsListDto>
  </EmployeeLeaveRequestDetailsList>
  <EmployeeLeaveRequestId>1</EmployeeLeaveRequestId>
  <EmployeeName>sample string 4</EmployeeName>
  <LeaveApprovedBy>1</LeaveApprovedBy>
  <LeaveApprovedByName>sample string 7</LeaveApprovedByName>
  <LeaveApprovedEndDate>2022-05-27T09:24:40.6894997+05:30</LeaveApprovedEndDate>
  <LeaveApprovedFromDate>2022-05-27T09:24:40.6894997+05:30</LeaveApprovedFromDate>
  <LeaveEndDate>2022-05-27T09:24:40.6894997+05:30</LeaveEndDate>
  <LeaveFromDate>2022-05-27T09:24:40.6894997+05:30</LeaveFromDate>
  <LeaveReason>sample string 5</LeaveReason>
  <LeaveRemark>sample string 8</LeaveRemark>
  <LeaveRequestStatus>1</LeaveRequestStatus>
  <LeaveRequestStatusName>sample string 3</LeaveRequestStatusName>
  <OrganizationId>2</OrganizationId>
  <Status>sample string 14</Status>
  <TotalRecords>1</TotalRecords>
  <UpdatedBy>12</UpdatedBy>
  <UpdatedByEmployee>sample string 13</UpdatedByEmployee>
  <UpdatedDate>2022-05-27T09:24:40.6894997+05:30</UpdatedDate>
  <YearId>1</YearId>
</EmployeeLeaveRequestDto>