View on
MetaCPAN is shutting down
For details read Perl NOC. After June 25th this page will redirect to
Roland Moriz > Finance-Bank-DE-NetBank > Finance::Bank::DE::NetBank



Annotate this POD


New  1
Open  0
View/Report Bugs
Module Version: 1.05   Source  


Finance::Bank::DE::NetBank - Check your NetBank Bank Accounts with Perl


    use Finance::Bank::DE::NetBank;
    my $account = Finance::Bank::DE::NetBank->new(
        CUSTOMER_ID => '12345678',
        ACCOUNT => '12345678',
        PASSWORD => 'ROUTE66',
    if ($account->login()) {
        print $account->saldo();
    else {
        print 'login failed. manual interaction needed';


This module provides a very limited interface to the webbased online banking interface of the German "NetBank e.G." operated by Sparda-Datenverarbeitung e.G..

WARNING! This module is neither offical nor is it tested to be 100% save! Because of the nature of web-robots, everything may break from one day to the other when the underlaying web interface changes.

This is code for online banking, and that means your money, and that means BE CAREFUL. You are encouraged, nay, expected, to audit the source of this module yourself to reassure yourself that I am not doing anything untoward with your banking data. This software is useful to me, but is provided under NO GUARANTEE, explicit or implied.

You can find tests in the t subdirectory. See " TESTS " for more details.


my $account = Finance::Bank::DE::NetBank->new(%values)

This constructor will set the default values and/or user provided values for connection and authentication.

    my $account = Finance::Bank::DE::NetBank->new (
        CUSTOMER_ID => 'demo',    
        PASSWORD => '',      
        ACCOUNT => '2777770',   

If you don't provide any values the module will automatically use the demo account.

CUSTOMER_ID is your "Kundennummer" and ACCOUNT is the "Kontonummer" (if you have only one account you can skip that)


returns the module version


Provide a true $value get some Data::Dumper outputs on STDERR.


deprecated. use only $account->login()


This method will try to log in with the provided authentication details. If nothing is specified the values from the constructor or the defaults will be used.

    $account->login(ACCOUNT => '1234');

Returns undef on error.


This method will return the current account balance called "Saldo". The method uses the account number if previously set.

You can override/set it:

    $account->saldo(ACCOUNT => '5555555');

Returns undef on error.


This method will retrieve an account statement (Kontoauszug) and return a hashref.

You can specify the timeframe of the statement by passing different arguments: The value of TIMEFRAME can be "1" (last day only), "30" (last 30 days only), "alle" (all possible) or "variable" (between START_DATE and END_DATE only).

        TIMEFRAME => 'variabel',
        START_DATE => '10.04.2005',
        END_DATE => '02.05.2005',

Returns undef on error.


Returns undef on error.


well - every login method should have a logout method


Since version 1.04 Finance::Bank::DE::NetBank comes with a testsuite. It's located in the subdirectory t of the distribution.

To run the tests against the live NetBank demo account use this:

    perl Makefile.PL --livetest
    make test TEST_VERBOSE=1

The default behaviour is not to test against the live website:

    perl Makefile.PL
    make test


Please report bugs via or email the author.


see file 'Changes'


Torsten Mueller (updated URL, saldo() bug reporting)

Sascha Stock (reported bad example in POD)


Roland Moriz (RMORIZ) <>


This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.



syntax highlighting: