GetEmployeeLeave


Description:

Request employee leave details for given Company that the requester is authorized to view.


Request:

https://qa01-api-gateway.moorepay.co.uk/timeandattendance/v1/TimeAndAttendance/GetEmployeeLeave/{companyId}


Request headers:

Name

Required

Type

Description

Authorization

Yes

string

access token


Request parameters:

Name

In

Required

Type

Description

companyId

template

true

string

string[2]

leaveType

query

false

string

string


Response example:


Response: 200 OK

{
"payrollCompanyCode": "string",
"idNumber": "string",
"hrEmployeeId": "string",
"employeeName": "string",
"dateFrom": "string",
"dateTo": "string",
"returnToWork": "string",
"leaveType": "string",
"otherLeaveReason": "string",
"hours": [{
"date":"string",
"hours": 0,
"expectedHours":  0
}],
"status": 0.0,
"leaveTakenDays": 0.0,
"overrideWorkDays": 0.0,
"overridePublicHolidays": 0.0,
"doctorsCertificate": "string",
"comments": "string",
"transactionId": "string",
"reviewerEmployeeId": "string",
"halfDayAM_HalfLastDay": true,
"halfDayPM_HalfFirstDay": true
}

Response: 400 Bad Request

Bad Request


Response: 401 Unauthorized

Unauthorized


Response: 404 Not Found

Not Found


Response: 405 Method Not Allowed

Method Not Allowed


Response: 500 Internal Server Error

Internal Server Error

Created with the Personal Edition of HelpNDoc: Upgrade Your Documentation Process with a Help Authoring Tool