General - Get day registrations

API Url

Get daily attendance plan and registrations.

GET
http://localhost:16010/ProMarkREST/rest/General/day-registrations

Permissions: user

Query parameters

FieldTypeDescription
activityIdoptionalString

Activity Id.

filterString

Employees filter.

fromoptionalDateTime

Start date for registrations, Default: TODAY.

pieceWorkIdoptionalString

Piece work Id.

projectIdoptionalString

Project id.

tooptionalDateTime

End date for absences, Default : TODAY.

transTypeoptionalString

List of registration types to be returned. Default: all.

Success 200

FieldTypeDescription
responseObject

Main object containing the response data.

  dataObject

Object containing the requested data.

    employeesObject[]

Collection of employees.

      avatarURIoptionalString

URI for loading the employee avatar.

      dayRegistrationsObject[]

Collection of daily registrations.

        approvalStatusNumber

Calculated approval status for the day (0: No approval needed, 1: Pending approva, 2: Approved, 3: Rejected).

Allowed values:[0-3]
        attendanceDateDate

Date of registration.

        empIdString

Unique employee id

        hasRegistrationsoptionalString

List of registration types that exist on the day.

        lockedBoolean

Determines if a registration can be modified or not.

        projectTimeNumber

Total project time registered on the day.

        registrationMethodNumber

Registration method on day (1: CI/CO or Absence required, 2: CI/CI or Absence when relevant, 3: Only Absence, 4: Present/not present or Absence).

Allowed values:[1-4]
        registrationsoptionalObject[]

Collection of registrations on the day.

        shiftsoptionalObject[]

Collection of shifts for the day.

          backColoroptionalString

Backcolor of shift taken from day profile setup.

          descriptionString

Day profile description.

          foreColoroptionalString

Forecolor of shift taken from day profile setup.

          hoursPerDayoptionalNumber

Hours per day.

          idString

Day profile ID.

          normalTimeStartoptionalNumber

Normal time start of shift in seconds.

          normalTimeStopoptionalNumber

Normal time end of shift in seconds.

          sequenceNumber

Order of shift in case of multi-shift.

        timeToRegisterNumber

Total project time that needs to be registered on the day.

        totalTimeNumber

Total time registered on the day expressed in seconds.

      idString

Unique employee id.

      initialsString

Employee initials.

      nameString

Employee name.

      noString

Employee no.

      sortNoString

Employee number used for sorting.

  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": {
"employees": [
{
"id": "184",
"no": "4",
"sortNo": "!!!!!!4",
"initials": "PDE"
"name": "Peter Deltid",
"dayRegistrations": [
{
"empId": "184",
"attendanceDate": "2017-06-19",
"locked": false,
"approvalStatus": 0,
"registrationMethod": 1,
"totalTime": 0,
"timeToRegister": 0,
"projectTime": 0,
"shifts": [
{
"id": "S2200",
"description": "S2200",
"sequence": 0,
"normalTimeStart": 79200,
"normalTimeStop": 108000,
"hoursPerDay": 27000,
"totalTime": 0
}
]
}
]
},
{
"id": "414",
"no": "MFA1",
"sortNo": "!!!!!MFA",
"initials": "JDO"
"name": "John Doe",
"dayRegistrations": [
{
"empId": "414",
"attendanceDate": "2017-06-19",
"locked": false,
"approvalStatus": 2,
"registrationMethod": 1,
"hasRegistrations": "PR,CI,CO",
"totalTime": 41400,
"timeToRegister": 41400,
"projectTime": 7200,
"shifts": [
{
"id": "BH",
"description": "BH",
"sequence": 0,
"foreColor": "000000",
"backColor": "00FF40",
"normalTimeStart": 25200,
"normalTimeStop": 54000,
"hoursPerDay": 27000,
"clockIn": 25200,
"clockOut": 68400,
"totalTime": 41400
}
],
"registrations": [
{
"transSeq": 2183579,
"type": "CI",
"description": "Clock-in",
"empId": "414",
"attendanceDate": "2017-06-19",
"terminalId": "R",
"isDeleted": false,
"isErroneous": false,
"regTime": "2017-06-19T07:00:00.000",
"actualTime": "2017-06-26T15:58:23.000",
"correctedRegTime": "2017-06-19T07:00:00.000",
"readOnly": false,
"noDelete": false,
"noTimeChange": false,
"closedPeriod": false,
"approvalStatus": 0,
"signOff": {
"status": 1
},
"clockIn": {
"dayProfId": "BH",
"lockDayProfile": false,
"isOvertime": false,
"meetAgain": false,
"lockUserData": false,
"autoClockIn": false,
"totalTimeAccountId": "",
"comment": ""
}
},
{
"transSeq": 2183580,
"type": "CO",
"description": "Clock-out late",
"empId": "414",
"attendanceDate": "2017-06-19",
"terminalId": "R",
"isDeleted": false,
"isErroneous": false,
"regTime": "2017-06-19T19:00:00.000",
"actualTime": "2017-06-26T15:58:58.000",
"correctedRegTime": "2017-06-19T19:00:00.000",
"readOnly": false,
"noDelete": false,
"noTimeChange": false,
"closedPeriod": false,
"approvalStatus": 2,
"approval": [
{
"level": 1,
"groupId": "T&A",
"deptId": "CFP1",
"status": 2,
"approverId": "OGG",
"approvalTime": "2018-03-21T14:18:21.000"
}
],
"signOff": {
"status": 1
},
"clockOut": {
"isOvertime": false,
"coTimeAtNextCI": null,
"enteredTime": null,
"autoBreak": false,
"comment": "",
"lockUserData": false,
"reason": {
"type": "COL",
"code": "WP",
"description": "Overtime"
}
}
},
{
"transSeq": 2183250,
"type": "PR",
"description": "Project time registration",
"empId": "414",
"attendanceDate": "2017-06-19",
"terminalId": "MFA",
"isDeleted": false,
"isErroneous": false,
"regTime": "2017-06-19T23:59:59.000",
"actualTime": "2017-06-19T15:14:21.000",
"correctedRegTime": "2017-06-19T23:59:00.000",
"readOnly": false,
"noDelete": false,
"noTimeChange": true,
"closedPeriod": false,
"approvalStatus": 0,
"signOff": {
"status": 1
},
"projectTime": {
"project": {
"id": "000",
"description": "Test Dimensions"
},
"activity": {
"id": "1",
"description": "Act 1"
},
"timeType": {
"id": "NORM",
"description": "Normal time"
},
"registeredTime": 7200,
"note": "Test",
"absenceRelated": false
}
}
]
}
]
}
]
},
"errorCode": 0,
"errorMessage": ""
}
}

Error 4xx

FieldTypeDescription
responseObject

Main object containing the response data.

  dataObject

Object containing the requested data (empty).

  errorCodeNumber

Error code.

  errorMessageString

Error description.