# ACH File Generator: Excel or CSV to NACHA File (`hardreset83/ach-file-generator`) Actor

Create the ACH file (NACHA format) for payroll direct deposit, vendor payments or debits from an Excel, CSV or JSON list, ready to upload to your online banking. Every row is checked first: routing number, account, amount and effective date on the Federal Reserve calendar.

- **URL**: https://apify.com/hardreset83/ach-file-generator.md
- **Developed by:** [Flavio D'Orio](https://apify.com/hardreset83) (community)
- **Categories:** Business, Automation, Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$20.00 / 1,000 entry in the ach files

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## ACH File Generator: Excel or CSV to NACHA File

Still typing payroll or vendor payments one by one into your online banking? This Actor creates the **ACH file in the
NACHA format** from an **Excel, CSV or JSON** list, and you upload it to your bank in one go. Every row is **checked
first**, the way the bank checks it: routing number with its check digit, account number and type, amount, and the
effective date on the **Federal Reserve calendar**. Rows with a mistake never reach the bank: you find them in an
**Excel** report, with the row of your list and the problem in plain words.

**New rule since 20 March 2026**: PPD credits for wages and salaries need **PAYROLL** as the Company Entry Description.
The Actor reminds you when your payroll file says SALARY, WAGES or DIR DEP instead.

### What it checks

- **Routing number**: 9 digits, the ABA check digit and the first two digits of a real routing number. It puts back
  the zero that Excel drops (11000015 is 011000015).
- **Account number**: at most 17 letters or digits, spaces and dashes taken out. It finds account numbers that Excel
  turned into 1.23457E+11, and warns when an account number was a number in Excel (its leading zeros may be gone).
- **Account type and direction**: checking or savings, credit (pay them) or debit (collect from them), prenotes, or
  the transaction code itself (22, 23, 27, 28, 32, 33, 37, 38).
- **Amount**: above zero, at most two decimals, in US dollars. Reads 1,234.56, $1,234.56, 1234.5 and Excel numbers.
  1.250 is refused as ambiguous (1.25 or 1,250?) unless the rest of the column makes it clear.
- **Effective date**: not in the past; on a weekend or a Federal Reserve holiday (Thanksgiving, Juneteenth, a holiday
  on a Sunday moves to Monday) with the day the money really moves; closer to the upload than your bank wants
  (you choose the business days); the day of the upload, which becomes Same Day ACH with its $1,000,000 limit.
- **Names and texts**: in capitals, accents taken out (JOSÉ becomes JOSE), cut to the 22 characters of the file with
  a warning, so you know what the bank sees.
- **Duplicates**: the same payment twice, also in two lists; your own offset account among the payees.
- **Your data**: company name, Company ID (your EIN gets its 1 in front), routing number of your bank, description,
  and the special descriptions of the ACH rules (REVERSAL, RETURN FEE, RETRY PMT...).

**Error**: the row does not go in the file, because the bank would refuse or return it. **Warning**: the row goes in
the file, but read it.

The file follows the NACHA layout: file header (1), a batch header (5) for every SEC code and effective date, the
entries (6) with their addenda (7) for the payment information, a batch control (8) with counts, entry hash and
totals, the file control (9) and the lines of 9s up to a block of 10, all 94 characters long. Before it is saved, the
Actor reads the file again and checks its structure, counts, hashes, totals and trace numbers.

### What you get

- **ACH_FILE.txt** in the key-value store (Storage tab): the file to upload to your online banking.
- **REPORT.xlsx** with two sheets:
  - **Entries**: every row of your list with its status, errors, warnings, the fields as they are in the file, its
    batch and trace number;
  - **Batches**: every batch with SEC code, effective date, service class, credits, debits, prenotes and the offset.
- **Dataset**: one item per row, for Make, Zapier, n8n, your payroll software or your own code.
- **SUMMARY**: file created or not, entries, total credits and debits, effective dates, batches, entry hash, the link
  to the file.

### How to use it

1. Press **Start**: the input form is prefilled with an example list of three employees (free), so you see the file and
   the report at once.
2. Fill in your company: name, Company ID (your EIN or the ID your bank gave you), the routing number of your bank and
   the description (PAYROLL for wages).
3. Upload your list, paste it or add a link, choose the effective date (empty: the next business day) and press Start.
4. Download **ACH_FILE.txt** from the Storage tab and upload it in your online banking (ACH file upload or ACH
   import). If a row has an error no file is made: fix the list with REPORT.xlsx (free), or switch on «Leave out rows
   with errors».

A list is enough like this (commas, semicolons or tabs all work):

```
Name,Routing number,Account number,Account type,Amount
Jane Example,111111118,000123456789,Checking,"1,250.00"
```

Optional columns: First name and Last name (instead of Name), Type (credit or debit), Effective date, ID (employee or
vendor number, 15 characters), Memo (payment information, sent as an addenda record, 80 characters), Prenote (yes),
SEC (PPD or CCD), Transaction code. Titles are also found when written differently (Employee Name, Bank Routing #,
Acct #, Checking/Savings, Net Pay, Pay Date...), with title rows above and a total row below, as payroll programs
export them.

**Automation**: from your payroll or accounting software, Make, Zapier or n8n, call the Actor with the link to the list
or with the payments as JSON (`entries`), and take the file from `fileUrl` in SUMMARY.

### Example output

The message of the example list:

```
ACH file created: 3 entries, credits $4,276.25, effective 11/17/2026.
```

One item of the dataset (shortened):

```json
{
  "status": "included",
  "statusText": "in the file",
  "row": 3,
  "name": "JOHN SAMPLE",
  "type": "credit",
  "amount": 980.5,
  "effectiveDate": "2026-11-17",
  "routingNumber": "222222226",
  "accountNumber": "987654321",
  "accountType": "savings",
  "transactionCode": "32",
  "secCode": "PPD",
  "idNumber": "E-1002",
  "paymentInfo": "INCLUDES NOVEMBER BONUS",
  "batch": 1,
  "traceNumber": "110000000000002",
  "errors": [],
  "warnings": []
}
```

### Who is it for

- **Small businesses** that run payroll or pay vendors from a spreadsheet, and whose bank accepts ACH file uploads.
- **Bookkeepers, accountants and payroll services** that prepare ACH files for their clients.
- **Developers** of payroll, accounting and marketplace software: an ACH file from one API call, without writing the
  NACHA layout.

### Options your bank may ask for

- **Balanced file**: most banks want unbalanced files. If yours wants balanced ones, switch it on and write your
  account number: every batch gets an offset entry on your account.
- **Immediate Origin and Immediate Destination**: empty, they are your Company ID and your bank's routing number, what
  most banks ask. Your bank's ACH guide says if it wants something else.
- **PPD or CCD**: PPD for people (payroll, consumer payments), CCD for companies (vendors). A SEC column in the list
  can mix them: they go in separate batches.
- **Debits**: to collect money you need the authorization of every account holder; most banks also need to enable
  debits for you.
- **File ID Modifier**: A for the first file of the day, then B, C...

### Pricing

**$0.02 per entry in the file** ($2 per 100 entries). Free: the example of the input form, lists with errors (no file
is made), rows left out and the offset entries of balanced files. Set a maximum cost per run in the run options if you
like: if it does not pay for every entry, no file is made, nothing is charged and the message tells you.

### Privacy and security

The Actor runs in your own Apify account: your lists, the file and the report stay in the storage of your run, and it
sends nothing anywhere else (it only downloads the links you give it). It never contacts a bank and never moves money:
you upload the file yourself. The lists contain names and bank account numbers: delete the run, or set a short data
retention, when you no longer need them.

### FAQ

**Will my bank accept the file?** It follows the NACHA layout and every row passes the checks a file can show. Your
bank can still refuse it for reasons that are not in the file (ACH not enabled for your account, your limits, its
cut-off time), and some banks have rules of their own: read the warnings and your bank's ACH guide.

**Where do I find my Company ID?** Most banks use your EIN with a 1 in front (the Actor adds it). Some banks give you
a 10-character ID with the ACH service: it is in your agreement or in the online banking.

**What is a prenote?** A zero-dollar test entry that checks a new account before the first payment, usually sent a few
business days before. Switch on «Prenotes only», or write yes in a Prenote column.

**I upload the file tomorrow.** Write tomorrow's date in «Day you upload the file»: the dates are checked from that
day.

**Is a feature missing?** Ask in the Issues tab.

# Actor input Schema

## `entriesFile` (type: `string`):

Excel (.xlsx), CSV or TXT with any separator, or JSON. One row per payment, with a row of titles. The columns are found by their titles: name (or first and last name), routing number, account number, amount. Optional: account type (checking or savings), type (credit or debit), effective date, ID (employee or vendor number), memo (payment information, sent as an addenda), prenote, SEC code, transaction code.

## `entriesUrls` (type: `array`):

Direct links (https) to Excel, CSV or JSON lists, for example from Make, Zapier, n8n or a cloud folder. All the lists together make one file.

## `entriesContent` (type: `string`):

Paste the rows of a CSV or of an Excel sheet (copied cells are separated by tabs), with the row of titles. It is prefilled with an example list, so you can try the tool with one click: the example is free, and it is not used when you upload a list or add a link.

## `entries` (type: `array`):

For APIs and AI agents: \[{"name": "Jane Example", "routingNumber": "111111118", "accountNumber": "000123456789", "accountType": "checking", "amount": 1250.00}]. Other keys: type (credit or debit), effectiveDate, id, memo, prenote, sec, transactionCode.

## `companyName` (type: `string`):

As people see it on their bank statement (16 characters in the file). Prefilled with an example: write yours.

## `companyId` (type: `string`):

Your EIN (12-3456789: the file gets 1123456789) or the 10-character ID your bank gave you for ACH. Prefilled with an example: write yours.

## `bankRoutingNumber` (type: `string`):

The 9 digits of the bank where you upload the file (your ODFI). Prefilled with an example: write yours.

## `bankName` (type: `string`):

Immediate Destination Name in the file header, 23 characters.

## `entryDescription` (type: `string`):

10 characters people see next to the payment, like PAYROLL, VENDOR PAY or DUES. Since 20 March 2026 the ACH rules require PAYROLL for wages and salaries.

## `secCode` (type: `string`):

PPD for people (payroll, consumer payments and debits), CCD for companies (vendors and suppliers). A row can have its own in a SEC column.

## `entryType` (type: `string`):

Credits send money to the accounts in the list (payroll, vendors). Debits collect money from them, with their authorization. A row can have its own in a Type column.

## `effectiveDate` (type: `string`):

The business day the money moves (payday). Empty: the next business day. A date in the list wins.

## `balancedFile` (type: `boolean`):

Only if your bank asks for it: every batch gets an entry on your own account for its total, so that debits and credits are equal. Most banks want unbalanced files (off).

## `offsetAccountNumber` (type: `string`):

The account of your company that pays the credits or receives the debits.

## `offsetAccountType` (type: `string`):

Checking or savings: the type of your account above, for the offset entries of balanced files.

## `offsetRoutingNumber` (type: `string`):

Empty: the routing number of your bank.

## `prenotes` (type: `boolean`):

Makes a prenote (a zero-dollar test entry) for every row, to check new accounts before the first payment. A row can be a prenote with a Prenote column (yes).

## `uploadDate` (type: `string`):

Empty: today (New York time). The effective dates are checked from this day.

## `minimumDays` (type: `integer`):

How many business days before the effective date your bank wants the file (1 or 2 for most banks). Dates closer than that get a warning. 0: no check.

## `immediateOrigin` (type: `string`):

Only if your bank asks for a different one. Empty: your Company ID. 9 digits (a routing number or a tax ID) get a space in front.

## `immediateDestination` (type: `string`):

Only if your bank asks for a different one. Empty: the routing number of your bank.

## `fileIdModifier` (type: `string`):

A to Z or 0 to 9: change it when you send more than one file on the same day (A, B, C...).

## `companyDiscretionaryData` (type: `string`):

20 characters for your own use, in every batch header.

## `companyDescriptiveDate` (type: `string`):

6 characters some banks show to people, like NOV 26.

## `referenceCode` (type: `string`):

8 characters for your own use, in the file header.

## `lineEnding` (type: `string`):

CR LF (Windows) works with almost every bank. LF only if your bank asks for it.

## `skipInvalidRows` (type: `boolean`):

Off (recommended): if a row has an error no file is made, and the dataset and REPORT.xlsx say what to fix, for free. On: the file is made with the rows without errors, and the others are listed as errors.

## `columns` (type: `object`):

Only if a column is not found by its title: {"amount": "Net $", "routing": "Bank RTN"}. Keys: name, firstName, lastName, routing, account, accountType, direction, transactionCode, amount, currency, date, idNumber, paymentInfo, prenote, sec.

## `failIfNoFile` (type: `boolean`):

For automations: the run ends as failed when no file is made, so that Make, Zapier or n8n stop. Off: the run succeeds and SUMMARY says fileCreated: false.

## Actor input object example

```json
{
  "entriesUrls": [],
  "entriesContent": "Name,Routing number,Account number,Account type,Amount,Employee ID,Memo\nJane Example,111111118,000123456789,Checking,\"1,250.00\",E-1001,\nJohn Sample,222222226,987654321,Savings,980.50,E-1002,Includes November bonus\nAlex Demo,123456780,4455667788,Checking,\"2,045.75\",E-1003,\n",
  "companyName": "Example Bakery",
  "companyId": "12-3456789",
  "bankRoutingNumber": "110000000",
  "entryDescription": "PAYROLL",
  "secCode": "PPD",
  "entryType": "credit",
  "balancedFile": false,
  "offsetAccountType": "checking",
  "prenotes": false,
  "minimumDays": 1,
  "fileIdModifier": "A",
  "lineEnding": "crlf",
  "skipInvalidRows": false,
  "failIfNoFile": false
}
```

# Actor output Schema

## `payments` (type: `string`):

Every row of your list: status, errors, warnings, the fields as they are in the file, batch and trace number.

## `achFile` (type: `string`):

The file in the NACHA format to upload to your online banking. It is made only when no row has an error, or when rows with errors are left out.

## `report` (type: `string`):

REPORT.xlsx: the sheet of the entries and the sheet of the batches.

## `summary` (type: `string`):

The result of the run in short: counts, totals, problems and the links to the files.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "entriesUrls": [],
    "entriesContent": `Name,Routing number,Account number,Account type,Amount,Employee ID,Memo
Jane Example,111111118,000123456789,Checking,"1,250.00",E-1001,
John Sample,222222226,987654321,Savings,980.50,E-1002,Includes November bonus
Alex Demo,123456780,4455667788,Checking,"2,045.75",E-1003,`,
    "companyName": "Example Bakery",
    "companyId": "12-3456789",
    "bankRoutingNumber": "110000000",
    "entryDescription": "PAYROLL"
};

// Run the Actor and wait for it to finish
const run = await client.actor("hardreset83/ach-file-generator").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "entriesUrls": [],
    "entriesContent": """Name,Routing number,Account number,Account type,Amount,Employee ID,Memo
Jane Example,111111118,000123456789,Checking,\"1,250.00\",E-1001,
John Sample,222222226,987654321,Savings,980.50,E-1002,Includes November bonus
Alex Demo,123456780,4455667788,Checking,\"2,045.75\",E-1003,
""",
    "companyName": "Example Bakery",
    "companyId": "12-3456789",
    "bankRoutingNumber": "110000000",
    "entryDescription": "PAYROLL",
}

# Run the Actor and wait for it to finish
run = client.actor("hardreset83/ach-file-generator").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "entriesUrls": [],
  "entriesContent": "Name,Routing number,Account number,Account type,Amount,Employee ID,Memo\\nJane Example,111111118,000123456789,Checking,\\"1,250.00\\",E-1001,\\nJohn Sample,222222226,987654321,Savings,980.50,E-1002,Includes November bonus\\nAlex Demo,123456780,4455667788,Checking,\\"2,045.75\\",E-1003,\\n",
  "companyName": "Example Bakery",
  "companyId": "12-3456789",
  "bankRoutingNumber": "110000000",
  "entryDescription": "PAYROLL"
}' |
apify call hardreset83/ach-file-generator --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,hardreset83/ach-file-generator"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/DkzW5W9g82ksmk9D8/builds/p1HlM3cardyb12D6M/openapi.json
