GET api/Leave/GetLeaveDetails?EmployeeLeaveID={EmployeeLeaveID}&APIKey={APIKey}

Api to get Leave Details

Request Information

URI Parameters

NameDescriptionTypeAdditional information
EmployeeLeaveID

integer

None.

APIKey

string

None.

Body Parameters

None.

Response Information

Resource Description

LeaveApplicationListResponseDataModel
NameDescriptionTypeAdditional information
LeaveApplicationResultList

Collection of LeaveApplyResponseDataModel

None.

ReturnID

integer

Required

Message

string

Required

Successful

boolean

Required

Code

integer

None.

TotalRecord

integer

None.

Response Formats

application/json, text/json, text/plain, text/html

Sample:
{
  "leaveApplicationResultList": [
    {
      "employeeLeaveID": 1,
      "userID": 1,
      "userName": "sample string 1",
      "leaveTypeID": 2,
      "leaveType": "sample string 3",
      "leaveStatusID": 4,
      "leaveStatusType": "sample string 5",
      "colorCode": null,
      "parentStatusType": 7,
      "approvalNote": "sample string 8",
      "rejectionNote": "sample string 9",
      "withdrawNote": "sample string 10",
      "leaveStartDate": "2025-07-17T04:16:20.2374916+00:00",
      "fromSessionID": 12,
      "leaveEndDate": "2025-07-17T04:16:20.2374916+00:00",
      "toSessionID": 14,
      "approverID": 15,
      "approverMailID": "sample string 16",
      "contactDetails": "sample string 17",
      "leaveReason": "sample string 18",
      "addedBy": 19,
      "userEmail": "sample string 20",
      "addedDate": "2025-07-17T04:16:20.2374916+00:00",
      "ccUserList": [
        {
          "employeeLeaveID": 1,
          "userEmail": "sample string 1",
          "userID": 2,
          "userName": "sample string 3"
        },
        {
          "employeeLeaveID": 1,
          "userEmail": "sample string 1",
          "userID": 2,
          "userName": "sample string 3"
        }
      ],
      "leaveFilesList": [
        {
          "employeeLeaveID": 1,
          "leaveFileID": 2,
          "actualFileName": "sample string 3",
          "renamedFileName": "sample string 4",
          "fileRelativePath": "sample string 5",
          "fullFilePath": "sample string 6",
          "fileType": "sample string 7",
          "addedDate": "2025-07-17T04:16:20.2374916+00:00",
          "modifiedDate": "2025-07-17T04:16:20.2374916+00:00"
        },
        {
          "employeeLeaveID": 1,
          "leaveFileID": 2,
          "actualFileName": "sample string 3",
          "renamedFileName": "sample string 4",
          "fileRelativePath": "sample string 5",
          "fullFilePath": "sample string 6",
          "fileType": "sample string 7",
          "addedDate": "2025-07-17T04:16:20.2374916+00:00",
          "modifiedDate": "2025-07-17T04:16:20.2374916+00:00"
        }
      ],
      "totalRecord": 22
    },
    {
      "employeeLeaveID": 1,
      "userID": 1,
      "userName": "sample string 1",
      "leaveTypeID": 2,
      "leaveType": "sample string 3",
      "leaveStatusID": 4,
      "leaveStatusType": "sample string 5",
      "colorCode": null,
      "parentStatusType": 7,
      "approvalNote": "sample string 8",
      "rejectionNote": "sample string 9",
      "withdrawNote": "sample string 10",
      "leaveStartDate": "2025-07-17T04:16:20.2374916+00:00",
      "fromSessionID": 12,
      "leaveEndDate": "2025-07-17T04:16:20.2374916+00:00",
      "toSessionID": 14,
      "approverID": 15,
      "approverMailID": "sample string 16",
      "contactDetails": "sample string 17",
      "leaveReason": "sample string 18",
      "addedBy": 19,
      "userEmail": "sample string 20",
      "addedDate": "2025-07-17T04:16:20.2374916+00:00",
      "ccUserList": [
        {
          "employeeLeaveID": 1,
          "userEmail": "sample string 1",
          "userID": 2,
          "userName": "sample string 3"
        },
        {
          "employeeLeaveID": 1,
          "userEmail": "sample string 1",
          "userID": 2,
          "userName": "sample string 3"
        }
      ],
      "leaveFilesList": [
        {
          "employeeLeaveID": 1,
          "leaveFileID": 2,
          "actualFileName": "sample string 3",
          "renamedFileName": "sample string 4",
          "fileRelativePath": "sample string 5",
          "fullFilePath": "sample string 6",
          "fileType": "sample string 7",
          "addedDate": "2025-07-17T04:16:20.2374916+00:00",
          "modifiedDate": "2025-07-17T04:16:20.2374916+00:00"
        },
        {
          "employeeLeaveID": 1,
          "leaveFileID": 2,
          "actualFileName": "sample string 3",
          "renamedFileName": "sample string 4",
          "fileRelativePath": "sample string 5",
          "fullFilePath": "sample string 6",
          "fileType": "sample string 7",
          "addedDate": "2025-07-17T04:16:20.2374916+00:00",
          "modifiedDate": "2025-07-17T04:16:20.2374916+00:00"
        }
      ],
      "totalRecord": 22
    }
  ],
  "returnID": 1,
  "message": "sample string 2",
  "successful": true,
  "code": 4,
  "totalRecord": 5
}

