Skip to content

Approves payments by message id.

Request

Tokens provided to this endpoint must use implicit or authorization code grant type flows.

Security
client_credentials(Required scopes: openidprofilebankservice) or implicit(Required scopes: openidprofilebankservice) or client_credentials_dev(Required scopes: openidprofilebankservice) or implicit_dev(Required scopes: openidprofilebankservice)
Path
messageIdstring, (uuid)required

The unique id for the payments

curl -i -X PUT \
  'https://developer.aritma.com/_mock/apis/banking/v3/openapi/bankservice-openapi/api/v3/payments/{messageId}/approve' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>'

Responses

OK

Body
statusinteger, (int32)(PaymentApproveResult)

PaymentApproveResult

  • 0 - User has already approved payment
  • 1 - User cannot access all bankaccounts present in payment
  • 2 - Payment was approved
  • 3 - Payment is pending approvals
  • 4 - User cannot approve a payment they sent
  • 5 - Payment not found
  • 6 - File has completed approval
Enum:0123456
approvalsRemaininginteger, (int32)

Number of approvals before payment is sent to bank

successbooleanread-only

Whether approval was successful

messagestring or nullread-only

Message explaining status

Response
{
  "status": 0,
  "approvalsRemaining": 0,
  "success": true,
  "message": "string"
}