Booking

Fetched transactions arrive as statements under statements/<source>/ in the claiming repository. Then:

  • upload_link gives 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_file does 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_link with direct. Its answer also has a direct address. Send the file's bytes there by HTTP POST with &filename=NAME to get the same preview as JSON, then once more with &filename=NAME&store=1 to store it, for example curl --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_inbox shows the pending lines.
  • book with dry_run writes nothing. It reports what book would book, and each line it would hold, with the reason.
  • book books them into tail.beancount, each with its best-guess account, or Expenses:Unknown.
  • review_categories lists the entries whose categories book guessed, and recategorize or recategorize_many moves them to their accounts. book never 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 recategorize on the line's ID: it moves the other account's posting to Assets:Clearing or a category.
  • A payment booked from another statement, such as a mortgage payment from the lender's statement, leaves an open amount on Assets:Clearing until the bank's side arrives. When the bank's line was booked first and landed on Expenses:Unknown or Income:Unknown, book moves it to Assets:Clearing if 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 an appreise-note naming the entry it clears. A line a few days off (up to 5), or one of several equal lines, is not moved: book names it in its detail, and review_categories lists it among the lines that would clear an open amount. Recategorize it to Assets:Clearing to book it so. A line you put on another account is never moved.
  • split splits one booked line across several category accounts (with optional notes), or collapses a split entry back to one category account.
  • match_entries reconciles transfers between your own accounts. When one side of an internal transfer is on Assets:Clearing (for example from a property manager's owner payout or contribution), book proposes Assets:Clearing on 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 with recategorize.
  • ignore_line skips a line, with a reason.
  • check validates 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_push then pushes it, and commits and pushes any change made another way, only when check passes.

Full User Guide · Manual Overview