ProRoster - Get absence matches employee

API Url

Use it for checking if an absence reason matches an employee.

GET
http://localhost:16010/ProMarkREST/rest/ProRoster/reasons/{id}/matching-employees

Permissions: user

Path parameters

FieldTypeDescription
idNumber

The id of the reason to be verified.

Query parameters

FieldTypeDescription
empIdsoptionalString

List of empIds separated with comma delimiter.

fromoptionalDate

Start date of the period to be checked. Default is TODAY.

tooptionalDate

Date of the absence. Default is from + 7 days.

Success 200

FieldTypeDescription
responseObject

Main object containing the response data.

  dataObject

Object containing the requested data.

    matchingEmployeesObject[]

Array of employees

      absenceScopeString

The scope of the supported absence. 0 = supports only full day absence 1 = supports only partial absence 2 = supports both

      dateDate

The date in which the absence matches.

      empIdString

Employee id

      empNameString

Employee full name

      empNoString

Employee number

      messagesObject[]

List of messages(info/warning/errors)

        codeString

The code of the message.

        levelString

The severity of the message. 0=success,1=info,2=warning,3=error

        messageString

The text of the message.

  messageoptionalObject

Object containing response messages.

    codeNumber

Message code.

    textString

Message text.

    typeString

Type of message.

Allowed values:"warning""info"

Success example:

HTTP/1.1 200 OK
{
"response": {
"data": {
"matchingEmployees": [
{
"empId": "833",
"empNo": "JDO",
"empName": "John Doe",
"absenceScope": 2,
"messages":[
{
"level": 2,
"code": 24,
"message": "The absence is overlapping some of the demands."
}
]
}
]
},
"errorCode": 0,
"errorMessage": ""
}
}