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

FieldTypeDescription
requestObject

Main object containing the request data.

  dataObject

Object containg data to be uploaded.

    actionsObject[]

Collection of registrations to approve or reject.

      actionString

Action to do ("approve", "reject").

Allowed values:"approve""reject"
      commentoptionalString

Transaction reject comment. Only for rejections.

      reasonIdoptionalString

Transaction reject reason. Only for rejections.

      transactionsObject[]

Collection of transaction sequences.

        transSeqNumber

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

FieldTypeDescription
responseObject

Main object containing the response data.

  dataObject

Object containing the requested data (empty).

  errorCodeNumber

Error code.

  errorMessageString

Error description.