All standards
optionalTechnical· commerce readiness

Agentic commerce protocols (ACP, UCP, MPP, x402)

Four overlapping standards that let AI agents pay and transact: Agentic Commerce Protocol, Universal Commerce Protocol, Merchant Payments Protocol, x402.

7 min read· Spec ↗· Updated 2026-04-25
On this page

What are Agentic Commerce Protocol (ACP), Universal Commerce Protocol (UCP), Merchant Payments Protocol (MPP), and x402?

Four overlapping technical standards — Agentic Commerce Protocol (ACP), Universal Commerce Protocol (UCP), Merchant Payments Protocol (MPP), and x402 — that define how AI agents can autonomously initiate purchases, manage subscriptions, and request refunds on commerce platforms. Unlike traditional checkout flows designed for browser-based human interaction, these protocols expose machine-readable endpoints and capability documents that let agents negotiate payment terms, confirm orders, and handle post-purchase operations programmatically.

All four are published as JSON capability documents at /.well-known/ paths: acp.json, ucp.json, mpp.json, and x402.json. The x402 specification is the most formally documented; it repurposes the HTTP 402 Payment Required status code as a discovery handshake, signaling that a resource requires payment and providing a machine-readable schema for how an agent can complete the transaction. ACP, UCP, and MPP describe overlapping sets of operations — checkout, refund issuance, subscription creation and cancellation — that agents can invoke without human guidance.

Why do AI agents need ACP, UCP, MPP, and x402 for autonomous commerce?

When ChatGPT, Claude, or Perplexity attempt to complete a purchase on behalf of a user, they face a problem: modern checkout flows are defended against bots, wrapped in CAPTCHAs, and buried behind JavaScript-heavy single-page apps. Agents can scrape product pages, but converting intent into a completed transaction requires either brittle DOM manipulation or fallback to "here's a link, you finish it yourself." Commerce protocols solve this by giving agents a contractual interface — predictable JSON endpoints where an agent presents a payment token, receives an order ID, and can later query order status or initiate a return.

The business case is simple: 2025–2026 represents an early adoption window. Commerce platforms that publish capability documents now will be whitelisted in agent routing tables, while competitors without them will be bypassed or deprioritized when an agent evaluates where to send a transaction. If your site sells subscription software, cloud credits, API access, or digital goods — categories where agents are already attempting purchases — early protocol support translates directly into incremental transaction volume you would otherwise lose to competitors with agent-friendly infrastructure.

Is implementing x402 or other agentic commerce protocols required for my site?

This check is optional for most sites because these protocols are bleeding-edge; formal governance, security audits, and interoperability testing are still emerging. If your commerce flow is human-only — physical goods requiring address confirmation, complex customization UIs, or regulated verticals like healthcare — agent-driven checkout is not yet practical.

The answer changes if you sell digital goods, SaaS subscriptions, API credits, or compute resources. For those verticals, agents are already initiating purchases in 2025, and protocol support is the difference between "agent opens your pricing page and gives up" versus "agent completes checkout in 200ms." It also changes if your analytics show referral traffic from agentic platforms (ChatGPT browsing mode, Perplexity shopping, Claude tool use) spiking but conversion lagging.

The x402 specification is the most clearly documented. Required fields include:

  • paymentEndpoint: URL where the agent POSTs payment details
  • methods: Array of accepted payment methods (e.g., ["credit_card", "wallet", "api_token"])
  • currency: ISO 4217 code
  • price or priceSchema: Fixed price or dynamic pricing logic

Optional fields include refundEndpoint, subscriptionEndpoint, and orderStatusEndpoint.

A minimal x402 capability document:

{
  "version": "1.0",
  "paymentEndpoint": "https://api.example.com/v1/checkout",
  "methods": ["credit_card", "wallet"],
  "currency": "USD",
  "price": {
    "amount": 29.99,
    "unit": "month"
  },
  "refundEndpoint": "https://api.example.com/v1/refunds"
}

ACP, UCP, and MPP are less formally specified. They overlap significantly with x402 but emphasize different workflows: ACP focuses on cart assembly, UCP on universal product identifiers, MPP on merchant-side payment orchestration. None have reached RFC status; all are industry proposals circulating among commerce platform vendors.

What good implementation of x402 and agentic commerce protocols looks like

As of early 2025, public adoption is limited. The x402 working group publishes reference implementations worth studying, but naming specific production deployments would be premature — most are under NDA during pilot phases.

Companies building agent-first commerce infrastructure (API marketplaces, AI compute providers, and SaaS platforms with programmatic provisioning) are the logical early adopters. If you're evaluating this, study the x402 specification directly and monitor vendor announcements from Stripe, Paddle, and commerce-enabling API gateways.

