Hanzo AI

Billing

The `hanzo billing` commands.

Also for this capability: API · CLI · MCP · SDKs

Your org's balance, what it has spent, and the cards it pays with.

API reference →

hanzo billing alerts list

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 billing balancePrepaid credit the caller's org can still spend
hanzo billing creditsLists the caller's credit grants — every one of them, spent and lapsed and voided included.
hanzo billing ledgerAnswers the org's own postings inside range=, each as a signed entry: a DEPOSIT CREDITS the wallet (positive, account…
hanzo billing modeMoves this org between sandbox money and real money.
hanzo billing payoutsAnswers the org's outbound payouts, newest first — amount, destination, status, and the failure reason where one…
hanzo billing plansThe plan catalog, priced with whatever offer is in force
hanzo billing settingsAnswers the PUBLIC half of this org's processor configuration — the ids a browser needs to tokenize a card, and the…
hanzo billing tierAnswers which tier the caller is on, what it allows, and what is left to spend.
hanzo billing transactionsAnswers one page of the caller's own ledger, newest first: what moved, how much, when, and what it was tagged with.
hanzo billing wireAnswers where to send a wire top-up: the receiving bank details, with the caller's own payment reference.

accounts

CommandWhat it does
hanzo billing accounts listAnswers the caller's billing accounts: the org itself, its currency, when it was opened, and the caller's own standing…
hanzo billing accounts members <id>Answers one billing account's roster.

alerts

CommandWhat it does
hanzo billing alerts authorizeAnswers whether one proposed spend fits inside this org's caps.
hanzo billing alerts createOpens a spend cap on the caller's own org.
hanzo billing alerts listLists this org's spend caps: the ceiling, its scope, whether it enforces, and how much of it has been spent this period.
hanzo billing alerts rm <id>Removes one of the caller's spend caps and answers 204.
hanzo billing alerts update <id>Changes one spend cap: raise or lower the ceiling, flip enforcement, retune the rate limit.

credit-balance

CommandWhat it does
hanzo billing credit-balance breakdownAnswers that same spendable credit split by grant tag, with the earliest expiry under each and the total across all of…
hanzo billing credit-balance getAnswers what the caller can spend right now, one entry per currency.

crypto

CommandWhat it does
hanzo billing crypto deposit createIssues a deposit address the caller can send crypto to, on the asset they ask for.
hanzo billing crypto deposit get <id>Reads one of the caller's own deposit intents back — pending, confirming, or succeeded.
hanzo billing crypto optionsAnswers which chains and tokens the crypto rail accepts — what an asset picker renders.

invoices

CommandWhat it does
hanzo billing invoices collect <id>Collect an issued invoice from credits, balance, then card
hanzo billing invoices createRaise a draft invoice against a customer
hanzo billing invoices get <id>Read one invoice
hanzo billing invoices issue <id>Issue a draft invoice, making it collectible
hanzo billing invoices listLists the caller's invoices, newest first, with the count beside them.
hanzo billing invoices pdf <id>Download one invoice as a PDF
hanzo billing invoices void <id>Void a draft or issued invoice

methods

CommandWhat it does
hanzo billing methods createSave a card or account for the caller
hanzo billing methods listCards and accounts on file for the caller
hanzo billing methods rm <id>Removes one card or account the caller has saved.

portal

CommandWhat it does
hanzo billing portal methods createSave a card or account for the caller
hanzo billing portal methods listCards and accounts on file for the caller
hanzo billing portal methods rm <id>DetachPortalMethod is DetachMethod at the address a hosted checkout addresses it by.

recharge

CommandWhat it does
hanzo billing recharge run-allSweeps every org's auto-recharge and answers what it did.

subscribe

CommandWhat it does
hanzo billing subscribe cardBuy a plan with a card

subscriptions

CommandWhat it does
hanzo billing subscriptions cancel <id>End a subscription
hanzo billing subscriptions listLists the plans the caller holds, with the count beside them.
hanzo billing subscriptions reactivate <id>Put a canceled subscription back on its plan

topup

CommandWhat it does
hanzo billing topup createCharges a card the caller already saved and credits the balance.
hanzo billing topup tokenCharges a single-use card token and credits the caller's balance.

usage

CommandWhat it does
hanzo billing usage accountsAnswers per-account totals for the linked provider accounts the gateway ROUTED this caller's traffic through —…
hanzo billing usage getEvery billed call the caller's org made, attributed to a product
hanzo billing usage rollupAnswers the caller's month: what their plan includes, what has been consumed against it, and the wallet beside it.

How is this guide?