Toward the end of a reporting period, a finance person pulls donation and grant data from separate systems. Someone then manually adjusts date formatting and executes a script – but only one person understands this. Despite this, the totals remain inconsistent.
Whilst there is no lack of relevant software, most non-profits do not have:
- Consistent data structures.
- Secure system interconnections.
- Processes that don’t depend on one person’s computer.
Below are 5 steps to achieve this.
- Audit data structures
- Remove ad-hoc scripts
- Ready data structures for current reporting practice
- Introduce an encrypted API gateway
- Train your workforce
Resources including code, checklists and advice for resolving issues are provided.
Who this is for?
IT managers, finance and operations leads and 'accidental sysadmins' in small and medium-sized non-profits. All can follow the guidance. More advanced sections are indicated so you can choose whether to skim or explore further.
Step 1: Audit Data Structures
To improve processes, you must first understand what is held in your databases. Identify all systems that interact with financial data. Most non-profits will have:
- Donor/raising system
- Accounting / ERP system
- Grant system
- Payroll and HR system
- Programme and/or case system
- Payment processors and bank feeds
- And that spreadsheet that everyone tries to ignore!
For each system, collate:
| Item | Examples |
|---|---|
| Table/object name | donations, grants |
| Field name | fund_code, restriction_type |
| Data type | varchar(20), date, numeric(12,2) |
| Validation | Mandatory? Permitted values? |
| System owner | Individual, not 'Finance' |
Pay particular attention to:
- Donor restrictions (restricted/unrestricted, and restricted for particular reasons and/or duration).
- Grant dates (start, end, and no-cost extension).
- Programme codes (is ‘PRG-01’ understood identically in all systems?)
- Programme outcomes (how these are captured and linked to expenditure).
Even seemingly minor variations in data, such as a field labelled 'Restricted' in one system but 'Rest.' in another, can contribute to inaccurate reporting.
Compare Current and Anticipated Requirements
There is an evolving reporting landscape. In October 2025, CIPFA and Humentum launched the International Non-Profit Accounting Standard (INPAS). This is the world’s first non-profit-specific accounting standard. Although adoption is currently optional, it is advisable to understand it, even if it is not currently required in your area. Donors and auditors may begin to ask about it in the future.
Finance leads preparing for the new INPAS standard for nonprofit reporting should review current data structures to identify areas where categorisation and outcomes data are inconsistently held. As well as financial data, the INPAS requires a narrative to be included alongside financial reporting to further explain an organisation’s activities. Your data should therefore not only inform, but also underpin this narrative.
Quick Method of Identifying Duplicates
If this is possible, extract a list of fields from within a database. In PostgreSQL:
SELECT table_name,
column_name,
data_type,
is_nullable
FROM information_schema.columns
WHERE table_schema = 'public'
AND (column_name ILIKE '%fund%'
OR column_name ILIKE '%grant%'
OR column_name ILIKE '%program%'
OR column_name ILIKE '%restrict%')
ORDER BY column_name, table_name;
If the fund_code field appears on 6 tables and in 3 differing data types, then this is an area requiring improvement.
At the end of the audit, you should:
- Understand each system’s data structure
- Identify duplicated and/or inconsistent fields
- Identify unexplained custom fields
- Decide whether to retain, rename, or remove fields
This provides an objective understanding of your data.
Step 2: Remove Ad-hoc Scripts
Often, scripts gradually become entrenched in non-profit reporting processes. Usually, staff will export data from a donor system, manually amend date formatting, and execute a local script. They then upload this to the finance system.
Whilst this works, if the script writer moves on or a source field is renamed, then no one is able to determine why discrepancies may occur.
As with software, processes should include:
- Testing
- Error handling
- Audit trails
This can highlight underlying issues and minimise the chances of erroneous automated reporting.
Detail All Ad-hoc Processes
For each reconciliation, detail:
- Source – both what and what format is being used?
- Processing – precisely what is undertaken? (For example, date conversion, currency and code translation and rounding.)
- Destination – where is processed data sent?
- Issues – what happens if a column header is renamed, a file is blank and/or data is absent?
Often staff then recognise that more than one person is processing the same data but in differing ways. There is also helpful guidance available on streamlining a non-profit’s technology stack to help identify redundant tools and disjointed processes.
Transfer Processing Rules to a Managed Platform
Where possible, transfer agreed processing rules onto a managed platform that enables integration and/or process automation. This allows version control, scheduling, and alert functionality and maintains a history of process execution.
Even if migration cannot occur immediately, at a minimum automate the existing process with validation. Below is basic Python code to detect the top 3 processing issues – absence of fund codes, duplicate transaction identifiers, and inconsistent totals compared with source data.
import sys
import pandas as pd
SOURCE_TOTAL = 184250.75 # control total from the donor platform report
df = pd.read_csv("donations_export.csv", dtype={"txn_id": str, "fund_code": str})
problems = []
# 1. Missing fund codes
missing = df[df["fund_code"].isna() | (df["fund_code"].str.strip() == "")]
if not missing.empty:
problems.append(f"{len(missing)} rows have no fund code")
# 2. Duplicate transaction IDs
dupes = df[df.duplicated(subset="txn_id", keep=False)]
if not dupes.empty:
problems.append(f"{dupes['txn_id'].nunique()} transaction IDs appear more than once")
# 3. Totals must match the source system
total = round(df["amount"].sum(), 2)
if total != SOURCE_TOTAL:
problems.append(f"Total mismatch: file={total}, source={SOURCE_TOTAL}")
if problems:
print("VALIDATION FAILED")
for p in problems:
print(" -", p)
sys.exit(1) # non-zero exit lets a scheduler or CI job stop the pipeline
print("Validation passed")
Advanced guidance: Always hold monetary values as integers (number of cents) or as a Decimal. Floats frequently result in slight rounding errors and so should never be used.
Place this script under version control. Also identify an owner and schedule regular execution. Suddenly an opaque process becomes auditable.
Step 3: Ready Data Structures for Current Reporting Practice
Avoid basing data structures purely on the terminology used by individual software. Rather, reflect the core business terms that your non-profit reports on. For example, a grant may require:
- Identifier
- Funding dates (start and end)
- Restriction type
- Currency
- Reference to relevant programme outcome
Separating these facets allows for improved data sharing, reporting and auditing.
Example: Improved Grant Data Structure
Below is basic PostgreSQL code. Again, adapt this to fit your system.
CREATE TABLE grants (
grant_id BIGSERIAL PRIMARY KEY,
grant_ref VARCHAR(40) NOT NULL UNIQUE,
funder_id BIGINT NOT NULL,
period_start DATE NOT NULL,
period_end DATE NOT NULL,
restriction_type VARCHAR(20) NOT NULL
CHECK (restriction_type IN ('unrestricted','purpose','time','both')),
currency_code CHAR(3) NOT NULL,
program_code VARCHAR(20) NOT NULL,
legacy_id VARCHAR(60), -- cross-reference to the old system
CHECK (period_end >= period_start)
);
CREATE TABLE transactions (
txn_id BIGSERIAL PRIMARY KEY,
source_system VARCHAR(30) NOT NULL,
source_txn_id VARCHAR(80) NOT NULL,
grant_id BIGINT REFERENCES grants(grant_id),
fund_code VARCHAR(20) NOT NULL,
amount_cents BIGINT NOT NULL,
posted_date DATE NOT NULL,
UNIQUE (source_system, source_txn_id) -- stops double posting
);
Three key design decisions have been made here:
- Data integrity is proactively enforced through
CHECKconstraints. - A
legacy_idfield is included to maintain a history of previous records. This ensures that even post-migration, data remains traceable. - A unique combination of (
source_system,source_txn_id) prevents double submission in the event of a re-attempted import.
Create a Data Dictionary
Despite possibly sounding dull, a data dictionary is amongst the most valuable resources you can produce. For each field, specify its definition, permitted format, source, and responsible party.
| Field | Definition | Format | Source | Owner |
|---|---|---|---|---|
grant_ref |
Unique grant identifier | GR-YYYY-NNNN |
Grant system | Grants manager |
restriction_type |
Type of donor restriction | Controlled values | Fundraising CRM | Finance lead |
period_start |
Commencement date of funding | YYYY-MM-DD |
Grant system | Grants manager |
fund_code |
Fund in the ledger | 6 characters | Accounting system | Finance lead |
Wherever applicable, utilise ISO date formatting. Likewise, controlled value lists are preferable for fields such as programme status. Free text fields are typically where reporting accuracy is compromised.
Test With Complex, Real-world Data
As well as testing with exemplary data, evaluate new data structures using genuinely complex data. At a minimum, test:
- A grant that straddles two reporting periods
- A restricted gift for a defined reason
- And a correction entered after a reporting period had closed
Provided your data structure functions for these 3 situations, then it should effectively manage most data.
Step 4: Implement an Encrypted API Gateway
Put simply, an API gateway acts as a centralised, controlled access point for systems to communicate. Rather than systems interfacing directly (and scripts containing passwords), requests are funnelled via the gateway. It then verifies the requester and enforces access controls. It also maintains an audit trail.
Key Principles
- Provide individual identities for each service.
- Never hard-code credentials. Instead, use a secrets management solution or inject secrets into an environment.
- Apply the principle of least privilege. Those only needing to read grant data should not be able to submit transactions.
- Encrypt data both during transmission (using TLS) and at rest (database and/or disk).
Example: Controlling Request Volumes and Maintaining an Audit Trail (NGINX)
Below is basic code to demonstrate how this can be achieved. Again, your chosen gateway product may differ. Typically, this would also be combined with token-based authentication.
# Rate limit per client identity
limit_req_zone $http_x_client_id zone=finance_api:10m rate=5r/s;
log_format audit '$time_iso8601 client=$http_x_client_id '
'method=$request_method uri=$request_uri '
'status=$status ip=$remote_addr';
server {
listen 443 ssl;
server_name api.example.org;
ssl_certificate /etc/ssl/certs/api.example.org.crt;
ssl_certificate_key /etc/ssl/private/api.example.org.key;
ssl_protocols TLSv1.2 TLSv1.3;
location /v1/ {
limit_req zone=finance_api burst=10 nodelay;
access_log /var/log/nginx/finance_audit.log audit;
proxy_pass http://finance_backend;
}
}
In addition to controlling request volumes, also:
- Implement short-lived tokens (perhaps for 1 hour) that are automatically renewed.
- Generate alerts if there are multiple failed requests from the same client within a short timespan (such as 5 failed requests in 1 minute).
- Implement regular credential renewal (either using a calendar reminder or automatically).
Never rely solely on good intentions!
Ensure Donor Data is Anonymised in Test Systems
Whilst developers won’t require real donor information to test system integration, production data should first have sensitive data removed. This data can then be transferred to test systems.
UPDATE donors_test
SET full_name = 'Donor ' || donor_id,
email = 'donor' || donor_id || '@example.invalid',
phone = NULL;
Investigate Re-Submission Processes
Unfortunately, this is often overlooked. Consider what occurs if a gateway fails in the middle of an import process and then recovers. Will transactions be lost or submitted twice?
Employ idempotency keys to ensure that upon a re-attempt, a transaction will not be submitted more than once:
curl -X POST https://api.example.org/v1/transactions \
-H "Authorization: Bearer $SERVICE_TOKEN" \
-H "Idempotency-Key: donorplatform-2026-000451" \
-H "Content-Type: application/json" \
-d '{"fund_code":"GEN001","amount_cents":25000,"posted_date":"2026-11-20"}'
On the database side, a corresponding exclusivity clause should also be in place:
INSERT INTO transactions (source_system, source_txn_id, fund_code, amount_cents, posted_date)
VALUES ('donorplatform', '000451', 'GEN001', 25000, '2026-11-20')
ON CONFLICT (source_system, source_txn_id) DO NOTHING;
Even if this is executed twice, only one database row will be produced. Ideal!
As discussed above, many of the considerations around audit technology are also pertinent when assessing whether your inter-system connections provide sufficient auditable evidence.
Step 5: Train Your Workforce
Poor processes often stem not from poor technology, but from staff finding ways around it. Training is crucial to avoid this.
| Team | Training Required |
|---|---|
| Finance | Submission processes and exception queue management |
| Fundraising | Entering donor restrictions and accurately amending data |
| IT | Interpreting API audit trails, renewing credentials, and managing integration issues |
Undertake 3 Practical Training Scenarios
Avoid lengthy presentations. Instead, ask staff to:
- Manage a restricted gift from receipt to submission.
- Amend grant categorisation.
- And address a transaction rejection, without resorting to external, non-system processes.
Scenario 3 is especially important. If staff can only complete this by exporting data to a spreadsheet, then there is a process issue to resolve.
Compile Succinct Training Guides
For common tasks, devise one-page guides detailing:
- Correct procedures
- Responsible party
- Person to escalate issues to
Concise and up-to-date information is better than long but neglected documentation.
Assess the Effectiveness of Training
During the initial month following implementation, analyse exceptions on a weekly basis. Positive indicators are:
- Declining exception levels
- Reduced need to amend spreadsheets
- Accelerated month-end closing
Should exception levels not fall, then this is nonetheless highly informative. It will show you which process, rule or individual requires further investigation.
Plan a Review Date
Before project completion, plan a review date. Following one full reporting period, analyse data structures, gateway audit trails and exception data. It is at this stage that you will typically uncover processes requiring further improvement prior to these becoming entrenched in the next audit period.
Conclusion
Whilst the latest technology plays a part in good reporting, it is more fundamental to understand your database structures. Further, processes should transition from undocumented, ad-hoc methods to clearly defined, tested procedures. Data structures should reflect genuine business terminology. System connections must be securely managed, and staff should be trained in accordance with actual processes.
Begin incrementally. Firstly, undertake a systems audit. Next, identify ad-hoc scripts. Finally, introduce one validation check. Taken together, these actions progressively minimise risk. They also allow your staff to devote more time to your non-profit’s mission and less to report rectification.