Approval - Approve/Reject transactions
API Url
Used for either approve or reject the transactions.
POST
http://localhost:16010/ProMarkREST/rest/Approval/actions
Permissions: user
Parameter
| Field | Type | Description |
|---|---|---|
| request | Object | Main object containing the request data. |
| data | Object | Object containg data to be uploaded. |
| actions | Object[] | Collection of registrations to approve or reject. |
| action | String | Action to do ("approve", "reject"). "approve""reject" |
commentoptional | String | Transaction reject comment. Only for rejections. |
reasonIdoptional | String | Transaction reject reason. Only for rejections. |
| transactions | Object[] | Collection of transaction sequences. |
| transSeq | Number | Transaction sequence. |
Request example for approve:
{"request": {"data": {"actions": [{"action": "approve","transactions": [{"transSeq": 2168603},{"transSeq": 456789}]}]}}}
Request example for reject:
{"request": {"data": {"actions": [{"action": "reject","reasonId": "HVBA1","comment": "Any rejection text","transactions": [{"transSeq": 2168603},{"transSeq": 456789}]}]}}}
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. |