You would think this is simple - but I can't get a simple bank transaction using XERO-API
To get the bank transaction in Xero itself I would go to:
https://go.xero.com/Bank/ViewTransaction.aspx?bankTransactionID=a6e0efbb-328f-4dd2-b50a-d4aa9f1c1993
I have tried the following:
( after creating the Xero client in nodejs which works fine for other API endpoints )
This one just hangs and does nothing. No timeout - no error - just hangs
const banktransaction = await xero.accountingApi.getBankTransaction(xero.tenants[0].tenantId, 'a6e0efbb-328f-4dd2-b50a-d4aa9f1c1993')
This one gives me no records back. I have tried various forms of the next type - strings with single quotes , double-quotes. All with errors. I am stumped.
const banktransaction = await xero.accountingApi.getBankTransactions(xero.tenants[0].tenantId, undefined, 'bankTransactionID=GUID("a6e0efbb-328f-4dd2-b50a-d4aa9f1c1993")')
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…