Banks
125 banks with their 3-digit bank code (sandi bank), BIC (SWIFT), office code and names. Bank Indonesia does not publish a machine-readable list, so the data comes from the bank code table published by PT Bank Central Asia Tbk (updated 1 November 2024).
Functions
Section titled “Functions”| Go | TypeScript | Returns |
|---|---|---|
bank.List() |
bank.list() |
All banks, ordered by code |
bank.ByCode(code) |
bank.byCode(code) |
Every entry with that code (a bank and its sharia unit share a code) |
bank.ByBIC(bic) |
bank.byBic(bic) |
One bank |
Bank fields
Section titled “Bank fields”| Field (JSON) | Example |
|---|---|
code |
014 |
bic |
CENAIDJA |
officeCode |
0397 |
name |
PT. BANK CENTRAL ASIA Tbk. |
shortName |
BCA |
shariaUnit |
false |
Account number lengths are not included: there is no official source for them.
Errors
Section titled “Errors”length, charset, unknown.
Example
Section titled “Example”package main
import ( "fmt"
"github.com/haikalmumtaz233/nusaindex/bank")
func main() { fmt.Println(len(bank.List()) > 100)
banks, err := bank.ByCode("014") if err == nil { for _, b := range banks { fmt.Println(b.Code, b.ShortName, b.BIC, b.ShariaUnit) } }
found, err := bank.ByBIC("BMRIIDJA") if err == nil { fmt.Println(found.Code, found.Name) }}import * as bank from "nusaindex/bank";
console.log(bank.list().length > 100);
const banks = bank.byCode("014");if (banks.ok) { for (const b of banks.value) { console.log(b.code, b.shortName, b.bic, b.shariaUnit); }}
const found = bank.byBic("BMRIIDJA");if (found.ok) { console.log(found.value.code, found.value.name);}true014 BCA CENAIDJA false008 PT. BANK MANDIRI (PERSERO) TBK© 2026 Haikal Mumtaz