News
Matching bank movements with documents
For a corporate customer we built an application that matches account movements with invoices and receipts by itself and prepares the monthly package for the accountant in one click.
Every payment needs a document. In most companies it is collected by hand: the movement has to be found in the bank, the invoice in e-mail, and at month end someone chases whatever is missing. For our corporate customer we built an application that does the matching of payments with documents by itself and prepares the monthly package of documents for the accountant.
Where the application gets its data
Bank movements arrive in two ways: through synchronisation with the bank over a banking API (PSD2) and through automatic import of XML statements from a watched folder.
Documents from e-mail are collected over IMAP. Attachments (PDF, ISDOC, images) are stored. If a payment confirmation has no attachment, the application renders the e-mail body to PDF. Mailbox folders are discovered automatically, so new and renamed folders are included without intervention. Drafts, sent mail, trash and spam are skipped.
From the text of a document the application recognises the amount, date, invoice number, IBAN, company ID, VAT ID and period. It supports the ISDOC format and the specific formats of selected suppliers.
How matching works
Every movement gets a score against the documents. The score takes into account the amount, date, counterparty IBAN, company ID and VAT ID, variable symbol, the merchant for card payments, and the period of the document.
- With high confidence the movement is matched automatically.
- Unclear cases are offered as a suggestion for a person to confirm.
- A rejected suggestion does not come back.
The application regularly downloads the Financial Administration's register of VAT payers and their accounts. Unknown IBANs are thus assigned to companies, which reduces the risk of liability for VAT.
What the application watches by itself
- Recurring payments. Monthly transfers such as instalments, insurance, levies or VAT are detected from history, and the application warns when one does not arrive on its usual day.
- Missing documents. It sends a push notification several times a day, but only for movements that have been without a document for longer than a set time.
- A document from a phone. Through a one-time link the document is photographed and uploaded straight to the movement without logging in. Links have limited validity and can be revoked.
Month-end close in one click
The export produces a ZIP: a CSV of all movements, a CSV of missing documents, the documents under uniform names and the bank statement. The month-end close of documents is thus ready for the accountant without further sorting.
Guarantees and operations
- Completeness. Every movement shows a document status: OK, suggestion, missing or not needed.
- Human control. Automation decides only where confidence is high.
- Traceability. Each match lists the reasons for its score, and each document keeps its original e-mail and file.
- Repeatability and resilience. Synchronisations are incremental and create no duplicates. A faulty mailbox folder does not stop the processing of the others.
The application runs in Docker on the customer's own server, so the database, documents and exports stay in the company. Credentials are kept outside the code and mounted read-only. The application is reachable only from the internal network through a reverse proxy, except for the links for uploading a document from a phone, and the login is protected against password guessing. Matching, document recognition, recurring payments and the work with the IBAN register are covered by automated tests.
What the customer gained
The month-end close of documents is practically a matter of one click. There are fewer errors and penalties because a missing document is dealt with immediately, and cooperation with accounting is simpler.
We can prepare similar automation of accounting documents as custom software for your company too. See the Custom applications service or write to us.
