Integrating bank with accounting system or ERP: how to connect, step by step
Integrating bank with accounting system or ERP: feeds, camt.053, MT940 and BAI2 files, SFTP and APIs compared, with six setup steps and a worked example.
Supreet Gupta, Co-founder
· 15 min read

On this page
- What are the ways to connect a bank to accounting software?
- Direct bank feeds in the accounting software
- Feeds through an aggregator
- Scheduled statement file imports
- Host-to-host or SFTP connections
- Bank APIs
- How does bank integration with ERP differ in India and the US?
- Can you use the RBI's Account Aggregator framework for your books?
- What do you need before you connect your bank?
- How to integrate your bank with your accounting system, step by step
- Step 1: List every account and what it carries
- Step 2: Pick the route for each account
- Step 3: Set up access with the fewest rights that work
- Step 4: Choose a cutover date and prove the opening balance
- Step 5: Map the format and run the first import
- Step 6: Check the first week, then make it a daily routine
- Worked example: Lattice API connects its bank to TallyPrime
- What does connecting your bank solve, and what does it leave?
- What security checks should a finance lead make?
- Watch out for: a statement connection that can also send payments
- When is a direct bank connection not worth it?
- Before you switch the connection on
Integrating bank with accounting system software means your bank lines reach the ledger on a schedule instead of by hand. Pick a route your bank and your software both support: a direct feed, an aggregator feed, a statement file, host-to-host SFTP or a bank API. Then set a cutover date, prove the opening balance and check the first week.
The connection only brings bank lines in. Deciding which invoice each deposit paid is a separate job, and it's where most of the manual work in bank reconciliation sits. Get the connection right first, because matching deposits to invoices can only be as good as the bank lines it starts from.
What are the ways to connect a bank to accounting software?
You can connect a bank account to accounting software or an ERP in five ways: a direct bank feed, a feed through an aggregator, a scheduled statement file, a host-to-host (SFTP) link or a bank API. Small teams usually start with a feed. Companies with many accounts, entities or banks tend to move to files over SFTP, or to APIs.
| Route | How bank lines arrive | Suits | You set up |
|---|---|---|---|
| Direct bank feed | Through a connection the bank and the software built together | Banks on the software's list | A bank login and consent |
| Aggregator feed | A licensed data provider reads the account and passes lines on | Small and mid-sized teams | Consent at the bank, renewed now and then |
| Statement file | Someone uploads a CSV, MT940, camt.053 or BAI2 file | Any bank, low volume | A field mapping per bank |
| Host-to-host (SFTP) | The bank drops files on a server your ERP collects from | Several accounts, larger teams | A server, keys and a bank agreement |
| Bank API | Your system asks the bank for lines when it needs them | Teams with developers | Credentials, testing and an owner for the code |
Direct bank feeds in the accounting software
A direct bank feed is a connection built into your accounting software, so transactions arrive without anyone handling files. In India, the common example is TallyPrime's Connected Banking. According to Tally's help page on Connected Banking, it's available for Axis Bank, State Bank of India and Kotak Mahindra Bank customers, needs TallyPrime 6.0 or later and a valid Tally Software Services subscription, and fetches balances and statements from inside Tally. ICICI Bank current accounts connect on TallyPrime 7.0 or later.
In the US, QuickBooks Online downloads your recent transactions to its Bank transactions tab, where you review them and add them to your books. Either way, a feed covers only the banks on the software's list. An account anywhere else needs one of the routes below.
Feeds through an aggregator
An aggregator feed puts a licensed data provider between your bank and your software. NetSuite's Bank Feeds SuiteApp works this way: according to Oracle's NetSuite help, it uses "an authorized account information service provider" to reach your bank and retrieves bank data daily. Its US and Canada profiles run through Yodlee and MX, and Oracle's limitations page says that setup "is mainly designed to cater to small and medium-sized companies only." India isn't on that page's list of supported countries.
India's Account Aggregator framework also shares bank data with consent, but it rarely feeds a ledger; the India section below explains why.
Scheduled statement file imports
A statement file import works with almost any bank: someone downloads the statement in a format the software reads and uploads it daily or weekly. The format decides how much cleanup you do.
- CSV or Excel is the easiest file to get and the least standard. Column order and date formats change from bank to bank, and some banks put debits and credits in one signed column.
- MT940 is the older Swift statement message, in a tagged text layout. TallyPrime and NetSuite both import it.
- camt.053 is the ISO 20022 bank statement, in XML. According to the ISO 20022 message definition report for bank-to-customer cash management, it's used "to inform the account owner, or authorised party, of the entries booked to the account". Its siblings are camt.052, an account report, and camt.054, a debit or credit notification.
- BAI2 is the long-standing US format. Oracle's list of supported file formats says NetSuite supports "BAI2 Prior-day Reporting for Bank", and that its default BAI2 parser works for files from TD, Wells Fargo, US Bank, JP Morgan Chase and Bank of America Merrill Lynch. Files from other banks need a parser plug-in, a sign that BAI2 isn't laid out the same way at every bank.
Host-to-host or SFTP connections
A host-to-host connection has the bank place statement files on a secure server on a schedule, and your ERP collects them without anyone logging in. Oracle's Auto Bank Statement Import page describes NetSuite's version: it connects "to your financial institution's server through SFTP", picks up files that match a name pattern you set, and imports once a day by default, between 4:00 and 7:00 AM Pacific Time.
Indian banks sell the same kind of link to corporates. ICICI Bank offers host-to-host integration through its Corporate Net Banking, and Kotak Mahindra Bank's host-to-host service connects ERPs such as Tally, SAP and Oracle for payments. Setup goes through the bank and takes server keys and testing, but once it runs there are no logins to renew.
Bank APIs
A bank API lets your system ask the bank for balances and transactions whenever it needs them, during the day as well as overnight. ICICI Bank, for example, offers Corporate Net Banking APIs for payments, collections and reconciliation that connect to an ERP.
An API gives you the most control and needs the most building: credentials, retries, error alerts and someone to own the code when the bank changes a version. It's worth it if you need intraday cash positions, or if your software already has a connector for your bank.
How does bank integration with ERP differ in India and the US?
Bank integration with an ERP differs between India and the US mainly in which routes exist. In the US, QuickBooks Online and NetSuite offer bank feeds, and larger companies take BAI2 files. In India, TallyPrime's Connected Banking covers a few large banks, statement imports cover many more banks, and the RBI's Account Aggregator framework serves a narrower purpose.
| India | United States | |
|---|---|---|
| Feeds inside the software | TallyPrime Connected Banking for Axis Bank, SBI, Kotak Mahindra Bank and ICICI Bank | QuickBooks Online bank feeds; NetSuite Bank Feeds SuiteApp through Yodlee or MX |
| Statement files | Excel, CSV and MT940 into TallyPrime; MT940 or camt.053 into an ERP | BAI2, CSV, OFX and QFX; camt.053 where the bank sends it |
| Host-to-host and APIs | Arranged with large banks through your relationship manager | Arranged through the bank's treasury services team |
For banks outside the Connected Banking list, TallyPrime imports statements instead. Tally's bank reconciliation help says it takes "Bank Statements in Excel, CSV and MT940 format" for more than 200 banks and then matches book entries against the imported lines. Your bank has to be on Tally's supported list for the import to work.
Can you use the RBI's Account Aggregator framework for your books?
The Account Aggregator framework is the RBI's system for sharing financial data with the customer's consent, and current accounts are in scope. According to the RBI's Account Aggregator Directions, 2025, financial information includes "current deposit accounts", an account aggregator "shall not support transactions by customers", and data goes only to the customer or to a Financial Information User, defined as "an entity registered with and regulated by any financial sector regulator."
That definition is why the framework rarely feeds a ledger. A lender regulated by the RBI can pull your statements through an account aggregator with your consent. Your accounting software can't receive data through one directly unless it, or a partner it works with, is a regulated Financial Information User. For a daily ledger feed in India, plan around Connected Banking, statement files or your bank's own corporate connection.
This is general information about the RBI's directions. Confirm how they apply to your business with your adviser.
What do you need before you connect your bank?
Before you connect a bank, you need the list of accounts, admin access on both sides, a cutover date and the balances on that date. With those in hand, you can prove the first week's import against the bank instead of chasing differences for a month.
- A list of accounts with bank, currency, entity, the ledger account each maps to and what flows through it: customer receipts, payroll or card settlements.
- The corporate net banking administrator, who approves new connections and users at the bank.
- Admin rights in the software. Automated bank imports in NetSuite need the Administrator role, and in TallyPrime a non-admin user needs an admin's approval to use Connected Banking.
- The right version or add-on: TallyPrime 6.0 or later with a valid subscription, or the NetSuite SuiteApp for your route.
- The bank's closing balance and your book balance on the day before cutover, with the items that explain any gap.
- A sample statement file, if you're importing files, and one person who checks the import every working day.
How to integrate your bank with your accounting system, step by step
Integrating bank with ERP systems or accounting software follows the same six steps whichever route you pick: list the accounts, pick a route for each, set up access, prove the opening balance on a cutover date, map the format and run the first import, then check the first week against the bank. Each step below ends with what usually goes wrong at that point.
Step 1: List every account and what it carries
Write down every bank account, including the ones nobody thinks about: the payroll account, the dollar account for foreign receipts, the escrow account. Next to each, note the entity, currency, ledger account and roughly how many lines it gets a month.
What goes wrong: an account left off the list keeps being entered by hand, so the team runs two processes and trusts neither.
Step 2: Pick the route for each account
Check your software's list of supported banks, then what your bank offers. Use a feed where your bank is supported, statement files where it isn't, and host-to-host or an API where the volume or number of accounts makes logins and uploads impractical. Using different routes for different accounts is normal.
What goes wrong: writing the rollout plan before checking the lists. A feed that works for one of your banks may not exist for the other.
Step 3: Set up access with the fewest rights that work
Connect with a user who can only read balances and transactions. Decide who in finance can add, reconnect or remove a connection, and who approves new users at the bank. Write both down.
What goes wrong: connecting with a senior person's full banking login because it was quicker. When that person leaves or changes a password, the feed stops and nobody else can restart it.
Step 4: Choose a cutover date and prove the opening balance
Pick the first day the connection will own, usually the first of a month. On the day before, compare the bank's closing balance with your book balance and list every item that explains the difference: receipts the bank has credited that aren't in the books yet, and book entries the bank hasn't processed. Enter what belongs in the old period before you switch.
Then start the connection the day after your last entered transaction. Intuit's QuickBooks help gives the same rule for its bank feeds, recommending "a date that falls immediately after the most recent transaction" when the account already has transactions in QuickBooks.
What goes wrong: starting the feed a few days early "to be safe". The overlap imports lines you already entered, and the duplicates overstate cash until someone finds them.
Step 5: Map the format and run the first import
For a feed, map the bank account to its ledger account. For files, map the date, amount, debit or credit sign, narration and reference, and keep the value date and the booking date apart. NetSuite's file format page warns against editing the downloaded statement, says BAI2, CAMT and CSV files must be UTF-8, and says a BAI2 or CAMT import fails if the account's bank mapping fields aren't set.
What goes wrong: someone opens the CSV in a spreadsheet and saves it again. Leading zeros drop off references and dates flip between day-first and month-first.
Step 6: Check the first week, then make it a daily routine
For each day of the first week, check that the opening balance plus credits minus debits equals the bank's closing balance. Look for missing dates, duplicate lines and lines with no narration. After that, check the balance daily. It takes a minute per account.
What goes wrong: trusting a feed that stopped quietly. Consents expire and passwords change, and a stopped feed doesn't always raise an error. The daily balance check is how you notice on the same day.
Worked example: Lattice API connects its bank to TallyPrime
Example: Lattice API, an invented API company, keeps its Indian entity's books in TallyPrime 7.2. It has two current accounts: a Kotak Mahindra Bank account where customers pay, and a payroll account at a bank that isn't on Tally's Connected Banking list.
Steps 1 and 2. The Kotak account gets about 180 lines a month, mostly customer receipts, so it goes on Connected Banking. The payroll account gets about 15, so a weekly Excel statement import is enough, once the team has confirmed that bank is on Tally's import list.
Step 4. The cutover date is 1 October. On 30 September the two balances disagree:
| Item | Amount |
|---|---|
| Book balance, Kotak account, 30 September | ₹62,40,000 |
| Bank closing balance, 30 September | ₹63,15,000 |
| Gap | ₹75,000 |
Two items explain the gap. The bank credited a ₹1,95,000 customer receipt on 30 September that nobody had entered. The books recorded a ₹1,20,000 receipt on 30 September from the customer's remittance advice, and the bank credited it on 1 October.
- Books plus the unrecorded receipt: ₹62,40,000 + ₹1,95,000 = ₹64,35,000
- Bank plus the receipt in transit: ₹63,15,000 + ₹1,20,000 = ₹64,35,000
Both sides come to ₹64,35,000, so the opening position is proven. The ₹1,95,000 receipt is entered in September, and the ₹1,20,000 receipt is the one open item to look for in October.
Step 5. The first attempt starts the statement on 25 September. It brings in nine lines from 25 to 30 September that were already in the books: ₹4,60,000 of credits and ₹2,10,000 of debits. Posted as new entries, they would overstate cash by ₹4,60,000 − ₹2,10,000 = ₹2,50,000. The team deletes the nine lines and starts again from 1 October.
Step 6. The import for 1 to 7 October proves out:
| Line | Amount |
|---|---|
| Opening balance, 1 October | ₹63,15,000 |
| Credits, 46 lines | + ₹41,80,000 |
| Debits, 31 lines | − ₹27,35,000 |
| Closing balance, 7 October | ₹77,60,000 |
₹63,15,000 + ₹41,80,000 − ₹27,35,000 = ₹77,60,000, the same as Kotak's closing balance for 7 October, so no lines are missing. The ₹1,20,000 receipt arrives on 1 October and pairs with its September entry, which clears the last opening item.
The 46 credits are where the next job starts:
| Credits | Lines | Amount |
|---|---|---|
| Invoice number in the narration | 31 | ₹26,40,000 |
| Known customer and amount, no invoice number | 9 | ₹7,95,000 |
| Unclear | 6 | ₹7,45,000 |
| Total | 46 | ₹41,80,000 |
The six unclear lines are one payment covering three invoices, two receipts short by the bank's charges on foreign remittances, and three from payer names that don't match any customer. The connection has done its job, and those ₹7,45,000 still need someone to decide which invoices they paid.
A US entity on QuickBooks Online would follow the same steps: start the feed the day after the last transaction already in QuickBooks, then prove the first week's balance the same way.
What does connecting your bank solve, and what does it leave?
Connecting your bank gets complete, current bank lines into the ledger without retyping. It doesn't decide which invoice a deposit paid. That second job is cash application, and until it's done, receivables and collections are working from an out-of-date picture.
A bank line carries an amount, a date and a payer name, and the payer name is often a parent company, a bank code or a person. Payer matching works out which customer a line belongs to, and bank reconciliation matching covers partial payments, split deposits and processor payouts. Until a deposit is matched it's an unmatched deposit, and the invoice it paid still looks open, which is how teams end up chasing customers who already paid.
Some ERPs handle part of this. According to Oracle's NetSuite help on bank data import, reconciliation rules match imported bank lines to transactions already in the ledger, and incoming lines also appear on its Automated Cash Application page, which applies payments to open invoices. How far that gets you depends on how much of your incoming cash carries a clean invoice reference, and bank reconciliation automation explains why so much of it doesn't.
Sonic works on the matching side. Bank statements and processor payouts land in one list, deposits are matched to open invoices with a confidence score, and unclear ones queue for a person. Entries from sent invoices post to NetSuite or QuickBooks, and your ERP or accounting system stays the book of record. The integrations page lists the rest, and two systems, one truth traces a deposit from the bank to the journal.
What security checks should a finance lead make?
Before a bank connection goes live, a finance lead should check whether it can only read, where the bank credentials live, who can add or change connections, and who can change bank details anywhere in your systems. Each is a quick question for the software provider or the bank.
- Read-only access. Ask whether the connection can only read balances and transactions, or can also move money.
- Credentials. Find out whether you type your bank password into the software or approve access at the bank. Under the RBI's directions, an account aggregator "shall not request or store customer credentials (like passwords, PINs, private keys)". Some feeds still use a username and password; NetSuite's Bank Feeds SuiteApp supports a simple login or multifactor authentication, depending on the bank.
- Who manages connections. Limit adding, reconnecting and removing feeds to named people, and keep each change in an audit trail.
- Who can change bank details. Your own account details on invoice templates, and supplier bank details in payables, should need a second person to approve any change. A changed account number on an invoice sends a customer's payment somewhere else, and no feed will show it.
- Leavers. Remove a leaver's access at the bank and in the software on the same day, and tie SFTP keys and API credentials to a role, not a person.
Watch out for: a statement connection that can also send payments
In TallyPrime, Connected Banking for Axis Bank, SBI, Kotak Mahindra Bank and ICICI Bank can send payments as well as fetch statements. If you set it up for statements, decide separately who may use payments, and keep the bank's own approval rules switched on.
When is a direct bank connection not worth it?
A direct connection isn't worth it for an account that gets a few dozen lines a month, for a bank your software doesn't support where the only alternative is a custom build, or when a feed per account would mean dozens of logins to renew. A weekly statement import, or one host-to-host link to your main bank, is easier to run.
The trade-off is freshness against upkeep. A daily feed keeps cash on the ledger a day old at most, but every feed can break. A weekly file rarely breaks, and its cash can be a week old. Decide per account, by how often someone needs to see that account's cash.
Before you switch the connection on
Go through this list before the first live sync, so the feed starts from a balance you've already proven:
- Every account is on the list with its route, entity, currency and ledger account.
- The connection uses a read-only user, and named people manage it.
- The opening balance is proven, with each open item written down.
- The connection starts the day after the last transaction already in the books.
- The first week passes the daily check: opening balance plus credits minus debits equals the bank's closing balance.
- Someone owns the daily check, and someone else owns matching deposits to invoices.

Written by
Supreet Gupta
Co-founder, Sonic AI · LinkedIn
Supreet is a Cofounder at Sonic AI. Before starting Sonic, Supreet was a Product Manager at SaaS Labs (Sequoia funded Series B startup) where he worked with enterprises in US and Europe to deliver communication solutions. He completed his bachelors from IIT Bombay.


