Validate Bank Account Number
Description
This API verifies specified account number and returns allocated account name.
HTTP Method
POST
Sandbox
http://sandbox-cashierapi.opayweb.com/api/v3
Production
https://cashierapi.opayweb.com/api/v3
API Endpoint
/verification/accountNumber/resolve
Header Parameters
Authorization | String | Set value to Bearer public Key To get your public key login to your OPay Dashboard, click on the Settings tab, and then click on API Keys & Webhooks |
Content-Type | String | Set value to application/json |
MerchantID | String | Set value as merchantID OPay merchant ID is a unique 15-digit number assigned to all OPay merchants. To get your merchantID, login to your OPay Dashboard, click on the Settings tab and you would find it on the Business section. |
post/verification/accountNumber/resolve
curl -X POST --header 'content-type: application/json'
--header 'Authorization: Bearer public_key'
--header 'MerchantId: 256619092316009'
-d '{"bankCode":"041","bankAccountNo":"45345343434","countryCode":"NG"}'
https://cashierapi.opayweb.com/api/v3/verification/accountNumber/resolve
Sample Request Body
RESPONSE PROPERTY | DESCRIPTION |
---|---|
bankCode | Bank Code |
bankAccountNo | Bank Account Number |
countryCode | Country code (which is NG) |
post/verification/accountNumber/resolve
{
"bankCode": "041",
"bankAccountNo": "45345343434",
"countryCode": "NG"
}
Sample Response
RESPONSE PROPERTY | TYPE | DESCRIPTION |
---|---|---|
accountNo | string | Bank Account Number |
accountName | string | Bank Account Name |
post/verification/accountNumber/resolve
{
"accountNo": "3145549588",
"accountName": "Test Bank Account"
}