Approval - Approve or reject budget approval records
API Url
Used for approving or rejecting budget approval records
PUT
http://localhost:16010/ProMarkREST/web/Approval/plan-budget
Permissions: user
Request headers
| Field | Type | Description |
|---|---|---|
Accept-Languageoptional | String | =en-GB Language use for localization. |
X-Clientoptional | String | =Client type. "Portal""Mobile""Admin" |
X-Roleoptional | Number | ProMark role (1: Employee, 2: User). {12} |
X-WebPart-Idoptional | Number | Unique web-part identifier. |
Parameter
| Field | Type | Description |
|---|---|---|
| request | Object | Main object containing the request data. |
| data | Object | Object containg data to be uploaded. |
| budgetApproval | Object[] | Collection of budget approvalr registrations |
| approvalStatus | Number | Approval status. Supported values: 2 = Approved, 3 = Rejected |
| date | Number | The date on which the budget was exceeded |
| planFigureId | Number | Planning figure id |
| planObjectId | Number | Plan object id |
rejectedTextoptional | String | Rejection Text if transaction is rejected |
rejectionCodeoptional | String | Rejection code if transaction is rejected |
Request example:
{"request": {"data": {"budgetApproval": [{"id": 2163995151,"planFigureId": 0,"approveFrom": "2020-08-28","approvalStatus": 2}]}}}
Error 4xx
| Field | Type | Description |
|---|---|---|
| response | Object | Main object containing the response data. |
| data | Object | Object containing the requested data (empty). |
| errorCode | Number | Error code. |
| errorMessage | String | Error description. |