Skip to main content
POST
/
api
/
v3
/
customer
/
validate
/
bank
Validate bank account
curl --request POST \
  --url https://sandbox-api.kotanipay.com/api/v3/customer/validate/bank \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "accountNumber": "1234567890",
  "bankCode": "KCB",
  "countryCode": "KE"
}
'
{
  "success": true,
  "message": "Bank account validated successfully.",
  "data": {
    "isValid": true,
    "isSupported": true,
    "accountType": "mobile_money",
    "requiresInternationalization": false,
    "countryCode": "KE",
    "countryName": "Kenya",
    "callingCode": "<string>",
    "internationalNumber": "+254719399210",
    "nationalNumber": "0719399210",
    "bankName": "<string>",
    "currency": "KES",
    "message": "<string>"
  }
}
Validates a bank account by checking the account number format, bank code, and country support. Returns validation status and bank information.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
accountNumber
string
required

Bank account number

Example:

"1234567890"

bankCode
string
required

Bank code or name

Example:

"KCB"

countryCode
string
required

Country code

Example:

"KE"

Response

success
boolean
Example:

true

message
string
Example:

"Bank account validated successfully."

data
object