ZeraBooks open data

Statement to CSV spec

Column layouts for bank and credit card statements, Xero imports, invoices and financial statements, each with a fictional sample file and the formula that proves it is complete.

Repository: github.com/ZeraBooks/statement-to-csv-spec
Download: latest release (v1.0.0)
Guide: Bank statement to CSV on zerabooks.com explains the method with a worked example.
License: see the repository. Cite: ZeraBooks, “Statement to CSV spec”, https://zerabooks.github.io/data/statement-to-csv-spec/

In ZeraBooks

A bank statement converted in ZeraBooks Convert with the proof above the rows
A converted statement in ZeraBooks Convert: every row with date, description and amount, proven to the statement.

README

Statement to CSV spec

A bank or credit card statement converts cleanly to CSV when each transaction is one row with a date, a description and a single signed amount, money out negative. For a bank account, the rows are complete when the opening balance plus the sum of the amounts equals the closing balance printed on the statement. This repo sets out those column layouts, with fictional sample files that tie.

Folder What it is Guide
google-sheets/ A standard layout for statement rows in Google Sheets, import settings, check formulas and a sample file How to get a bank statement into Google Sheets
credit-cards/ Card statement rows with charges negative and payments positive, a tie-out formula and a sample that ties Converting a credit card statement to Excel
xero/ The five-column layout for a Xero statement import, a sample that ties and a pre-import checker Importing a PDF bank statement into Xero
wave/ Wave's 3-column upload layout, its card sign rule (purchases positive) and a card sample that ties Wave bank statement import
sage/ Sage Accounting's header order (Date, Description, Money in, Money out) and a chequing sample that ties Sage bank statement import
zoho-books/ The Single Column with Negative Values layout for Zoho Books and a checking sample that ties Zoho Books bank statement import
invoices/ Invoice line items one row per line, with the two checks that catch misreads Invoice PDF to Excel
financial-statements/ Balance sheet and P&L lines as Statement, Section, Line, Year, Amount, with a two-year sample that balances Financial statements to Excel
normalize-export/ A script that turns a bank export with Debit and Credit columns and dates like 3/2/26 into Date, Description, Amount, and checks it ties Convert a bank statement to CSV

All figures are fictional.

How to use these files

License

The content and data in this repository are licensed under CC BY 4.0. Free to use and adapt with credit to ZeraBooks. The scripts (*.py) in normalize-export/ are licensed under MIT.

Maintained by ZeraBooks.