Hanzo AI

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…
hanzo books exportReturns the complete financial package for the caller's org over (from, to]: the trial balance, the P&L, the balance…
hanzo books glListGL returns the org's most recent GL Entry rows, newest first.
hanzo books metricsMetrics returns the org's deterministic SaaS-metrics snapshot over an optional (from, to] window — MRR, ARR, revenue,…
hanzo books pnlReturns the org's accrual-basis Profit & Loss over an optional (from, to] window of RFC3339 posting times: recognized…
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…
hanzo books syncSync ingests the caller's OWN org from commerce into BOTH ledgers (live and sandbox) and reports how many new vouchers…
hanzo books transactionsReturns the org's booked ledger as a single-line register, newest first: one row per voucher, with its date,…
hanzo books trialReturns the org's trial balance over an optional [from, to] window of RFC3339 posting times, including the…

bank

CommandWhat it does
hanzo books bank exchangeFinish connecting a bank account (not yet available)
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…
hanzo books bank tokenBegin connecting a bank account (not yet available)
hanzo books bank transactionsReturns the org's normalized bank transactions, newest first — every row the import and connector paths have ingested,…
hanzo books bank unreconciledReturns the org's unmatched bank inflows and their open clarifying questions — the queue a human answers so an…

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…

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…
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…
hanzo books vendors getReturns the org's vendor book: each canonical vendor, the alias spellings a receipt may print it under, and the expense…

How is this guide?

On this page