Hanzo
CLIBooks

Books

25 `hanzo` commands for Books, each calling one operation on api.hanzo.ai.

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

25 commands · API reference →

CommandCallsWhat it does
hanzo books accountsGET /v1/books/accountsReturns the org's chart of accounts — the seeded fixed chart every posting key in the ledger refers to.
hanzo books askPOST /v1/books/askAnswers a plain-language question about the caller's own books — "what is my MRR?", "how long is my runway?" — with…
hanzo books bank exchangePOST /v1/books/bank/exchangeFinish connecting a bank account (not yet available)
hanzo books bank importPOST /v1/books/bank/importImport a bank statement file into your books
hanzo books bank syncPOST /v1/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 tokenPOST /v1/books/bank/tokenBegin connecting a bank account (not yet available)
hanzo books bank transactionsGET /v1/books/bank/transactionsReturns the org's normalized bank transactions, newest first — every row the import and connector paths have ingested,…
hanzo books bank unreconciledGET /v1/books/bank/unreconciledReturns the org's unmatched bank inflows and their open clarifying questions — the queue a human answers so an…
hanzo books exportGET /v1/books/exportReturns the complete financial package for the caller's org over (from, to]: the trial balance, the P&L, the balance…
hanzo books glGET /v1/books/glListGL returns the org's most recent GL Entry rows, newest first.
hanzo books inbox getGET /v1/books/inboxReturns the org's open document queue — everything uploaded but not yet booked, newest first, each with its extracted…
hanzo books inbox createPOST /v1/books/inboxQueue a document for later scanning
hanzo books metricsGET /v1/books/metricsMetrics returns the org's deterministic SaaS-metrics snapshot over an optional (from, to] window — MRR, ARR, revenue,…
hanzo books pnlGET /v1/books/pnlReturns the org's accrual-basis Profit & Loss over an optional (from, to] window of RFC3339 posting times: recognized…
hanzo books positionGET /v1/books/positionReturns the org's Balance Sheet as of to (empty = all time), with the Assets == Liabilities + Equity equation proof.
hanzo books questionsGET /v1/books/questionsReturns the clarifying questions the caller's own recent GL raises — the unusual postings a founder should look at…
hanzo books rules getGET /v1/books/rulesReturns the org's auto-categorization rules, highest priority first.
hanzo books rules createPOST /v1/books/rulesCreates or updates one auto-categorization rule, keyed by its pattern — writing a pattern that already exists REPLACES…
hanzo books scan bookPOST /v1/books/scan/bookPosts a reviewed scanned bill to the ledger.
hanzo books scan createPOST /v1/books/scanScan a receipt or invoice into a proposed voucher
hanzo books syncPOST /v1/books/syncSync ingests the caller's OWN org from commerce into BOTH ledgers (live and sandbox) and reports how many new vouchers…
hanzo books transactionsGET /v1/books/transactionsReturns the org's booked ledger as a single-line register, newest first: one row per voucher, with its date,…
hanzo books trialGET /v1/books/trialReturns the org's trial balance over an optional [from, to] window of RFC3339 posting times, including the…
hanzo books vendors getGET /v1/books/vendorsReturns the org's vendor book: each canonical vendor, the alias spellings a receipt may print it under, and the expense…
hanzo books vendors createPOST /v1/books/vendorsCreates or updates one vendor in the org's vendor book, keyed by its canonical name — writing a canonical name that…

How is this guide?