CODA Files or PSD2 APIs: Bank Data for Reconciliation — AI Automation article by Rui Codex

CODA files are bank-issued statement files that you download and import, while PSD2 account information APIs let an authorised application request account data directly from the bank over a secure interface. For reconciliation, CODA is simpler to start with but is a batch snapshot, whereas an API can deliver fresher data, provided the bank and consent process support it.

Key takeaways

  • CODA files are bank-generated statement exports that you import, so they form a file-based, batch source of transactions.
  • PSD2 account information services let an authorised third party read account data through a bank interface after the account holder gives consent.
  • For reconciliation, the main differences are timeliness, how consent and access are managed, and how much structure the data carries.
  • Each approach fails in predictable ways, so matching logic should detect missing, late or duplicated records whichever source you use.
  • Choosing between them is an integration decision that depends on your banks, your ERP system and your control requirements.

What is a CODA file and how is it used?

A CODA file is a structured text file that a Belgian bank produces to summarise the movements on an account over a period. Most finance teams download it from their online banking environment and import it into accounting or ERP software, where each line is matched against open invoices or ledger entries.

The format has a fixed structure, so an importer can read the opening balance, the individual movements with their references and communications, and the closing balance. The record layout is defined in a banking-sector specification, and you should use the version your bank supplies rather than assume a layout from memory.

Because the file is a snapshot, it reflects the account as of the moment it was generated. Anything booked after that point appears only in the next export. For small finance operations that rhythm is often workable, but for businesses with high payment volumes it becomes a bottleneck.

How do PSD2 account information APIs work?

A PSD2 account information service lets a licensed third party request account data from a bank through a standardised interface, but only after the account holder has given explicit consent. The access right comes from the revised Payment Services Directive, which requires banks to offer such access to authorised providers. Directive (EU) 2015/2366 on payment services sets out this obligation.

This article is general information and not legal or tax advice. Read the official text before relying on any detail of the regulation for your own situation.

In practice the flow has three parts: the account holder authenticates with the bank and approves access, the provider receives a time-limited consent, and then it calls the bank's endpoints to read balances and transactions. Consent expires and must be renewed, which is an operational point teams often underestimate. For background on connecting such interfaces, see our integration and API engineering articles.

How do CODA files and PSD2 APIs differ for reconciliation?

The main difference is who initiates the data transfer and how often it happens. A CODA file is downloaded by a person or a scheduled export, while an API call can be triggered by your software whenever a reconciliation run starts.

CriterionCODA filePSD2 account information API
Data deliveryBatch file downloaded or importedOn-demand request through a bank interface
TimelinessReflects the last exportCan be as current as the bank's interface allows
Access controlManaged through the bank's online channelRequires explicit consent that expires and must be renewed
Integration effortLow to start, manual steps remainHigher upfront, automates retrieval
Structure of dataFixed record layoutStructured messages defined by the bank's interface
Typical failureMissed or late export, duplicate importsExpired consent, interface downtime, differences between banks

Both sources usually carry what a reconciliation needs: amount, date, counterparty and a payment reference. The difference lies in the control path around that data and in how quickly it arrives, not in whether the data exists.

How should you choose between them?

Start from the reconciliation process you need to run, not from the technology. Decide how late a discrepancy may be detected, then pick the source that meets that limit.

  1. List every bank account that feeds the ledger and note which of them your bank exposes through a consent-based interface.
  2. Write down the acceptable delay between a payment and its match, for example end of day or intraday.
  3. Check who must be able to grant and revoke access, and whether your governance accepts a third-party consent flow.
  4. Estimate the manual effort of a file-based process, including who performs each import and the check that follows.
  5. Test both paths with one account for a full cycle, and record every missing or duplicated movement.
Tip: Keep the matching logic independent of the source. If the same transaction model accepts both CODA lines and API records, you can switch or run both during a transition.

Ask each bank for its interface documentation before writing code. Gaps in the consent flow or in error codes are a common reason integrations stall. Our system integration services cover this kind of bank connectivity work.

Where does each approach fail?

