Add transaction money out? API


#1

Hi,

I’m trying to create a hook to add a transaction in the bank account feed as money out, i got in to a problem that FA API docs does not have this option at all, or maybe im missing something?

If we add transaction fee after invoice paid then Freeagent does not allow to add transaction because invoice is already paid.

{“errors”:[{“message”:“paid_invoice_id has already been fully paid”}]}


#2

Yeah, annoyingly you cannot just add a transaction. You have to upload a statement. Fortunately, I have found that it is intelligent enough to avoid duplicates, so you can safely upload transactions repeatedly or individually.

Docs for this are here.

I’ve written a similar hook that implements this API call as an example


#3

You are a star I will let you know if it works but seems to me it’s logically legit already once again thank you !!!