const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.fingopay.io/v1/account-name-validation', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"status": "success",
"message": "Account validated",
"data": {
"found": true,
"accountId": "0112345678900",
"accountName": "Jane Wambui",
"accountType": "pesalink",
"freezeStatus": "0",
"restrictStatus": "0",
"errorMessage": "Account does not exist."
}
}Validate a bank account, M-Pesa number, or till/paybill before initiating a payout. Returns the registered account holder name and account status. Use this to confirm the recipient identity before sending funds. Currently only Kenya (KE) is supported.
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.fingopay.io/v1/account-name-validation', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"status": "success",
"message": "Account validated",
"data": {
"found": true,
"accountId": "0112345678900",
"accountName": "Jane Wambui",
"accountType": "pesalink",
"freezeStatus": "0",
"restrictStatus": "0",
"errorMessage": "Account does not exist."
}
}Use your API key as a Bearer token. Example: Authorization: Bearer sk_live_...
Country code (ISO 3166-1 alpha-2). Currently only KE (Kenya) is supported.
KE "KE"
The account identifier to validate. For M-Pesa this is the phone number (e.g. 254712345678), for bank accounts this is the account number, for tills/paybills this is the business number.
"0112345678900"
The type of account to validate.
choice_bank, mpesa_paybill, mpesa_till, mpesa_mobile, pesalink Bank code from the /v1/local-bank-codes endpoint. Required when accountType is pesalink.
"07000"
Validation result returned. Check the found field to determine whether the account exists.
"success"
"Account validated"
Result of account name validation. When found is false, the account does not exist or could not be validated.
Hide child attributes
Whether the account was found and validated successfully
true
The account identifier that was validated
"0112345678900"
Registered account holder name. Empty string when found is false.
"Jane Wambui"
The account type that was validated
choice_bank, mpesa_paybill, mpesa_till, mpesa_mobile, pesalink "pesalink"
Account freeze status from the bank. '0' indicates normal. Empty when found is false.
"0"
Account restriction status from the bank. '0' indicates normal. Empty when found is false.
"0"
Error reason when found is false. Absent when found is true.
"Account does not exist."
Was this page helpful?