Hanzo
CLIBilling

Billing

43 `hanzo` commands for Billing, each calling one operation on api.hanzo.ai.

Package billing is your org's balance, what it has spent, and the cards it pays with.

43 commands · API reference →

CommandCallsWhat it does
hanzo billing accounts members <id>GET /v1/billing/accounts/{id}/membersAnswers one billing account's roster.
hanzo billing accounts listGET /v1/billing/accountsAnswers the caller's billing accounts: the org itself, its currency, when it was opened, and the caller's own standing…
hanzo billing alerts update <id>PATCH /v1/billing/alerts/{id}Changes one spend cap: raise or lower the ceiling, flip enforcement, retune the rate limit.
hanzo billing alerts rm <id>DELETE /v1/billing/alerts/{id}Remove one spend cap
hanzo billing alerts authorizeGET /v1/billing/alerts/authorizeAnswers whether one proposed spend fits inside this org's caps.
hanzo billing alerts listGET /v1/billing/alertsLists 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 createPOST /v1/billing/alertsOpens a spend cap on the caller's own org.
hanzo billing balanceGET /v1/billing/balancePrepaid credit the caller's org can still spend
hanzo billing credit-balance breakdownGET /v1/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 getGET /v1/billing/credit-balanceAnswers what the caller can spend right now, one entry per currency.
hanzo billing creditsGET /v1/billing/creditsLists the caller's credit grants — every one of them, spent and lapsed and voided included.
hanzo billing crypto deposit get <id>GET /v1/billing/crypto/deposit/{id}Reads one of the caller's own deposit intents back — pending, confirming, or succeeded.
hanzo billing crypto deposit createPOST /v1/billing/crypto/depositIssues a deposit address the caller can send crypto to, on the asset they ask for.
hanzo billing crypto optionsGET /v1/billing/crypto/optionsAnswers which chains and tokens the crypto rail accepts — what an asset picker renders.
hanzo billing invoices collect <id>POST /v1/billing/invoices/{id}/collectCollect an issued invoice from credits, balance, then card
hanzo billing invoices issue <id>POST /v1/billing/invoices/{id}/issueIssue a draft invoice, making it collectible
hanzo billing invoices pdf <id>GET /v1/billing/invoices/{id}/pdfDownload one invoice as a PDF
hanzo billing invoices void <id>POST /v1/billing/invoices/{id}/voidVoid a draft or issued invoice
hanzo billing invoices get <id>GET /v1/billing/invoices/{id}Read one invoice
hanzo billing invoices listGET /v1/billing/invoicesLists the caller's invoices, newest first, with the count beside them.
hanzo billing invoices createPOST /v1/billing/invoicesRaise a draft invoice against a customer
hanzo billing methods rm <id>DELETE /v1/billing/methods/{id}Remove one saved card or account
hanzo billing methods listGET /v1/billing/methodsCards and accounts on file for the caller
hanzo billing methods createPOST /v1/billing/methodsSave a card or account for the caller
hanzo billing modePOST /v1/billing/modeMoves this org between sandbox money and real money.
hanzo billing payoutsGET /v1/billing/payoutsAnswers the org's outbound payouts, newest first — amount, destination, status, and the failure reason where one…
hanzo billing plansGET /v1/billing/plansThe plan catalog, priced with whatever offer is in force
hanzo billing portal methods rm <id>DELETE /v1/billing/portal/methods/{id}Remove one saved card or account
hanzo billing portal methods listGET /v1/billing/portal/methodsCards and accounts on file for the caller
hanzo billing portal methods createPOST /v1/billing/portal/methodsSave a card or account for the caller
hanzo billing recharge run-allPOST /v1/billing/recharge/run-allRecharge every org that has fallen below its threshold
hanzo billing settingsGET /v1/billing/settingsAnswers the PUBLIC half of this org's processor configuration — the ids a browser needs to tokenize a card, and the…
hanzo billing subscribe cardPOST /v1/billing/subscribe/cardBuy a plan with a card
hanzo billing subscriptions cancel <id>POST /v1/billing/subscriptions/{id}/cancelEnd a subscription
hanzo billing subscriptions reactivate <id>POST /v1/billing/subscriptions/{id}/reactivatePut a canceled subscription back on its plan
hanzo billing subscriptions listGET /v1/billing/subscriptionsLists the plans the caller holds, with the count beside them.
hanzo billing tierGET /v1/billing/tierAnswers which tier the caller is on, what it allows, and what is left to spend.
hanzo billing topup tokenPOST /v1/billing/topup/tokenAdd funds with a single-use card token
hanzo billing topup createPOST /v1/billing/topupAdd funds with a card already on file
hanzo billing transactionsGET /v1/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 usage accountsGET /v1/billing/usage/accountsAnswers per-account totals for the linked provider accounts the gateway ROUTED this caller's traffic through —…
hanzo billing usage getGET /v1/billing/usageEvery billed call the caller's org made, attributed to a product
hanzo billing wireGET /v1/billing/wireAnswers where to send a wire top-up: the receiving bank details, with the caller's own payment reference.

How is this guide?