How do I add x402 or ACP/UCP/MPP support to my commerce platform?

  1. Choose a protocol. Start with x402 — it has the clearest spec and broadest anticipated support. Add ACP/UCP/MPP only if your platform needs their specific workflows.

  2. Create the capability document. Draft x402.json with your payment endpoint, accepted methods, and currency. Host it at https://yourdomain.com/.well-known/x402.json.

  3. Implement the payment endpoint. Your /v1/checkout (or equivalent) must accept a JSON payload with { "paymentMethod": { ... }, "productId": "...", "quantity": 1 } and return { "orderId": "...", "status": "confirmed" }.

  4. Handle 402 responses. When an agent requests a paywalled resource, return HTTP 402 with a Link header: Link: </.well-known/x402.json>; rel="payment-required".

  5. Test with an agent client. Use the x402 reference CLI or build a minimal test harness:

    curl -X POST https://api.example.com/v1/checkout \
      -H "Content-Type: application/json" \
      -d '{"paymentMethod": {"type": "token", "token": "test_tok_123"}, "productId": "sku_999"}'
    
  6. Deploy to /.well-known/. On Next.js, add public/.well-known/x402.json. On Cloudflare Workers, serve it from a KV binding. On legacy Apache, ensure .well-known is excluded from auth rules.

How can I test x402 and agentic commerce protocol implementation?

curl -I https://yourdomain.com/.well-known/x402.json
curl https://yourdomain.com/.well-known/x402.json | jq .

Or just run a free scan and we'll check this for you alongside 30+ other agent-readiness signals.

Frequently asked questions

Do I need to implement all four protocols (ACP, UCP, MPP, x402) or just one?

Start with x402.json only—it has the clearest specification and broadest vendor alignment. ACP, UCP, and MPP overlap significantly and lack formal RFC status. Add them only if your platform specifically needs their cart-assembly (ACP), universal-identifier (UCP), or payment-orchestration (MPP) workflows. Most SaaS and API platforms find x402 sufficient for agent-driven checkout.

Is x402 just a marketing gimmick, or are agents actually using HTTP 402 responses?

It's early but functional. The x402 specification repurposes the long-dormant HTTP 402 Payment Required status as a discovery handshake. Reference implementations exist, and agent platforms are testing it in pilot programs. It's not vaporware, but widespread production use won't arrive until late 2025. If you sell digital goods or SaaS, implementing now positions you ahead of the adoption curve.

Will e-commerce platforms selling physical goods benefit from x402 or ACP?

Not yet. Physical goods require shipping addresses, inventory confirmation, and often human judgment (sizing, customization). Agent-driven checkout works best for digital goods, SaaS subscriptions, API credits, and compute resources where fulfillment is instant and programmatic. E-commerce should monitor these protocols but prioritize traditional structured data and checkout optimization for now.

Can I use x402 with Stripe or Paddle instead of building a custom payment endpoint?

Yes. Your paymentEndpoint in x402.json can proxy to Stripe, Paddle, or any payment processor. The protocol only requires that your endpoint accepts agent payment details as JSON and returns an order confirmation. Wrapping your existing Stripe Checkout or Paddle integration behind a lightweight agent-facing API is the recommended approach for most SaaS platforms.

How does x402 compare to schema.org/Product markup for agent discoverability?

They serve different purposes. Schema.org markup helps agents understand product details (price, availability, reviews) but doesn't provide a transactional interface. x402 gives agents the actual checkout endpoint. Use both: schema.org for product discovery and x402.json for completing purchases. Agents will scrape structured data first, then look for /.well-known/x402.json to execute the transaction.

Do developer documentation sites or API marketplaces need x402?

Absolutely—this is a high-priority use case. If you sell API access, compute credits, or paid documentation tiers, agents are already attempting to provision accounts programmatically. Publishing x402.json lets ChatGPT or Claude complete sign-ups without forcing users to "click here to finish." API marketplaces like RapidAPI competitors should prioritize x402 to capture agent-driven developer transactions.

Can I deploy x402 on Vercel or Cloudflare Pages without backend infrastructure?

Partially. You can host the static x402.json capability document at /.well-known/x402.json on any static host. However, the paymentEndpoint requires server-side logic to process payments and return order confirmations. Use Vercel Serverless Functions, Cloudflare Workers, or a lightweight backend API. Static-only sites must add at least one serverless endpoint to handle agent checkout requests.

Are there security risks in exposing a machine-readable payment endpoint via x402?

Standard API security applies: require authentication (OAuth tokens, API keys), validate payment method tokens server-side, enforce rate limits, and log all transactions. The x402 spec doesn't introduce new attack vectors beyond typical checkout APIs. Treat the paymentEndpoint like any public API—it's discoverable by design, so rely on authentication and your payment processor's fraud tools, not obscurity.

Test it on your site
We check this — and 30+ other agent-readiness signals.
One scan. Per-finding evidence. Free.
Run a free scan
Related standards