--- # Sources: # - https://sv.wikipedia.org/wiki/Lista_%C3%B6ver_clearingnummer_till_svenska_banker # - Source before October 2020 (link now broken): http://www.bgc.se/globalassets/dokument/tekniska-manualer/bankernaskontonummeruppbyggnad_tekniskmanual_sv.pdf # - As of 30/10/2020: https://www.bankgirot.se/globalassets/dokument/anvandarmanualer/bankernaskontonummeruppbyggnad_anvandarmanual_sv.pdf # - Swedish Bankers' Association clearing numbers: https://www.swedishbankers.se/media/4245/1906_clearingnummer-institut.pdf # - https://transferwise.com/gb/iban/sweden # # Fields: # - Range: The range of clearing codes for this bank. Used to # find the bank information for a given account number. # # - Bank: The name of the bank. # # - Clearing code length: Length of the clearing codes issued by this bank. This # is 4 in all cases except Swedbank's 8000-range. # # - Serial number length: Length of the account number that follows the clearing # code. # # - Include clearing code: Whether the clearing code is included in the IBAN account # number. # # - Zerofill serial number: Whether the serial number should be zerofilled if it is # shorter than the required serial_number_length. # - :range: [1100, 1199] :bank: Nordea :bank_code: 300 :clearing_code_length: 4 :serial_number_length: 7 :zerofill_serial_number: false :include_clearing_code: true :validation_scheme: '1.1' - :range: [1200, 1399] :bank: Danske Bank :bank_code: 120 :clearing_code_length: 4 :serial_number_length: 7 :zerofill_serial_number: false :include_clearing_code: true :validation_scheme: '1.1' - :range: [1400, 2099] :bank: Nordea :bank_code: 300 :clearing_code_length: 4 :serial_number_length: 7 :zerofill_serial_number: false :include_clearing_code: true :validation_scheme: '1.1' - :range: [2300, 2399] :bank: Ålandsbanken Sverige AB :bank_code: 230 :clearing_code_length: 4 :serial_number_length: 7 :zerofill_serial_number: false :include_clearing_code: true :validation_scheme: '1.2' - :range: [2400, 2499] :bank: Danske Bank :bank_code: 120 :clearing_code_length: 4 :serial_number_length: 7 :zerofill_serial_number: false :include_clearing_code: true :validation_scheme: '1.1' # NOTE: We're ignoring Sambox bank (clearing number 2950) because the only # reference I've seen is wikipedia. Sambox does have its own bank code (295) # though, so we may want to revisit. - :range: [3000, 3299] :bank: Nordea :bank_code: 300 :clearing_code_length: 4 :serial_number_length: 7 :zerofill_serial_number: false :include_clearing_code: true :validation_scheme: '1.1' - :range: [3300, 3300] :bank: Nordea Personkonto # NOTE: We're routing Nordea Personkonto to the main Nordea bank code, but # it may belong at one of the other Nordea codes we're not currently using. :bank_code: 300 :clearing_code_length: 4 :serial_number_length: 10 :zerofill_serial_number: false :include_clearing_code: false :validation_scheme: '2.1' - :range: [3301, 3399] :bank: Nordea :bank_code: 300 :clearing_code_length: 4 :serial_number_length: 7 :zerofill_serial_number: false :include_clearing_code: true :validation_scheme: '1.1' - :range: [3400, 3409] :bank: Länsförsäkringar Bank :bank_code: 902 :clearing_code_length: 4 :serial_number_length: 7 :zerofill_serial_number: false :include_clearing_code: true :validation_scheme: '1.1' - :range: [3410, 3781] :bank: Nordea :bank_code: 300 :clearing_code_length: 4 :serial_number_length: 7 :zerofill_serial_number: false :include_clearing_code: true :validation_scheme: '1.1' - :range: [3782, 3782] :bank: Nordea Personkonto # NOTE: We're routing Nordea Personkonto to the main Nordea bank code, but # it may belong at one of the other Nordea codes we're not currently using. :bank_code: 300 :clearing_code_length: 4 :serial_number_length: 10 :zerofill_serial_number: false :include_clearing_code: fase :validation_scheme: '2.1' - :range: [3783, 3999] :bank: Nordea :bank_code: 300 :clearing_code_length: 4 :serial_number_length: 7 :zerofill_serial_number: false :include_clearing_code: true :validation_scheme: '1.1' - :range: [4000, 4999] :bank: Nordea :bank_code: 300 :clearing_code_length: 4 :serial_number_length: 7 :zerofill_serial_number: false :include_clearing_code: true :validation_scheme: '1.2' - :range: [5000, 5999] :bank: SEB :bank_code: 500 :clearing_code_length: 4 :serial_number_length: 7 :zerofill_serial_number: false :include_clearing_code: true :validation_scheme: '1.1' - :range: [6000, 6999] :bank: Handelsbanken :bank_code: 600 :clearing_code_length: 4 :serial_number_length: 9 :zerofill_serial_number: true :include_clearing_code: false :validation_scheme: '2.2' - :range: [7000, 7999] :bank: Swedbank :bank_code: 800 :clearing_code_length: 4 :serial_number_length: 7 :zerofill_serial_number: false :include_clearing_code: true :validation_scheme: '1.1' - :range: [8000, 8999] # NOTE: This range also includes independent savings banks, some of which # appear to have their own bank code. For now we always use the Swedbank bank # code - we should revisit if we see failures as a result. :bank: Swedbank :bank_code: 800 :clearing_code_length: 5 :serial_number_length: 10 :zerofill_serial_number: true :include_clearing_code: true :validation_scheme: '2.3' - :range: [9020, 9029] :bank: Länsförsäkringar Bank :bank_code: 902 :clearing_code_length: 4 :serial_number_length: 7 :zerofill_serial_number: false :include_clearing_code: true :validation_scheme: '1.2' - :range: [9040, 9049] :bank: Citibank :bank_code: 904 :clearing_code_length: 4 :serial_number_length: 7 :zerofill_serial_number: false :include_clearing_code: true :validation_scheme: '1.2' - :range: [9060, 9069] :bank: Länsförsäkringar Bank :bank_code: 902 :clearing_code_length: 4 :serial_number_length: 7 :zerofill_serial_number: false :include_clearing_code: true :validation_scheme: '1.1' - :range: [9090, 9099] :bank: ABN Amro :bank_code: 909 :clearing_code_length: 4 :serial_number_length: 7 :zerofill_serial_number: false :include_clearing_code: true :validation_scheme: '1.2' - :range: [9100, 9109] :bank: Nordnet Bank :bank_code: 910 :clearing_code_length: 4 :serial_number_length: 7 :zerofill_serial_number: false :include_clearing_code: true :validation_scheme: '1.2' - :range: [9120, 9124] :bank: SEB :bank_code: 500 :clearing_code_length: 4 :serial_number_length: 7 :zerofill_serial_number: false :include_clearing_code: true :validation_scheme: '1.1' - :range: [9130, 9149] :bank: SEB :bank_code: 500 :clearing_code_length: 4 :serial_number_length: 7 :zerofill_serial_number: false :include_clearing_code: true :validation_scheme: '1.1' - :range: [9150, 9169] :bank: Skandiabanken :bank_code: 915 :clearing_code_length: 4 :serial_number_length: 7 :zerofill_serial_number: false :include_clearing_code: true :validation_scheme: '1.2' - :range: [9170, 9179] :bank: IKANO Bank :bank_code: 917 :clearing_code_length: 4 :serial_number_length: 7 :zerofill_serial_number: false :include_clearing_code: true :validation_scheme: '1.1' - :range: [9180, 9189] :bank: Danske Bank :bank_code: 120 :clearing_code_length: 4 :serial_number_length: 10 :zerofill_serial_number: false :include_clearing_code: false :validation_scheme: '2.1' - :range: [9190, 9199] :bank: Den Norske Bank :bank_code: 919 :clearing_code_length: 4 :serial_number_length: 7 :zerofill_serial_number: false :include_clearing_code: true :validation_scheme: '1.2' - :range: [9230, 9239] :bank: Marginalen Bank :bank_code: 923 :clearing_code_length: 4 :serial_number_length: 7 :zerofill_serial_number: false :include_clearing_code: true :validation_scheme: '1.1' - :range: [9250, 9259] :bank: SBAB :bank_code: 925 :clearing_code_length: 4 :serial_number_length: 7 :zerofill_serial_number: false :include_clearing_code: true :validation_scheme: '1.1' - :range: [9260, 9269] :bank: Den Norske Bank :bank_code: 919 :clearing_code_length: 4 :serial_number_length: 7 :zerofill_serial_number: false :include_clearing_code: true :validation_scheme: '1.2' - :range: [9270, 9279] :bank: ICA Banken :bank_code: 927 :clearing_code_length: 4 :serial_number_length: 7 :zerofill_serial_number: false :include_clearing_code: true :validation_scheme: '1.1' - :range: [9280, 9289] :bank: Resurs Banken AB :bank_code: 928 :clearing_code_length: 4 :serial_number_length: 7 :zerofill_serial_number: false :include_clearing_code: true :validation_scheme: '1.1' - :range: [9300, 9329] :bank: Sparbanken Öresund :bank_code: 930 :clearing_code_length: 4 :serial_number_length: 10 :zerofill_serial_number: false :include_clearing_code: false :validation_scheme: '2.1' - :range: [9330, 9349] :bank: Sparbanken Öresund :bank_code: 933 :clearing_code_length: 4 :serial_number_length: 10 :zerofill_serial_number: false :include_clearing_code: false :validation_scheme: '2.1' - :range: [9390, 9399] :bank: Landshypotek AB :bank_code: 939 :clearing_code_length: 4 :serial_number_length: 7 :zerofill_serial_number: false :include_clearing_code: true :validation_scheme: '1.2' - :range: [9400, 9449] :bank: Forex Bank AB :bank_code: 940 :clearing_code_length: 4 :serial_number_length: 7 :zerofill_serial_number: false :include_clearing_code: true :validation_scheme: '1.1' - :range: [9460, 9469] :bank: GE Money Bank :bank_code: 945 :clearing_code_length: 4 :serial_number_length: 7 :zerofill_serial_number: false :include_clearing_code: true :validation_scheme: '1.1' - :range: [9470, 9479] :bank: BNP Paribas :bank_code: 947 :clearing_code_length: 4 :serial_number_length: 7 :zerofill_serial_number: false :include_clearing_code: true :validation_scheme: '1.2' - :range: [9500, 9549] :bank: Nordea - PlusGirot :bank_code: 950 :clearing_code_length: 4 :serial_number_length: 10 :zerofill_serial_number: true :include_clearing_code: true :validation_scheme: '2.3' - :range: [9550, 9569] :bank: Avanza Bank :bank_code: 955 :clearing_code_length: 4 :serial_number_length: 7 :zerofill_serial_number: false :include_clearing_code: true :validation_scheme: '1.2' - :range: [9570, 9579] :bank: Sparbanken Syd :bank_code: 957 :clearing_code_length: 4 :serial_number_length: 10 :zerofill_serial_number: false :include_clearing_code: false :validation_scheme: '2.1' - :range: [9590, 9599] :bank: Erik Penser AB :bank_code: 959 :clearing_code_length: 4 :serial_number_length: 7 :zerofill_serial_number: false :include_clearing_code: true :validation_scheme: '1.2' - :range: [9630, 9639] :bank: "Lån & Spar Bank" :bank_code: 963 :clearing_code_length: 4 :serial_number_length: 7 :zerofill_serial_number: false :include_clearing_code: true :validation_scheme: '1.1' - :range: [9640, 9649] :bank: Nordax Finans :bank_code: 964 :clearing_code_length: 4 :serial_number_length: 7 :zerofill_serial_number: false :include_clearing_code: true :validation_scheme: '1.2' - :range: [9660, 9669] :bank: Amfa Bank :bank_code: 966 :clearing_code_length: 4 :serial_number_length: 7 :zerofill_serial_number: false :include_clearing_code: true :validation_scheme: '1.2' - :range: [9770, 9779] :bank: INTERGIRO INTL AB (PUBL) :bank_code: 977 :clearing_code_length: 4 :serial_number_length: 17 :zerofill_serial_number: true :include_clearing_code: false :validation_scheme: '1.1' - :range: [9880, 9889] :bank: Riksgälden :bank_code: 988 :clearing_code_length: 4 :serial_number_length: 7 :zerofill_serial_number: false :include_clearing_code: true :validation_scheme: '1.2' - :range: [9890, 9899] :bank: Riksgälden :bank_code: 989 :clearing_code_length: 4 :serial_number_length: 10 :zerofill_serial_number: false :include_clearing_code: false :validation_scheme: '2.1' - :range: [9960, 9969] :bank: Nordea - PlusGirot :bank_code: 950 :clearing_code_length: 4 :serial_number_length: 10 :zerofill_serial_number: true :include_clearing_code: true :validation_scheme: '2.3'