Project - Get project correction registrations

API Url

Use it to load project correction registrations.

GET
http://localhost:16010/ProMarkREST/web/Project/employees/{empId}/corrections

Permissions: user

Request headers

FieldTypeDescription
Accept-LanguageoptionalString

=en-GB Language use for localization.

X-ClientoptionalString

=Client type.

Allowed values:"Portal""Mobile""Admin"
X-RoleoptionalNumber

ProMark role (1: Employee, 2: User).

Allowed values:{12}
X-WebPart-IdoptionalNumber

Unique web-part identifier.

Path parameters

FieldTypeDescription
empIdString

ID of the employee.

Query parameters

FieldTypeDescription
dateoptionalDate

Selected date for displaying project corrections.

Success 200

FieldTypeDescription
responseObject

Main object containing the response data.

  dataObject

Object containing the requested data.

    correctionsObject[]

Object containing correction registrations.

      dateBoolean

The date of the correction registrations

      empIdString

The id of the employee for which the corrections are requested

      registrationsObject[]

Collection of project corrections

        actualTimeDatetime

The actual time the registration was made

        attendanceDateDate

The date that the registration belongs to.

        closedPeriodBoolean

The registration is in a closed period

        correctedRegTimeDatetime

Registration time adjusted according to setup in ProMark

        descriptionString

"Project time registration"

        empIdString

Employee id

        isDeletedBoolean

The registration is deleted and cannot be altered.

        isErroneousBoolean

The registrations is erroneous and should either be changed or deleted.

        noDeleteBoolean

It's not allowed to delete the registration.

        noTimeChangeBoolean

regTime cannot be changed

        projectTimeObject[]

Object containing project time data

          activityObject[]

Activity

            descriptionString

Activity description

            idString

Activity id

          extraInfoObject[]

Extra info

            idString

Extra info id

            valueObject

Extra info value

              descriptionString

Extra info value description

              idString

Extra info value id

          isCorrectionBoolean

True = is correction registration, False = normal registration

          pieceworkObject[]

Piecework

            descriptionString

Piecework description

            idString

Piecework id

          projectObject[]

Project

            descriptionString

Project description

            idString

Project id

          registeredTimeNumber

Registered time

          serialNoString

Serial number for the corection registration

          timeTypeObject[]

Time type

            descriptionString

Time type description

            idString

Time type id

        readOnlyBoolean

It's not allowed to edit the registration

        regTimeDatetime

The time of registration

        terminalIdString

Numeric ID (optional prefixed by*) of registration terminal.

        transSeqNumber

Unique reference of registration

        typeString

"PR"

        underValidationBoolean

The registration is under validation

      serialNoNumber

Serial number for the corection registrations

  messageoptionalObject

Object containing response messages.

    codeNumber

Message code.

    textString

Message text.

    typeString

Type of message.

Allowed values:"warning""info"

Success example:

{
"response": {
"data": {
"corrections": {
"serialNo": "PM_OMP0000000508",
"date": "2020-06-15",
"empId": "949",
"registrations": [
{
"transSeq": 3246903,
"type": "PR",
"description": "Project time registration",
"empId": "949",
"empName": "Mihaela Versin",
"attendanceDate": "2020-06-15",
"terminalId": "6666",
"isDeleted": false,
"isErroneous": false,
"regTime": "2020-06-15T23:59:59.000",
"actualTime": "2020-06-15T10:29:48.000",
"correctedRegTime": "2020-06-15T23:59:00.000",
"accountTime": "2020-06-15T08:00:00.000",
"readOnly": false,
"noDelete": false,
"noTimeChange": true,
"closedPeriod": false,
"underValidation": false,
"approvalStatus": 1,
"approval": [
{
"level": 1,
"groupId": "AGPM1",
"groupDesc": "App.group ProManagement 1",
"deptId": "BH",
"status": 1
}
],
"signOff": {
"status": 1
},
"projectTime": {
"project": {
"id": "COLOR2",
"description": "Color project2"
},
"activity": {
"id": "RED",
"description": "The color red"
},
"timeType": {
"id": "MACHINE",
"description": "Machine hours"
},
"registeredTime": 7200,
"isCorrection": true,
"serialNo": "PM_OMP0000000508",
"absenceRelated": false
}
},
{
"transSeq": 0,
"type": "PR",
"description": "Project time registration",
"attendanceDate": null,
"terminalId": "",
"isDeleted": false,
"isErroneous": false,
"regTime": null,
"actualTime": null,
"correctedRegTime": null,
"accountTime": null,
"readOnly": false,
"noDelete": false,
"noTimeChange": false,
"closedPeriod": false,
"underValidation": false,
"approvalStatus": 0,
"projectTime": {
"project": {
"id": "0-AARSLEFF",
"description": "Aarsleff Sag I"
},
"activity": {
"id": "ACT1",
"description": "Aarsleff activity 1"
},
"timeType": {
"id": "HAND",
"description": "Hand hours"
},
"rate": 0.0,
"absenceRelated": false
}
}
]
}
}
}
}

Error 4xx

FieldTypeDescription
responseObject

Main object containing the response data.

  dataObject

Object containing the requested data (empty).

  errorCodeNumber

Error code.

  errorMessageString

Error description.