GET api/LeavePlanning/{id}
Gets LeavePlanning requests identified by the unique id returned when the request was originally successfully Posted
Request Information
URI Parameters
(i.e.queryString parameters in the form ?param1={param1}¶m2={param2})
Name | Description | Type | Additional information |
---|---|---|---|
id |
Returns the one LeavePlanning request with a LeavePlanning of Id. Do not use /id={id} but rather just /{id}, as in api/LeavePlanning/5 to get request 5. |
integer |
Required |
Body Parameters
None.
Response Information
Resource Description
The requested LeavePlanning request in the form of a LeavePlanningView
LeavePlanningViewName | Description | Type | Additional information |
---|---|---|---|
LeavePlanningId | integer |
None. |
|
ChangeType |
The ChangeType for the LeavePlan. Only Add (Insert) is currently supported. |
string |
Required Matching: ([^'"])* Max length: 20 |
ChangeStatus |
The ChangeStatus for the LeavePlan. Do not supply |
string |
Matching: ([^'"])* Max length: 20 |
EmpCode |
The EmpCode for the LeavePlan. |
string |
Matching: ([^'"])* Max length: 20 |
LeaveType |
The LeaveType for the LeavePlan. Values SickLeave, AnnualLeave, LongServiceLeave, UserDefinedLeave, |
string |
Required Matching: ([^'"])* Max length: 20 |
LeaveCode |
The UserDefinedLeave LeaveCode for the LeavePlan. |
string |
Matching: ([^'"])* |
LeaveReason |
The Leave Reason for the LeavePlan. Leave Reason codes may be found using api/Lookups?type=LeaveReason |
string |
Required Matching: ([^'"])* Max length: 50 |
StartDate |
The Start Date for the LeavePlan. |
date |
Required |
EndDate |
The End Date for the LeavePlan. |
date |
Required |
Override |
The Override for the LeavePlan. Must be true to for value in HoursTaken to be accepted. |
boolean |
Required |
PayInAdvance |
The Pay In Advance flag for the LeavePlan. |
boolean |
None. |
HoursTaken |
The Hours Taken for the LeavePlan required if Override is set |
decimal number |
None. |
DaysTaken |
The Days Taken for the LeavePlan may be supplied if Override is set |
decimal number |
None. |
ReferenceNumber |
A reference, ideally unique, supplied by the client to identify the leave plan |
string |
Matching: ([^'"])* Max length: 20 |
ApiUserName | string |
None. |
|
ApiUserType | string |
None. |
|
ApiUserId | integer |
None. |
|
DatabaseType | string |
None. |
|
PayrollLink  Token |
globally unique identifier |
None. |
|
ErrorMessage | string |
None. |
Response Formats
application/json, text/json
{ "leavePlanningId": 1, "changeType": "sample string 1", "changeStatus": "sample string 2", "empCode": "sample string 3", "leaveType": "sample string 4", "leaveCode": "sample string 5", "leaveReason": "sample string 6", "startDate": "2024-11-21T23:36:00.8782092+11:00", "endDate": "2024-11-21T23:36:00.8782092+11:00", "override": true, "payInAdvance": true, "hoursTaken": 1.0, "daysTaken": 1.0, "referenceNumber": "sample string 10", "apiUserName": "sample string 11", "apiUserType": "sample string 12", "apiUserId": 13, "databaseType": "sample string 14", "payrollLinkToken": "a7c22cf8-94d6-42fb-8c5e-97358483c2cd", "errorMessage": "sample string 16" }
application/xml, text/xml
<LeavePlanningView xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <LeavePlanningId>1</LeavePlanningId> <ChangeType>sample string 1</ChangeType> <ChangeStatus>sample string 2</ChangeStatus> <EmpCode>sample string 3</EmpCode> <LeaveType>sample string 4</LeaveType> <LeaveCode>sample string 5</LeaveCode> <LeaveReason>sample string 6</LeaveReason> <StartDate>2024-11-21T23:36:00.8782092+11:00</StartDate> <EndDate>2024-11-21T23:36:00.8782092+11:00</EndDate> <Override>true</Override> <PayInAdvance>true</PayInAdvance> <HoursTaken>1</HoursTaken> <DaysTaken>1</DaysTaken> <ReferenceNumber>sample string 10</ReferenceNumber> <ApiUserName>sample string 11</ApiUserName> <ApiUserType>sample string 12</ApiUserType> <ApiUserId>13</ApiUserId> <DatabaseType>sample string 14</DatabaseType> <PayrollLinkToken>a7c22cf8-94d6-42fb-8c5e-97358483c2cd</PayrollLinkToken> <ErrorMessage>sample string 16</ErrorMessage> </LeavePlanningView>