# SpendPreflight USDC Receipt Verification

> SpendPreflight USDC Receipt Verification is a paid API for AI agents from api.spendpreflight.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-11-21).

Verifies a native Base USDC transfer by transaction hash or pay-to address/amount/date range and returns a signed receipt with OFAC flags, confirmation count, and printable HTML.

## Facts

- Endpoint: POST https://api.spendpreflight.com/v1/books/receipt?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-21
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/spendpreflight-usdc-receipt-verification-9c739f41
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_UsFTV6eeLvwaXpBlqM-_Y

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 spendpreflight-usdc-receipt-verification-9c739f41 -d '<json body>'
```

Example prompt: Can you verify that the USDC payment with transaction hash 0xabc123...def456 on Base actually went through and check if there are any OFAC flags on it? I need a signed receipt I can print.

## When to prefer this

Use this endpoint when you need cryptographic assurance that a specific native Base USDC transfer occurred, especially in agentic payment workflows where you must confirm receipt before taking an action. Prefer it over generic blockchain explorers when you also need OFAC/sanctions screening, a signed observation for auditability, or a human-readable printable HTML receipt. It is purpose-built for AI agents operating x402 payment flows on Base.

## Known failure modes

- Ambiguous match — multiple transfers match the pay_to/amount/date range criteria; call fails with no charge
- Transaction not found — tx_hash does not exist on Base or is not a USDC transfer
- Date range exceeds 90 days — start/end window too wide
- Amount format invalid — more than 6 decimal places provided
- OFAC flag present — transfer involves a sanctioned address; receipt still returned with flag
- Network/RPC timeout — Base node unavailable; transient error

## How this service works

SpendPreflight — trust and verification tools for stablecoin payments, built for AI agents and the people who run them. Verify a native Base USDC transfer by tx_hash (optional log_index), or exact pay_to + decimal amount + past start/end (max 90 days). Ambiguous matches fail without charge. Signed observation, OFAC flags, confirmations and printable HTML. Not invoice ownership or finality proof.

## Output

Returns a signed observation confirming whether the transfer was found and matched, OFAC/sanctions screening flags for the addresses involved, the number of on-chain confirmations, and a printable HTML receipt. Ambiguous matches (multiple transfers fitting the criteria) result in a failure response without charge.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "end": {
   "type": "string",
   "format": "date-time"
  },
  "start": {
   "type": "string",
   "format": "date-time"
  },
  "amount": {
   "type": "string",
   "description": "USDC decimal string, at most 6 decimal places"
  },
  "pay_to": {
   "type": "string",
   "pattern": "^0x[0-9a-fA-F]{40}$"
  },
  "tx_hash": {
   "type": "string",
   "pattern": "^0x[0-9a-fA-F]{64}$"
  },
  "log_index": {
   "type": "integer",
   "maximum": 1000000,
   "minimum": 0
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/spendpreflight-usdc-receipt-verification-9c739f41/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.spendpreflight.com](https://www.zero.xyz/host/api.spendpreflight.com/llms.txt)
