I have played around with erpNext in the last few weeks. It looks very nice with lots of functionality and good API. Its also open source.
You can find it here - https://github.com/frappe/erpnext
Its more full blown ERP then just accounting software though.
They seem to have separete project for only accounting as well: