Verifiable Receipts for
Paid API Calls
Every 200 OK comes with a cryptographic receipt.
Pay with x402 (Base/USDC) → Get proof of what you bought, from whom, under which policy.
How It Works
Discovery
Agent reads /.well-known/peac.txt to learn payment options, receipt policy, and public keys
HTTP 402
API returns 402 Payment Required with session_id and amount (e.g., $0.05 USDC)
Pay via x402
Agent pays on Base with USDC, gets proof_id from facilitator
Get Receipt
200 OK with PEAC-Receipt header: cryptographic proof of purchase, verifiable forever
Agent-to-Agent Commerce
Autonomous agents can discover, purchase, and verify digital goods using machine-readable APIs.
Stateless Checkout Endpoint
POST /api/shop/checkout-direct
No cart state required. Send items array, get 402 → pay via x402 → retry with proof → receive cryptographic receipt.
Works with Coinbase Payments MCP
NEWMCP pays. PEAC proves. Coinbase Payments MCP equips agents with wallets and x402 payment capability. Our API issues cryptographic receipts that prove what agents bought - portable, policy-bound, and independently verifiable.
Install Payments MCP
Give your agents an embedded wallet, USDC onramp, and automatic x402 payment capability. Works with Claude Desktop, Gemini CLI, and any MCP-compatible client.
Integration Flow
- 1.Agent calls
/api/shop/checkout-direct - 2.Receives 402 Payment Required
- 3.MCP pays automatically via x402 (USDC on Base)
- 4.Agent retries with proof
- 5.Receives 200 OK + PEAC-Receipt (EdDSA-signed JWS)
- 6.Receipt proves: payment made, content delivered, policy bound
Try It in Claude Desktop
> "Buy 1 tea from https://x402.peacprotocol.org/api/shop/checkout-direct and show me the receipt"
With Payments MCP installed, Claude will automatically discover payment requirements, pay via x402, and receive the cryptographic PEAC-Receipt - all autonomously.
Why PEAC Receipts?
Portable Proofs
Receipts are self-contained JWS tokens. Verify anywhere with the public key.
Policy-Bound
Every receipt embeds the AIPREF snapshot: license terms, retention, refund policy.
Content Integrity
Response body SHA256 hash proves you got exactly what you paid for.
Rail-Agnostic
x402 today. Same receipt format works with any future payment rail.
Try It Now
Complete a real checkout with $0.05 USDC demo payment,
get a cryptographic receipt, verify it instantly.