GET api/Absence/{employeeNo}
Get a list of all absences for an employee
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
employeeNo |
Employee Number |
string |
Required |
Body Parameters
None.
Response Information
Resource Description
All Absence Details
Collection of AbsenceDetailName | Description | Type | Additional information |
---|---|---|---|
StartDate | date |
Required |
|
EndDate |
Must be after StartDate |
date |
Required |
AbsenceType |
1 = Holiday, 2 = Sickness, 3 = Unpaid Leave |
integer |
Required |
NoOfUnits | decimal number |
Required |
|
PayMaximumDays | boolean |
None. |
Response Formats
application/json, text/json
Sample:
[ { "StartDate": "2022-02-09T11:08:37.966519+00:00", "EndDate": "2022-02-11T11:08:37.966519+00:00", "AbsenceType": 2, "NoOfUnits": 4.0 }, { "StartDate": "2022-02-09T11:08:37.966519+00:00", "EndDate": "2022-02-11T11:08:37.966519+00:00", "AbsenceType": 1, "NoOfUnits": 2.0 } ]
application/xml, text/xml
Sample:
<ArrayOfAbsenceDetail> <AbsenceDetail> <AbsenceType>2</AbsenceType> <EndDate>2022-02-11T11:08:37.966519+00:00</EndDate> <NoOfUnits>4</NoOfUnits> <StartDate>2022-02-09T11:08:37.966519+00:00</StartDate> </AbsenceDetail> <AbsenceDetail> <AbsenceType>1</AbsenceType> <EndDate>2022-02-11T11:08:37.966519+00:00</EndDate> <NoOfUnits>2</NoOfUnits> <StartDate>2022-02-09T11:08:37.966519+00:00</StartDate> </AbsenceDetail> </ArrayOfAbsenceDetail>