Add New Transactions with API


I was wondering if it’s possible via the FreeAgent API to create new transactions and also import/attach a PDF invoice, directly from a website?

I’d like to automatically create transactions in FreeAgent and attach the invoice, for all my “WooCommerce” (WordPress plugin) orders.

Obviously I understand it will require some custom work, but wondered if this would be possible, and if anyone has any starter PHP code to get started with this, or a point in the right direction?