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 has an agent endpoint that answers 402 with every asset the invoice accepts, and routes whichever one the agent picks into the merchant’s settlement stablecoin. The trade-offs are real:
| Gain | Cost | |
|---|---|---|
| Any accepted token | Agents holding other assets can pay | The buyer pays network gas for an ordinary transfer |
| An invoice per payment | Same webhooks and dashboard as human payments | Not suited to sub-cent, per-request billing |
| A deposit address | No signature format to support | Off-the-shelf x402 clients need code for the intents-deposit scheme |
If you charge per API call, run standard x402 with a facilitator. If you sell goods, plans or credit packs and want agents to be able to pay, the agent endpoint costs nothing extra: it is on every invoice, at the same 0.4% rate. Selling credit packs is often the best of both, 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 ID. The agent:
- Calls
POST /v0/checkout/{id}/agentwith no body and readsaccepts[]. - Calls it again with an asset,
mode: "transfer"and arefundToaddress on that asset’s chain. - Sends exactly
display.amountBaseUnitstodisplay.address, withdisplay.memoif one is set. - Polls the attempt until
invoiceStatusispaid.
The amount in the first 402 is indicative; the binding amount comes back in step 2. The agent docs have the full request and response, and the overview of AI agent payments compares x402 with the other agent rails.