Export Reconciled Financial Statement
x402_export_statementExport a double-entry reconciled enterprise financial statement covering Stripe credit top-ups, capability spends, automatic upstream refunds, delegate attribution, and a tamper-evident SHA-256 checksum (statement_sha256). Use this for accounting audits, reconciliation checks, and per-subagent spend reporting; do not use this for a lightweight live balance or active-key lookup (use x402_get_account). Free and read-only; requires a valid sbk_* spend key (delegated keys receive only rows attributed to their own delegate_id). Subject to 120 req/min/IP rate limiting.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "x402_export_statement"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end_date | No | UTC calendar date in ISO-8601 YYYY-MM-DD format (e.g. 2026-11-22). | |
| spend_key | No | Stripe-funded master or delegated subagent spend key (format: sbk_<43+ chars>). Optional when the caller supplies the x-atlas-spend-key HTTP header. | |
| start_date | No | UTC calendar date in ISO-8601 YYYY-MM-DD format (e.g. 2026-11-22). | |
| delegate_id | No | Unique delegated subagent key identifier returned by x402_issue_delegate_key or x402_get_account (format: sbd_<16 hex chars>, e.g. sbd_1122334455667788). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | True when the reconciled statement was generated. | |
| rows | No | Chronological ledger entries with USD amounts, routes, payment identifiers, and delegate attribution. | |
| schema | No | Statement schema identifier (atlas.x402.enterprise_statement.v1). | |
| row_count | No | Number of chronological ledger entries included in rows. | |
| account_id | No | ||
| reconciliation | No | ||
| statement_sha256 | No | Tamper-evident SHA-256 checksum of the statement payload. |