Booking
Fetched transactions arrive as statements under statements/<source>/ in the claiming repository. Then:
upload_linkgives you a link to a page where you upload a statement you downloaded yourself: a CSV file from your bank or your old program, or an OFX or QFX file. The page shows what it read; nothing is stored until you confirm there. (import_filedoes the same through the AI app, which is slow for large files.) The link lasts 15 minutes. On the hosted service it opens only in a browser signed in to appreise with your GitHub account; if you are not signed in, the page sends you to the sign-in and back.- Without a browser, for an AI app or a script with a shell: ask
upload_linkwith direct. Its answer also has a direct address. Send the file's bytes there by HTTP POST with&filename=NAMEto get the same preview as JSON, then once more with&filename=NAME&store=1to store it, for examplecurl --data-binary @old.csv "<direct address>&filename=old.csv". Give a file name without spaces or&, or URL-encode it. A direct link needs no sign-in, so anyone who holds it can upload one file with it in its 15 minutes. Keep it out of anything you share. list_inboxshows the pending lines.bookwith dry_run writes nothing. It reports whatbookwould book, and each line it would hold, with the reason.bookbooks them intotail.beancount, each with its best-guess account, orExpenses:Unknown.review_categorieslists the entries whose categoriesbookguessed, andrecategorizeorrecategorize_manymoves them to their accounts.booknever guesses an account that has its own statement source: its money comes from its own statement.- An entry that posts a line against another statement account (from an older release, or a category that later got its own source) is repaired with
recategorizeon the line's ID: it moves the other account's posting toAssets:Clearingor a category. - A payment booked from another statement, such as a mortgage payment from the lender's statement, leaves an open amount on
Assets:Clearinguntil the bank's side arrives. When the bank's line was booked first and landed onExpenses:UnknownorIncome:Unknown,bookmoves it toAssets:Clearingif it is the only line of that amount on the same day, and no other open amount fits it. It stays flagged!for review, with anappreise-notenaming the entry it clears. A line a few days off (up to 5), or one of several equal lines, is not moved:booknames it in its detail, andreview_categorieslists it among the lines that would clear an open amount. Recategorize it toAssets:Clearingto book it so. A line you put on another account is never moved. splitsplits one booked line across several category accounts (with optional notes), or collapses a split entry back to one category account.match_entriesreconciles transfers between your own accounts. When one side of an internal transfer is onAssets:Clearing(for example from a property manager's owner payout or contribution),bookproposesAssets:Clearingon an uncontested bank line of the opposite amount within 7 days; if an unrelated transaction happens to have the same amount within those 7 days, move it to its category account withrecategorize.ignore_lineskips a line, with a reason.checkvalidates the ledger. Every write commits and pushes its change at once; when the push fails, the answer says so and the commit waits in the service.commit_pushthen pushes it, and commits and pushes any change made another way, only when check passes.