Approve/Reject each line item in a request
POST/ApproveRejectDetailRequest
This API is used to approve/reject requests. Before running this call, first we need to run the API to retrieve request approval details in order to obtain the taskid and taskkey.
The Authorization
must have Bearer
followed by Token
.
Mandatory params:
requestKey
,
approver
,
approvaldata
(taskid, taskkey, action); action:1/2, 1 - approve, 2 - reject
Optional params:
comments
Note: enableapprovervalidationinapprovalapi flag(with true/false values) can be added in configuration table to enable/disable validations when approver approvers the request.Default value of enableapprovervalidationinapprovalapi flag is null.
Request
- application/json
Body
Array [
]
approvaldata
object[]
Responses
- 200
Approve/Reject each line item in a request
Response Headers
Date
string
Server
string
Set-Cookie
string
X-Content-Type-Options
string
- application/json
- Schema
- Example (from schema)
- Approve/Reject each line item in a request
Schema
Array [
]
approvalResponse
object[]
{
"approvalResponse": [
{
"result": "Accepted",
"taskid": "90363___43d9e862-7e02-4de3-825e-56aa6a49557e",
"taskkey": 326
},
{
"result": "Accepted",
"taskid": "90364___43d9e862-7e02-4de3-825e-56aa6a49557e",
"taskkey": 327
}
],
"errorCode": "0",
"msg": "SUCCESSFUL"
}
{
"approvalResponse": [
{
"result": "Accepted",
"taskid": "90363___43d9e862-7e02-4de3-825e-56aa6a49557e",
"taskkey": 326
},
{
"result": "Accepted",
"taskid": "90364___43d9e862-7e02-4de3-825e-56aa6a49557e",
"taskkey": 327
}
],
"errorCode": "0",
"msg": "SUCCESSFUL"
}