How can I use Bank account and transactions API

Hi,

How can I use Bank account and Bank transactions API in sandbox account?

Please update me regarding the same as soon as possible.

Thanks
Nishit Soni

Hi Nishit,

You should be able to query Bank Account and Bank Transaction endpoints in the same way as any other endpoints in our API (which from our previous conversations I know you’ve done in the past). We have them documented here:

Bank Accounts
https://dev.freeagent.com/docs/bank_accounts

Bank Transactions
https://dev.freeagent.com/docs/bank_transactions

I’d recommend starting by reading the docs above, however if anything is unclear, let us know and we’ll do our best to clarify.

Best wishes,

Ewa

Hi Ewa,

Is there anyway to recognize bank transaction is reconciled or non reconciled?

Thanks
Nishit Soni

Hi Nishit,

Yes, you can check the unexplained_amount on BankTransaction (when users reconcile their transactions in the Banking area, FreeAgent refers to it as “explaining transactions”). If unexplained_amount is equal to zero, then that transaction has been fully reconciled.

Best wishes,

Ewa

Hi Ewa,

Is there any way to get all bank transactions in one api call without passing any bank account details?

Thanks
Nishit

Hi Nishit,

I’m afraid not, you can only query bank transactions within a specific account by passing the bank account in the request URL, e.g. GET https://api.sandbox.freeagent.com/v2/bank_transactions?bank_account=https://api.sandbox.freeagent.com/v2/bank_accounts/100

Best wishes,

Ewa