Xero - beautiful accounting software

Xero Developer Help Center

Xero Developer Community

Community > Getting Started >

API for transactions in an account for certain period

Started by Jason Tsang -   in Getting Started

Is there an api to retrieve the transactions in an account for a specific period?
Do you mean journal transactions? You could retrieve them via GET Journals,but you would need to retrieve all journals and filter out the ones you wanted to look at.

If you want to give a bit more detail as to what you are trying to do, we can see if there are other alternatives.

Ronan Quirke (Community Manager)  

The Journal API doesn't do very well here.

The Journal API works fine if the client is on a cash basis as everything are recorded to xero when it is paid. But when the client is on an accrual basis, we need to pull the unpaid invoices as well.

Basically I am trying to retrieve the transactions of an account. (e.g. something like this
Profit & Loss report-> click on the YTD value of an account)

Jason Tsang  

Hi Jason

I'm afraid there is nothing available via the API similar to that right now.
If you want to add a suggestion though, it does sound like a good idea for the future.


Ronan Quirke (Community Manager)  

I have a similar need so I'd vote for that too :-)

The naming of the journals endpoint is confusing too given the use of manual journals elsewhere...

John Milton  

Thx Ronan,

Suggestion raised here http://xero.uservoice.com/forums/5528-xero-api/suggestions/3368356-be-able-to-retrieve-account-transactions-via-the-a


Jason Tsang  

Would love to have the ability to retrieve Account Transactions Report via API

Nerizza Rebosura  

Agreed the naming is confusing; is the Journals end point for all transactions or just manual journals within the application? Transactions is probably a better end point name.

Liam Smith  

Hi Liam

My use-case was to be able to get a 'drill down' from a report (such as a balance sheet) to see the underlying *transactions* making up a balance for a given period.

But I've given up to be honest. The lack of a suitable endpoint and the nightmare that is parsing the reports retrieved from Xero made this a non-starter.

Which is a shame.

We're moving our main companies onto another platform in January.

I love, and will continue to use, Xero for smaller, simpler companies but it's not a good fit for us anymore and the API which has much potential is, in practice, very frustrating.



John Milton  

Cheers John, getting transactions from an account was my use case as well.

In my case I'm trying to match fuel transactions/items to calculate fuel tax credits.

@Xero - is there an underlying reason for not making the transactional data available? If it's not going to happen then I'd prefer to know than keep hassling you poor guys about it.

Liam Smith  

Has there been any update to this?

I am after an endpoint(s) where i can retrieve every income and expense transaction at an Account level, showing me:
> when and how much was invoiced (accrual basis), and
> when and how much was actually paid / received (cash basis).

atomic webdesign  

Any updates on this at all?

Jeronimo Cabrera  

We are looking for such an API endpoint as well. Not having it hugely complicates checks against our internal billing systems.

Alexander Azarov  

any update? really disappointed that this doesn't already exist in the API.

Jonny Leroux  

can we get an update please

Silvan Maeder  

Need this API too. pulling down journals and filter them is not efficient

Seyyed Hedayati  

I have trouble with xero.reports.get() returning an empty array (reports do exist). https://community.xero.com/developer/discussion/86923627/ I think I can work around that by getting all JournalLines and making my own BalanceSheet Report. Found this post while looking for an alternatives. Transactions endpoint may be useful. Did anyone else have trouble with xero.reports.get() returning an empty array? Using xero-node.

Jacob Silverman  

What a terrible thing that we can't retrieve account transactions. Are there other accounting software out there that can via API?

It's also terrible that we can't do automatic reconciliations.

White Linen  

Upvote - I need Report->Account Transactions endpoints to drill down and to show clients full tally per tracking category of an account - come on XERO please

Suba Lafendi