> For the complete documentation index, see [llms.txt](https://docs.anedot.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.anedot.com/integrations/political-campaign-tools/netfile-integration.md).

# NetFile

Connect Anedot to NetFile to send donor and contribution data from your Action Pages, manage your connection, and review field mapping and payload data.

**NetFile** is political compliance software for campaign disclosure and reporting. The integration sends donor and contribution data from your Action Pages to your committee's NetFile account, and you set it up in **Settings > Integrations**, where you can connect Anedot to NetFile, manage your connection, and review how data relays work, where to find your data, field mapping and payload data.

## Before You Begin

* You need **Integrations: Edit permissions** to add, edit, push or delete a connection. Integrations: Edit permissions also require **Action Pages: View permissions** and **Integrations: View permissions**. See [Permission Sets](https://docs.anedot.com/settings/access/permission-sets.md).
* You need your committee's NetFile **Filer ID**, which you enter in Anedot as **NetFile account name**, and your **Bank account ID**.
* **NetFile election year** and **NetFile election cycle** are optional.
* You don't enter a NetFile username or password in Anedot. Anedot authenticates with NetFile on your behalf.
* The **NetFile account name** may contain only letters, numbers, hyphens and underscores.
* The **Bank account ID** must be a positive whole number, starting at 1.

## Connect Anedot to NetFile

### Step 1: Find Your NetFile Details

To find your NetFile details:

1. Go to <https://netfile.com/Filer> and log in with your NetFile User email and password.
2. Locate your committee's **Filer ID**. Your local elections agency issues this ID. It's a series of letters and numbers separated by a dash, for example ABC-123456.
3. Locate the **Bank account ID** from your NetFile account.

You now have the two values Anedot needs to create the connection.

{% hint style="warning" %}
The account name shown in the NetFile header, just above the main menu, is not the value Anedot needs. Enter your **Filer ID** as the **NetFile account name**.
{% endhint %}

{% hint style="info" %}
If you don't know your Filer ID, contact your local elections agency.
{% endhint %}

### Step 2: Create the Connection in Anedot

To create the connection:

1. Go to **Settings > Integrations**.
2. Click **New integration**.
3. Choose **NetFile**, or enter "NetFile" in the search box. NetFile appears under the Compliance category with the description "Send Action Page data to NetFile."
4. Choose which Action Pages the connection covers:
   * Leave **All Action Pages** checked to include all pages, including future pages added after you save. (Optional) Enter a comma-separated list of Action Page IDs, with no spaces, in **Exclude Pages**.
   * Uncheck **All Action Pages** and choose pages in **Selected pages** to include only the pages you pick.
5. Leave **Team** set to **All teams**, or choose a Team to limit the connection to that Team's Action Pages.
6. Enter your Filer ID in **NetFile account name**.
7. Enter your **Bank account ID**.
8. (Optional) Enter the **NetFile election year**, for example 2026.
9. (Optional) Enter the **NetFile election cycle** in years, for example 1.
10. Click **Create integration**.

You'll see the message "Integration created." and the connection starts sending new submissions from the Action Pages it covers.

{% hint style="info" %}
Anedot checks the format of your entries when you create the connection, but nothing is sent to NetFile until a donor gives or submits a form.
{% endhint %}

{% hint style="success" %}
After connecting, make a test donation on a Donation Page the connection covers, then check **Settings > Integration Requests** for a Success row.
{% endhint %}

## Manage Your Connection

Your NetFile connection appears in **Settings > Integrations** with **Edit**, **Push unsent**, and **Delete** options.

### Edit Your Connection

Use **Edit** to name the connection, change its Action Page scope or Team, turn sending on or off, or update the election year and election cycle.

To edit your connection:

1. Go to **Settings > Integrations**.
2. Click **Edit** on the NetFile connection.
3. Enter a **Name** for the connection. This field is required, and you set it the first time you edit the connection.
4. (Optional) Change which Action Pages the connection covers.
5. (Optional) Use **Team** to limit the connection to one Team's Action Pages.
6. (Optional) Uncheck **Enabled** to stop sending, or check it to start sending again.
7. (Optional) In the **Credentials/details JSON** box, update the values for `netFileElectionYear` and `netFileElectionCycle`.
8. Click **Save integration**.

You'll see the message "Integration updated." and your changes apply to new submissions.

{% hint style="warning" %}
In the **Credentials/details JSON** box, change only the election year and election cycle values. Leave every other value as it is, and don't clear the box.
{% endhint %}

{% hint style="info" %}
The **NetFile account name** can't be changed after you create the connection, and the **Bank account ID** isn't shown in the Edit form. To use a different account name or Bank account ID, delete the connection and connect again.
{% endhint %}

### Push Unsent

**Push unsent** sends submissions and successful recurring charges from a date range that haven't already been sent successfully to the same Filer ID. Records that were sent successfully aren't sent again.

* Choose a **Start date** and **End date** up to 31 days apart.
* The **Start date** must be within the last 12 months.
* Wait about five minutes between pushes.

When the push begins, you'll see the message "Push started." For the full steps, see [Push Unsent](https://docs.anedot.com/integrations/integration-automation-tools/webhooks.md#push-unsent) in Webhooks (API).

### Delete Your Connection

To delete your connection:

1. Go to **Settings > Integrations**.
2. Click **Delete** on the NetFile connection.
3. Confirm when you see "Delete this integration?"

You'll see the message "Integration deleted." and Anedot stops sending data to NetFile. Records already in NetFile don't change.

{% hint style="danger" %}
Deleting a connection can't be undone. To send data to NetFile again, you'll need to connect again.
{% endhint %}

## Data Relays

Anedot sends data to NetFile when a gift is created or paid, or when a Lead Page is submitted.

### What Anedot Sends

* **Donation Pages:** a donor record, plus one contribution transaction for each non-conduit fund allocation.
* **Paid Event Pages:** the same data as Donation Pages.
* **Recurring donations:** each payment is sent when the charge succeeds, with the same data as Donation Pages.
* **Lead Pages:** a donor record only, with no contribution transaction.
* **$0 Event Page registrations:** a donor record only, with no contribution transaction.
* **Multi-fund gifts:** one contribution transaction for each non-conduit fund allocation. Conduit allocations in the gift aren't sent.

Each contribution amount is the fund allocation amount in dollars, for example 25.0 for a $25 donation. Only the donor and contribution fields listed in [Field Mapping](https://docs.anedot.com/integrations/political-campaign-tools/netfile-integration.md#field-mapping) are sent. Products, UTM codes, custom field answers, and hidden fields aren't sent.

### Records Anedot Skips

Anedot doesn't send these records, and no Integration Requests row is created for them:

* A donation with no completed payment. It's sent when the payment completes.
* A Donation Page submission with no donations, or a failed recurring charge.
* A gift that uses only a conduit fund.
* Refunds, voids, chargebacks, and ACH returns.
* Abandoned Actions.
* Commitment changes, such as a cancellation.
* Later edits to a submission that was already sent, including on Push.
* Any submission while **Enabled** is unchecked.
* Submissions from pages outside the connection's Action Page scope or Team.
* A submission already sent successfully to a NetFile connection with the same Filer ID, including a connection you deleted and connected again.
* Submissions after the connection is deleted.

### Delivery And Retries

Every request appears in **Settings > Integration Requests**. See [Integration Requests](https://docs.anedot.com/integrations/relay-data-troubleshooting/integration-requests.md).

* A single-fund donation creates two rows. The first is the donor record, and the second, final row is the contribution transaction.
* If the donor row fails, the contribution isn't sent.
* Lead Pages and $0 Event Page registrations create a donor row only.
* Each row shows the request body, request headers, response body, response status, and exception text. The Authorization header is shown as `Bearer [REDACTED]`.

Each row has one of these statuses:

* **Success:** NetFile returned HTTP 200 with no item failures.
* **Failure:** NetFile returned another HTTP status, or returned HTTP 200 and reported an item failure. Anedot doesn't try that submission again. Fix the cause, then use **Push unsent**.
* **Error:** Anedot couldn't complete the request, for example because of a timeout or connection problem. These attempts can be tried again automatically.

What NetFile does with a record after it accepts it is set by NetFile.

## Find Your Data in NetFile

To find your contributions in NetFile:

1. Go to <https://netfile.com/Filer> and log in with your NetFile User email and password.
2. On the **Transactions** menu, select **Monetary Contributions**.

You'll see the monetary contributions Anedot sent to your NetFile account.

## Field Mapping

Anedot values come from the submission data. NetFile fields match the keys in the request body.

### Donor Fields

| Anedot Value                                                           | NetFile Field  |
| ---------------------------------------------------------------------- | -------------- |
| Address line 1                                                         | `addressLine1` |
| Address line 2                                                         | `addressLine2` |
| City                                                                   | `addressCity`  |
| State                                                                  | `addressState` |
| Postal code                                                            | `addressZip`   |
| 1                                                                      | `category`     |
| Email                                                                  | `email`        |
| Employer                                                               | `employer`     |
| First name                                                             | `firstName`    |
| Last name                                                              | `lastName`     |
| Occupation                                                             | `occupation`   |
| Phone                                                                  | `phoneHome`    |
| Suffix                                                                 | `suffix`       |
| Donor profile id (or the submission id when there is no donor profile) | `id`           |
| 1                                                                      | `idSource`     |

Empty donor values are sent as null, or as an empty string when the source value is an empty string.

### Contribution Fields

| Anedot Value                                        | NetFile Field          |
| --------------------------------------------------- | ---------------------- |
| Fund allocation amount in dollars                   | `amount`               |
| Bank account ID from the connection                 | `bankAccountReference` |
| Record created date, YYYYMMDD                       | `batchNumber`          |
| createdAt in the account time zone, ISO 8601        | `dateDisclosure`       |
| 1                                                   | `transactionType`      |
| Donation id                                         | `id`                   |
| 1                                                   | `idSource`             |
| NetFile election cycle from the connection, or null | `electionCycle`        |
| NetFile election year from the connection, or null  | `electionYear`         |
| The same id sent on the donor record                | `entityId`             |
| 1                                                   | `entityIdSource`       |

The `bankAccountReference`, `electionCycle`, and `electionYear` keys are always included. They're sent as numbers when set, or as null when blank.

## Payload Data

These examples show the request bodies in **Settings > Integration Requests** for a $25 donation from Annie Dot.

### Donor Request

This is the first row for the donation.

```json
{
  "items": [
    {
      "addressLine1": "123 Main St",
      "addressLine2": null,
      "addressCity": "Baton Rouge",
      "addressState": "LA",
      "addressZip": "70801",
      "category": 1,
      "email": "annie.dot@example.com",
      "employer": "Example Co",
      "firstName": "Annie",
      "lastName": "Dot",
      "occupation": "Teacher",
      "phoneHome": "2255550100",
      "suffix": null,
      "id": "<donor-profile-id>",
      "idSource": 1
    }
  ]
}
```

### Contribution Request

This is the final row for the donation.

```json
{
  "items": [
    {
      "amount": 25.0,
      "bankAccountReference": 12345,
      "batchNumber": "20261112",
      "dateDisclosure": "2026-11-12T10:15:30-06:00",
      "transactionType": 1,
      "id": "<donation-id>",
      "idSource": 1,
      "electionCycle": 1,
      "electionYear": 2026,
      "entityId": "<donor-profile-id>",
      "entityIdSource": 1
    }
  ]
}
```

### Failure Response

This response shows NetFile rejecting a contribution because a bank account was missing.

```json
{
  "items": [
    {
      "index": 0,
      "action": "Failed",
      "netFileId": null,
      "submittedId": "<donation-id>",
      "errorMessage": "Validation failed...",
      "validationResults": [
        {
          "code": "BANK_ACCOUNT_REQUIRED",
          "message": "Bank account is required.",
          "severity": "Error"
        }
      ]
    }
  ],
  "failureCount": 1,
  "successCount": 0
}
```

## Troubleshooting

### The Connection Won't Save

* Make sure the **NetFile account name** contains only letters, numbers, hyphens and underscores.
* Make sure the **Bank account ID** is a positive whole number, starting at 1.
* Make sure the **NetFile election year** and **NetFile election cycle**, if entered, are whole numbers.
* If you unchecked **All Action Pages**, choose at least one page in **Selected pages**.

### A Row Shows Failure

Open the row in **Settings > Integration Requests** and review the response body for NetFile's message. If NetFile reports a missing or incorrect bank account, delete the connection and connect again with the correct **Bank account ID**, then use **Push unsent** to send the records again.

### A Contribution Didn't Arrive

* Check whether the donor row for that donation shows Failure. If the donor row fails, the contribution isn't sent.
* Confirm **Enabled** is checked on the connection.
* Confirm the Action Page is in the connection's Action Page scope and Team.
* Review [Records Anedot Skips](https://docs.anedot.com/integrations/political-campaign-tools/netfile-integration.md#records-anedot-skips) to see whether the record type is sent.

### A Row Shows Error

Anedot couldn't complete the request, and these attempts can be tried again automatically. If the issue continues, contact our Support team at <help@anedot.com>.

## Related Articles

* [Integrations](https://docs.anedot.com/integrations.md)
* [Integration Requests](https://docs.anedot.com/integrations/relay-data-troubleshooting/integration-requests.md)
* [Webhooks (API)](https://docs.anedot.com/integrations/integration-automation-tools/webhooks.md)
* [Permission Sets](https://docs.anedot.com/settings/access/permission-sets.md)
* [Teams](https://docs.anedot.com/settings/access/teams.md)
* [Commitments](https://docs.anedot.com/finance/management-and-reporting/commitments.md)
* [Hidden Fields](https://docs.anedot.com/action-pages/page-builder/hidden-fields.md)
* [Political Campaign Tools](https://docs.anedot.com/integrations/political-campaign-tools.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.anedot.com/integrations/political-campaign-tools/netfile-integration.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
