Add to Claude

Guides · Beyond customer lists

Get a bank export ready for Xero's statement import

Tools: sift_reshape, sift_fix_dry_run, sift_fix_applyWorks with Claude Code

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

Lines in, lines out16, 16
Paired from the column namesDate and Amount. You agree the rest: Counterparty to Payee, Details to Description, Ref to Reference
Left outType and Balance
Blank date, a required column1, a card payment still pending
Blank amount, a required column1, the opening balance line
Amounts that aren't plain numbers2
Dates that could be either way round1
date_format, day first14 change, 1 already right, 1 blank
strip_currency5 change, 1 flagged: -£24.00, a minus sign before the £

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

Questions

Does Sift connect to Xero?
No. It writes a CSV on your machine, and you import it in Xero yourself. Nothing is sent anywhere.
Why does it ask whether dates are day first?
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.
Can I use other column names?
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.

More guides

Guide Get a supplier's product list into Shopify's product CSV Guide Get a supplier's file into your booking form's layout Guide Find unpaid invoices: match invoices to payments