Hi All
We use an online accounting package called Clearbooks (and we love it)
As we are working on a big Alpha web app, it would be great to use this for the accounting side and send the requests from our Online Alpha app.
We haven't any experience of doing this in Alpha, could anyone point us in the right direction to get started Please?
Many Thanks
Miles Nolan
Clearbooks can accept requests from third parties via API to create invoices etc etc.
There instructions to get started are on this url
http://www.clearbooks.co.uk/support/api/docs/soap/
And they give some example code for adding invoices etc....
Examples
Request
<?xml version="1.0" encoding="UTF-8"?>
<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope"
xmlns:cb="https://secure.clearbooks.co.uk/api/soap/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:enc="http://www.w3.org/2003/05/soap-encoding">
<env:Header>
<cb:authenticate apiKey="yourApiKey" />
</env:Header>
<env:Body>
<env:createInvoice env:encodingStyle="http://www.w3.org/2003/05/soap-encoding">
<invoice
entityId="2"
invoice_prefix="PRE"
invoice_number="00001"
reference="trdfffffggt"
dateCreated="2008-09-17"
dateDue="2008-10-17"
project="1"
type="purchases"
xsi:type="cb:Invoice">
<items enc:itemType="cb:Item" xsi:type="cb:ArrayOfItem">
<item
unitPrice="1.44"
quantity="1"
type="1001001"
vatRate="0.175"
xsi:type="cb:Item" />
</items>
<description xsi:type="xsd:string">My invoice</description>
</invoice>
</env:createInvoice>
</env:Body>
</env:Envelope>
Response
<?xml version="1.0" encoding="UTF-8"?>
<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope"
xmlns:cb="https://secure.clearbooks.co.uk/api/soap/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:enc="http://www.w3.org/2003/05/soap-encoding">
<env:Body xmlns:rpc="http://www.w3.org/2003/05/soap-rpc">
<env:createInvoiceResponse
env:encodingStyle="http://www.w3.org/2003/05/soap-encoding">
<createInvoiceReturn
due="1.66"
invoice_id="12"
invoice_prefix="PRE"
invoice_number="1"
xsi:type="cb:InvoiceReturn" />
</env:createInvoiceResponse>
</env:Body>
</env:Envelope>
We use an online accounting package called Clearbooks (and we love it)
As we are working on a big Alpha web app, it would be great to use this for the accounting side and send the requests from our Online Alpha app.
We haven't any experience of doing this in Alpha, could anyone point us in the right direction to get started Please?
Many Thanks
Miles Nolan
Clearbooks can accept requests from third parties via API to create invoices etc etc.
There instructions to get started are on this url
http://www.clearbooks.co.uk/support/api/docs/soap/
And they give some example code for adding invoices etc....
Examples
Request
<?xml version="1.0" encoding="UTF-8"?>
<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope"
xmlns:cb="https://secure.clearbooks.co.uk/api/soap/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:enc="http://www.w3.org/2003/05/soap-encoding">
<env:Header>
<cb:authenticate apiKey="yourApiKey" />
</env:Header>
<env:Body>
<env:createInvoice env:encodingStyle="http://www.w3.org/2003/05/soap-encoding">
<invoice
entityId="2"
invoice_prefix="PRE"
invoice_number="00001"
reference="trdfffffggt"
dateCreated="2008-09-17"
dateDue="2008-10-17"
project="1"
type="purchases"
xsi:type="cb:Invoice">
<items enc:itemType="cb:Item" xsi:type="cb:ArrayOfItem">
<item
unitPrice="1.44"
quantity="1"
type="1001001"
vatRate="0.175"
xsi:type="cb:Item" />
</items>
<description xsi:type="xsd:string">My invoice</description>
</invoice>
</env:createInvoice>
</env:Body>
</env:Envelope>
Response
<?xml version="1.0" encoding="UTF-8"?>
<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope"
xmlns:cb="https://secure.clearbooks.co.uk/api/soap/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:enc="http://www.w3.org/2003/05/soap-encoding">
<env:Body xmlns:rpc="http://www.w3.org/2003/05/soap-rpc">
<env:createInvoiceResponse
env:encodingStyle="http://www.w3.org/2003/05/soap-encoding">
<createInvoiceReturn
due="1.66"
invoice_id="12"
invoice_prefix="PRE"
invoice_number="1"
xsi:type="cb:InvoiceReturn" />
</env:createInvoiceResponse>
</env:Body>
</env:Envelope>
Comment