# Bank Integration from ERP: Host-to-Host, Virtual Accounts, and Bulk Payments

> A guide to connecting an ERP to your bank: host-to-host versus bank APIs versus file upload, virtual accounts for automated collection, bulk payments for suppliers and payroll, approval flows and segregation of duties, key and certificate security, handling failed payments, and reconciling the results.

Source: https://www.agsora.tech/en/blog/integrasi-bank-host-to-host-virtual-account-dan-pembayaran-massal-dari-erp
Category: ERP & Operations · Published: 2026-11-17 · Updated: 2026-11-17 · By PT Agsora Teknologi Indonesia

In many companies, the finance team still works to the same daily rhythm: open internet banking, download the account statement, copy it into a spreadsheet, and match it line by line against invoices in the ERP. On payday or at month end, finance staff type dozens or hundreds of supplier and employee account numbers into the bank portal. Besides being slow, the process is prone to typos and hard to audit. Connecting the ERP directly to the bank can remove most of that work, but the options are varied and the risk is real because money is involved. This article explains the connection options, how virtual accounts and bulk payments work, and the security controls you need to prepare.

*Bank integration turns copying numbers into a recorded process that can be checked.*

## What can actually be integrated

Bank integration usually covers four data flows. Not every bank or service package offers all of them, so the first step is always to check what your bank provides.

- Account statements and balances: incoming and outgoing transactions are pulled into the ERP automatically, usually for reconciliation.
- Payment instructions: the ERP sends transfer orders to the bank, for example supplier payments or payroll.
- Payment status: the bank reports whether an instruction succeeded, was rejected, or is pending.
- Collection through virtual accounts: customers pay to a unique account number, and the payment is recognized automatically by the system.

Each flow has different risks and benefits. Read-only data flows such as statements are much safer to start with than flows that move money.

## Three ways to connect an ERP to a bank

### 1. Host-to-host

In this model the company's system connects to the bank's system through a dedicated secure channel, often with agreed protocols and file formats plus certificates or keys to sign and encrypt messages. It suits companies with high transaction volumes, full automation needs, and a technical team ready to handle it. Advantages: automated, high volume, and bank controls as agreed. Disadvantages: the application and testing process with the bank usually takes time, there are setup or service fees, and you must manage keys and certificates with discipline.

### 2. Bank APIs

