Account Verification

This endpoint helps you to verify the bank account for safe and secure transactions. Before you request a fund transfer, make sure to check that the receiving Financial Institution account belongs to the person you intend to send to!

You can use JWT / public access token that was generated in Step 1 to validate the account for the recipient.

curl --request GET \
     --url 'https://sandbox.onebrick.io/v2/payments/gs/bank-account-validation?accountNumber=accountNumber&bankShortCode=bankShortCode' \
     --header 'accept: application/json' \
     --header 'content-type: application/json' \
     --header 'publicAccessToken: Bearer {{publicAccessToken}}'

You will get the name of the owners for the given account, If it belongs to the right person then you can do the further process of sending money.

{
  "status": 200,
  "data": {
    "message": "We are successfully able to verify the account",
    "accountNo": "4124668005",
    "accountName": "M.HIBBAN IRSYAD",
    "bankShortCode": "PERMATA"
  },
  "metaData": {
    "source": "API",
    "entity": "Payment"
  },
  "error": null
}