application/xml, text/xml

Sample:
<LeaveApplicationListResponseDataModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CMMS_V2.Core.DataModel">
  <Code xmlns="http://schemas.datacontract.org/2004/07/ATMP.Core.DataModel">4</Code>
  <Message xmlns="http://schemas.datacontract.org/2004/07/ATMP.Core.DataModel">sample string 2</Message>
  <ReturnID xmlns="http://schemas.datacontract.org/2004/07/ATMP.Core.DataModel">1</ReturnID>
  <Successful xmlns="http://schemas.datacontract.org/2004/07/ATMP.Core.DataModel">true</Successful>
  <TotalRecord xmlns="http://schemas.datacontract.org/2004/07/ATMP.Core.DataModel">5</TotalRecord>
  <LeaveApplicationResultList>
    <LeaveApplyResponseDataModel>
      <AddedBy>19</AddedBy>
      <AddedDate>2025-07-17T04:16:20.2374916+00:00</AddedDate>
      <ApprovalNote>sample string 8</ApprovalNote>
      <ApproverID>15</ApproverID>
      <ApproverMailID>sample string 16</ApproverMailID>
      <CCUserList>
        <CCUsersResponseDataModel>
          <EmployeeLeaveID>1</EmployeeLeaveID>
          <UserEmail>sample string 1</UserEmail>
          <UserID>2</UserID>
          <UserName>sample string 3</UserName>
        </CCUsersResponseDataModel>
        <CCUsersResponseDataModel>
          <EmployeeLeaveID>1</EmployeeLeaveID>
          <UserEmail>sample string 1</UserEmail>
          <UserID>2</UserID>
          <UserName>sample string 3</UserName>
        </CCUsersResponseDataModel>
      </CCUserList>
      <ContactDetails>sample string 17</ContactDetails>
      <EmployeeLeaveID>1</EmployeeLeaveID>
      <FromSessionID>12</FromSessionID>
      <LeaveEndDate>2025-07-17T04:16:20.2374916+00:00</LeaveEndDate>
      <LeaveFilesList>
        <LeaveFilesResponseDataModel>
          <ActualFileName>sample string 3</ActualFileName>
          <AddedDate>2025-07-17T04:16:20.2374916+00:00</AddedDate>
          <EmployeeLeaveID>1</EmployeeLeaveID>
          <FileRelativePath>sample string 5</FileRelativePath>
          <FileType>sample string 7</FileType>
          <FullFilePath>sample string 6</FullFilePath>
          <LeaveFileID>2</LeaveFileID>
          <ModifiedDate>2025-07-17T04:16:20.2374916+00:00</ModifiedDate>
          <RenamedFileName>sample string 4</RenamedFileName>
        </LeaveFilesResponseDataModel>
        <LeaveFilesResponseDataModel>
          <ActualFileName>sample string 3</ActualFileName>
          <AddedDate>2025-07-17T04:16:20.2374916+00:00</AddedDate>
          <EmployeeLeaveID>1</EmployeeLeaveID>
          <FileRelativePath>sample string 5</FileRelativePath>
          <FileType>sample string 7</FileType>
          <FullFilePath>sample string 6</FullFilePath>
          <LeaveFileID>2</LeaveFileID>
          <ModifiedDate>2025-07-17T04:16:20.2374916+00:00</ModifiedDate>
          <RenamedFileName>sample string 4</RenamedFileName>
        </LeaveFilesResponseDataModel>
      </LeaveFilesList>
      <LeaveReason>sample string 18</LeaveReason>
      <LeaveStartDate>2025-07-17T04:16:20.2374916+00:00</LeaveStartDate>
      <LeaveStatusID>4</LeaveStatusID>
      <LeaveStatusType>sample string 5</LeaveStatusType>
      <LeaveType>sample string 3</LeaveType>
      <LeaveTypeID>2</LeaveTypeID>
      <ParentStatusType>7</ParentStatusType>
      <RejectionNote>sample string 9</RejectionNote>
      <ToSessionID>14</ToSessionID>
      <TotalRecord>22</TotalRecord>
      <UserEmail>sample string 20</UserEmail>
      <UserID>1</UserID>
      <UserName>sample string 1</UserName>
      <WithdrawNote>sample string 10</WithdrawNote>
    </LeaveApplyResponseDataModel>
    <LeaveApplyResponseDataModel>
      <AddedBy>19</AddedBy>
      <AddedDate>2025-07-17T04:16:20.2374916+00:00</AddedDate>
      <ApprovalNote>sample string 8</ApprovalNote>
      <ApproverID>15</ApproverID>
      <ApproverMailID>sample string 16</ApproverMailID>
      <CCUserList>
        <CCUsersResponseDataModel>
          <EmployeeLeaveID>1</EmployeeLeaveID>
          <UserEmail>sample string 1</UserEmail>
          <UserID>2</UserID>
          <UserName>sample string 3</UserName>
        </CCUsersResponseDataModel>
        <CCUsersResponseDataModel>
          <EmployeeLeaveID>1</EmployeeLeaveID>
          <UserEmail>sample string 1</UserEmail>
          <UserID>2</UserID>
          <UserName>sample string 3</UserName>
        </CCUsersResponseDataModel>
      </CCUserList>
      <ContactDetails>sample string 17</ContactDetails>
      <EmployeeLeaveID>1</EmployeeLeaveID>
      <FromSessionID>12</FromSessionID>
      <LeaveEndDate>2025-07-17T04:16:20.2374916+00:00</LeaveEndDate>
      <LeaveFilesList>
        <LeaveFilesResponseDataModel>
          <ActualFileName>sample string 3</ActualFileName>
          <AddedDate>2025-07-17T04:16:20.2374916+00:00</AddedDate>
          <EmployeeLeaveID>1</EmployeeLeaveID>
          <FileRelativePath>sample string 5</FileRelativePath>
          <FileType>sample string 7</FileType>
          <FullFilePath>sample string 6</FullFilePath>
          <LeaveFileID>2</LeaveFileID>
          <ModifiedDate>2025-07-17T04:16:20.2374916+00:00</ModifiedDate>
          <RenamedFileName>sample string 4</RenamedFileName>
        </LeaveFilesResponseDataModel>
        <LeaveFilesResponseDataModel>
          <ActualFileName>sample string 3</ActualFileName>
          <AddedDate>2025-07-17T04:16:20.2374916+00:00</AddedDate>
          <EmployeeLeaveID>1</EmployeeLeaveID>
          <FileRelativePath>sample string 5</FileRelativePath>
          <FileType>sample string 7</FileType>
          <FullFilePath>sample string 6</FullFilePath>
          <LeaveFileID>2</LeaveFileID>
          <ModifiedDate>2025-07-17T04:16:20.2374916+00:00</ModifiedDate>
          <RenamedFileName>sample string 4</RenamedFileName>
        </LeaveFilesResponseDataModel>
      </LeaveFilesList>
      <LeaveReason>sample string 18</LeaveReason>
      <LeaveStartDate>2025-07-17T04:16:20.2374916+00:00</LeaveStartDate>
      <LeaveStatusID>4</LeaveStatusID>
      <LeaveStatusType>sample string 5</LeaveStatusType>
      <LeaveType>sample string 3</LeaveType>
      <LeaveTypeID>2</LeaveTypeID>
      <ParentStatusType>7</ParentStatusType>
      <RejectionNote>sample string 9</RejectionNote>
      <ToSessionID>14</ToSessionID>
      <TotalRecord>22</TotalRecord>
      <UserEmail>sample string 20</UserEmail>
      <UserID>1</UserID>
      <UserName>sample string 1</UserName>
      <WithdrawNote>sample string 10</WithdrawNote>
    </LeaveApplyResponseDataModel>
  </LeaveApplicationResultList>
