General - Get registration types

API Url

Get allowed registration types for an employee. The result can depend ON the employee registration METHOD or restrictions.

GET
http://localhost:16010/ProMarkREST/rest/General/employees/{empId}/registration-types

Permissions: user

Path parameters

FieldTypeDescription
empIdString

Employee identifier

Query parameters

FieldTypeDescription
contextoptionalNumber

1: Employee (CVE), 2: Job (CVO), 3: Special Handling (compressed dialogues). Default is 1.

dateoptionalDate

Date when you want to make the registration. Default is TODAY.

scopeoptionalNumber

1: Exclude Job registrations, 2: Include ProTime-specific Job registrations, 3: Include all Job registrations (should be used only with context = 2). Default is 3.

Success 200

FieldTypeDescription
responseObject

Main object containing the response data.

  dataObject

Object containing the requested data.

    registrationTypesObject[]

Collection of registration types.

      descriptionString

The registration description.

      orderNumber

Order of registration. USE this to sort the collection.

      typeString

The registration type.

  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": {
"registrationTypes": [
{
"order": 1,
"type": "AB",
"description": "Absence"
},
{
"order": 2,
"type": "CI",
"description": "Clock-in"
},
{
"order": 3,
"type": "CO",
"description": "Clock-out"
}
]
},
"errorCode": 0,
"errorMessage": ""
}
}