Forums | Back to Concur Developer Center

Approval workflow action URL is not working if there are multiple approvers,


#1

When there are multiple approvers for an expense report, then approval expense workflow is throwing an error.

Request:

curl -X POST
https://implementation.concursolutions.com/api/expense/expensereport/v1.1/report/gWujNPAb5679LjhqgN7BLZs0JXvPjQN8pDMnhT6WlnEk/WorkFlowAction
-H ‘accept: application/json’
-H ‘authorization: OAuth 0_5sfyEKPk8cnxxxxxOpPsLk=’
-H ‘content-type: application/xml’
-d ‘
Approve
Approved via Concur Connect

Response:

curl -X POST
https://implementation.concursolutions.com/api/expense/expensereport/v1.1/report/gWujNPAb5679LjhqgN7BLZs0JXvPjQN8pDMnhT6WlnEk/WorkFlowAction
-H ‘accept: application/json’
-H ‘authorization: OAuth 0_5sfyEKPk8cnxxxxxOpPsLk=’
-H ‘content-type: application/xml’
-d ‘
Approve
Approved via Concur Connect

But if the first approver has approved it manually, then the second approval works through API.

Can anyone please explain why this issue occurs and how we can solve it?

Am I missing any parameters in the CURL request?