# Agent402 Receipts — Settled Payment History

> Agent402 Receipts — Settled Payment History is a paid API for AI agents from agent402.tools, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-14).

Returns a paginated, wallet-keyed ledger of all settled x402 API payments made by the calling wallet, including item purchased, amount settled, quoted ceiling, settlement transaction, response hash, and on-chain attestation ID.

## Facts

- Endpoint: POST https://agent402.tools/api/receipts
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent402-receipts-settled-payment-history-ef429fc3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_MMPmKZSFvdhYn0MYbI93o

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability agent402-receipts-settled-payment-history-ef429fc3 -d '<json body>'
```

Example prompt: Pull my settled agent402 API receipts from September 1 to September 30, 2026 and give me the results as a CSV with up to 5000 rows so I can import them into my accounting system.

## When to prefer this

Use this endpoint when an AI agent or its operator needs a verifiable, wallet-gated ledger of all past x402 API payments — particularly for finance reconciliation, expense auditing, on-chain proof retrieval, or automated subledger import. It is the only endpoint that returns per-call settlement proofs (transaction hash + SHA-256 + attestation UID) tied to a specific paying wallet without requiring an account login or support request.

## Known failure modes

- Payment not provided or invalid EIP-3009 USDC payment — 402 response returned
- Date range yields no rows — empty rows array with total: 0
- limit out of range (must be 1–5000) — validation error
- format value not 'json' or 'csv' — validation error
- Wallet has no settled calls in window — returns empty result set, not an error
- Network congestion or settlement delay — recently settled calls may not yet appear

## How this service works

Your own settled calls in the shape a finance system posts: one row per payment with what was bought, the amount settled, the quoted ceiling where one applied, and the evidence - settlement transaction, sha256 of the bytes delivered, and the on-chain attestation id where one exists. Keyed to the wallet that pays for the call, so nobody can read another wallet's payables; no account, no export request, no support ticket. Requires an EIP-3009 payment (USDC on Base, Polygon, or Arbitrum).

## Output

A JSON or CSV document containing: the queried date window, total uncapped row count, a truncated flag, the paying wallet address, and one row per settled call with fields: item name, payment rail, wire protocol, network/chain, amount settled in USD, quoted ceiling in USD (if applicable), settlement timestamp, on-chain settlement transaction hash, optional EAS attestation UID, and SHA-256 hash of the bytes delivered.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "to": {
   "type": "string",
   "description": "ISO date or timestamp, inclusive. Default now."
  },
  "from": {
   "type": "string",
   "description": "ISO date or timestamp, inclusive. Default 90 days ago."
  },
  "limit": {
   "type": "number",
   "description": "Max rows per page, 1-5000 (default 500). `total` is the uncapped count for the window and `truncated` says when the page is short of it."
  },
  "format": {
   "type": "string",
   "description": "\"json\" (default) or \"csv\" - the flat form a subledger imports."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "to": "2026-09-11T00:00:00.000Z",
  "from": "2026-09-01T00:00:00.000Z",
  "note": "Every row's settlementTx is verifiable on the named chain without asking us.",
  "rows": [
   {
    "item": "v1-chat-metered",
    "rail": "usdc",
    "wire": "x402",
    "network": "solana",
    "amountUsd": 0.642466,
    "quotedUsd": 0.74,
    "settledAt": "2026-09-09T10:03:05.816Z",
    "settlementTx": "5Nk…",
    "attestationUid": null,
    "responseSha256": "9f86d0…"
   },
   {
    "item": "hash",
    "rail": "usdc",
    "wire": "x402",
    "network": "base",
    "amountUsd": 0.001,
    "quotedUsd": null,
    "settledAt": "2026-09-08T13:15:07.000Z",
    "settlementTx": "0x6563…",
    "attestationUid": "0x76e736…",
    "responseSha256": "2c26b4…"
   }
  ],
  "total": 2,
  "wallet": "0x902dcf34e53695bdea2ffb354b1a2e58bd598256",
  "currency": "USD",
  "returned": 2,
  "truncated": false
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent402-receipts-settled-payment-history-ef429fc3/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent402.tools](https://www.zero.xyz/host/agent402.tools/llms.txt)
