ProRoster - Get approval registrations for a plan

API Url

Use it to get the published budgets

GET
http://localhost:16010/ProMarkREST/web/ProRoster/plans/{id}/approval-registrations

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
idNumber

Plan id.

Query parameters

FieldTypeDescription
empIdsoptionalNumber

List of employee ids separated by comma. Used to return the data only for certain employees. If list contains employees that are not in the plan, they are ignored.

fromoptionalString

The start date of the period inside a plan ( If not provided default is start of the current week).

tooptionalString

The end date of the period inside a plan ( If not provided default is end of the current week).

Success 200

FieldTypeDescription
responseObject

Main object containing the response data.

  dataObject

Object containing the requested data.

      approvedByoptionalString

The approval user if the transaction is approved

      approvedDateoptionalDate

The date when the transaction was approved

      rejectedTextoptionalString

Rejection Text if transaction is rejected

      rejectionCodeoptionalString

Rejection code if transaction is rejected

    registrationsoptionalObject[]
      approvalRegistrationsoptionalObject[]
        approvalStatusNumber

The approval status of the planning figure

        planFigureDescriptionDate

Description of the planning figure.

        planFigureIdString

Id of the planning figure.

        planObjectIdNumber

The plan Object Id.

      dateDate

Date of the registrations

  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": {
"registrations": [
{
"date": "2020-07-21",
"approvalRegistrations": [
{
"planObjectId": 2163995151,
"planFigureId": 1,
"planFigureDescription": "AUR budget 2 vs AUR budget Approval",
"approvalStatus": 3,
"rejectionTime" : "2020-09-09T17:07:15.000",
"rejectedBy" : "OGG",
"rejectedText" : "Not good to be over budget",
"rejectionCode" : "HVBA1"
}
]
}
{
"date": "2020-09-23",
"approvalRegistrations": [
{
"planObjectId": 2163995151,
"planFigureId": 1,
"planFigureDescription": "AUR budget 2 vs AUR budget Approval",
"approvedBy": "OGG",
"approvalTime": "2020-09-09T17:09:45.000",
"approvalStatus": 2
},
{
"planObjectId": 2163995151,
"planFigureId": 3,
"planFigureDescription": "Ovidiu Approval",
"approvedBy": "OGG",
"approvalTime": "2020-09-09T17:09:45.000",
"approvalStatus": 2
}
]
}
]
}
}
}

Error 4xx

FieldTypeDescription
responseObject

Main object containing the response data.

  dataObject

Object containing the requested data (empty).

  errorCodeNumber

Error code.

  errorMessageString

Error description.