Features
Pricing
Support
Accountants
MTD Software
Contact
More
Log in
 

Soap API documentation

Method: createBankAccount

Creates a new bank account.

Request

Field Type Description  
name string The name of the bank account. required
accountNumber string Account number of the bank account. required
sortCode string Sort code of the bank account. required

Response

Field Type Description  
return integer Account code of the created bank account. optional

Examples

Request

<?xml version="1.0" encoding="UTF-8"?>
<Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/">
    <Header>
        <authenticate xmlns="https://secure.clearbooks.co.uk/api/accounting/soap/">
            <apiKey xmlns="">yourApiKey</apiKey>
        </authenticate>
    </Header>
    <Body>
        <createBankAccount xmlns="https://secure.clearbooks.co.uk/api/accounting/soap/">
            <bankAccount>
                <name>test</name>
                <accountNumber>1</accountNumber>
                <sortCode>2</sortCode>
            </bankAccount>
        </createBankAccount>
    </Body>
</Envelope>

Response

<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="https://secure.clearbooks.co.uk/api/accounting/soap/">
    <SOAP-ENV:Body>
        <ns1:createBankAccountResponse>
            <return>7502006</return>
        </ns1:createBankAccountResponse>
    </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

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