Log in
 

Soap API documentation

Method:

Returns the internal Clear Books ID of a contact from an external ID.

Request

Field Type Description  
externalId string The external ID of the contact. required

Response

Field Type Description  
return integer The internal Clear Books ID of the contact. 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>
        <getEntityIdFromExternalId xmlns="https://secure.clearbooks.co.uk/api/accounting/soap/">
            <externalId>ABCD1234</externalId>
        </getEntityIdFromExternalId>
    </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:getEntityIdFromExternalIdResponse>
            <return>20</return>
        </ns1:getEntityIdFromExternalIdResponse>
    </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.