Books

The hanzo books commands.

Also for this capability: API · CLI · SDKs

Double-entry accounting: chart of accounts, ledger, bank reconciliation, and the reports that prove the books balance.

API reference →

hanzo books gl

Every command takes --json for the raw response and --help for its own flags. Sign in once with hanzo auth login; the commands below use that session, and the org they act in is the one it carries.

CommandWhat it does
hanzo books accountsReturns the org's chart of accounts — the seeded fixed chart every posting key in the ledger refers to.
hanzo books askAnswers a plain-language question about the caller's own books — "what is my MRR?", "how long is my runway?" — with figures taken from their ledger, never a guessed number.
hanzo books exportReturns the complete financial package for the caller's org over (from, to]: the trial balance, the P&L, the balance sheet, and the GL detail behind them — the four statements a tax preparer or an investor asks for, assembled from the one ledger in a single read so they cannot disagree with each other.
hanzo books glReturns the org's most recent GL Entry rows, newest first.
hanzo books metricsReturns the org's deterministic SaaS-metrics snapshot over an optional (from, to] window — MRR, ARR, revenue, COGS, burn, gross margin, net income, cash, deferred revenue, monthly burn and runway — as raw int64-cent figures AND the same figures already formatted.
hanzo books pnlReturns the org's accrual-basis Profit & Loss over an optional (from, to] window of RFC3339 posting times: recognized revenue, matched cost, and the net.
hanzo books positionReturns the org's Balance Sheet as of to (empty = all time), with the Assets == Liabilities + Equity equation proof.
hanzo books questionsReturns the clarifying questions the caller's own recent GL raises — the unusual postings a founder should look at (outliers, reversals, round-offs, uncosted revenue, an overdrawn wallet), sharpest first.
hanzo books syncIngests the caller's OWN org from commerce into BOTH ledgers (live and sandbox) and reports how many new vouchers posted to each.
hanzo books transactionsReturns the org's booked ledger as a single-line register, newest first: one row per voucher, with its date, description, vendor, category, source and amount in exact cents.
hanzo books trialReturns the org's trial balance over an optional [from, to] window of RFC3339 posting times, including the opening/closing columns and the TotalDebit == TotalCredit proof that the books balance.

Bank

CommandWhat it does
hanzo books bank importImport a bank statement file into your books
hanzo books bank syncPulls every connected bank (Plaid/Teller) for the caller's org, maps each fetched transaction to a posting and books it idempotently, then advances that connector's cursor so the next sync resumes where this one stopped.
hanzo books bank transactionsReturns the org's normalized bank transactions, newest first — every row the import and connector paths have ingested, with its amount in exact cents, its direction, and whether it has been matched to a voucher yet.
hanzo books bank unreconciledReturns the org's unmatched bank inflows and their open clarifying questions — the queue a human answers so an unexplained deposit is never guessed into revenue.

Inbox

CommandWhat it does
hanzo books inbox createQueue a document for later scanning
hanzo books inbox getReturns the org's open document queue — everything uploaded but not yet booked, newest first, each with its extracted summary and the confidence the scanner resolved its category at.

Rules

CommandWhat it does
hanzo books rules createCreates or updates one auto-categorization rule, keyed by its pattern — writing a pattern that already exists REPLACES that row's category and priority.
hanzo books rules getReturns the org's auto-categorization rules, highest priority first.

Scan

CommandWhat it does
hanzo books scan bookPosts a reviewed scanned bill to the ledger.
hanzo books scan createScan a receipt or invoice into a proposed voucher

Vendors

CommandWhat it does
hanzo books vendors createCreates or updates one vendor in the org's vendor book, keyed by its canonical name — writing a canonical name that already exists REPLACES that row's aliases and default category.
hanzo books vendors getReturns the org's vendor book: each canonical vendor, the alias spellings a receipt may print it under, and the expense account new bills from it default to.
Was this page useful?