Answers where to send a wire top-up: the receiving bank details, with the…
Answers where to send a wire top-up: the receiving bank details, with the caller's own payment reference.
GET /v1/billing/wire
| Address | https://api.hanzo.ai/v1/billing/wire |
| Method | GET |
| Operation | get_billing_wire |
| Auth | Authorization: Bearer $HANZO_API_KEY |
Answers where to send a wire top-up: the receiving bank details, with the caller's own payment reference.
The account is the SERVING BRAND'S — resolved from the host the customer is paying on, so paying on one brand never shows another's bank — and the reference carries the caller's billing key, which is how an arriving wire names who it credits. Nothing mints here; a receipt is settled by an operator once the bank confirms it.
It is all-or-nothing: no configured account is 503 rather than a partial form, because nobody can wire to three fields out of five.
A named handler, not a closure, so zipdoc can lift this prose into the registry.
Request
GET /v1/billing/wire takes no parameters and no body — the credential is the whole request.
Response
| Status | Body | Meaning |
|---|---|---|
200 | WireInstructions | ok |
200 body — 9 fields.
| Field | In | Type | Always | Description |
|---|---|---|---|---|
accountName | body | string | — | |
accountNumber | body | string | — | |
bankAddress | body | string | — | |
bankName | body | string | — | |
iban | body | string | — | |
memo | body | string | — | |
reference | body | string | — | |
routingNumber | body | string | — | |
swiftCode | body | string | — |
Failure carries the platform error shape — see Errors.
Examples
hanzo billing wireimport { Configuration, BillingApi } from 'hanzoai';
const api = new BillingApi(new Configuration({ accessToken: process.env.HANZO_API_KEY }));
const { data } = await api.getBillingWire();from hanzoai.cloud import ApiClient, Configuration
from hanzoai.cloud.api import BillingApi
client = ApiClient(Configuration(access_token=os.environ["HANZO_API_KEY"]))
result = BillingApi(client).get_billing_wire()cfg := cloud.NewConfiguration()
cfg.AddDefaultHeader("Authorization", "Bearer "+os.Getenv("HANZO_API_KEY"))
client := cloud.NewAPIClient(cfg)
resp, _, err := client.BillingAPI.GetBillingWire(context.Background()).Execute()
if err != nil {
return err
}use hanzo_cloud::apis::{configuration::Configuration, billing_api};
let mut cfg = Configuration::new();
cfg.bearer_access_token = std::env::var("HANZO_API_KEY").ok();
let result = billing_api::get_billing_wire(&cfg, Default::default()).await?;import ai.hanzo.cloud.ApiClient;
import ai.hanzo.cloud.api.BillingApi;
ApiClient client = new ApiClient();
client.setRequestInterceptor(b -> b.header("Authorization", "Bearer " + System.getenv("HANZO_API_KEY")));
var result = new BillingApi(client).getBillingWire();curl https://api.hanzo.ai/v1/billing/wire \
-H "Authorization: Bearer $HANZO_API_KEY"Tool commerce, op get_billing_wire — POST the JSON-RPC envelope to https://api.hanzo.ai/v1/mcp.
curl -X POST https://api.hanzo.ai/v1/mcp \
-H "Authorization: Bearer $HANZO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "commerce",
"arguments": {
"op": "get_billing_wire",
"input": {}
}
}
}'How is this guide?