Each source fails in a different way, and the reconciliation design should expect both. A file-based process fails quietly when someone forgets an export, while an API-based process fails loudly but can stop unnoticed if no alert exists.

Failure modes of CODA files

  • Exports are skipped during holidays or staff changes, so the ledger lags the bank.
  • The same file is imported twice, creating duplicate movements that must be reversed.
  • Manual edits to the file or to the import mapping change how references are read.

Failure modes of PSD2 APIs

  • Consent expires, and retrieval stops until the account holder approves access again.
  • A bank's interface is unavailable or returns errors that the integration does not handle.
  • Behaviour differs between banks, so a connector that works for one account needs testing for the next.
Tip: Alert on the absence of data as well as on errors. A silent integration that returns nothing is harder to notice than one that fails with a message.

Hypothetical examples

Here are two hypothetical scenarios:

In the first scenario, a distribution company imports a file each weekday morning. When a public holiday falls on a Monday, the import is skipped, and by Tuesday the matching queue holds a backlog that staff must clear by hand. The fix is a calendar-aware schedule and a check that flags a missing business day.

In the second scenario, a services firm uses an API connection for several accounts. One account's consent lapses on a Friday evening, and the nightly job retrieves no new transactions over the weekend without raising an error. The fix is a consent-expiry reminder and a daily alert when an account returns zero transactions on a business day.

What should a reconciliation project include?

A reconciliation project should include the data source decision, the matching rules, and the monitoring that shows the ledger is current. Leaving out any of the three usually moves the problem to a later month-end close.

Document the matching keys you rely on, such as amount, value date and payment reference, and state what happens when they conflict. Define an owner for each account and each consent, and agree the response time for an alert. Keep a log of every import or retrieval so a controller or auditor can trace a movement back to its source.

Where the bank interface or the file layout is unfamiliar to your team, technical implementation support can shorten the first cycle. ERP and CRM integration work can cover this matching and monitoring, and AI automation services can help with exception handling once the data flows reliably.

Conclusion

CODA files and PSD2 account information APIs both provide bank data for reconciliation, but they differ in how the data is requested, how current it is and how each one fails. A file is simple to start with and needs discipline to stay current, while an API automates retrieval but depends on consent and on the bank's interface. Test both on one account, record what goes missing, and then decide which source suits each bank. Request a project consultation at https://ruicodex.com/Contact or email info@ruicodex.com to discuss your project.

Frequently Asked Questions

Is a CODA file the same as a PSD2 API?

No, a CODA file is a bank-generated statement that you import, while a PSD2 API is a consent-based interface your software queries directly. The file is a snapshot, whereas the API can be called on demand. Both can feed the same matching logic, so the choice mainly affects timing, access control and failure handling. The channels your bank offers determine which options you have for each account.

Does PSD2 require every bank to offer account data access?

Directive (EU) 2015/2366 requires banks to provide account information access to authorised providers when the account holder consents. Interface details are set out in further technical rules and in each bank's own documentation. Check the official text and your bank's documentation before relying on any detail. Do not assume that every bank implements the same features in the same way.

Can a CODA file support real-time reconciliation?

No, a CODA file reflects the account at the time it was generated, so real-time matching needs a source that can be queried more often. Some teams import files several times a day to shorten the gap, but that increases manual effort. An API connection is usually a better fit when the business needs matches during the day, provided consent is managed carefully.

What is the most common reason a PSD2 integration stops?

Expired or revoked consent is among the most common causes, because the account holder must approve access again. Interface errors and bank-side downtime are the other frequent causes. Monitoring for zero transactions on business days helps you detect a stop quickly, before a backlog builds up in the ledger.

How should a team start a reconciliation data project?

Begin by listing your bank accounts and the acceptable delay for matching. Then test one account through both a file import and an interface, recording every missing or duplicated movement. Write down the matching keys and the owner for each account, and use the results to choose the source for each bank.

Sources

Tags: bank data for reconciliation CODA files PSD2 account information API integration reconciliation Workflow Automation System Integration Belgium Business Process Automation

Need Help Implementing This?

Our team can help you put these insights into practice. From AI automation to custom software development, we build solutions that deliver real results.

Send a project request