General - Get temporary registrations

API Url

Use it to get temporary registrations

GET
http://localhost:16010/ProMarkREST/web/General/employees/{empId}/temporary-registrations?date=2021-08-01&type=CB

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

Employee id.

Query parameters

FieldTypeDescription
dateoptionalDate

Selected day for the temporary registrations

typeoptionalString

Registrations types to be returned

Success 200

FieldTypeDescription
  dataObject
    cancelBreakObject

Employees cancel break

      breakProfIdString

Break profile id

      breaksObject[]

Collection of break intervals

        endNumber

Break interval end

        isCanceledNumber

True -> temporary cancel break exists for this break False -> temporary cancel break does not exist for this break

        startNumber

Break interval start

Success example:

{
"response": {
"data": {
"temporaryRegistrations":
[
{
"type":"CB",
"empId" :"400",
"cancelBreak":
{
"breakProfId":"vpeid",
"isCanceled": yes,
break:{
"start": 14400,
"end": 16200
}
}
},
{}
]
}
}
}

Error 4xx

FieldTypeDescription
responseObject

Main object containing the response data.

  dataObject

Object containing the requested data (empty).

  errorCodeNumber

Error code.

  errorMessageString

Error description.