Log in

Soap API documentation

Method: addBankStatementLines

With this endpoint bank transactions can be added to a new bank statement, or to an existing one.

Whether to create a new statement or use an existing one depends on the statementName parameter. If the specified name refers to an existing bank statement, it will be used and the provided transactions will be added to the existing one, otherwise a new statement will be created. Please make sure to use unique bank statement names if you don’t want to accidentally add lines to an existing statement.

Please note, that unlike the bank statement import functionality which is available in the Money section of Clear Books, this method won’t check the uniqueness of transactions. E.g. posting the same transaction twice (regardless if it’s in the same request or in different requests) will result in the transaction added multiple times.

You might also need to take a look at the listBankAccounts method, which amongst other data returns the account code of existing bank accounts (gl_account_code), which needs to be provided in the bankAccount field of this method.


Field Type Description  
bankAccount integer The account code of the bank account (e.g.: 7502001). Please take a look at listBankAccounts if you want to retrieve a list of existing bank accounts. required
statementName string The name of the bank statement. If you specify the name of an existing statement then transactions will be added to that one, otherwise a new statement will be created. optional
statementLines array A list of bank statement transactions. optional
BankStatementLine description string The description of the transaction. optional
BankStatementLine date string The bank date of the transaction (specified in YYYY-MM-DD format). optional
BankStatementLine amount float The amount of the transaction. optional


Field Type Description  
This method returns no parameters.



<?xml version="1.0" encoding="UTF-8"?>
<Envelope xmlns="">
        <authenticate xmlns="">
            <apiKey xmlns="">yourApiKey</apiKey>
        <addBankStatementLines xmlns="">


<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="">

Clear Books is proudly registered with the Financial Conduct Authority as an Account Information Services Provider (register no. 843585).