Skip to main content

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

Body

    approvaldata

    object[]

  • Array [

  • actionnumber
    Example: 1
    taskidstring
    Example: 90363___43d9e862-7e02-4de3-825e-56aa6a49557e
    taskkeynumber
    Example: 326
  • ]

  • approverstring
    Example: admin
    commentsstring
    Example: approval comment
    requestKeynumber
    Example: 138

Responses

Approve/Reject each line item in a request

Response Headers

  • Date

    string

  • Server

    string

  • Set-Cookie

    string

  • X-Content-Type-Options

    string

Schema

    approvalResponse

    object[]

  • Array [

  • resultstring
    Example: Accepted
    taskidstring
    Example: 90363___43d9e862-7e02-4de3-825e-56aa6a49557e
    taskkeynumber
    Example: 326
  • ]

  • errorCodestring
    Example: 0
    msgstring
    Example: SUCCESSFUL