{
 "url": "https://agenticweb.wiki/compare/x402-vs-ap2/",
 "title": "x402 vs AP2: differences & adoption",
 "description": "x402 vs AP2: how these complementary agentic web specs pair together, wire differences, and adoption.",
 "markdown_url": "https://agenticweb.wiki/compare/x402-vs-ap2/index.md",
 "markdown": "# x402 vs Agent Payments Protocol (AP2)\n\n**Domain:** Payments & On-Chain Settlement · **Relationship:** User mandates · inline payment settlement\n\nAP2 and x402 stack across authorization and settlement: AP2 `v0.2` signs user Checkout Mandate and Payment Mandate SD-JWTs, whereas x402 settles inline requests via `PAYMENT-REQUIRED`, `PAYMENT-SIGNATURE`, and `POST /settle`. [4][17][22][27] Use AP2 to prove user consent in autonomous commerce, and pair or apply x402 (including via `a2a-x402`) for per-request onchain or facilitator settlement. [4][21][27][36]\n\n## Quick facts comparison\n\n| Field | x402 | Agent Payments Protocol (AP2) |\n| --- | --- | --- |\n| **Category** | [Pay](/category/pay/) | [Pay](/category/pay/) |\n| **Tier & lifecycle** | Flagship · Active | Flagship · Active |\n| **Track** | Foundation / Consortium Specification (`x402 a Series of LF Projects, LLC`, under Linux Foundation open governance). [12][14] | Industry body (FIDO Alliance). Google's docs say standardization of the specification continues in the Agentic Authentication Technical and Payments Technical Working Groups in FIDO. [28][31] |\n| **Originated by** | Coinbase (Erik Reppel, Nemil Dalal, Dan Kim; May 6, 2025); x402 Foundation co-founded with Cloudflare (September 23, 2025). [5][7] | Google (Stavan Parikh, VP/GM, Payments, and Rao Surapaneni, VP/GM, Business Applications Platform), announced September 16, 2025. The `google-agentic-commerce/AP2` repository was created 2025-05-30. [22][30] |\n| **Governed by** | x402 Foundation (Linux Foundation); Technical Steering Committee: Coinbase, Cloudflare, and Stripe; Executive Director: Michael Hursta. [11][12][13] | FIDO Alliance, after Google's donation on 2026-04-28. FIDO is developing agent-initiated commerce specifications in its Payments Technical Working Group, chaired by members from Mastercard and Visa. Google's docs say standardization continues in FIDO's Agentic Authentication Technical Working Group and Payments Technical Working Group, and that the public GitHub repository hosts the specification, documentation, and SDK. [23][28][31] |\n| **Status** | Production open standard; x402 Foundation operational under Linux Foundation (40 members at July 14, 2026 operational launch; 50+ member organizations by October 2026). [12][13] | Public specification titled Agentic Payment Protocol (v0.2). FIDO's September 2026 W3C workshop presentation (`Jean_Luc_Di_Manno_FIDO.pdf`, PDF creation timestamp 2026-09-09, Slide 6) states: \"September 2026: AP2/VI specs moved to public repository for review,\" and labels later steps as targets: harmonize the AP2 and VI specifications at the end of 2026, and publish a first version of the consolidated specifications in mid-2027. [27][32] |\n| **Latest version** | v2.0 (specification header dated 2025-12-9; launched December 11, 2025; `specs/x402-specification-v2.md` on `main` revised through 2026-10-26 with `paymentFlow` and `auth-capture` additions without a version bump); v1 launched May 6, 2025. [4][7][9][15][16] | v0.1.0 (2025-09-16), the release that created the protocol, and v0.2.0, which GitHub shows as released 28 Apr and describes as the second release, focused on Human Not Present flows. Google's post dated 2026-04-28 says it is releasing AP2 v.0.2 that day. The current specification heading is Agentic Payment Protocol (v0.2). [23][27][29] |\n| **Form** | HTTP header | Endpoint |\n| **Wire / transport** | v2: `PAYMENT-REQUIRED`, `PAYMENT-SIGNATURE`, `PAYMENT-RESPONSE`; v1: `X-PAYMENT`, `X-PAYMENT-RESPONSE` (with HTTP 402 JSON body). [8][17] · Transport-specific JSON representations: Base64 JSON objects in HTTP headers; structured JSON objects in MCP `_meta` with text fallbacks. [4][19] · HTTP/HTTPS, Model Context Protocol (MCP), and Agent-to-Agent (A2A) JSON-RPC task metadata. [4][17][18] | Mandates secured as SD-JWTs. The authorization document specifies OpenID4VP with SD-JWT verifiable credentials, and says other verifiable digital credential formats such as ISO mDocs (ISO 18013-5) could be made to fulfill the same role. [27][33] · Extension of Agent2Agent (A2A) and the Model Context Protocol (MCP), and of the Universal Commerce Protocol. `v0.1` defines an A2A extension URI of `https://github.com/google-agentic-commerce/ap2/tree/v0.1`, which supporting agents MUST use; `v0.2` defines no A2A binding (`v0.1` only). [22][28][34] |\n| **Found at** | Per-resource HTTP 402 response headers; Facilitator `/verify`, `/settle`, `/supported`, and optional Bazaar `/discovery/resources` catalog. [4][20] | [ap2-protocol.org](https://ap2-protocol.org/) (repository homepage) and [google-agentic-commerce/AP2](https://github.com/google-agentic-commerce/AP2), which the docs say hosts the specification, documentation, and SDK. [28][30] |\n| **Primary specification** | [x402 Protocol Specification v2](https://github.com/x402-foundation/x402/blob/main/specs/x402-specification-v2.md) and [v1](https://github.com/x402-foundation/x402/blob/main/specs/x402-specification-v1.md) [4][15] | [Agentic Payment Protocol (v0.2)](https://ap2-protocol.org/ap2/specification/) [27][35] |\n| **Last checked** | 2026-11-11 | 2026-11-12 |\n\n## Problem, mechanism & scope\n\n- **x402 problem, mechanism & scope boundary:** RFC 9110 reserves the 402 (Payment Required) status code for future use and defines no challenge or settlement record. Without a specification for how to format and respond to that status, publishers lack adequate tools to convey a payment request. Clients that interpret a defined protocol transact without accounts, subscriptions, or API keys. Automated clients otherwise pre-register with every API, manage keys, and maintain separate billing relationships. [1][5][6] x402 standardizes those messages. Each object in `accepts` is a `PaymentRequirements` record naming `scheme`, `network`, `amount`, `asset`, and `payTo`. The client submits a `PaymentPayload` whose `accepted` field is the chosen requirement and whose `payload` carries the scheme-specific signature. `POST /verify` validates payment state without writing onchain state, and `POST /settle` durably commits it, whether a facilitator or the resource server hosts the endpoints. The schemes specified from the core document are `exact`, `upto`, `batch-settlement`, and `auth-capture`. [4] Transport-specific implementations, framework-specific integrations, client-side budget management, and session handling mechanisms sit outside the core specification. Finding a resource is a separate surface: `GET /discovery/resources` lists Bazaar entries, and the discovered resources may use any x402-supported transport. [4]\n- **Agent Payments Protocol (AP2) problem, mechanism & scope boundary:** Today's payment systems assume a human is directly clicking buy on a trusted website. When an autonomous agent initiates a payment, this core assumption is broken, and current systems cannot answer authorization, authenticity, and accountability. [28] AP2 builds trust with mandates: tamper-proof, cryptographically signed digital contracts that serve as verifiable proof of a user's instructions. Mandates are the means AP2 uses to authorize agents, and the specification defines two types, the Checkout Mandate and the Payment Mandate. [22][27] AP2 operates as a security feature within a Commerce Protocol. Catalog APIs, checkout updates, and the specific APIs for communication between the different roles are outside the scope of AP2. [27]\n\n## Overview\n\n### x402\n\n*For the reserved HTTP status code, see [HTTP 402 Payment Required](/terms/http-402-payment-required/). Not to be confused with [L402](/protocols/l402/) (`WWW-Authenticate: L402` macaroon and Lightning invoice) or [Machine Payments Protocol (MPP)](/protocols/mpp/). [1][2][3]*\n\n**x402** is an open payment standard originated by Coinbase on May 6, 2025 that enables applications and autonomous agents to pay resource servers inline for protected APIs, content, and data. [4][7] Its transport-independent core schemas (`PaymentRequirements`, `PaymentPayload`, and `SettlementResponse`) bind a `CAIP-2` network, atomic `amount`, and `asset` across HTTP, MCP, and A2A transports. On HTTP in v2, the server challenges an unpaid request with `402 Payment Required` and `PAYMENT-REQUIRED`, the client submits `PaymentPayload` in `PAYMENT-SIGNATURE`, verification (`POST /verify`) and settlement (`POST /settle`) execute according to `paymentFlow` (`authorization` by default, or `upfront` / `escrow`), and the server returns `PAYMENT-RESPONSE` on `200 OK`. [4][8][9] Announced December 11, 2025, `v2.0` (`2025-12-9`) replaced v1's HTTP 402 response body and `X-PAYMENT` / `X-PAYMENT-RESPONSE` headers with `CAIP-2` identifiers and `extensions`, and on April 2, 2026 the protocol transferred to the Linux Foundation's x402 Foundation under a Technical Steering Committee of Coinbase, Cloudflare, and Stripe. [4][8][9][10][11]\n\n### Agent Payments Protocol (AP2)\n\n*This page is about the Agent Payments Protocol (AP2), announced by Google on 2025-09-16 and donated to the FIDO Alliance on 2026-04-28. It is not the Agentic Commerce Protocol (ACP), maintained by OpenAI and Stripe; see [Agentic Commerce Protocol](/protocols/agentic-commerce-protocol/). It is not Visa's Trusted Agent Protocol (TAP), with which an agent proves its identity and associated authorization directly to merchants; see [Visa Trusted Agent Protocol](/protocols/tap/). For the separate A2A x402 extension and the x402 payment protocol, see [x402](/protocols/x402/). For the Universal Commerce Protocol, which the AP2 v0.2 specification is designed to be compatible with, see [Universal Commerce Protocol](/protocols/ucp/). [4][22][23][24][25][26][27]*\n\nThe Agentic Payment Protocol (AP2) provides a protocol to secure agent-performed payment transactions. It is an open protocol for the emerging Agent Economy, designed to enable secure, reliable, and interoperable agent commerce. [27][28] The Shopping Agent passes Checkout and Payment Mandate content from the merchant's Checkout JWT to a Trusted Surface for the user to sign. In Human Not Present mode, the user approves constraints, and an agent key signs the closed Mandates. [27] GitHub shows `v0.2.0` as the second release, focused on Human Not Present flows, and `v0.1.0` (`2025-09-16`) as the release that created the protocol. On `2026-04-28`, Google's post says it is donating the Agent Payments Protocol to the FIDO Alliance. [23][29]\n\n## Adoption and ecosystem\n\n### x402\n\nSee verified implementations and cited ecosystem censuses on the [x402 protocol page](/protocols/x402/#adoption-and-ecosystem).\n\n### Agent Payments Protocol (AP2)\n\nSee verified implementations and cited ecosystem censuses on the [Agent Payments Protocol (AP2) protocol page](/protocols/ap2/#adoption-and-ecosystem).\n\n## References\n\n1. R. Fielding, M. Nottingham, and J. Reschke (eds.), *RFC 9110: HTTP Semantics*, June 2022 — https://www.rfc-editor.org/rfc/rfc9110.html\n2. Lightning Labs, *L402 Protocol Specification*, fetched 2026-10-30 — https://docs.lightning.engineering/the-lightning-network/l402/protocol-specification\n3. Stripe, *x402*, fetched 2026-10-30 — https://docs.stripe.com/payments/machine/x402\n4. x402, *X402 Protocol Specification*, protocol version 2; fetched 2026-10-30 — https://github.com/x402-foundation/x402/blob/main/specs/x402-specification-v2.md\n5. Will Allen, Cam Whiteside, Rohin Lohe, and Steve James, Cloudflare, *Launching the x402 Foundation with Coinbase, and support for x402 transactions*, September 23, 2025 — https://blog.cloudflare.com/x402/\n6. Ethan Niser, Vercel, *Introducing x402-mcp: Open protocol payments for MCP tools*, 12 Sep 2025 — https://vercel.com/blog/introducing-x402-mcp-open-protocol-payments-for-mcp-tools\n7. Erik Reppel, Nemil Dalal, and Dan Kim, Coinbase, *Introducing x402: a new standard for internet-native payments*, May 6, 2025 — https://www.coinbase.com/developer-platform/discover/launches/x402\n8. x402 Foundation, *HTTP transport for x402 v1*, fetched 2026-10-30 — https://github.com/x402-foundation/x402/blob/main/specs/transports-v1/http.md\n9. Erik Reppel, Carson Roscoe, and Josh Nickerson, *Introducing x402 V2: Evolving the Standard for Internet-native Payments*, published December 11, 2025; updated June 24th, 2026 — https://x402.org/x402-v2-launch/\n10. Linux Foundation, *Linux Foundation is Launching the x402 Foundation and Welcoming the Contribution of the x402 Protocol*, April 2, 2026 — https://www.linuxfoundation.org/press/linux-foundation-is-launching-the-x402-foundation-and-welcoming-the-contribution-of-the-x402-protocol\n11. x402 Foundation, *Technical Steering Committee*, fetched 2026-10-30 — https://github.com/x402-foundation/x402/blob/main/TSC.md\n12. Linux Foundation, *Linux Foundation Announces Operational Launch of x402 Foundation to Standardize Internet-Native Payments for AI Agents and Applications*, July 14, 2026 — https://www.linuxfoundation.org/press/linux-foundation-announces-operational-launch-of-x402-foundation-to-standardize-internet-native-payments-for-ai-agents-and-applications\n13. Linux Foundation, *Linux Foundation Appoints Michael Hursta as Executive Director of the x402 Foundation*, Oct. 1, 2026 — https://x402.org/linux-foundation-appoints-michael-hursta-as-executive-director-of-the-x402-foundation/\n14. x402 Foundation, *x402*, fetched 2026-10-30 — https://x402.org/\n15. x402 Foundation, *x402 Protocol Specification*, Protocol Version: 1 — https://github.com/x402-foundation/x402/blob/main/specs/x402-specification-v1.md\n16. x402 Foundation, *Commit history for specs/x402-specification-v2.md*, 2026-10-26 — https://github.com/x402-foundation/x402/commits/HEAD/specs/x402-specification-v2.md\n17. x402 Foundation, *HTTP transport for x402 v2*, fetched 2026-10-30 — https://github.com/x402-foundation/x402/blob/main/specs/transports-v2/http.md\n18. x402 Foundation, *Transport: A2A (Agent-to-Agent Protocol)*, fetched 2026-10-30 — https://github.com/x402-foundation/x402/blob/main/specs/transports-v2/a2a.md\n19. x402 Foundation, *Transport: MCP (Model Context Protocol)*, fetched 2026-11-05 — https://raw.githubusercontent.com/x402-foundation/x402/main/specs/transports-v2/mcp.md\n20. x402 Foundation, *Bazaar (Discovery Layer)*, fetched 2026-10-30 — https://docs.x402.org/extensions/bazaar\n21. google-agentic-commerce/a2a-x402, *A2A x402 Extension*, fetched 2026-10-30 — https://github.com/google-agentic-commerce/a2a-x402\n22. Stavan Parikh and Rao Surapaneni (Google Cloud), *Announcing Agent Payments Protocol (AP2)*, published 2025-09-16 — https://cloud.google.com/blog/products/ai-machine-learning/announcing-agents-to-payments-ap2-protocol\n23. Stavan Parikh (Google), *Google donates Agent Payments Protocol to FIDO Alliance*, published 2026-04-28 — https://blog.google/products-and-platforms/platforms/google-pay/agent-payments-protocol-fido-alliance/\n24. OpenAI and Stripe, *Agentic Commerce Protocol*, fetched 2026-10-30 — https://github.com/agentic-commerce-protocol/agentic-commerce-protocol\n25. OpenAI, *Buy it in ChatGPT: Instant Checkout and the Agentic Commerce Protocol*, archived 2026-10-22 — https://web.archive.org/web/20261022061422/https://openai.com/index/buy-it-in-chatgpt/\n26. Visa, *Trusted Agent Protocol*, fetched 2026-10-30 — https://github.com/visa/trusted-agent-protocol\n27. Google (google-agentic-commerce), *Agentic Payment Protocol (v0.2)*, fetched 2026-10-30 — https://raw.githubusercontent.com/google-agentic-commerce/AP2/main/docs/ap2/specification.md\n28. Google (google-agentic-commerce), *Agent Payments Protocol (AP2)*, fetched 2026-10-30 — https://raw.githubusercontent.com/google-agentic-commerce/AP2/main/docs/index.md\n29. google-agentic-commerce, *Releases · google-agentic-commerce/AP2*, v0.1.0 (2025-09-16); v0.2.0 released 28 Apr — https://github.com/google-agentic-commerce/AP2/releases\n30. google-agentic-commerce, *Agent Payments Protocol (AP2)*, fetched 2026-10-30 — https://github.com/google-agentic-commerce/AP2\n31. FIDO Alliance, *FIDO Alliance to Develop Standards for Trusted AI Agent Interactions*, published 2026-04-28; modified 2026-10-19 — https://fidoalliance.org/fido-alliance-to-develop-standards-for-trusted-ai-agent-interactions/\n32. FIDO Alliance, *FIDO Agentic Payment Specifications*, PDF created 2026-09-09 — https://www.w3.org/2026/09/ecommerce-agents/slides/Jean_Luc_Di_Manno_FIDO.pdf\n33. Google (google-agentic-commerce), *Agent Authorization*, fetched 2026-10-30 — https://raw.githubusercontent.com/google-agentic-commerce/AP2/main/docs/ap2/agent_authorization.md\n34. Google (google-agentic-commerce), *A2A Extension for AP2 (v0.1)*, tag v0.1.0 (2025-09-16) — https://raw.githubusercontent.com/google-agentic-commerce/AP2/v0.1.0/docs/a2a-extension.md\n35. Google (google-agentic-commerce), *Agentic Payment Protocol (v0.2)*, fetched 2026-10-30 — https://ap2-protocol.org/ap2/specification/\n36. Google (google-agentic-commerce), *AP2 and x402*, tag v0.1.0 (2025-09-16) — https://raw.githubusercontent.com/google-agentic-commerce/AP2/v0.1.0/docs/topics/ap2-and-x402.md\n"
}