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>
ICB accreditation

Clear Books, accredited by The Institute of Certified Bookkeepers and registered with the Financial Conduct Authority (reg. no. 843585), delivers valued, comprehensive online accounting software for small businesses in the UK.