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.
| Channel | How it works | When it fits |
|---|---|---|
| File upload in online banking | an accountant exports a file from the ERP, uploads it in the browser and signs the batch | a few batches a week, one bank |
| Host-to-host | the company's system sends files automatically over an encrypted channel, the bank returns statuses and statements | high volumes, several subsidiaries, a treasury system |
| API | the company's system calls bank services one at a time, in real time | single 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:
- 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.
- The company's communication module signs and encrypts the file, usually with keys exchanged with the bank during onboarding.
- 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.
- The bank validates the file: the signature, signatories' permissions, the XML schema, accounts, limits and duplicates.
- The bank returns pain.002 (Payment Status Report): the whole batch accepted, partly accepted or rejected, with a reason code for each rejected transfer.
- The payments are executed in the clearing systems, on the execution date given in the file.
- 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.
| Message | Purpose | What to watch |
|---|---|---|
| pain.001 | transfer orders from the company to the bank | schema version agreed with the bank, UTF-8 encoding, remittance field length |
| pain.002 | status of the batch and of single transfers | whether the ERP can handle a partial status |
| camt.052 | intraday report | sending frequency and the accounts covered |
| camt.053 | end-of-day statement | the end-to-end identifier carried over from pain.001 |
| camt.054 | notification of a single credit or debit | duplicate information versus the statement |
| MT940 / MT942 | older statements in the Swift MT format | many 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:
| Stage | What happens | Who is involved |
|---|---|---|
| 1 | choosing the transport, exchanging keys, configuring accounts and permissions | the company's IT, the bank's relationship manager |
| 2 | format tests: ERP files validated in the bank's test environment | the company's IT, the bank's onboarding team |
| 3 | flow tests: statuses, rejections, statements, reconciliation in the ERP | accounting, the company's IT |
| 4 | a first low-value production batch, then full volume | the 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.
Sources
- ISO 20022, official standard website
- European Payments Council, SEPA schemes
- EBICS, standard website
- Regulation (EU) 2024/886 on instant credit transfers in euro, EUR-Lex
- ECB, implementation deadlines of the Instant Payments Regulation
- Split payment mechanism (MPP), podatki.gov.pl (in Polish)
- VAT taxpayer register (white list), podatki.gov.pl