Bank Account
Verify a Kenyan bank account and resolve the account holder name via POST /api/v1/bank-account/ke. Call GET /api/v1/banks/ke first to obtain a valid bank_id. Other country codes are not supported yet. Verification HTTP 200 is billable; listing banks and validation/provider errors are not.
List supported banks
Returns every bank supported for Kenyan verification, each with an id and display name. Use id as bank_id on the verify request below. Auth required; this call is not billed.
{{baseUrl}}/api/v1/banks/ke{
"success": true,
"response_code": 200,
"message": "Banks fetched successfully",
"country": "ke",
"data": {
"banks": [
{ "id": 1, "name": "KCB" },
{ "id": 8, "name": "Co-operative Bank" },
{ "id": 34, "name": "Equity Bank" },
{ "id": 42, "name": "Post Bank" }
],
"count": 42
},
"request_id": "550e8400-e29b-41d4-a716-446655440000"
}Verify bank account
{{baseUrl}}/api/v1/bank-account/keHeader
Body Parameters
Sample request body
All verification APIs require consent: true in the JSON body.
{
"account_number": "0123456789",
"bank_id": 34,
"consent": true
}Response
{
"success": true,
"response_code": 200,
"message": "Bank Account Details Fetched Successfully",
"country": "ke",
"data": {
"account_number": "0123456789",
"bank": { "id": 34, "name": "Equity Bank" },
"account_holder": { "name": "JAMES KAMAU" },
"status": "valid"
},
"request_id": "550e8400-e29b-41d4-a716-446655440000"
}Response Fields
Error codes
Standard Peleza HTTP / response_code values (same across all API calls). Validation message text is endpoint-specific. Full reference: Error Codes.
Invalid bank ID
{
"success": false,
"response_code": 400,
"message": "Invalid bank ID provided. Please provide a valid bank ID.",
"country": "ke",
"errors": { "bank_id": ["Invalid bank ID"] },
"request_id": "550e8400-e29b-41d4-a716-446655440030"
}Verification failed
{
"success": false,
"response_code": 503,
"message": "Bank account verification failed. Please check the account number and try again.",
"country": "ke",
"errors": {
"account_number": ["Bank account verification failed. Please check the account number and try again."]
},
"request_id": "550e8400-e29b-41d4-a716-446655440031"
}Set {{baseUrl}} to https://api.peleza.com (production) or https://sandbox.peleza.com (sandbox). Authenticated calls need a Bearer token from POST /api/v1/oauth/token.
