# x402 explained: how AI agents pay for things over HTTP, and whether your store should care

> Canonical URL: https://cartforagents.com/guides/x402 (cite this, not the .md file)
> Published: 2026-11-07 · Updated: 2026-11-07 · Facts checked: 2026-11-07
> Publisher: Cart for Agents · No paid placement
> Data version: https://cartforagents.com/guides/x402.json

**Short answer:** x402 is an open payment standard that lets an app or AI agent pay for something inside a normal web request: the server answers with HTTP status 402 Payment Required and a price, the agent pays and asks again, and the server hands over what was requested. Coinbase launched it in May 2025, and since July 2026 the x402 Foundation at the Linux Foundation runs it, with 40 members including Cloudflare, Stripe, Visa, Mastercard, Google and Shopify. Today it's used mostly for small pay-per-use payments in stablecoins, like API calls, data and content, not for a normal checkout of physical goods.

**Our take:** If you sell physical products, x402 doesn't change anything you do this year: ChatGPT and Shopify's agent checkout send buyers to your own checkout. It's worth real attention only if you sell paid digital access or want to charge the bots that crawl you.

x402 is a way to pay for something in the middle of an ordinary web request. A server says "that'll be one cent", the app or AI agent pays, and the server hands over what was asked for. No account, no card form, no checkout page.

