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 [

  • action number
    taskid string
    taskkey number
  • ]

  • approver string
    comments string
    requestKey number

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 [

  • result string
    taskid string
    taskkey number
  • ]

  • errorCode string
    msg string
Loading...