Guide
How to accept x402 for an API
In short
Add x402 middleware that returns HTTP 402 with your price and accepted networks, verify and settle through a facilitator, and return the resource on retry. Payments settle in stablecoins with no chargebacks; Coinbase charges $0.001 per onchain transaction after 1,000 a month; Stripe charges 1.5 percent.
What the sources say
- A server responds with HTTP 402 to a request without payment, prompting the client to pay and retry; x402 charges zero protocol fees. x402.org, read 4 Nov 2026.
- The CDP facilitator verifies and settles payments and screens addresses against OFAC and KYT lists. docs.cdp.coinbase.com, read 4 Nov 2026.
- Coinbase facilitator: first 1,000 onchain transactions a month free, then $0.001 each. docs.cdp.coinbase.com, read 4 Nov 2026.
- Stripe accepts x402 as USDC on Base, excluding New York businesses, at 1.5 percent for stablecoin payments. docs.stripe.com, read 4 Nov 2026.
- The spec defines exact, upto, auth-capture and batch-settlement schemes; Lightning exact was added 23 Sep 2026. github.com, read 4 Nov 2026.
Profiles named in this guide
Read next
Sources
- x402.org, read 4 Nov 2026
- docs.cdp.coinbase.com/x402/core-concepts/facilitator, read 4 Nov 2026
- docs.stripe.com/payments/machine.md, read 4 Nov 2026
- x402 exact scheme on Lightning (lnbtc), read 4 Nov 2026
Last reviewed