const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.fingopay.io/v1/local-bank-codes', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"status": "success",
"message": "Bank codes fetched",
"data": [
{
"bankCode": "07000",
"bankName": "Equity Bank"
}
]
}Retrieve the list of supported bank codes for local transfers. Currently only Kenya (KE) is supported. Use bank codes from this endpoint when initiating PesaLink transfers or account name validation.
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.fingopay.io/v1/local-bank-codes', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"status": "success",
"message": "Bank codes fetched",
"data": [
{
"bankCode": "07000",
"bankName": "Equity Bank"
}
]
}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. Other country codes will return a not-available error.
KE "KE"
Bank codes fetched successfully
Was this page helpful?