Skip to content

getBankInfo

function getBankInfo(ibanOrCode): BankInfo | null;

Defined in: iban.ts:142

Returns details of the bank that issued an IBAN: name, type (commercial, Islamic, microfinance, digital bank, wallet …) and whether it still exists.

Also accepts a 4-letter bank code on its own.

Parameter Type Description
ibanOrCode string A valid Pakistani IBAN, or a bank code such as MEZN

BankInfo | null

Bank details, or null if the IBAN is invalid or the code unknown

getBankInfo('PK36SCBL0000001123456702');
// { code: 'SCBL', name: 'Standard Chartered Bank (Pakistan) Limited',
// type: 'commercial', active: true, mergedInto: null, aliasOf: null }
getBankInfo('SADA')?.type; // 'emi'