Skip to content

Host-to-host banking: bulk payments, file formats and connecting corporate clients

B2Bnetwork team · · 7 min

IT in banking

In brief

Host-to-host is a permanent, automated connection between a company's system (usually an ERP or treasury system) and its bank, carrying payment order files and statements without anyone logging into online banking. The company sends a batch of transfers as an ISO 20022 pain.001 file, the bank returns pain.002 status reports, then camt.053 statements and camt.054 notifications. For a bank's IT team it is a separate channel with its own transport, signatures, duplicate control and client onboarding process, and it has to be tested on files from the client's real systems.

Three channels for a corporate client

A company that pays several hundred invoices a week does not type transfers by hand. It has three options, and large companies often use two at once.

ChannelHow it worksWhen it fits
File upload in online bankingan accountant exports a file from the ERP, uploads it in the browser and signs the batcha few batches a week, one bank
Host-to-hostthe company's system sends files automatically over an encrypted channel, the bank returns statuses and statementshigh volumes, several subsidiaries, a treasury system
APIthe company's system calls bank services one at a time, in real timesingle payments, balance checks, the company's own apps

APIs do not make host-to-host obsolete. A file with a thousand transfers is one operation with one signature and one status for the whole batch, and finance departments think in batches: a payment run in the ERP ends with one file. An API handles single cases better, such as an instant payment for a specific order.

How a payment batch flows, step by step

A typical flow for one batch looks like this:

  1. The ERP creates a pain.001 file (Customer Credit Transfer Initiation) from the payment run: a batch header, the ordering party, and a list of transfers with identifiers.
  2. The company's communication module signs and encrypts the file, usually with keys exchanged with the bank during onboarding.
  3. Transport to the bank: SFTP with keys, the EBICS protocol (common in Germany and France), or the Swift network for groups that work with many banks.
  4. The bank validates the file: the signature, signatories' permissions, the XML schema, accounts, limits and duplicates.
  5. The bank returns pain.002 (Payment Status Report): the whole batch accepted, partly accepted or rejected, with a reason code for each rejected transfer.
  6. The payments are executed in the clearing systems, on the execution date given in the file.
  7. The bank sends camt.054 notifications and a camt.053 statement, and the ERP matches them against open items.

Most problems arise in steps 5 and 7. If the ERP does not read pain.002 statuses, a rejected transfer stays in the company's system as paid. If the statement does not carry the identifier the company assigned, the accountant reconciles payments by hand.

File formats: what each message is for

European banks are moving away from text formats toward ISO 20022. Poland also has its own specifics, which show up in message fields.

MessagePurposeWhat to watch
pain.001transfer orders from the company to the bankschema version agreed with the bank, UTF-8 encoding, remittance field length
pain.002status of the batch and of single transferswhether the ERP can handle a partial status
camt.052intraday reportsending frequency and the accounts covered
camt.053end-of-day statementthe end-to-end identifier carried over from pain.001
camt.054notification of a single credit or debitduplicate information versus the statement
MT940 / MT942older statements in the Swift MT formatmany companies run ERP reconciliation on them

Two Polish rules matter for payments in zloty. A transfer under the split payment mechanism (MPP, Poland's VAT split payment) must carry the VAT amount, the gross amount, the invoice number and the supplier's tax ID, so the ERP file needs these fields in an agreed place in the message. A company paying into an account that is not on the VAT taxpayer register (the so-called white list) risks tax consequences, so good systems check the account before generating the file, not after sending it.

Migrating from MT formats to ISO 20022 is covered in ISO 20022 in payments.

Security, duplicates and verification of payee

A channel that can send a thousand transfers without human involvement needs hard safeguards on both sides:

  • signatures and segregation of duties: who can create a batch, who signs it, and whether the bank requires a second signature above an amount threshold;
  • key management: expiry dates, a rotation procedure and revoking a key when an employee leaves;
  • duplicate control: the bank rejects a file or transfer with an identifier it has already seen (message, batch and end-to-end identifiers), so resending a file after a line failure does not pay the invoices twice;
  • limits per day and per transfer, set for the channel and not only for the user.

Regulation (EU) 2024/886 introduces verification of payee, a check that the payee's name matches the IBAN, for euro credit transfers. Companies that are not consumers may opt out of it when they submit transfers as a package, but the bank has to support that choice and record it. Banks in Member States outside the euro area, including Poland, have until July 9, 2027. How a bank assesses risk in the payment itself is covered in Fraud detection in payments.

Onboarding a client and testing

Connecting a company to host-to-host is a small integration project. A sample plan for one subsidiary with one ERP:

StageWhat happensWho is involved
1choosing the transport, exchanging keys, configuring accounts and permissionsthe company's IT, the bank's relationship manager
2format tests: ERP files validated in the bank's test environmentthe company's IT, the bank's onboarding team
3flow tests: statuses, rejections, statements, reconciliation in the ERPaccounting, the company's IT
4a first low-value production batch, then full volumethe treasurer, accounting

Test cases that most often surface only in production: Polish characters in the payee name, a remittance text longer than the field allows, an execution date on a public holiday, a batch with transfers in two currencies, a transfer to a payee with a blocked account, resending the same file, and a partly accepted batch. General principles of payment testing are in Testing payment systems, and file exchange between companies in EDI integration.

B2Bnetwork engineers design and test such channels on the bank side and on the corporate side as part of our System integration service: from the data flow map and the file contract to status tests and latency monitoring.

Questions and answers

How is host-to-host different from a banking API?

Host-to-host transfers files with payment batches and statements, usually on a schedule, and the status covers the whole batch and each item. An API handles single operations in real time, such as one transfer or a balance query. Large companies often use both: host-to-host for the ERP payment run, an API for urgent payments and balances.

Do MT940 statements still work?

In many banks, yes, because companies have built ERP reconciliation on them. The Swift network has, however, moved away from MT formats in payments between banks, so banks are moving clients to camt.053 and camt.054. When switching, check that the ERP reconciles by the end-to-end identifier, because that is the main benefit of the new format.

How do you avoid paying twice when a file is resent?

Every file, batch and transfer should carry a unique identifier assigned by the company's system. The bank rejects identifiers it has already accepted within an agreed period. On the company side, the ERP should not generate a new file for the same invoices until it receives a pain.002 status for the previous one.

How long does it take to connect a company to host-to-host?

It depends on the transport, the number of subsidiaries and how ready the ERP is. With one ERP that already produces pain.001, format and flow tests usually take a few weeks. The longest parts are usually the key exchange, signatory permissions and adapting statement reconciliation in accounting.

Working on banking systems? Talk to an engineer who knows their constraints.

Let's talk

Read more: IT in banking

All in IT in banking →