Some banks offer APIs for statements, transfers, and account information. APIs are usually more flexible and faster to integrate than traditional host-to-host, with token- and signature-based authentication. They suit companies that want a lighter or real-time integration. Availability, feature coverage, rate limits, and fees depend heavily on the bank, so compare documentation and commercial terms before deciding. Good interface design principles are also covered in [business API design: versioning, documentation, and rate limits](https://www.agsora.tech/en/blog/desain-api-bisnis-versioning-dokumentasi-dan-batas-laju).

### 3. File upload and download

The bank provides bulk file formats to upload through its portal, and statement formats to download. The ERP generates files in that format and staff upload them manually, or the reverse. This is the simplest and cheapest way to start and suits small to medium volumes. The disadvantage: manual steps remain, and the risk of uploading the wrong file or reusing an old one must be controlled.

You do not have to choose one method forever. Many companies start with statements via file or API and add bulk payments once the controls mature.

## Virtual accounts for automatic collection

A virtual account is a unique account number linked to one customer, one invoice, or one order. When a customer pays to that number, the system immediately knows who paid and for what, so reconciliation becomes nearly automatic.

- Per customer: one permanent number for a customer, suitable for recurring payments or settling several invoices at once.
- Per invoice or order: a unique number per bill, with a specific amount and validity period, suitable for online stores and one-time bills.

Things to watch: amount rules (exact, or short or over allowed), validity period, handling of duplicate payments and wrong amounts, and per-transaction fees set by the bank or provider. Also connect it to the collection process in [automating invoices and B2B receivables collection](https://www.agsora.tech/en/blog/otomatisasi-faktur-dan-penagihan-piutang-b2b) so reminders and invoice status change automatically as soon as payment arrives. For online stores that use a payment provider, related reading is [payment gateway integration](https://www.agsora.tech/en/blog/integrasi-payment-gateway-website-dan-aplikasi).

## Bulk payments to suppliers and employees

A bulk payment means one instruction containing many transfers. It works similarly for accounts payable and payroll.

1. The ERP selects bills or salaries that are due and approved.

2. The system validates recipient data: account number, account holder name, and destination bank.

3. The system creates a payment batch with a total and a transaction count.

4. The batch is approved by one or more people according to their authority limits.

5. The batch is sent to the bank through the chosen connection.

6. The bank processes it and returns status per transaction.

7. The ERP updates bill status, records journals, and flags failures for follow-up.

Available transfer channels, such as real-time interbank transfer, clearing, or RTGS, have different fees, amount limits, and settlement times; confirm the options your bank offers and configure the system to choose a channel by amount and urgency. For salary payments, the calculation rules are covered in [payroll, income tax, and BPJS with an HRIS](https://www.agsora.tech/en/blog/penggajian-payroll-pph-21-dan-bpjs-dengan-hris), while daily and contract worker schemes are in [daily-wage, contract, and piece-rate payroll](https://www.agsora.tech/en/blog/penggajian-harian-borongan-dan-upah-per-hasil-di-hris-untuk-pabrik-dan-proyek). On the supplier side, payments should only be created from bills that have passed matching as discussed in [accounts payable automation and three-way matching](https://www.agsora.tech/en/blog/otomatisasi-utang-usaha-dan-pencocokan-tiga-arah-di-erp).

## Controls you must not skip

Because this integration moves money, controls are a core part of the design, not an add-on.

- Segregation of duties: the person who creates or changes supplier data must not be the one who approves payments. Similar separation is explained in [purchase approval workflows](https://www.agsora.tech/en/blog/alur-approval-pembelian).
- Tiered approval: amount limits determine the number and level of approvers. Payments above a threshold require two or more approvers.
- Supplier bank account changes: every account number change must be verified through a second channel, for example a call to a number already on file, not to the number in the change request email. This is a defense against a very common fraud, as discussed in [fraud prevention and payment security](https://www.agsora.tech/en/blog/pencegahan-penipuan-dan-keamanan-pembayaran-toko-online).
- Account name validation: if the bank offers account holder name checks, use them to confirm the recipient.
- Access restriction: the roles that can create, approve, and send batches should be separate; the design is discussed in [designing user access rights](https://www.agsora.tech/en/blog/merancang-hak-akses-pengguna).
- Audit trail: who created, changed, approved, and sent each batch; see [audit trails and internal controls in an ERP](https://www.agsora.tech/en/blog/jejak-audit-dan-pengendalian-internal-di-sistem-erp).
- Daily limits and anomaly alerts: unusual amounts, new recipients, or payments outside working hours trigger additional review.

## Security of keys, certificates, and credentials

A bank connection is only as secure as the way you store its keys.

- Keep keys, certificates, and tokens in managed secret storage, not in code or ordinary configuration files; see [managing secrets and API keys](https://www.agsora.tech/en/blog/manajemen-secret-dan-kunci-api-di-aplikasi-bisnis).
- Limit who can access them and schedule rotation before expiry. An expired certificate is a common cause of failed payments on payday.
- Separate test and production environments; never use production credentials for development.
- Restrict the network addresses allowed to connect when the bank supports it.
- Log and monitor all calls, but do not store sensitive data in logs.

## Handling failed and pending payments

In practice some transactions will fail: invalid account, closed account, amount over the limit, or a temporary outage. Design for this from the start.

- A clear status per transaction: sent, received by the bank, successful, failed, or pending.
- Stored rejection reasons that staff can read, not just codes.
- A follow-up queue: failed transactions appear in a work list with an owner and a deadline.
- Duplicate payment prevention: every instruction has a unique reference number; if the connection drops before a reply, the system checks status before resending.
- Notification to suppliers or employees when needed, without exposing sensitive data.

## Reconciliation: closing the loop

The integration is not finished until the results are matched. Incoming statements are matched to invoices or virtual accounts; outgoing statements are matched to the payment batches sent. Differences such as bank fees, rounding, or partial payments need clear journal rules. The full guide is in [automatic bank reconciliation with ERP](https://www.agsora.tech/en/blog/rekonsiliasi-bank-otomatis-dengan-erp), and the effect on cash is discussed in [ERP and cash flow visibility](https://www.agsora.tech/en/blog/erp-dan-visibilitas-arus-kas).

## A realistic implementation path

1. Map the current cash flow: which accounts, transaction volumes, who does what, and where errors often occur.

2. Ask the bank what is available, including fees, application time, and technical requirements.

3. Start with read-only flows, namely statements and reconciliation, to build confidence.

4. Add virtual accounts for the customers or collection lines with the largest volume.

5. Add bulk payments with tiered approval, starting with small batches and limited amounts.

6. Run in parallel with the old method for the first few cycles.

7. Document emergency procedures for when the bank connection drops.

## Common mistakes

- Automating payments before approval controls and segregation of duties mature.
- Storing bank credentials where many people can access them.
- Not preparing a manual procedure for when the connection or certificate fails on an important day.
- Ignoring partial payments, overpayments, and duplicate payments on virtual accounts.
- Not testing with real data before full launch.
- Treating the project as purely technical when finance, IT, and management must agree on the controls.

## Frequently asked questions

### Which is best: host-to-host, API, or file upload?

None is best for everyone. File upload is enough for small volumes, APIs suit lighter and faster integrations, and host-to-host is worthwhile for high volumes with demanding automation and control needs. Choose based on volume, technical capability, and what your bank offers.

### Is bank integration safe?

It is safe when keys and credentials are managed well, access is restricted, there is tiered approval, and all activity is logged. The biggest risk is usually not the technology but the process: supplier data changed without verification, or one person holding all the authority.

### How long does the application process with the bank take?

It depends on the bank and the type of service. Options involving certificates, testing, and agreement documents generally take longer than file upload; ask the bank for an estimate early so the project schedule is realistic.

## Conclusion

Connecting an ERP to the bank is not just a technical matter; it changes how a company manages cash, reduces error-prone copying, and speeds up collection and payment. Start with read-only data, build approval controls and segregation of duties before automating the sending of money, manage keys with discipline, and always close the loop with reconciliation. In the right order, this automation makes the finance team both faster and better controlled.

**Connect your ERP to the bank securely** Agsora helps design statement, virtual account, and bulk payment integrations with the right approval controls. Tell us which bank and cash flow process you use today. [Free consultation](https://www.agsora.tech/en/services/api-integration)
