Hanzo AI

List economic

Returns, oldest first and paged, the payments the caller's org made or received in a year, with the ones a correction restates named and what either party disputes — for the org's admins.

GET /v1/event/economic

Addresshttps://api.hanzo.ai/v1/event/economic
MethodGET
Operationget_event_economic
AuthAuthorization: Bearer $HANZO_API_KEY

Returns, oldest first and paged, the payments the caller's org made or received in a year, with the ones a correction restates named and what either party disputes — for the org's admins.

Request

5 fields.

FieldInTypeRequiredDescription
yearqueryintegeryesYear is the calendar year to read, UTC.
counterpartyquerystring—Counterparty keeps only payments with this org on the other side.
railquerystring—Rail keeps only payments that moved on this rail.
cursorquerystring—Cursor continues from the next of the page before; empty starts the year.
limitqueryinteger—Limit is how many events to answer, default 100 and at most 1000.

Response

StatusBodyMeaning
200event.Economicsok
defaultproblem-detailsrefused

200 body — 28 fields.

FieldInTypeAlwaysDescription
disputesbodyevent.EconomicDispute[]—Disputes are what either party has disputed about the events in Rows.
disputes[].atbodyinteger (int64)—At is when the dispute was filed, unix seconds.
disputes[].bybodystring—By is the org that disputes it: one of the event's two parties.
disputes[].eventbodystring—Event is the id of the event disputed.
disputes[].reasonbodystring—Reason is what the party says is wrong.
nextbodystring—Next continues the read; empty on the last page.
rowsbodyevent.EconomicEvent[]—Rows are the events.
rows[].agentbodystring—Agent is the principal that acted for the buyer, as IAM names it.
rows[].atbodyinteger (int64)—At is when the payment was made, unix seconds, as the rail recorded it.
rows[].buyerbodystring—Buyer is the org that paid.
rows[].categorybodystring—Category is what the payment was for — service, goods, transfer, refund or royalty — as the rail recorded the parties agreeing it.
rows[].chainbodystring—Chain is the CAIP-2 network an on-chain payment moved on.
rows[].correctsbodystring—Corrects is the id of the event this one restates, when it is a correction.
rows[].currencybodystring—Currency is what the amounts are in: an ISO 4217 code or an asset symbol.
rows[].feebodystring—Fee is what the rail kept of Gross, an exact decimal in Currency.
rows[].fmvbodystring—FMV is Gross's fair market value in U.S. dollars when it was paid, an exact decimal.
rows[].grossbodystring—Gross is what the buyer paid, an exact decimal in Currency.
rows[].idbodystring—ID is the event's identity, derived from its rail and proof.
rows[].jurisdictionsbodystring[]—Jurisdictions are the ISO 3166 codes the payment is subject to, when the rail knows them.
rows[].parentbodystring—Parent is the agent that spawned Agent, when one did.
rows[].proofbodystring—Proof is the rail's own reference for the payment: a settlement id, a chain transaction hash or a processor reference.
rows[].railbodystring—Rail is how the money moved: x402, ledger, chain, ach, wire, card, network or other.
rows[].sellerbodystring—Seller is the org that was paid.
rows[].servicebodystring—Service is what was bought, in the rail's own words.
rows[].taxbodystring—Tax is the tax collected within Gross, an exact decimal in Currency.
rows[].txbodystring—Tx is the on-chain transaction hash of an on-chain payment.
rows[].vbodyinteger (int64)—V is the schema version the event was stated in.
supersededbodystring[]—Superseded are the ids in Rows that a correction restates.

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.


Event API · All Hanzo APIs · Interactive reference

How is this guide?

On this page