An example of a great API is the Xero accounting API. It is possible to replicate all of the functionality in the standard version of Xero using code. This means you can download your invoices or generate documents and upload and attach them to your invoices. You could create a custom document using data from your company, send it off for signing, add any further info with text, and then upload it to Xero.