Bank sync (Enable Banking)
Bank sync pulls transactions straight from your bank so you don't have to download statements. It is optional — file import (OFX/CSV/PDF) remains the baseline that always works — and it is built so that you own every credential involved: Hoopoe ships no API key and runs no cloud service.
How it works
Under European PSD2 rules, banks only expose their account APIs to licensed providers. Hoopoe therefore connects through Enable Banking, a licensed European AISP whose free restricted production mode lets you access your own bank accounts with your own application credentials. Enable Banking is a pass-through: it does not retain your banking data — transactions transit their API and land in your Hoopoe database, on your machine. Hoopoe's LAN-only, no-cloud stance is unchanged.
Access is strictly read-only (account information only, no payment initiation), and the consent you grant your bank expires after 90–180 days — reconnecting takes one mobile confirmation.
Set up
- Create a free account at enablebanking.com.
- In their Control Panel, link your own bank accounts (this is what the restricted mode allows — accounts you have not linked are never returned by the API).
- Create an application. When asked for a redirect URL, use your
Hoopoe address followed by
/bank-sync/callback— the exact value is shown in Données → Synchronisation bancaire. Download the RS256 private key the Control Panel generates for the application. - In Hoopoe, open Données → Synchronisation bancaire and paste the
application ID and the private key (the full PEM file,
including the
BEGIN/ENDlines). Hoopoe validates the pair against Enable Banking before saving; the key is encrypted at rest and never shown, returned, or logged again.
Never commit the private key to a repository or share it — anyone holding it can read the accounts you linked.
Connect a bank
Pick your bank in the list and click Connecter. You are redirected to your bank's own consent page, confirm there (for most French banks this is one mobile-app validation — CIC/Crédit Mutuel's Confirmation Mobile, for example), and land back in Hoopoe. Then map each bank account to a Hoopoe account — accounts marked Ignorer are not synced. You can change the mapping at any time from Données → Synchronisation bancaire.
Syncing
Once connected, Hoopoe syncs automatically once a day at the hour you
choose in Données → Synchronisation bancaire (default 02:00; disable
entirely with BANK_SYNC_AUTO=0 — see the
configuration reference). If the server
or the desktop app was down at that hour, the sync catches up on the next
launch — but a rebuild or restart made after a successful sync on the
same day no longer triggers a second automatic run. Every connection
card also has a Synchroniser button for an immediate pull.
Synced transactions go through the exact same pipeline as file imports:
deduplication, categorization rules, transfer detection, and
recurring-series detection. Each sync batch appears in Données →
Imports as a bank-sync entry.
One boundary matters: deduplication can only recognize rows coming from the same source (the bank's API describes a transaction with different wording and references than its OFX/CSV files do). So the first sync of a mapped account starts the day after the newest transaction already in that account — your file-imported history is left alone rather than re-imported as near-duplicates. Subsequent syncs overlap the previous one by 7 days and self-deduplicate. If you want history older than your file imports, that stays the job of a one-time OFX export.
Consent lifecycle
PSD2 consents expire after 90–180 days depending on the bank. Each connection card shows where you stand:
- « Connecté jusqu'au <date> » — all good, syncs run unattended.
- « Reconnexion requise avant le <date> » — the consent ends within two weeks; click Reconnecter when convenient.
- Reconnexion requise — the consent has expired or the bank revoked it; syncing is paused for this connection until you reconnect (one mobile confirmation, same flow as the first connection).
Privacy
- Your transactions transit Enable Banking's API but are not stored there; they live only in your Hoopoe database.
- Your application private key is encrypted at rest with a key derived
from your server's
SESSION_SECRET; no endpoint ever returns it. - Revoking access is always possible: disconnect in Hoopoe, revoke the consent at your bank, or delete the application at enablebanking.com.
An honest caveat
Enable Banking's restricted production mode is a free evaluation tier, not a contractual product — its terms could change someday (a predecessor service, GoCardless Bank Account Data, closed its free tier in 2025). That is exactly why file import stays Hoopoe's first-class path and bank sync is an optional layer on top.
Troubleshooting
- "Enable Banking a refusé ces identifiants" when saving — the application ID and private key don't match, the key file is truncated, or the application was deactivated. Re-download the key from the Control Panel and paste the whole PEM.
- "Clé privée invalide" — the pasted text isn't a PEM private key.
Paste the full file including
-----BEGIN PRIVATE KEY-----. - The bank isn't in the list — the list shows French banks by default; check the bank exists in Enable Banking's coverage.
- "URL uses unsupported scheme" when whitelisting the redirect URL —
the Enable Banking Control Panel refuses plain
http://addresses. Whitelist thehttps://twin of your Hoopoe address (e.g.https://192.168.1.20:8080/bank-sync/callback) — the panel never contacts it, so it doesn't need to exist. After approving the consent, the browser fails to load thathttps://page; the single-use code is still in the address bar. Changehttpsback tohttpthere and press Enter (you land on Hoopoe's mapping page), or paste the full URL into "Finaliser manuellement". Alternativelyhttp://localhost:<port>/bank-sync/callbackmay be accepted — usable directly on the server or through an SSH tunnel. - The redirect never reaches Hoopoe (the whitelisted URL doesn't
match the address you browse Hoopoe at, or the Control Panel refused
your LAN URL) — the authorization code is still in the final page's
address bar. Copy that full URL and paste it into Données →
Synchronisation bancaire → "Finaliser manuellement"; Hoopoe extracts
the code and creates the connection. Remember the redirect URL only
needs to be reachable by your browser, never by Enable Banking —
a LAN address like
http://192.168.1.20:8080/bank-sync/callbackis the normal case. - The callback page shows an error — the authorization code is single-use and short-lived; restart the connection from Données → Synchronisation bancaire.
- A connection is stuck on "Reconnexion requise" — that is the expected state after consent expiry; click Reconnecter and approve on your phone.
- The first sync duplicated transactions I had imported from files
(versions before the first-sync boundary fix) — delete the
bank-syncentry in Données → Imports: it removes every transaction from that batch in one transactional step and resets the sync baseline, so the next sync starts after your newest remaining transaction instead of re-importing the window.
See also
- Importing — file-based imports, deduplication, the PDF wizard.
- Configuration reference —
BANK_SYNC_AUTOand every other environment variable. - Security and privacy — Hoopoe's overall security model.