Hanzo AI

List settlements

Lists the caller's x402 receipts, newest first: as payer, what its ledger paid; as payee, what it was paid — each settled payment with what it bought, both parties, the exact amount and when.

GET /v1/x402/settlements

Addresshttps://api.hanzo.ai/v1/x402/settlements
MethodGET
Operationget_x402_settlements
AuthAuthorization: Bearer $HANZO_API_KEY

Lists the caller's x402 receipts, newest first: as payer, what its ledger paid; as payee, what it was paid — each settled payment with what it bought, both parties, the exact amount and when. A payer is the org whose ledger is debited, which for a SuperAdmin inspecting another org is still its own; a payee is the caller's own org. An unsettled claim is not a receipt and is never listed.

Request

2 fields.

FieldInTypeRequiredDescription
rolequerystring—Role is payer — what the caller's org paid — or payee — what it was paid.
yearqueryinteger—Year keeps the calendar year (UTC) the payments settled in.

Response

StatusBodyMeaning
200x402.settlementListok
defaultproblem-detailsrefused

200 body — 14 fields.

FieldInTypeAlwaysDescription
settlementsbodyx402.Receipt[]—Settlements is at most 1000 receipts.
settlements[].amountbodystring—Amount is what actually moved, as an exact 18-decimal-place USD string.
settlements[].categorybodystring—Category is what the payment was for — service, goods, transfer or royalty — as the price table said it: a tool call is a service, a job is what its parties agreed.
settlements[].frombodystring—From is the payer's EVM address: the account that signed the EIP-3009 authorization, recovered from the signature rather than taken on trust.
settlements[].idbodystring—ID is the settle-once key: "x402_" + keccak(from|nonce) in hex.
settlements[].networkbodystring—Network is the CAIP-2 identifier the payment was settled under, e.g. "eip155:36963".
settlements[].noncebodystring—Nonce is the client-chosen nonce from the authorization, hex — up to 32 bytes, left-padded to the contract's bytes32.
settlements[].payeebodystring—Payee is the recipient's EVM address — the payTo the challenge advertised and the authorization named.
settlements[].payeeOrgbodystring—PayeeOrg is the tenant that owns the recipient wallet, resolved at settlement.
settlements[].payerbodystring—Payer is the payer ORG — the tenant whose ledger was debited — and not an address.
settlements[].resourcebodystring—Resource is what was paid for, in the same spelling the price table and the challenge used: the request path for a priced route, "tool:<id>" for a priced tool.
settlements[].settledAtbodyinteger (int64)—SettledAt is when this settlement was CLAIMED, in unix seconds — the moment the authorization was accepted, which is also the moment the time window it carried stopped applying.
settlements[].settledViabodystring—SettledVia is which rail moved the money: "ledger", the live default, or "chain" when the authorization is broadcast.
settlements[].txHashbodystring—TxHash is the chain transaction hash, present only for a "chain" settlement.

Failure carries the platform error shape — see Errors.

Examples

hanzo has no subcommand for this operation — the CLI serves only what cloud's live route table confirms. Use HTTP or an SDK.


x402 API · All Hanzo APIs · Interactive reference

How is this guide?

On this page