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 →
| Command | Calls | What it does |
|---|---|---|
hanzo billing accounts members <id> | GET /v1/billing/accounts/{id}/members | Answers one billing account's roster. |
hanzo billing accounts list | GET /v1/billing/accounts | Answers 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 authorize | GET /v1/billing/alerts/authorize | Answers whether one proposed spend fits inside this org's caps. |
hanzo billing alerts list | GET /v1/billing/alerts | Lists 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 create | POST /v1/billing/alerts | Opens a spend cap on the caller's own org. |
hanzo billing balance | GET /v1/billing/balance | Prepaid credit the caller's org can still spend |
hanzo billing credit-balance breakdown | GET /v1/billing/credit-balance/breakdown | Answers that same spendable credit split by grant tag, with the earliest expiry under each and the total across all of… |
hanzo billing credit-balance get | GET /v1/billing/credit-balance | Answers what the caller can spend right now, one entry per currency. |
hanzo billing credits | GET /v1/billing/credits | Lists 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 create | POST /v1/billing/crypto/deposit | Issues a deposit address the caller can send crypto to, on the asset they ask for. |
hanzo billing crypto options | GET /v1/billing/crypto/options | Answers which chains and tokens the crypto rail accepts — what an asset picker renders. |
hanzo billing invoices collect <id> | POST /v1/billing/invoices/{id}/collect | Collect an issued invoice from credits, balance, then card |
hanzo billing invoices issue <id> | POST /v1/billing/invoices/{id}/issue | Issue a draft invoice, making it collectible |
hanzo billing invoices pdf <id> | GET /v1/billing/invoices/{id}/pdf | Download one invoice as a PDF |
hanzo billing invoices void <id> | POST /v1/billing/invoices/{id}/void | Void a draft or issued invoice |
hanzo billing invoices get <id> | GET /v1/billing/invoices/{id} | Read one invoice |
hanzo billing invoices list | GET /v1/billing/invoices | Lists the caller's invoices, newest first, with the count beside them. |
hanzo billing invoices create | POST /v1/billing/invoices | Raise 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 list | GET /v1/billing/methods | Cards and accounts on file for the caller |
hanzo billing methods create | POST /v1/billing/methods | Save a card or account for the caller |
hanzo billing mode | POST /v1/billing/mode | Moves this org between sandbox money and real money. |
hanzo billing payouts | GET /v1/billing/payouts | Answers the org's outbound payouts, newest first — amount, destination, status, and the failure reason where one… |
hanzo billing plans | GET /v1/billing/plans | The 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 list | GET /v1/billing/portal/methods | Cards and accounts on file for the caller |
hanzo billing portal methods create | POST /v1/billing/portal/methods | Save a card or account for the caller |
hanzo billing recharge run-all | POST /v1/billing/recharge/run-all | Recharge every org that has fallen below its threshold |
hanzo billing settings | GET /v1/billing/settings | Answers the PUBLIC half of this org's processor configuration — the ids a browser needs to tokenize a card, and the… |
hanzo billing subscribe card | POST /v1/billing/subscribe/card | Buy a plan with a card |
hanzo billing subscriptions cancel <id> | POST /v1/billing/subscriptions/{id}/cancel | End a subscription |
hanzo billing subscriptions reactivate <id> | POST /v1/billing/subscriptions/{id}/reactivate | Put a canceled subscription back on its plan |
hanzo billing subscriptions list | GET /v1/billing/subscriptions | Lists the plans the caller holds, with the count beside them. |
hanzo billing tier | GET /v1/billing/tier | Answers which tier the caller is on, what it allows, and what is left to spend. |
hanzo billing topup token | POST /v1/billing/topup/token | Add funds with a single-use card token |
hanzo billing topup create | POST /v1/billing/topup | Add funds with a card already on file |
hanzo billing transactions | GET /v1/billing/transactions | Answers one page of the caller's own ledger, newest first: what moved, how much, when, and what it was tagged with. |
hanzo billing usage accounts | GET /v1/billing/usage/accounts | Answers per-account totals for the linked provider accounts the gateway ROUTED this caller's traffic through —… |
hanzo billing usage get | GET /v1/billing/usage | Every billed call the caller's org made, attributed to a product |
hanzo billing wire | GET /v1/billing/wire | Answers where to send a wire top-up: the receiving bank details, with the caller's own payment reference. |
How is this guide?