Approval - Get budget approvals

API Url

Use it to get the budget approval records

GET
http://localhost:16010/ProMarkREST/web/Approval/plan-budget

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.

Query parameters

FieldTypeDescription
approvalGroupoptionalString

Approval Group ID. If not defined all valid approval groups are taken by default.

approvalStatusoptionalNumber

Approval status to filter data 1: Untreated, 2: Approved, 3</code: Rejected). If not defined then untreated transactions are returned.

Size range: 1-3
fromoptionalDate

From requested date

tooptionalDate

To requested date

Success 200

FieldTypeDescription
responseObject

Main object containing the response data.

  dataObject

Object containing the requested data.

    budgetApprovalObject[]

Collection of budget approvalr registrations

      approveFromDate

The date on which the budget was exceeded

      exceededNumber

The percentage by which the budget was exceeded

      firstValueNumber

First value from the planning figure

      planDescriptionString

Plan description

      planFigureIdNumber

Planning figure id

      planIdString

Plan id

      planObjectIdNumber

Plan object id

      rejectedTextoptionalString

Rejection Text if transaction is rejected

      rejectionCodeoptionalString

Rejection code if transaction is rejected

      requestedTimeDate

Requested time of the approval

      secondValueNumber

Second value from the planning figure

  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": {
"budgetApproval": [
{
"id": "0x0000000002386b87",
"planObjectId": 2163995151,
"planFigureId": 2,
"planDescription": "plan",
"planFigureDescription": "AUR currency vs Cost",
"planId": "AUR",
"date": "2020-09-08",
"approvalStatus": 1,
"exceeded": 733.3333333333,
"requestedTime": "2020-09-02T13:39:18.000",
"firstValue": 1000.0,
"secondValue": 120.0,
"type": 0
}
]}}
}

Error 4xx

FieldTypeDescription
responseObject

Main object containing the response data.

  dataObject

Object containing the requested data (empty).

  errorCodeNumber

Error code.

  errorMessageString

Error description.