Explain a bank transaction
bank_transactions_codeExplain one bank line of a company. On FreeAgent, whole or part of what the line leaves unexplained: by a category, as money settling an invoice or a bill - which then reads settled by it - or as a transfer to or from another of the company's bank accounts, with the files it carries; answer the explanation whole, its attachments as a list by id. Each of its writes is sent to FreeAgent once: the explanation first, then its files, none of them where it was not written or could not be found once written; outcome is that of the first not written, the files' own under attaching. Xero gives this connector no bank statement line, so on Xero a line is coded by a spend or receive money entry made from what the person states - the day and amount on the bank's line, its bank account, contact, account and VAT - naming no transaction and carrying no files; Xero then offers it in its Reconcile screen as the match for the bank's line, which the person confirms there. Xero's match is a suggestion, never certain, and an entry the person also makes from the statement in Xero is a duplicate. An entry not yet reconciled is changed by its id as transaction, its contact named by ContactID alone and every line the change does not name sent back by its LineItemID, so each stays as it was; a reconciled one is refused with nothing sent, the answer naming Xero's Reconcile screen under note. A Xero entry is one write, sent to Xero under a request key of its own, so Xero never takes it twice, and answered whole as bank_transaction. On Zoho Books a line from the bank is coded in Zoho itself, named by its id and bankAccount as bank_transactions_list answers them, by Zoho's own names: categorised - as one of Zoho's own kinds moving the money between from_account_id and to_account_id, one of them the line's own bank account, as an expense against its account, or as a customer_payment or vendor_payment settling invoices or bills, the last three through the line's own bank account - matched to records Zoho suggests, or excluded. The line is read again after and answered whole as bank_transaction, its status what Zoho made of it and, once categorised or matched, its id the record that stands for it in the books, the line's own as imported_transaction_id. A line not uncategorised, a categorisation naming the line's bank account on neither side, or a match to a record Zoho does not suggest - the answer naming what it suggests - is refused with nothing sent; no Zoho line carries files. A Zoho write is sent once, Zoho taking no request key. On QuickBooks a line is coded as on Xero, by an entry made from what the person states, naming no transaction and carrying no files: an expense out of a bank or card account, a deposit into a bank account, or a transfer between two of the company's accounts, by QuickBooks' own names. A line's Amount is before tax under TaxExcluded and TaxInclusive alike, QuickBooks adding the tax, so a gross amount from the bank goes in as its amount before tax; outside the US, on a company charging tax, the entry names its GlobalTaxCalculation and each line its TaxCodeRef, a deposit's line with its TaxApplicableOn, or it is refused with nothing sent to QuickBooks. QuickBooks' bank review then offers it as the match for the bank's line of the same amount and a close date, which the person confirms there; adding that line in QuickBooks instead of matching it makes a duplicate, as every QuickBooks answer says under note. On QuickBooks an entry not yet reconciled is changed by its id as transaction, its type and only what changes - who it is for, its account and how the money moved stay - every line the change does not name sent back by its Id, so each stays as it was; its lines' Ids are those of the bank_transaction a coding answer carries, and a line given without one is added beside the entry's lines, moving its total away from the bank's line. One QuickBooks marks reconciled, or whose ledger cannot be read, is refused with nothing sent, a reconciled one's answer naming QuickBooks' Reconcile under note. A QuickBooks entry is answered whole as bank_transaction. On Zoho Books the organisation's own workflow rules in Zoho may still email on any write. One given in another program's names, or naming an id of another program's form, is not_written with reason refused, nothing sent; one Xero keeps from the person's Xero role, with reason xero_role. A company set to read only refuses it before its program is asked, and so do words that screen as a prompt attack. outcome is written with the record; not_written with reason and, where its program refused it, what it said; or unknown where its answer never came and reading the books back could not tell, found naming every identical new record where two were made and none where that read itself failed. A write whose answer never came is settled by reading the books back, never sent again. Where the screening holds back its program's words in the answer, the outcome and each record's id stand, marked withheld with why. A QuickBooks company's write goes to QuickBooks under a request key of its own, so QuickBooks never takes it twice.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"company": "<company>",
"explanation": "<explanation>"
},
"name": "bank_transactions_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| company | Yes | The id companies_list gives the company. | |
| attachments | No | The files it carries - receipts or invoices, pictures or PDFs, at most ten and 2.9 MB together - which FreeAgent keeps attached to it as a list. | |
| bankAccount | No | On Zoho Books alone, the bank account the line is on, as bank_transactions_list names it. | |
| explanation | Yes | ||
| transaction | No | The bank line's id, as bank_transactions_list answers it - on Xero and QuickBooks, the id of the entry that changes; none for a new one. |