Banking: configuration
Everything Banking reads, what each does and what to set it to.
The app
Banking (banking) is switched on from Settings → Apps. Switched off,
its screens and API refuse, the menu entry goes, and the data stays.
Settings
All are under Settings → Accounting, guarded by accounting_settings.manage.
| Setting | Default | What it does |
|---|---|---|
banking.duplicate_window_days | 3 | How many days apart the same amount from two different sources may be and still be held as a possible duplicate. Raise it if your bank's file and its feed disagree on dates by more. |
banking.statement_max_megabytes | 20 | The largest statement file accepted. |
banking.plaid_history_days | 90 | How many days of history a newly connected bank brings (30–730). Plaid charges by the connection, not the days. |
banking.plaid_daily_sync | on | Fetch every connected bank once a day as well as when it says it has news — the safety net for a missed notice. |
banking.plaid_set_feed_start | on | Once a connected account's whole history has arrived, an account with no Lines start on date takes the date of its earliest line, so the first reconciliation opens on the books' balance the day before rather than at zero. An account that has a date keeps it. Turn off to set every start date by hand. |
banking.balance_refresh_minutes | 60 | How often one account's live balance may be refreshed. Plaid charges per refresh. |
banking.feed_stale_days | 5 | Days without a new line before an active account is flagged as gone quiet, whatever its source. |
banking.consent_warning_days | 14 | How far ahead a bank's consent running out is flagged. |
banking.match_window_days | 5 | How many days apart a line and a document of the same amount may be and still be proposed as a match. |
banking.cheque_match_window_days | 30 | The same window for cheques, which reach the bank when the payee deposits them. |
banking.match_max_group | 12 | The most undeposited receipts the matcher adds together to explain one deposit line. |
banking.bulk_accept_min_score | 90 | The lowest score Accept all likely matches takes. |
banking.transfer_in_transit | on | Post a transfer whose two banks report it on different days through Transfers in transit. |
banking.undeposited_max_days | 3 | How long a receipt may wait in undeposited funds before it is flagged. |
banking.reconciliation_second_person | off | Whoever prepares a reconciliation may not sign it off; somebody else does. Off by default and opt-in (owner decision, 12 November 2026): the preparer signs their own off, as in QuickBooks Online and Xero. |
banking.auto_reconcile | on | Every night (05:00 company time) draft each bank and card account's reconciliation at its next statement date — a card statement, an imported statement's closing date, or the month end for an account with only a bank feed — and refresh the drafts in progress. Nothing is signed. A draft made this way has no preparer, so the second-person rule holds only the person who changes one (types its ending, unticks lines). Off, nobody's drafts are made overnight; Draft reconciliations now on Reconcile all still works for whoever may sign off. |
banking.reconciliation_max_adjustment | 0 | The largest difference (either way, in the account's currency) a reconciliation may be signed off with by writing it off to Reconciliation discrepancies (role reconciliation_discrepancies, starter account 6960) or an expense or income account the person chooses. 0 means never — recommended until somebody asks; a few cents covers a bank's rounding. Foreign-currency accounts are refused (write off by categorising a line, which carries the rate). The printed reconciliation shows the write-off, its account, its journal and its reason (contract 1.2.0, both template versions). |
banking.duplicate_auto_merge | off | Merge a line from a second source into the one already there when exactly one line of the same amount falls inside the duplicate window, instead of holding it. Leave off until you trust the overlap; every merge is audited either way. |
banking.card_due_warning_days | 7 | How many days before a card's payment is due it is flagged, when nothing says it has been paid since the statement: a transfer to it, a supplier payment to its issuer, a bank line categorised to its account, or the payment on either bank's lines. |
banking.webhook_rate_per_minute | 60 | Notices from Plaid accepted per minute for this company. Over it, Plaid is told to retry later. |
The bank feed's workflow
| Setting | Default | What it does |
|---|---|---|
banking.match_amount_tolerance | 0.00 | How far a document's open amount may be from a line's and still be listed by Find match, either way. A person can widen it for one search. Zero lists exact amounts only. |
banking.find_match_window_days | 60 | Days either side of a line Find match searches when no dates are given. |
banking.suggest_history_days | 365 | How far back the suggestion looks at what a counterparty or description was booked to. |
Suppliers' bill defaults. On a supplier's page, Bill defaults sets a
default expense account and tax code (vendor.manage). A bill line with no item
and no order takes them unless the line names its own; the bill reader's drafts
take them too, and without a default the account the supplier's posted bills
used most is suggested. A control account is refused. The bank feed suggests the
default account for lines whose counterparty is the supplier's name.
Permissions. No new permissions. Searching and suggestions need
bank_line.read; matching, accepting and excluding need bank_line.manage;
categorising and recording a difference also need bank_transaction.post;
paying invoices or bills from Find match needs the payables or receivables
permission those screens already ask for.
Inline review, keys and undo (A8)
Nothing to configure: it is on wherever the Banking app is. What each person
sees follows the permissions above — somebody with only bank_line.read sees
the rows, the totals and the search, without boxes or buttons, and the action
keys do nothing for them. The boxes need bank_line.manage and
bank_transaction.post; Create a rule from this needs bank_rule.manage.
A rule made from a categorisation starts as Propose, or as the company's
autonomy level sets new rules (Needs attention → Autopilot); the person can
change it before saving. Undo records the reason Undone from the bank feed
straight after it was done on the unmatch, exclusion or inclusion, in the
reader's language. What the feed remembers (tab, search, line) is kept in the
browser only, per bank account.
Permissions
| Permission | Admin | Manager | Accounting | ReadOnly |
|---|---|---|---|---|
bank_account.read — see bank accounts | ✓ | ✓ | ✓ | ✓ |
bank_account.manage — add, change, close | ✓ | ✓ | ||
bank_statement.import — import statement files | ✓ | ✓ | ||
bank_line.read — see bank lines | ✓ | ✓ | ✓ | ✓ |
bank_line.manage — exclude, keep or merge possible duplicates, add by hand | ✓ | ✓ | ||
bank_feed.manage — connect, assign, reconnect and disconnect banks | ✓ | ✓ | ||
bank_transaction.post — categorise lines; post and reverse bank transactions, transfers and deposits | ✓ | ✓ | ||
bank_rule.manage — write and change bank rules, including ones that post on their own | ✓ | ✓ | ||
bank_reconciliation.sign_off — prepare and sign off reconciliations | ✓ | ✓ | ||
bank_reconciliation.reopen — reopen a signed-off reconciliation, with a reason | ✓ | ✓ | ||
bank_reconciliation.adjust — write off a small difference with a reason, and sign off (A7 QBO) | ✓ | ✓ |
The Reconciliation reports list (every account) and each reconciliation's
changes since sign-off need only bank_line.read, so a manager or an
auditor with read-only access sees both.
Card statements use the same permissions: reading the history and the tie-out
needs bank_account.read; typing a statement or setting a card's issuer,
bank_account.manage; importing one, bank_statement.import; Reconcile this
statement, bank_reconciliation.sign_off; booking interest and fees,
bank_transaction.post and bank_line.manage; Pay card,
bank_transaction.post — and a supplier payment to the issuer also payables'
vendor_payment.manage. No permission is new.
Accepting a proposal and matching or unmatching a line need bank_line.manage;
accepting a deposit, a transfer or a bank rule's proposal also needs
bank_transaction.post, because it posts.
Transfer between accounts (on Banking and in the command palette) needs
bank_transaction.post; it is hidden from anybody without it. Starting a
transfer from a bank line also matches that line, which needs
bank_line.manage — the Transfer action on a line shows only to somebody
holding both.
Choosing a first reconciliation's opening balance, ticking and holding back a
draft's lines and revising a draft need bank_reconciliation.sign_off, like
preparing one. Categorising a line with splits, tax and a contact needs
bank_transaction.post and bank_line.manage, as before. Pay bills on a
line also needs payables' own vendor_payment.manage (and whatever posting a
supplier payment needs), and Customer payment receivables'
customer_receipt.manage: a payment made from a bank line is refused exactly
where one typed in payables or receivables would be. A tab the person may not
use is hidden. No new permission is added, so the roles screen is unchanged.
A split's tax posts to the roles a supplier's bill uses — Recoverable purchase VAT and Non-recoverable purchase tax — and to Tax payable for money in; map them under Finance → Posting rules if you categorise taxed lines, or give the tax code its own account.
Printing a signed-off reconciliation needs document.print and
bank_line.read; issuing it keeps the copy on the reconciliation. The layout is
the Bank reconciliation document under Settings → Documents, branded like
every other printed document.
Fetch now and Refresh balance need only bank_line.read: they move no
money and change nothing in the books.
Storing an account's full account and routing numbers (PUT /api/v1/banking/accounts/{id}/numbers) also needs credential.manage, because
they are kept in the credentials vault — so by default only an Admin can.
Nothing in the product shows them again.
Fetching a connected account's numbers from the bank (POST /api/v1/banking/plaid/accounts/{id}/fetch-numbers) also needs
credential.manage, for the same reason.
Plaid
Connecting banks needs a Plaid account for this installation. Until it has
one, Connect a bank is replaced by Bank connections are not set up on this
installation yet, and statement imports carry on as before
(GET /api/v1/banking/plaid/status says the same to any client).
What the operator sets
| Setting | Secret? | What it is |
|---|---|---|
PLAID_CLIENT_ID | yes | The Plaid application's client id (Plaid dashboard → Developers → Keys). |
PLAID_SECRET | yes | The secret for the chosen environment. Sandbox and production have different secrets. |
PLAID_ENVIRONMENT | no | sandbox or production. |
PLAID_WEBHOOK_BASE_URL | no | Where Plaid can reach this installation, such as https://erp.example.com. Set, every link token names a webhook, so the notices Plaid sends while a bank is being connected arrive too. Empty, link tokens carry no webhook and each connection's own is set once it is saved, on WEB_BASE_URL. |
PLAID_REDIRECT_URI | no | Where Plaid Link returns after an OAuth bank's own sign-in page: https://<your domain>/banking/plaid/oauth. Empty means exactly that. |
The two secrets are kept with the installation's other application secrets,
named exactly PLAID_CLIENT_ID and PLAID_SECRET. Add them before
switching Plaid on: a server told to read a secret that is not there does not
start, so the switch comes second. The API and the worker both read them.
PLAID_ENVIRONMENT is sandbox while testing and production once live; the
webhook base and redirect URI are the installation's own domain.
What to register in Plaid's dashboard
- Allowed redirect URIs (Developers → API → Allowed redirect URIs):
https://<your domain>/banking/plaid/oauth, exactly — scheme, host and path. Plaid refuses every link token naming an unregistered one. Without it, OAuth banks — Chase, Capital One, American Express, Citi, Bank of America, Wells Fargo and most large US banks in production — cannot be connected. - Webhook: nothing to register. Each connection's URL,
https://<your domain>/api/v1/hooks/plaid/<token>, is set on it when it is saved (/item/webhook/update), and link tokens name theirs. Make sure that address is reachable from the internet. - Products: Transactions, and Liabilities and Auth if the company is to use card details and account numbers. Production access to Liabilities and Auth is requested from Plaid per application.
- Production only: complete Plaid's application profile and, for OAuth banks, the institution registrations Plaid lists — each bank approves the application before it shows in Link.
erp plaid sandbox-check checks the
keys, the redirect URI's registration, a bank, a card and an OAuth bank end to
end against Plaid's sandbox.
Products and what each costs
A new connection always asks for Transactions. Liabilities (card details) is asked for by default, as an optional product: it never turns a bank away, and Plaid bills it only where it returns data. Auth (account and routing numbers) is asked for when somebody ticks it. A connection made without either can have it added later (Add credit card details / Add products), which asks the bank's consent again through Plaid; nobody connects again.
Each connected bank's token is kept in the credentials vault and nowhere else. Disconnect withdraws it at Plaid and deletes it here.
Permissions
Connecting, reconnecting, adding products and assigning accounts need
bank_feed.manage. Making a new bank account from a connected account also
needs bank_account.manage, and making its ledger account needs
ledger_account.manage — all three held by Accounting and Admin by default.
Reading a card's statement needs bank_account.read.
MX, the second bank feed (A8)
MX connects banks the same way Plaid does — the same accounts to assign, the same review, the same duplicate check, the same reconciliation — through MX's Platform API. It is optional and off until the operator adds an MX client. It is built and tested against a fake of MX's API, sandbox first; switch it on in production only once the MX contract is signed and the checks under Before production below are done.
With both configured, Connect a bank asks which to connect through, Plaid
first. With only MX configured, MX is the default and nothing is asked. Each
connection stays with the provider it was made through: reconnecting, fetching
and disconnecting go to that provider, whatever is chosen for new connections.
GET /api/v1/banking/feeds/providers lists what is configured, with no
secret in it.
What the operator sets
| Setting | Secret? | What it is |
|---|---|---|
MX_CLIENT_ID | yes | The MX client id (MX dashboard → API keys). |
MX_API_KEY | yes | The API key for the chosen environment. The integration and production environments have different keys. |
MX_ENVIRONMENT | no | sandbox (MX's integration environment, int-api.mx.com; the default) or production (api.mx.com). |
MX_WEBHOOK_SECRET | yes | The secret MX signs webhook bodies with. Empty: every MX webhook is refused and the daily sync is the only feed. |
These are the operator's own MX account (a platform credential, AGENTS.md rule 14), read from the environment like Plaid's, with the installation's other application secrets. Each bank a company connects becomes a member of the company's MX user; the two MX ids that name it are kept in that company's credentials vault, never in a table or a log line.
Add the three secrets before switching MX on, as with Plaid: a server told to read a secret that is not there does not start.
What to register in MX's dashboard
- Webhook URL:
https://<your domain>/api/v1/hooks/mx, one for the whole installation (MX takes one URL per client), with the signing secret set toMX_WEBHOOK_SECRET. Subscribe to aggregation (member data updated), connection status and history notices. A notice only queues a job; the job reads the member and its lines from MX's API, never from the notice. - Connect widget: nothing to register; the page is opened in a frame from a URL the server asks MX for each time.
Before production
The fake models MX's documented shapes; three details are to be confirmed against MX's own documentation for the signed contract, each one place in the code, listed in the developers' notes on bank feeds: finding the company's MX user by its id, the webhook signature header, and whether a pending transaction keeps its id when it posts.
What MX does not do here
No card statements and no account and routing numbers through MX: Add credit card details and Add products are not offered on an MX connection, and typing a card's statement stays available on its page. The lines, pending lines, balances and credit limits are.
Permissions
The same as Plaid's: bank_feed.manage to connect, reconnect and disconnect
through either provider; bank_account.read to see which providers are
offered.
Accounts to map
- Transfers in transit (
transfers_in_transit): a new company's chart has it as 1050. An existing company maps it under Finance → Account mapping before its first transfer whose two banks report it on different days; until then such a transfer is refused naming the role. The transfer screen keeps the refused transfer as a draft and posts it once the role is mapped; it voids the draft, with a reason, if the person gives up instead. - Undeposited funds: add a bank account of kind Undeposited funds on its own asset account, and record receipts into it.
- Interest expense (
interest_expense) and Bank and card fees (bank_fees): where a card statement's interest and fees are booked in one step. A new company's chart has them as 6950 Interest expense and 6900 Bank charges. An existing company maps them under Finance → What each account is for; until then the Interest and fees dialog says which is missing and books nothing. - A card paid by bill-pay: set the card's issuer (the supplier you pay its
statement to) with
PUT /banking/accounts/{id}/card-issuer, with a reason; a supplier payment to them then counts as paying the card, and Pay card can make one.
Card statements
One record per card and statement date (bank_card_statements), however it
arrived: Plaid's Liabilities for a connected card, an imported OFX/QFX credit
card statement or a CSV with its figures typed alongside, or typed from paper.
Recording the same date again corrects it, audited with the before and after.
Nothing to configure: the duplicate window, the match window
(banking.match_window_days, which Pay card uses to find the bank's and the
card's lines) and the in-transit setting apply as they do elsewhere. A transfer
Pay card makes goes straight to the card where the card has no feed or its
line is already here, and through Transfers in transit otherwise. When the
card's payment received arrives later it is matched to that same transfer by
the matcher on its own — nothing to review, no second transfer (A8). The same
holds when a card payment proposed from the bank's line is accepted after the
card's line came in: both lines go on the one transfer.
What a bank line may be booked to (A10)
The category boxes, the AI categoriser and an agent's proposals all read one
list (banking/categories.py): postable, active, not control; an expense or
income account; or a balance-sheet account of a kind a bank line buys or
repays (other current or fixed asset, credit card, current or long-term
liability, owner's equity or drawings). Left out: cash accounts' ledgers, and
accounts mapped to a role the product posts to itself (transfers in transit,
allowance, accumulated depreciation, GRNI, tax payable, reconciliation
discrepancies, rounding, FX and inventory roles, and the like). Nothing here
is a setting: to offer an account, give it a fitting subtype; to keep one
out, map it to its role. A new rule defaults to Propose until it is tested.
Bank rules
Rules are rows of the rule set banking.bank_rule, written on screen with
bank_rule.manage; Test needs only bank_line.read, because it reads lines
and posts nothing. Nothing new to configure:
- Order is each rule's priority (10, 20, 30… as arranged on screen); the matcher takes the first enabled rule that matches. Ties go to the older rule.
- Splits are part of the rule. A split by percentage must total exactly 100; a split by amount needs exactly one remainder split. A rule whose fixed amounts are more than a line proposes instead of posting, saying why.
- An Auto rule's split posts one bank transaction through the same categorisation a person uses: balanced, audited, labelled with the rule.
- No rule without a condition, and no Auto rule without a name
(R19 automation). A rule whose conditions compare nothing (
{"all": []}) is refused (rule_matches_everything). An Auto rule — which posts with nobody looking — must also say who or what a line is: a condition on the description or the counterparty (equals, contains, starts or ends with, or one of a list) that every branch of an any carries. An amount, a direction or a bank account alone is refused (auto_rule_too_broad); save it as Propose instead, where a person still looks at each line. - A rule's name is its own (R20 automation). Rules are kept by name, so
creating a rule — or renaming one — with a name another rule already has is
refused (409,
rule_name_taken, with that rule's id) rather than replacing the other rule. Open the existing rule to change it, or choose another name.
How it fits with the rest
- Each bank account sits on one ledger account (Accounting → Chart of accounts). Map the chart first.
- Statement files are kept as attachments on their import. A file that is not a
CSV is stored with
.txtadded to its name, so your attachment allow-list does not needofx,xmlorbai. - Receipts and supplier payments name the bank account they used, and the matcher clears them against that account's bank lines.
The assistant and agents
The assistant can read banking — each account's last four digits, its
unmatched lines, where its reconciliation stands, what each card owes — and it
can propose: that a line is a receipt or payment already posted, or that a
line belongs to an expense, income or clearing account. A proposal waits on
the account's Proposed matches like the matcher's, marked as the
assistant's, for somebody with bank_line.manage to accept or reject.
It never accepts a proposal, signs off, reopens, sets a bank rule to post on its own, connects or disconnects a bank, and it never sees a full account number. Accept all never takes an assistant's proposal, whatever the bulk accept score is set to: each one is accepted by hand. An agent acting for the company holds its role's permissions and no more.
When the bank takes a line back
A connected bank sometimes withdraws or corrects a line it already sent. If nothing was made of the line, it is marked removed. If it was matched, the match ends and the receipt or payment is uncleared again. If it was categorised, the bank transaction made from it is reversed — on its own date if that month is open, otherwise on the first open date, naming the original. A signed-off reconciliation that included the line is marked changed after sign-off and keeps its figures until somebody reopens it. Nothing is edited or deleted; every step is in the audit history.
The matcher, run by itself
Nothing to configure. Posting a receipt, a supplier payment, a transfer, a
deposit or a bank transaction written by hand, and importing a statement, each
ask for a matcher run on the bank account it touched, through the event outbox
(bank_matching.requested, and bank_lines.ingested for an import). The run
happens in the background, as the system, a moment after the posting commits;
it respects the same match window and grouping settings as Find matches,
and a bank rule allowed to post on its own does so here too. If the relay is
not running, proposals wait until it is — Find matches still works by hand.
Receipts and payments that name no bank
A receipt with no deposited to, or a supplier payment with no paid from, posts its cash line to the account the cash role is mapped to. The matcher and the reconciliation treat it as going through the bank account on that ledger. Map the cash role to your operating account's ledger, and give each other bank account its own ledger account, so every document lands where the bank shows it.
The demo company
A fresh demo has an Operating Checking account on the cash ledger, with three monthly statements: a deposit for every demo receipt, a debit for every supplier payment, and everyday spend (Uber, Starbucks, AWS, Comcast, Shell, rent, payroll, the bank's fee and its interest). The first two months are matched and categorised to the chart's own accounts — found by name, and left for review where the chart has no such account — and the last month waits for review with the matcher's proposals on it, its reconciliation drafted.
CSV imports without a preset (A10)
When no layout fits your bank's CSV, choose map them and pick the date, description and amount columns (or money in and money out). Type the closing balance from the statement so the reconciliation has a balance to tie to. No setting controls this; the presets are unchanged.
Round-3 review: the books' side and sign-off
- What the books' side lists. Every posted journal on the bank's ledger account dated on or before the statement date that no bank line on or before it has cleared, and that no other matching source already offers as its own document (a receipt, a supplier payment, a bank transaction, a transfer, a deposit or a processor payout). A reconciliation write-off, a foreign bank account's revaluation and the year-end close are never listed: the bank never sees them as money.
- Sign-off with money not explained is refused unless the person gives a
reason; the reason is audited (
bank_reconciliation.signed_unexplained) with the amount. A write-off's reason counts as that reason. What an earlier sign-off left unexplained, or a first reconciliation's typed opening, is carried and not asked about again. - One draft per statement date. Preparing a reconciliation for a date whose draft is open checks that draft again.
- Undeposited funds bank accounts' ledger accounts carry the cash subtype, so the cash flow statement counts them as cash and cash equivalents. A migration moved existing ones from other current asset; one an administrator set to something else was left alone.
banking.stale_uncleared_days (round-4 review)
How many days an item in the books may stay uncleared by the bank before the reconciliation flags it. Default 90, from 1 to 730. Measured at the statement date.