Why HTTP 402 came back
The HTTP specification has reserved status code 402, Payment Required, since the 1990s, without saying how a payment should work. Card payments never fitted it: they need a form, a human and a fee too large for a single request.
Stablecoins changed that. A program can sign a USDC payment in milliseconds, the network settles it in seconds, and the cost on a low-fee chain is a fraction of a cent. x402 is the convention that ties the two together: a server says “pay this much, to this address, in this asset”, and the client does it in the same HTTP conversation.
What x402 standardises:
| Part | What the spec defines |
|---|---|
| The ask | A 402 response with machine-readable payment requirements |
| The proof | A signed payment payload the client sends on retry |
| The check | Verify and settle APIs a facilitator exposes |
| The receipt | A settlement response the server returns with the resource |
| Networks | CAIP-2 identifiers, such as eip155:8453 for Base, in version 2 |
The headers, version 1 and version 2
Coinbase’s documentation describes the current version, x402 v2, as using three headers, each carrying base64-encoded JSON:
| Direction | Version 2 | Version 1 |
|---|---|---|
| Server to client, with the 402 | PAYMENT-REQUIRED |
Requirements in the response body |
| Client to server, on retry | PAYMENT-SIGNATURE |
X-PAYMENT |
| Server to client, with the resource | PAYMENT-RESPONSE |
X-PAYMENT-RESPONSE |
Many tutorials still show version 1. If you are writing a client, handle both; if you are writing a server, use the client library your facilitator recommends so the format stays current.
Schemes: exact, upto and batches
A scheme says how the amount is settled. Coinbase’s facilitator lists three:
exact: the price is known before the request runs. The buyer signs for exactly that amount.upto: the buyer authorises a ceiling, and the seller settles what the request actually cost. This suits metered work such as model inference, where the token count isn’t known in advance.batch-settlement: several payments settled together, EVM only.
On EVM chains the buyer usually signs an EIP-3009 authorisation (transferWithAuthorization), which lets the facilitator move the tokens and pay the gas. That is why an x402 buyer can hold only USDC and nothing else. Tokens without EIP-3009 use Permit2, which needs a one-time approval.
What x402 traffic looks like
x402 is used, but mostly for very small amounts, and the totals are smaller than the headline counts.
- About 5.1 million payments worth roughly $274,000 in October 2026, according to agenteconomy.to data reported by Fireblocks. That is about five cents a payment.
- More than 87% of payments in the 16 months to September 2026 were between a hundredth of a cent and ten cents, per Chainalysis, cited in the same report.
- About 45% of lifetime transactions were on Base. More than half of the lifetime total came from a token-minting loop in late 2025.
The limit merchants hit: one asset
Standard x402 asks the buyer to pay the exact asset the seller lists, usually USDC on one network. That is fine for agents built around a Coinbase or Solana wallet. It shuts out buyers who hold something else: USDT on Tron, ETH on Arbitrum, SOL.
Intents Checkout takes the other approach. Every invoice is an x402 resource with two kinds of entries in its 402:
| Entry | Who pays it | What happens |
|---|---|---|
exact, USDC on Base or Solana | Any x402 client | One round trip. If the merchant settles in that USDC it goes straight to them, with no fee; otherwise it goes to a one-time deposit address that converts it into the merchant’s asset, at 0.4% |
intents-deposit, every other accepted asset | Any agent that can send a transfer | The agent asks for a deposit address, sends the exact amount and polls until the invoice is paid |
The merchant gets the asset they chose either way, in their own wallet, with the same webhooks and dashboard as a payment from a person. A second payment on an invoice that’s already paid is flagged as a duplicate, never counted twice.
Live invoices take exact payments in USDC on Base and Solana. Test-mode invoices take them in testnet USDC on Base Sepolia, so you can try the whole flow without real money.
If you charge per API call rather than per invoice, Intents Paywall puts this in front of your own routes with Express, Hono or Next.js middleware, from $0.01 a call. Selling credit packs and metering against them also works, as our page on crypto micropayments explains.
Accepting payments from agents with Intents Checkout
There is nothing to enable. Create an invoice from the dashboard, a payment link or the checkout API, and hand the agent its payment link. The hosted page and store plugins also point agents at the invoice with a Link: …; rel="payment" header. Then the agent either:
- pays over x402:
GET /v0/checkout/{id}/agent, sign one of theexactentries and retry withPAYMENT-SIGNATURE. The answer is a receipt and aPAYMENT-RESPONSEheader; or - pays in another asset:
POSTthe same URL with an asset,mode: "transfer"and arefundToaddress, send exactlydisplay.amountBaseUnitstodisplay.address, and poll untilinvoiceStatusispaid.
An agent can read the invoice first, without paying, at /v0/checkout/{id}/invoice.json. The agent docs have the full request and response, the overview of AI agent payments compares x402 with the other agent rails, and Intents for AI agents covers the MCP server and the PayBox plugin.