General - Get sign-off status

API Url

Used for checking if selected period signed-off or not

GET
http://localhost:16010/ProMarkREST/rest/General/employees/{empId}/sign-offs

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

Employee identifier

Query parameters

FieldTypeDescription
fromDate

Period start date

toDate

Period end date

Success 200

FieldTypeDescription
responseObject

Main object containing the response data.

  dataObject

Object containing the requested data.

    signoffsObject[]

Collection of signoff information

      fromDate

Signoff period start date

      signOffBoolean

True = period is signed-off.

      toDate

Signoff period end date

  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": {
"signoffs": [
{
"from": "2018-11-11",
"to": "2018-11-24",
"signOff": true
}
]
},
"errorCode": 0,
"errorMessage": ""
}
}