The name comes from HTTP status code 402, "Payment Required". The [x402 docs](https://docs.x402.org/core-concepts/http-402) point out it has been reserved "for future use" for decades, a payment system nobody built. x402 is that system. Today it runs mostly on stablecoins like USDC, a digital dollar, and it's built for tiny, frequent payments that cards handle badly.

For a store selling physical products, the honest answer up front: it doesn't change anything you do this year. Here's how it works, who's behind it, and the cases where it might matter to you.

## How does an x402 payment work?

It's four steps, all inside normal web traffic. Say a research site sells a report on quiet humidifiers for $0.50, and an AI agent wants it.

1. **The agent asks for the page.** A plain request, like any browser makes.
2. **The site answers "402 Payment Required".** Along with it comes a `PAYMENT-REQUIRED` header with the price, the accepted networks and the address to pay.
3. **The agent pays and asks again.** It signs a payment and resends the same request with a `PAYMENT-SIGNATURE` header.
4. **The site checks, collects and delivers.** It verifies the payment, settles it, and sends the report with a `200 OK` and a `PAYMENT-RESPONSE` receipt header.

On the wire, it looks like this:

```http
GET /reports/quiet-humidifiers HTTP/1.1
Host: research.example.com

HTTP/1.1 402 Payment Required
PAYMENT-REQUIRED: eyJ...   (Base64 JSON: price, network, pay-to address)

GET /reports/quiet-humidifiers HTTP/1.1
Host: research.example.com
PAYMENT-SIGNATURE: eyJ...  (Base64 JSON: the agent's signed payment)

HTTP/1.1 200 OK
PAYMENT-RESPONSE: eyJ...   (Base64 JSON: settlement receipt)
```

Those three header names come straight from the [x402 docs](https://docs.x402.org/core-concepts/http-402) for version 2 of the protocol. Each one carries a small block of JSON, encoded so it travels safely in a header.

The middle step usually involves a **facilitator**, a service that checks the signature and puts the payment on the blockchain so the seller doesn't have to. Cloudflare's docs say the facilitator [doesn't hold the money](https://developers.cloudflare.com/agents/tools/payments/x402/); it just verifies and submits the buyer's pre-signed payment.

## What kinds of payment can it do?

The [x402 spec](https://github.com/x402-foundation/x402) has three ways to charge, which it calls schemes:

- **Exact:** a fixed price, like $1 to read an article.
- **Up to:** the buyer approves a maximum and pays only for what was used, like an AI service billing by the amount of text it writes.
- **Batch settlement:** lots of tiny charges added up and settled together, so a busy seller doesn't pay network costs on every one.

## Who's behind x402: Coinbase, Cloudflare, Stripe and the x402 Foundation

x402 started at Coinbase and has since been handed to a neutral foundation. The dates matter, so here they are in one place.

| Date | What happened |
|---|---|
| May 6, 2025 | Coinbase [launches x402](https://www.coinbase.com/developer-platform/discover/launches/x402) for stablecoin payments over HTTP |
| Sept 23, 2025 | Cloudflare and Coinbase [announce plans](https://blog.cloudflare.com/x402/) for an x402 Foundation; Cloudflare adds x402 to its Agents SDK |
| Apr 2026 | The Linux Foundation announces its intent to launch the x402 Foundation |
| July 14, 2026 | The x402 Foundation is [fully operational](https://x402.org/linux-foundation-announces-operational-launch-of-x402-foundation-to-standardize-internet-native-payments-for-ai-agents-and-applications/), Coinbase completes its handover, 40 members |
| Oct 1, 2026 | The Linux Foundation [appoints an executive director](https://x402.org/announcements/) for the x402 Foundation |

**The x402 Foundation.** Premier members include Adyen, AWS, American Express, Circle, Cloudflare, Coinbase, Fiserv, Google, Mastercard, Shopify, Stripe and Visa. The code now lives under the foundation's own GitHub, and Coinbase's old repo is a development copy.

**Coinbase x402.** Coinbase still runs the best-known facilitator, the CDP Facilitator. Coinbase says the service has processed [more than 100 million transactions](https://docs.cdp.coinbase.com/x402/seller/facilitator) worth $28 million across Base and Solana.

That works out to roughly 28 cents per transaction on average, so these are small payments. And the x402 FAQ is clear that you [don't need any Coinbase product](https://docs.x402.org/faq) to use x402.

**Cloudflare x402.** Cloudflare's [developer docs](https://developers.cloudflare.com/agents/tools/payments/x402/) show how to charge for web pages, files and individual MCP tool calls, and how to let an agent pay automatically. Cloudflare has also suggested an x402 payment type for its pay per crawl beta, where AI crawlers pay sites for access.

**Stripe x402.** Stripe [supports x402](https://docs.stripe.com/payments/machine/x402) as an early "Frontier" feature. Your server answers with a 402 that includes a Stripe deposit address, and once the payment settles, Stripe records it like any other payment in your dashboard.

Stablecoin payments are open to US businesses in every state except New York. To take cards alongside stablecoins, Stripe points you to a separate protocol, the Machine Payments Protocol.

## What does x402 cost?

The protocol itself is free. The x402 site says there are [zero protocol fees](https://x402.org/) for buyer and seller; you pay the blockchain's network fee, which is usually tiny.

Facilitators can charge on top. Coinbase's CDP Facilitator, for example, gives [1,000 transactions free each month](https://docs.cdp.coinbase.com/x402/seller/facilitator), then charges $0.001 each, and checking a payment is free. Other facilitators and payment providers set their own prices, so check yours.

Compare that with a card payment's percentage fee plus a fixed charge, and you see why x402 exists: a one-cent sale is impossible on cards and easy here.

## What is x402 used for today?

Mostly machine-to-machine payments for digital things:

- **Paid APIs and data.** An agent pays per call instead of signing up, prepaying credits and managing an API key.
- **Content.** Pay per article or per report.
- **AI tools.** Charging per MCP tool call, which Cloudflare's SDK supports.
- **Crawling.** Cloudflare's proposal for crawlers that pay sites for access.

What you won't find yet is x402 as the way shoppers pay for a sweater through ChatGPT or Gemini.

## Should an online store care about x402?

For physical products, not yet. When a shopper finds your product in ChatGPT, OpenAI says the purchase [finishes on your own site](https://chatgpt.com/merchants/). Shopify's agent checkout tools also refer buyers to your storefront to pay, with direct completion reserved for trusted agents.

The Shopify agent docs we read don't mention x402. Shopify is a premier member of the x402 Foundation, but membership isn't a merchant feature.

There are three cases where it's worth a closer look:

- **You sell digital access.** Paid data, reports, downloads or an API. x402 lets agents pay you per use without an account.
- **AI crawlers hit your content hard.** Pay-per-crawl models are being built on it.
- **You're planning for agents that buy on their own.** Google's AP2 payment protocol includes [x402 sample flows](https://ap2-protocol.org/) for agents that pay without a person present. If agent payments go that way, x402 is one of the rails.

## x402 vs ACP, UCP and AP2

They do different jobs. ACP and UCP handle the shopping conversation: catalog, cart and checkout. AP2 proves the shopper authorized a payment, and x402 actually moves small payments inside web requests.

Our [protocols comparison](/guides/agentic-commerce-protocols) puts all eight side by side.

## How we checked

On November 7, 2026 we read the x402 Foundation site and docs, the spec on GitHub, Coinbase's launch post and facilitator pricing, Cloudflare's blog and docs, and Stripe's x402 page. We checked OpenAI's merchant page and Shopify's agent docs for any mention of x402. We didn't run a paid transaction.

## Your next step

If you sell physical products, leave x402 on your watch list and spend this week on the product facts every AI assistant reads; our [one-product audit](/guides/ai-visibility-audit) shows how. If you sell paid digital access, ask your payment provider whether they support x402 today, and what they charge.

## Claims and sources

1. The x402 docs describe x402 as an open-source protocol that turns the HTTP 402 Payment Required status code into an onchain payment layer for APIs, websites and autonomous agents, and say Coinbase Developer Platform created the standard but no Coinbase products are needed to use it. Source: [x402 Docs: FAQ](https://docs.x402.org/faq) (2026-11-07; documented).
2. x402 V2 uses three headers: PAYMENT-REQUIRED (server to client), PAYMENT-SIGNATURE (client to server) and PAYMENT-RESPONSE (server to client), each carrying Base64-encoded JSON. Source: [x402 Docs: HTTP 402](https://docs.x402.org/core-concepts/http-402) (2026-11-07; documented).
3. The x402 README describes the flow: the server returns 402 with payment requirements, the client sends a signed payment payload, the server verifies it locally or through a facilitator, settles the payment, and returns 200 OK with a PAYMENT-RESPONSE header. Source: [x402 on GitHub: README, Typical x402 flow](https://github.com/x402-foundation/x402) (2026-11-07; documented).
4. The x402 README lists three payment schemes: exact (a fixed amount), upto (authorize a maximum, charge actual usage) and batch-settlement (many small charges settled together on EVM networks). Source: [x402 on GitHub: README, Schemes](https://github.com/x402-foundation/x402) (2026-11-07; documented).
5. The x402 site says x402 has zero protocol fees for customer and merchant, who pay only nominal payment network fees. Source: [x402 Foundation home page](https://x402.org/) (2026-11-07; documented).
6. Coinbase announced x402 on May 6, 2025 as a payment protocol for instant stablecoin payments directly over HTTP. Source: [Coinbase: Introducing x402](https://www.coinbase.com/developer-platform/discover/launches/x402) (2026-11-07; documented).
7. On September 23, 2025 Cloudflare said it was partnering with Coinbase to create the x402 Foundation, shipping x402 support in its Agents SDK and MCP integrations, and proposing a deferred payment scheme for cases like its pay per crawl beta. Source: [Cloudflare blog: Launching the x402 Foundation with Coinbase](https://blog.cloudflare.com/x402/) (2026-11-07; documented).
8. On July 14, 2026 the Linux Foundation announced the operational launch of the x402 Foundation and the completed contribution of the protocol by Coinbase, with 40 member organizations; premier members include Adyen, AWS, American Express, Circle, Cloudflare, Coinbase, Fiserv, Google, Mastercard, Shopify, Stripe and Visa. Source: [x402: Linux Foundation announces operational launch of x402 Foundation](https://x402.org/linux-foundation-announces-operational-launch-of-x402-foundation-to-standardize-internet-native-payments-for-ai-agents-and-applications/) (2026-11-07; documented).
9. The x402 FAQ lists Base and Solana mainnets as supported, with any ERC-20 token on Base and any SPL or Token-2022 token on Solana, and says gas is paid onchain while many facilitators charge zero facilitator fees. Source: [x402 Docs: FAQ, Assets, Networks and Fees](https://docs.x402.org/faq) (2026-11-07; documented).
10. Coinbase's CDP Facilitator gives 1,000 onchain facilitator transactions free each month, then charges $0.001 per onchain transaction; payment verification is free. Source: [Coinbase Developer Docs: CDP Facilitator, Pricing](https://docs.cdp.coinbase.com/x402/seller/facilitator) (2026-11-07; documented).
11. Coinbase says its CDP Facilitator has processed more than 100 million transactions and $28 million in payment volume across Base and Solana. Source: [Coinbase Developer Docs: CDP Facilitator](https://docs.cdp.coinbase.com/x402/seller/facilitator) (2026-11-07; vendor-claim).
12. Dividing Coinbase's stated $28 million by 100 million transactions gives an average of about 28 cents per transaction. Source: [Coinbase Developer Docs: CDP Facilitator](https://docs.cdp.coinbase.com/x402/seller/facilitator) (2026-11-07; inferred).
13. Cloudflare's x402 docs say clients need only a crypto wallet, that the facilitator does not hold funds, that the public facilitator at x402.org/facilitator is operated by Coinbase, and that developers can charge per MCP tool call with paidTool. Source: [Cloudflare Agents docs: x402](https://developers.cloudflare.com/agents/tools/payments/x402/) (2026-11-07; documented).
14. Stripe's x402 docs, labeled Frontier, say the server returns a 402 with a Stripe deposit address, Stripe records the settled payment as a PaymentIntent, stablecoin payments are available to US businesses in every state except New York, and card payments need the Machine Payments Protocol (MPP). Source: [Stripe Docs: x402](https://docs.stripe.com/payments/machine/x402) (2026-11-07; documented).
15. The AP2 site lists sample flows that use x402 for both human-present and human-not-present agent payments. Source: [AP2: Agent Payments Protocol documentation](https://ap2-protocol.org/) (2026-11-07; documented).
16. The coinbase/x402 README says the repo moved under the x402 Foundation (github.com/x402-foundation/x402) and that Coinbase's repo is now a development fork. Source: [coinbase/x402 on GitHub: README](https://github.com/coinbase/x402) (2026-11-07; documented).
17. The x402 Foundation's announcements page lists, on October 1, 2026, the Linux Foundation appointing an executive director of the x402 Foundation. Source: [x402 Foundation: announcements](https://x402.org/announcements/) (2026-11-07; documented).
18. Shopify's agent docs say agents convert a cart into a checkout and refer buyers to the merchant storefront to complete payment, and that trusted agents can complete checkouts directly. Source: [Shopify: Build commerce agents with UCP](https://shopify.dev/docs/agents) (2026-11-07; documented).
19. OpenAI's merchant page says purchases found in ChatGPT are completed on merchant-owned websites or apps. Source: [OpenAI: ChatGPT merchants](https://chatgpt.com/merchants/) (2026-11-07; documented).

## Limitations

- We read the x402 spec, docs and vendor pages on November 7, 2026; we didn't run a paid x402 transaction ourselves.
- Fees depend on the network, the facilitator and the payment provider. The only price list we quote is Coinbase's.
- Foundation membership shows support for the standard. It doesn't mean every member offers x402 to merchants today.
- Stablecoins and crypto payments come with tax, accounting and legal questions that depend on where you sell. This page doesn't cover them.
