Skip to content

Business bank integration: statements, payments and banking APIs

B2Bnetwork team · · 7 min

Integrations, data and cloud

In brief

Bank integration for a business is the automatic exchange of two things: payments prepared in the ERP go to the bank, and statements come back from the bank to the ERP and settle invoices. There are three channels: importing and exporting files in online banking, a permanent host-to-host connection, or the bank's API. In Poland every channel needs the same controls: checking the supplier's account against the VAT white list before payment, split payment where it is mandatory, the KSeF number in the transfer from 2027, and a person approving payments in the bank.

Three channels to the bank

ChannelHow it worksFor whomLimitations
Files in online bankingaccounting exports a payment batch from the ERP, uploads it to the bank, downloads the statement and imports it into the ERPsmall and mid-sized companies, one or two banksmanual steps, risk of the file being altered on a PC, statement once a day
Host-to-hostthe ERP or treasury system exchanges files with the bank automatically, usually over SFTP or EBICScompanies with many payments, corporate groupsa project with the bank, certificates, a separate setup per bank
Bank APIthe ERP calls bank services: balance, history, payment order, statuscompanies that want data during the daydifferent APIs at different banks, consents and tokens to renew

The bank's side of host-to-host and bulk payment formats is covered in Corporate banking: bulk payments, host-to-host and file formats. Here we look from the company's side: what the ERP has to do and who is responsible for what.

Statements: format, frequency, fields

You will most often see two statement formats:

  • MT940: a text format derived from Swift messages. Almost every ERP supports it, but the payment reference is often cut into short lines and counterparty details do not always have a fixed place.
  • camt.053 (daily statement) and camt.054 (notification of a single credit or debit): XML messages from the ISO 20022 standard. They have separate fields for payer details, account, reference and remittance text, so matching a payment to an invoice is more accurate.

If the bank offers a choice and your ERP supports camt.053, pick camt. Frequency also matters to receivables: the daily statement arrives in the morning for the previous day, while intraday reports let you release a prepaid shipment the same day.

Virtual accounts save the most work: each customer pays to their own account number, which the bank maps to the company's main account. The payment identifies the customer immediately, even with an empty reference. The rest (bulk payments, underpayments, references without an invoice number) is matched by the Bank statement checker, an AI Worker from DYNAMINDS Labs. A person approves posting the statement, as described in more detail in Bank statement reconciliation with an AI Worker.

Payments: from ERP proposal to bank status

  1. Payment proposal. The ERP collects invoices due in the next few days and approved for payment.
  2. White list. Before sending, the ERP checks the supplier's account in the Polish VAT taxpayer register (the "white list") as of the order date. Paying for a transaction above 15,000 PLN to an account not on the list makes the company jointly liable for the supplier's VAT (Article 117ba of the Polish Tax Ordinance). For invoices issued before January 1, 2027 the company also loses the expense for corporate income tax (Article 15d of the CIT Act); for invoices from 2027 onwards that sanction is removed by the act of September 18, 2026 (Journal of Laws 2026, item 1371). Details are in VAT white list check before payment.
  3. Split payment. The ERP flags transfers made under the split payment mechanism (MPP), which is mandatory among others for invoices above 15,000 PLN gross for goods and services listed in Annex 15 to the Polish VAT Act. Such a transfer has separate fields: VAT amount, invoice number and tax ID.
  4. KSeF number. From January 1, 2027, a payment for an invoice issued in KSeF (Poland's national e-invoicing system) must carry the KSeF number or a collective identifier covering several invoices when the buyer is an active VAT taxpayer, and a split payment for several invoices at once always carries a collective identifier. The number must therefore travel from the ERP to the file or message. How to store it with the invoice is covered in KSeF integration with ERP and document workflow.
  5. Sending the batch. The file or pain.001 message goes to the bank.
  6. Approval in the bank. People with the right permissions approve the batch in the bank, usually two of them for larger amounts. The ERP prepares but does not approve.
  7. Status. The bank returns a status (for example pain.002), and the ERP marks payments as sent, rejected or executed.

Bank APIs: what they give you and what they do not

The EU's PSD2 directive gave licensed providers access to customer accounts: reading balances and history (account information services) and initiating payments. A company can use such a service through a licensed provider or through an API the bank offers its business customers. For an ERP integration this means three things:

  • balance and transactions during the day, without waiting for the morning statement,
  • consents and tokens with an expiry date: access requires periodic renewal with strong customer authentication, so someone has to watch the date or the import stops without warning,
  • different APIs at different banks: a company with accounts at three banks maintains three integrations or a layer that unifies them.

An API does not replace approval. A payment ordered through the API still has to be approved in the bank, and it is best when the ERP has no permissions that let it skip that step.

Controls that protect against payment fraud

The most common fraud scenario in business payments does not involve the bank at all but the supplier record: someone changes the account number in the ERP after a fake "we have changed banks" email. The integration should make this harder:

  • changing a supplier's account requires a second person and a phone confirmation using the number from the contract, not from the email,
  • a new account is checked against the white list before the first payment, and a payment to an account changed in the last few days gets a separate flag,
  • the payment file does not sit on a shared drive: it goes from the ERP to the bank through a channel nobody edits on the way,
  • certificates and keys for host-to-host and API live in a secrets vault, with an alert before they expire,
  • every day, the total of batches sent is compared with the total debits on the statement.

B2Bnetwork engineers design and build these connections, with an error queue and monitoring, as part of our System integration service. An example of using open banking data is the case study on integrating a lending platform with open banking.

Questions and answers

MT940 or camt.053: which statement format should I choose?

If your ERP supports both, camt.053. It has separate fields for payer details, account and reference, so matching payments to invoices is more accurate and depends less on how the bank split the reference. MT940 remains a sensible choice when the ERP cannot read XML and changing that would be costly.

Does a small company need bank integration?

Not always host-to-host or an API. With a few dozen transfers a month, exporting a batch from the ERP and importing the statement is enough, as long as the white list is checked and nobody retypes account numbers. Full integration pays off with hundreds of payments, several banks or a need for intraday data.

How long does a host-to-host rollout with a bank take?

Agreeing things with the bank takes the longest: the contract, certificates, a test environment and format testing. ERP work is usually shorter if the ERP supports pain.001 and camt.053. With several banks, each needs its own testing, even when the formats are the same.

Can the ERP order payments by itself through the bank API?

Technically yes, but the decision to pay should stay with a person. A good setup is: the ERP prepares the batch and checks the white list, and people with the right permissions approve it in the bank. Limit the integration's permissions in the bank itself, not only in the ERP.

What it looks like in a project

Connecting systems or moving them to the cloud? Talk to an architect.

Let's talk

Read more: Integrations, data and cloud

All in Integrations, data and cloud →