Approval - Get rejection reasons

API Url

Used for loading approval rejection reasons.

GET
http://localhost:16010/ProMarkREST/rest/Approval/rejection-reasons

Permissions: user

Success 200

FieldTypeDescription
responseObject

Main object containing the response data.

  dataObject

Object containing the requested data.

    reasonsObject

Collection of approval rejection reasons.

      descriptionString

Rejection description.

      idString

Rejection ID.

  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": {
"reasons": [
{
"id": "HVBA1",
"description": "Okay"
},
{
"id": "HVBRH",
"description": "No holiday allowed !!"
}
]
},
"errorCode": 0,
"errorMessage": ""
}
}