Access to bank transactions via API

Hi, I’ve successfully set up the FreeAgent API and connected via OAuth.

The following endpoints work: /v2/company, /v2/contacts, /v2/invoices, /v2/bank_accounts

However, the standard bank transaction endpoint:
/v2/bank_transactions returns: “Resource not found”

The same happens for: /v2/bank_accounts/{id}/bank_transactions

According to your API documentation, these endpoints should exist.

Please can you confirm whether access to bank transactions via API is enabled by default or do I have to enable it myself.

Many thanks

Danny

Hi Danny,

I’m one of the engineers from the Banking team at FreeAgent.

Access to our bank transactions API is enabled by default and our API documentation for that endpoint is here.

To access all bank transactions for a specific bank account, make a GET request to /v2/bank_transactions and include the bank_account URL parameter. Of note, we do not currently provide an endpoint that returns all of a company’s bank transactions, you can only access them on a per-bank account basis.

For example:

GET https://api.freeagent.com/v2/bank_transactions?bank_account=https://api.freeagent.com/v2/bank_accounts/123456

Where 123456 should be replaced with the ID of the FreeAgent bank account.

Hope that helps?

Brad