Hanzo
OpenapiX402

Settlement reads one x402 payment receipt by id.

Settlement reads one x402 payment receipt by id.

GET /v1/x402/settlements/{id}

Addresshttps://api.hanzo.ai/v1/x402/settlements/{id}
MethodGET
Operationget_x402_settlements_by_id
AuthAuthorization: Bearer $HANZO_API_KEY

Settlement reads one x402 payment receipt by id.

It is scoped to the caller's PAYER org — the ledger that was debited — so one tenant can never read another's settlement, and an id that exists but belongs to somebody else is a 404 exactly like one that does not exist. A caller with no billable identity is refused outright.

Request

1 field.

FieldInTypeRequiredDescription
idpathstringyesID is the settlement id from the URL — the deterministic keccak(from|nonce) key an x402 receipt is issued under (the id field of a Receipt, and the…

Response

StatusBodyMeaning
200Receiptok

200 body — 12 fields.

FieldInTypeAlwaysDescription
amountbodystringAmount is what actually moved, as an exact 18-decimal-place USD string.
frombodystringFrom is the payer's EVM address: the account that signed the EIP-3009 authorization, recovered from the signature rather than taken on trust.
idbodystringID is the settle-once key: "x402_" + keccak(from|nonce) in hex.
networkbodystringNetwork is the CAIP-2 identifier the payment was settled under, e.g. "eip155:36963".
noncebodystringNonce is the client-chosen nonce from the authorization, hex — up to 32 bytes, left-padded to the contract's bytes32.
payeebodystringPayee is the recipient's EVM address — the payTo the challenge advertised and the authorization named.
payeeOrgbodystringPayeeOrg is the tenant that owns the recipient wallet, resolved at settlement.
payerbodystringPayer is the payer ORG — the tenant whose ledger was debited — and not an address.
resourcebodystringResource 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.
settledAtbodyintegerSettledAt 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…
settledViabodystringSettledVia is which rail moved the money: "ledger", the live default, or "chain" when the authorization is broadcast.
txHashbodystringTxHash is the chain transaction hash, present only for a "chain" settlement.

Failure carries the platform error shape — see Errors.

Examples

hanzo x402 settlements get <id>

x402 API · All Hanzo APIs · Interactive reference

How is this guide?

On this page