How to Build Custom ACH Payment Software, Step by Step
Custom ACH payment software moves money through the US Automated Clearing House network. Learn the file format, bank setup and build steps.
On this page
Short answer
Building custom ACH payment software means creating a system that originates, validates and tracks ACH debit and credit entries through a bank, using the NACHA file format and the rules set by Nacha. You need a sponsoring bank, an originator agreement, SEC code handling, return processing and reconciliation, and the build usually takes a small team several months from design to first live file.
What is custom ACH payment software?
Custom ACH payment software is software that sends and receives payments through the Automated Clearing House network, the US system banks use to move money in batches. It builds NACHA-format files, sends them to a bank, and tracks each entry until it settles or returns.
ACH covers direct deposit, bill payments, business-to-business transfers and recurring debits. Unlike card payments, ACH moves money in batches on a schedule, which makes it cheaper per transaction but slower to settle.
Companies build custom ACH software when off-the-shelf tools cannot fit their workflow: payroll with custom approval rules, marketplace payouts, lending disbursements, or subscription billing tied to their own ledger. The software usually sits between the product and the bank, and it owns the payment state.
What does ACH software have to do?
ACH software has to handle the full life of a payment, not just the file. A payment that is sent but never tracked is a payment that will eventually go missing.
| Function | What it does | Why it matters |
|---|---|---|
| Entry creation | Builds debit and credit entries | Wrong amounts cause returns |
| File building | Writes NACHA-format batches | Banks reject malformed files |
| Validation | Checks accounts and limits | Stops bad entries early |
| Submission | Sends files to the bank on schedule | Missed cut-offs delay settlement |
| Returns | Processes return codes | Unpaid entries need action |
| Reconciliation | Matches entries to the ledger | Finance needs a true balance |
Authorisation is part of the job too. Every debit needs a valid authorisation from the account holder, and the software must store it and link it to the entry. Without that link, a disputed debit is hard to defend.
How do you set up the bank side first?
You set up the bank side before you write much code, because the bank decides what you are allowed to originate. Find an Originating Depository Financial Institution, an ODFI, that will sponsor your company as an originator.
The bank will ask for an originator agreement that sets your limits, the SEC codes you may use, and your exposure cap. Common SEC codes are PPD for consumer payments, CCD for business payments and WEB for online authorisations. Each code has its own authorisation and return rules.
Expect the bank to review your business model, your risk controls and your return history if you have one. Approval can take weeks, and the bank may start you with low limits that rise as you show clean files. Starting the bank conversation early is the single best way to avoid a finished product that cannot send a payment. See custom software development for how product teams usually sequence a regulated build.
How to build custom ACH payment software in 6 steps
Build in this order, and do not skip the validation and return handling steps. Most ACH failures come from entries that were never checked properly.
- Model the payment. Define the entry states: created, validated, submitted, settled, returned, failed. Every entry must always be in exactly one state.
- Build the ledger first. Record every entry, fee and return in an append-only ledger before touching the file format. Reconciliation depends on it.
- Write the NACHA file builder. Generate file, batch and entry records with correct field lengths, blocking factors and hash totals. Test against the bank's sample files.
- Add validation and limits. Check account numbers, amounts, daily limits, velocity and duplicate entries before a file is built.
- Build return processing. Parse return files, map return codes to actions, and update the ledger and the customer record automatically.
- Add scheduling and monitoring. Submit files before bank cut-off times, alert on failures, and give operations a screen to see every payment's state.
Test with the bank's test environment and small live amounts before any real volume. A file that passes your own checks can still be rejected by the bank, and the rejection message is often the only clue.
Example (hypothetical): a payroll run through custom ACH software
Example (hypothetical): a 120-person company pays staff by direct deposit twice a month. Each run has 120 credit entries, and the average net pay is 1,850 dollars, so one run moves 222,000 dollars in total.
The payroll team approves the run on Monday morning. The software validates all 120 entries, checks the company balance, and builds one NACHA file with a single PPD batch. The file is submitted before the bank's cut-off, and 118 entries settle on Wednesday while 2 return with an R01 code for insufficient funds in the company account.
The software marks the 2 returned entries, notifies payroll, and blocks the next run until the balance is fixed. Without return processing, those 2 employees would simply not be paid and nobody would know why. The arithmetic is simple; the value is in the tracking.
How do you keep ACH payments secure and compliant?
ACH security starts with protecting bank account numbers and authorisations. Store account details encrypted, limit who can see full numbers, and log every view, change and approval.
Nacha rules set the baseline: authorisations must be obtained and kept, entries must carry the right SEC code, and returns above set thresholds can trigger review. Your bank will also set its own limits and may require prenotifications for new accounts.
Build fraud checks into the flow, not as an afterthought. Velocity limits, duplicate detection and amount thresholds catch most misuse before a file leaves your system. A second approval for large batches is cheap insurance. Keep an audit trail for every file, entry and return, so a dispute can be traced to the exact record. See data security and compliance for the controls that usually apply to payment data.
What are the common mistakes?
The most common mistakes are treating ACH like an instant payment, skipping return handling and building the file format before the ledger.
- Expecting instant settlement. ACH settles in one to two business days, and same-day ACH has its own windows and limits. Plan cash flow around that.
- No return handling. Returns are normal, and every return code needs a defined action. Ignoring them creates unpaid bills and angry customers.
- File format before ledger. If the ledger is wrong, reconciliation is impossible no matter how clean the file looks.
- Weak authorisation records. A debit without a stored authorisation is hard to defend when a customer disputes it.
- Missing cut-off times. A file submitted after cut-off settles a day late, which breaks payroll and billing promises.
- No duplicate protection. A retried submission can pay the same person twice. Use idempotency keys on every entry.
ACH software is mostly plumbing, and plumbing fails quietly. The teams that succeed are the ones that track every entry to settlement and treat returns as a first-class feature, not an edge case. See cloud services for how to run the hosting and monitoring around a payment system.
Key takeaways
- ACH software builds NACHA files, submits them to a bank and tracks each entry to settlement or return
- Start with the bank: an ODFI sponsor and originator agreement come before serious coding
- Build the ledger before the file format, or reconciliation will be impossible
- Returns are normal and every return code needs a defined action
- ACH settles in one to two business days, so plan cash flow around that
Frequently asked questions
What is the NACHA file format?
It is the standard file layout banks use for ACH payments, with file, batch and entry records in fixed-width fields. Each file carries header records, entry details, batch control totals and a file control record, and banks reject files with wrong lengths or totals.
Do I need a bank to send ACH payments?
Yes. ACH entries must go through an Originating Depository Financial Institution, which sponsors your company as an originator. The bank sets your limits, the SEC codes you may use and your exposure cap under an originator agreement.
How long does an ACH payment take to settle?
Standard ACH usually settles in one to two business days. Same-day ACH exists with its own submission windows and per-transaction limits, but it is not instant and not every entry type qualifies.
What is an SEC code?
It is a three-letter code in the NACHA file that says what kind of entry it is and how it was authorised. PPD covers consumer payments, CCD covers business payments and WEB covers entries authorised online, and each code has its own rules.
What happens when an ACH payment returns?
The receiving bank sends a return entry with a code explaining why, such as insufficient funds or a closed account. Your software must parse the return, update the ledger, notify the right person and take the defined action, such as retrying or stopping future debits.
Can I build ACH software without a licence?
There is no software licence for ACH itself, but you need a bank sponsor and must follow Nacha rules. If you hold customer funds or offer payments as a service, other money-transmission rules may apply, so get legal advice for your model.