</LeaveApplicationListResponseDataModel>

multipart/form-data

Sample:
<LeaveApplicationListResponseDataModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CMMS_V2.Core.DataModel"><Code xmlns="http://schemas.datacontract.org/2004/07/ATMP.Core.DataModel">4</Code><Message xmlns="http://schemas.datacontract.org/2004/07/ATMP.Core.DataModel">sample string 2</Message><ReturnID xmlns="http://schemas.datacontract.org/2004/07/ATMP.Core.DataModel">1</ReturnID><Successful xmlns="http://schemas.datacontract.org/2004/07/ATMP.Core.DataModel">true</Successful><TotalRecord xmlns="http://schemas.datacontract.org/2004/07/ATMP.Core.DataModel">5</TotalRecord><LeaveApplicationResultList><LeaveApplyResponseDataModel><AddedBy>19</AddedBy><AddedDate>2025-07-17T04:16:20.2374916+00:00</AddedDate><ApprovalNote>sample string 8</ApprovalNote><ApproverID>15</ApproverID><ApproverMailID>sample string 16</ApproverMailID><CCUserList><CCUsersResponseDataModel><EmployeeLeaveID>1</EmployeeLeaveID><UserEmail>sample string 1</UserEmail><UserID>2</UserID><UserName>sample string 3</UserName></CCUsersResponseDataModel><CCUsersResponseDataModel><EmployeeLeaveID>1</EmployeeLeaveID><UserEmail>sample string 1</UserEmail><UserID>2</UserID><UserName>sample string 3</UserName></CCUsersResponseDataModel></CCUserList><ContactDetails>sample string 17</ContactDetails><EmployeeLeaveID>1</EmployeeLeaveID><FromSessionID>12</FromSessionID><LeaveEndDate>2025-07-17T04:16:20.2374916+00:00</LeaveEndDate><LeaveFilesList><LeaveFilesResponseDataModel><ActualFileName>sample string 3</ActualFileName><AddedDate>2025-07-17T04:16:20.2374916+00:00</AddedDate><EmployeeLeaveID>1</EmployeeLeaveID><FileRelativePath>sample string 5</FileRelativePath><FileType>sample string 7</FileType><FullFilePath>sample string 6</FullFilePath><LeaveFileID>2</LeaveFileID><ModifiedDate>2025-07-17T04:16:20.2374916+00:00</ModifiedDate><RenamedFileName>sample string 4</RenamedFileName></LeaveFilesResponseDataModel><LeaveFilesResponseDataModel><ActualFileName>sample string 3</ActualFileName><AddedDate>2025-07-17T04:16:20.2374916+00:00</AddedDate><EmployeeLeaveID>1</EmployeeLeaveID><FileRelativePath>sample string 5</FileRelativePath><FileType>sample string 7</FileType><FullFilePath>sample string 6</FullFilePath><LeaveFileID>2</LeaveFileID><ModifiedDate>2025-07-17T04:16:20.2374916+00:00</ModifiedDate><RenamedFileName>sample string 4</RenamedFileName></LeaveFilesResponseDataModel></LeaveFilesList><LeaveReason>sample string 18</LeaveReason><LeaveStartDate>2025-07-17T04:16:20.2374916+00:00</LeaveStartDate><LeaveStatusID>4</LeaveStatusID><LeaveStatusType>sample string 5</LeaveStatusType><LeaveType>sample string 3</LeaveType><LeaveTypeID>2</LeaveTypeID><ParentStatusType>7</ParentStatusType><RejectionNote>sample string 9</RejectionNote><ToSessionID>14</ToSessionID><TotalRecord>22</TotalRecord><UserEmail>sample string 20</UserEmail><UserID>1</UserID><UserName>sample string 1</UserName><WithdrawNote>sample string 10</WithdrawNote></LeaveApplyResponseDataModel><LeaveApplyResponseDataModel><AddedBy>19</AddedBy><AddedDate>2025-07-17T04:16:20.2374916+00:00</AddedDate><ApprovalNote>sample string 8</ApprovalNote><ApproverID>15</ApproverID><ApproverMailID>sample string 16</ApproverMailID><CCUserList><CCUsersResponseDataModel><EmployeeLeaveID>1</EmployeeLeaveID><UserEmail>sample string 1</UserEmail><UserID>2</UserID><UserName>sample string 3</UserName></CCUsersResponseDataModel><CCUsersResponseDataModel><EmployeeLeaveID>1</EmployeeLeaveID><UserEmail>sample string 1</UserEmail><UserID>2</UserID><UserName>sample string 3</UserName></CCUsersResponseDataModel></CCUserList><ContactDetails>sample string 17</ContactDetails><EmployeeLeaveID>1</EmployeeLeaveID><FromSessionID>12</FromSessionID><LeaveEndDate>2025-07-17T04:16:20.2374916+00:00</LeaveEndDate><LeaveFilesList><LeaveFilesResponseDataModel><ActualFileName>sample string 3</ActualFileName><AddedDate>2025-07-17T04:16:20.2374916+00:00</AddedDate><EmployeeLeaveID>1</EmployeeLeaveID><FileRelativePath>sample string 5</FileRelativePath><FileType>sample string 7</FileType><FullFilePath>sample string 6</FullFilePath><LeaveFileID>2</LeaveFileID><ModifiedDate>2025-07-17T04:16:20.2374916+00:00</ModifiedDate><RenamedFileName>sample string 4</RenamedFileName></LeaveFilesResponseDataModel><LeaveFilesResponseDataModel><ActualFileName>sample string 3</ActualFileName><AddedDate>2025-07-17T04:16:20.2374916+00:00</AddedDate><EmployeeLeaveID>1</EmployeeLeaveID><FileRelativePath>sample string 5</FileRelativePath><FileType>sample string 7</FileType><FullFilePath>sample string 6</FullFilePath><LeaveFileID>2</LeaveFileID><ModifiedDate>2025-07-17T04:16:20.2374916+00:00</ModifiedDate><RenamedFileName>sample string 4</RenamedFileName></LeaveFilesResponseDataModel></LeaveFilesList><LeaveReason>sample string 18</LeaveReason><LeaveStartDate>2025-07-17T04:16:20.2374916+00:00</LeaveStartDate><LeaveStatusID>4</LeaveStatusID><LeaveStatusType>sample string 5</LeaveStatusType><LeaveType>sample string 3</LeaveType><LeaveTypeID>2</LeaveTypeID><ParentStatusType>7</ParentStatusType><RejectionNote>sample string 9</RejectionNote><ToSessionID>14</ToSessionID><TotalRecord>22</TotalRecord><UserEmail>sample string 20</UserEmail><UserID>1</UserID><UserName>sample string 1</UserName><WithdrawNote>sample string 10</WithdrawNote></LeaveApplyResponseDataModel></LeaveApplicationResultList></LeaveApplicationListResponseDataModel>