Statement sources
Each bank account is a statement source. A source's transactions go to the one repository whose open directive claims it with source: metadata:
2026-01-01 open Assets:Chase:Checking USD
source: "plaid-chase-4821"
assign_bank_account writes this for you: give it the source (from list_bank_accounts), the repository (from list_repos), and the account. Bank and savings accounts go under Assets:, credit cards and loans under Liabilities:. If the account is not opened yet, appreise opens it, dated on its first transaction, or on the day before the start date when you give one.
A start date. A bank brings up to two years of history, but a ledger that starts at an opening date must not book the lines before it: they are inside the opening balance. Give assign_bank_account (or claim_source) a start date, the day after the opening date: the source's lines dated before it are left out, as ignored lines with the reason, and list_inbox counts them in its count of lines outside the dates. On a source claimed already, the same call sets or moves its start date. The date is kept in the ledger as 2026-01-01 custom "source-start" "plaid-chase-4821".
Changing an account's source at a date. An account whose lines came from statement files can move to a connected bank: assign the bank's source to the same account with a start date. From that day the bank owns the account's lines, and the files' lines from it on are left out, so no day counts twice. Each source of an account needs its own start date (one may have none: it owns the days before the first start). A history source (history-...) takes no start date; its days end where the account's other source begins.
Until a source is claimed, its transactions are held: fetched, kept, and written as soon as exactly one repository claims the source. A source claimed by two repositories is an error, and its transactions stay held until one claim is removed.
History from another program (a spreadsheet, a desktop program, a website) comes in through a source of its own. claim_source claims a name such as history-oldbank-checking for one account, and import_file then stores the exported statements under it, as CSV with the header Date,Description,Amount,Currency (money out negative; without the Currency column, the ledger's operating currency applies). A bank's own CSV download works as it is: import_file has the accounting engine read its columns and dates, and stores the result in that layout. It first shows you what it read; nothing is stored until you confirm.
From a property manager. When a property manager keeps a rental company's ledger, the company's year comes from the property manager's General Ledger report (appfolio_gl_v1), not from bank statements alone. Start here before importing the company's bank statements: claim a source on the manager's cash account with claim_source, export the General Ledger report as CSV, and upload it with upload_link (or import_file). Run book, then map each gl: section once with review_categories and recategorize (or recategorize_many). Owner payouts and contributions to or from the company's bank account in the same repository are paired through the clearing account (Assets:Clearing) and match_entries. When they go straight to a parent holding company's or owner's bank in another repository, map them to the inter-entity account and link the two sides with list_unlinked_transfers and link_transfer.
Exports from Stessa, Buildium, and RentRedi are stored unchanged and read directly by their own parsers:
- Stessa (
stessa_v1): open Transactions, filter to the property or account, and click Export to download the CSV (Date,Amount,Payee,Description,Category,Property,Unit). - Buildium (
buildium_v1): open Reports, Financial, Bank Transactions, pick the bank account and date range, and export as CSV (Date,Type,Reference,Payee,Property,Memo,Amount,Balance). Each row must carry aReferenceso re-imports never duplicate lines. - RentRedi (
rentredi_v1): open Payments, Export Charges (or the transaction report), choose the date range, and export as CSV (Trans Date,Transaction ID,Type,Property,Unit,Tenant,Description,Amount). Each row usesTransaction IDas its reference. - AppFolio General Ledger (
appfolio_gl_v1): export the General Ledger report as CSV (Date,Type,Unit,Name,Description,Debit,Credit,Balance) and upload it withupload_link(orimport_file).import_fileverifies each section's running balance and totals, skips zero-amount rows, emits statement lines from the cash section only (resolvingUndeposited Fundsbatches and split tenant payments), and records each row's GL section ingl:metadata. Mapgl:sections once throughreview_categoriesandrecategorize(orrecategorize_many). When owner payouts or contributions move money to or from the company's own checking account in the same repository, map thosegl:sections toAssets:Clearingsomatch_entriespairs them with the bank. When they go straight to a parent holding company's or owner's bank account in another repository, map them to the inter-entity account (entity: "<parent>") and link the two sides withlist_unlinked_transfersandlink_transfer. - Bank exports with debit and credit columns (
debit_credit_v1): a bank's CSV export whose header namesDate,Description,Amount Debit(orDebit),Amount Credit(orCredit) andTransaction Number(orTransaction ID), with an optionalMemoand other columns such asBalance, is stored unchanged and read directly. The memo (or the description when the memo is empty) is the description, and the transaction number is the reference. A year without transactions may download as an empty file;import_filethen says so, and there is nothing to import. - Sites without an export: when a site offers no CSV or OFX download, ask your AI app to read the transactions from the page and write them in the appreise statement format (
Date,Description,Amount,Currency, with an optional,Reference). - Documents as evidence (PDFs and scans): when a statement or a payslip arrives only as a PDF or an image scan, store the original file unchanged under
statements/<source>/withupload_linkorimport_file. Then have your AI app transcribe its lines into CSV, verify the document's own totals, and import the transcription next to the original (passingdocumentinimport_fileor naming the CSV after the document's stem).list_inboxmarks transcribed lines withtranscribedset to true, the originaldocumentpath, and its SHA-256 content hash so you can review them before booking. - Payslips: claim one source per employer on that employer's income account with
claim_source(for exampleacme-payrollonIncome:Salary:Acme). Transcribe each payslip into the payslip CSV layout (Date,Description,Component,Amount,Currency,Reference, with an optional,YtdAmountcolumn): one row per component (gross,federal,state,social-security,medicare,health,401k,net), where gross minus deductions equals net.bookchecks any year-to-date totals against the books, writes one multi-posting entry with net pay onAssets:Clearing, and routes matching bank payroll deposits (including split deposits across two bank accounts) toAssets:Clearing.match_entriespairs and reconciles them, and flags a payroll deposit with no payslip yet aspayslip missing. - Investments: brokerage and retirement accounts (whether fetched through Plaid or imported as CSV with the header
Date,Action,Symbol,Quantity,Price,Fee,Amount,Currency,Description,Reference, plus optional,LotDate,LotCostcolumns for specific lot identification) book each security into its own sub-account<Account>:<Symbol>with its lot cost and acquisition date ({price Currency, YYYY-MM-DD}). The supported actions arebuy,sell,dividend,reinvest,interest,fee,split,transfer,contribution, andprice. Asellreduces the chosen lot (or reduces lots by the account's booking method:FIFOby default, orLIFO,AVERAGE, orSTRICT, set withannotate_accountand keybooking) and books the realized gain or loss toIncome:Investments:CapitalGains:ShortTermorIncome:Investments:CapitalGains:LongTermby the one-year holding period rule. Acontributioninto a 401k or retirement account books againstExpenses:Payroll:Retirement, wherematch_entriespairs it with the employer payslip's401kdeduction (or reportspayslip missing). Daily market prices are recorded aspricedirectives bybook(forpricerows) or withrecord_price.
An account that a connected bank feeds takes one such history source beside the bank's: start its name with history-. Its lines must end before the bank's start date (or the bank's first line when the bank has no start date). Booking holds a history line on a day the bank covers, and a bank line on a day the booked history covers, so no day counts twice. Ask the AI app for the prompt "Move in from another program" to go through it step by step.