GET /admin/monetization/x402-earnings returns the per-merchant rollup of x402
settlement events captured by the platform — gross settled amount, settlement count,
and pagination. The endpoint reads X402SettlementLog.
This endpoint requires:
- JWT with
role = SUPER_ADMIN IpAllowlistGuard— caller IP must be in the operator allowlistGeoBlockGuard— caller geo must be permitted
403. Missing or invalid JWT returns 401.GET /admin/monetization/x402-earnings
Authentication
Obtain a SUPER_ADMIN JWT via
POST /merchant/admin/login — see
Authentication.
Query parameters
Example
Response — 200 OK
Fields
Errors
Notes
X402_ENABLEDgating. Until the platform flagX402_ENABLEDis set totrue,X402SettlementLogaccepts no writes and this endpoint always returnsrows: [],totalAmountUsdCents: 0,totalSettlements: 0. The endpoint itself is always reachable — the gate is at the write path, not the read path.- Fail-open semantics. If the underlying
X402SettlementLogaggregation throws, the endpoint returns the empty-state envelope (rows: [], totals0) with200 OKrather than propagating the error. Inspect server logs / Sentry for the underlying failure. - Currency. All monetary fields are USD cents, integer. x402 settles natively in USDC on Base; the read path converts at the settlement timestamp’s FX snapshot.
- Pagination.
totalis the number of merchant rows, not the number of settlements. A merchant with 50 settlements counts as1for pagination.
Related
- Platform Fee Summary — MRR / ARR / 30d / 365d rollup that includes x402 in
revenue30dUsdCents/revenue365dUsdCents. - Capital Markets Fees — companion fee-schedule preview.
- Set Merchant Acquisition Source — set the activation-source enum surfaced in the platform-fee-summary mix.