Hanzo AI
OpenapiBilling

Create run all

Sweeps every org's auto-recharge and answers what it did. PLATFORM AUTHORITY ONLY.

POST /v1/billing/recharge/run-all

Addresshttps://api.hanzo.ai/v1/billing/recharge/run-all
MethodPOST
Operationpost_billing_recharge_run-all
AuthAuthorization: Bearer $HANZO_API_KEY

Sweeps every org's auto-recharge and answers what it did.

PLATFORM AUTHORITY ONLY. It charges saved cards across every tenant, so an org owner reaching it could sweep-charge the estate; a caller without it is refused before anything is charged.

The answer explains a sweep that charged nobody as readily as one that charged: it names how many orgs were considered and how many needed charging, with a row each.

Request

The document declares no body for POST /v1/billing/recharge/run-all. The handler is typed in cloud but its shape is not yet emitted, so the fields are not listed here — ask MCP's describe for post_billing_recharge_run-all, which answers from the running route.

Response

StatusBodyMeaning
200Rechargeok

200 body — 10 fields.

FieldInTypeAlwaysDescription
chargedbodyintegerCharged is how many of them were actually charged.
orgsbodyintegerOrgs is how many orgs the sweep considered — every org with auto-recharge armed, whether or not it needed charging.
resultsbodyRecharged[]Results is one row per org considered, so a sweep that charged nobody is still explainable.
results[].amountCentsbodyinteger
results[].balanceCentsbodyinteger
results[].chargedbodyboolean
results[].errorbodystring
results[].orgNamebodystring
results[].transactionIdbodystring
results[].userIdbodystring

Failure carries the platform error shape — see Errors.

Examples

hanzo billing recharge run-all

Billing API · All Hanzo APIs · Interactive reference

How is this guide?

On this page