Loading...
Validates a bank account by verifying the account exists and retrieving the account holder's name. This endpoint connects with banking partners to confirm account details before initiating transactions.
| KEY | VALUE | DESCRIPTION |
|---|---|---|
| X-API-Key | X-API-Key | - |
| X-API-Secret | X-API-Secret | - |
// Using fetch APIconst response = await fetch("http://localhost:5000/api/v1/developer/banks/validate-account", {method: "POST",headers: {"X-API-Key": "X-API-Key","X-API-Secret": "X-API-Secret"},body: JSON.stringify({"bankCode": null,"accountNumber": null})});const data = await response.json();console.log(data);
| Parameter | Type | Required | Description |
|---|---|---|---|
| bankCode | No | ||
| accountNumber | No |
{"bankCode": null"accountNumber": null}
Success response
{"statusCode": 200"message": "Account validated successfully""data" {"accountName": "James Doe""accountNumber": "2051852135""bankCode": "090267""bankName": "KUDA MICROFINANCE BANK""nameEnquiryReference": "090286250418140858232995281658"}}