Job
You want a caller to try the service, see the price, pay when ready, and receive a receipt. The caller may not know what x402 is. Start with the outcome:Prerequisites
- A service endpoint with one free demo or preview mode.
- A paid endpoint that returns HTTP
402before payment. - Exact network, asset, amount, and recipient address for the paid call.
- Wallet/payment implementation only after the preview and unpaid
402contract are working.
Verified example
Social Intel API exposes a paid search endpoint and a free demo path. The demo proves the result shape before a caller sees the x402 payment challenge. Free direct demo:402 with payment requirements. The verified response included PAYMENT-REQUIRED, accepted Base USDC and Solana USDC, amount 500000 base units, and a payTo address. The free demo and the paid endpoint should use the same input shape, otherwise the demo does not reduce payment risk.
Expected unpaid signal: