Guides · Beyond customer lists
Get a bank export ready for Xero's statement import
Give Sift your bank's export and a template with the columns you match in Xero's statement import. Sift writes a new CSV in that layout, fixes dates and currency signs when you ask, and counts the lines that still won't import. In the test file, that is 16 lines, with 3 left for you to sort out.
Ask your agent
With Sift connected (setup takes three steps), paste this and swap in your own paths.
Use Sift to reshape /path/to/bank_statement_nov.csv into the layout of /path/to/xero_statement_template.csv, and show me the mapping before writing anything. Once I agree it, write the file. Then, with /path/to/rules.bank-statement.json, dry run date_format on the Date column (to DD/MM/YYYY, day first) and strip_currency on the Amount column, and tell me what still won't import.
The template is a CSV with the columns you will match in Xero, here Date, Amount, Payee, Description and Reference, plus ten made-up lines. Sift learns from those lines which columns are always filled and which hold dates or numbers. Xero asks you to match each column to a bank statement field the first time you import a CSV.
Pick the date format your Xero organisation reads. This example uses DD/MM/YYYY. The fixes need a rules file with a share-of-rows limit, and rewriting dates touches most lines, so this one allows 90%: {"guardrails": {"stop_if_share_of_rows_changed_over": 0.9}}.
What Sift sends back
Sift moves columns into place. It never does sums across them, so it will not merge a Paid in and a Paid out column into one Amount.
Each fix writes a new file with a receipt, and leaves the file before it untouched. Undo rebuilds it byte for byte.
What to do next
- Take the opening balance line out of the bank file before you import. Sift never deletes rows.
- The pending card payment has no date yet. It will come through on next month's export.
- Change -£24.00 to -24.00 by hand. Sift flags it rather than guess where the sign goes.
- Save the mapping in your rules file with saveAs. Next month's export goes through with mappingName.
Questions
No. It writes a CSV on your machine, and you import it in Xero yourself. Nothing is sent anywhere.
Because 05/11/2026 could be 5 November or 11 May. Sift flags dates like that unless you say which way round your bank writes them.
Yes. Any CSV with a header row works as the template. With a few sample lines under it, Sift also checks which columns are always filled and which hold dates or numbers.
The same steps work for any accounting import that takes a CSV in a fixed layout.