Registrations - Absence, GET
API Url
Absence (AB) variant of generic registration
Ignore the URI, for the correct URI see
http://localhost:16010/ProMarkREST/{DummyRegistration?type=AB}
Success 200
| Field | Type | Description |
|---|---|---|
| absence | object | All day absence. |
commentoptional | string | Free text comment/answer. |
contactPersonoptional | object | Contact person |
| employeeNo | string | Employee number. |
| id | string | Internal employee id of contact person. |
| initials | string | Employee initials. |
| name | string | Name of user |
normTimeIntvoptional | object | Normal time interval |
| end | number | End of interval |
| start | number | Start of interval |
projectDimensionoptional | object | Dimensions of the related project registration |
| activity | object | Activity |
| description | string | Description of activity |
| id | string | ID of activity |
extraInfooptional | object[] | Collection of extra info objects |
| description | string | Description of extra info |
| id | string | ID of extra info |
| value | object | Extra info value |
| description | string | Description of extra info value |
| id | string | ID of extra info value |
pieceworkoptional | object | Piecework |
| description | string | Description of piecework |
| id | string | ID of piecework |
| project | object | Project |
| description | string | Description of project |
| id | string | ID of project |
timeTypeoptional | object | Time Type |
| description | string | Description of timeType |
| id | string | ID of timeType |
projectTransSeqoptional | number | TransSeq of the related project registration |
| reason | object | |
backColoroptional | string | Hex encoded RGB background color related to reason |
| code | string | ID of reason |
| description | string | Description of reason |
distributionoptional | object[] | Distribution of absence on secondary reasons. Either time or percentage must be filled out, not both. |
| percentage | number | The absence in percentage. |
| reason | object | Secondary reason. |
backColoroptional | string | Hex encoded RGB background color related to reason |
| code | string | ID of reason |
| description | string | Description of reason |
foreColoroptional | string | Hex encoded RGB foreground color related to reason |
| type | string | Reason type "AA" |
| time | number | The absence time in seconds. |
foreColoroptional | string | Hex encoded RGB foreground color related to reason |
secondaryReasonoptional | object | Secondary reason |
| description | string | Secondary reason description. |
| group | string | Secondary reason group. |
| id | string | Secondary reason id. |
| type | string | Reason type "AA" |
| time | number | How many hours the employee is missing. |
| actualTime | datetime | The actual time the registration was made |
approvaloptional | object[] | Approval information |
approvalTimeoptional | datetime | Time of approval/rejection, available when status is |
approverIdoptional | string | Id of user that approved or rejected, available when status is |
| deptId | string | Department ID, secondary to approval group |
| groupId | string | Approval group ID |
| level | number |
123 |
rejectCodeoptional | string | Rejection code, in use when status is |
rejectMsgoptional | string | Rejection message, in use when status is |
| status | number |
0123 |
| approvalStatus | number |
0123 |
| attendanceDate | date | The date that the registration belongs to. Typical the date of the registration unless it's a night shift |
| closedPeriod | boolean | The registration is in a closed period |
| correctedRegTime | datetime | Registration time adjusted according to setup in ProMark |
| description | string | Default value: Absence |
| empId | string | Internal employee ID |
| isDeleted | boolean | The registration is deleted and cannot be altered. |
| isErroneous | boolean | The registrations is erroneous and should either be changed or deleted. It's typical a result of offline CI/CO registration where a reason is missing or it's a duplicate. |
locationoptional | object | Geo location of registration |
| latitude | number | Latitude, negative value is west -180 to 180 |
| longitude | number | Longitude, negative value is south -180 to 180 |
| noDelete | boolean | It's not allowed to delete the registration. Some registrations may be readOnly but can still be deleted |
| noTimeChange | boolean | regTime cannot be changed, for instance on absence registrations |
| readOnly | boolean | It's not allowed to edit the registration |
| regTime | datetime | The time of registration |
signOffoptional | object | Sign off information |
| by | string | Used if status = |
| status | number |
012 |
| time | datetime | Used if status = |
| terminalId | string | Numeric ID (optional prefixed by*) of registration terminal. If it's not numeric (it does not start with a digit or *) then it's the ID of the user that changed or created the registration |
| transSeq | number | Unique reference of registration |
| type | string | Default value: AB |
| underValidation | boolean | The registration is under validation |