Xero - beautiful accounting software

Xero Developer Help Center

Xero Developer Community

Community > Wrapper libraries >

Filtering BankTransaction results node.js SDK

Started by Luke Watson -   in Wrapper libraries

I am trying to return a single transaction based on the Reference field.

I can return the first 100 transactions using the below.

var res = await xero.bankTransactions.get()
console.log(res.BankTransactions)

And can filter by Transaction ID by adding {"BankTransactionID": "<transactionnumber>"} however it appears that you can't filter via the other key value pairs on the object?

Does anyone know how the additional filtering functionality as described at https://developer.xero.com/documentation/api/requests-and-responses#get-modified
might be used via the node SDK?

Thanks in advance.