The Medyateji app is here: install it free and get notified about new guides

Giving your AI agent commerce capabilities: a guide to AP2, x402 and ACP

4 min read

Giving your AI agent commerce capabilities: a guide to AP2, x402 and ACP

What is agentic commerce?

Agentic commerce is when an AI agent, with authorization from the user, selects a product, pays and creates an order. The user simply says, "Buy this product from this site for me." The agent talks directly to your store's systems.

This field is changing direction. It is shifting from chatbots that talk directly to consumers toward back-end server agents that run in infrastructure and cloud environments. For your store, the real question is this: when an agent arrives at your site, can it find your product, read the price and stock, and complete the payment?

What happens when an agent places an order?

The flow below is an example scenario for a store that uses WooCommerce:

A five-step flow from user to order: the user, the AI agent (AP2), the WooCommerce API (x402), checkout (ACP) and the resulting order.

  1. The user tells an AI app to buy a specific product from a specific site.
  2. The AI agent connects to your site's API using the authorization it received from the user (AP2 / wallet).
  3. The WooCommerce API requests payment via x402 for product data and stock information. The agent pays this fee.
  4. WooCommerce Checkout works with ACP and the payment infrastructure to confirm the order and shipping.
  5. The order is created and the product is on its way to the user's address.

A different protocol comes into play at each step. I'll walk through them in order below.

What is AP2 and what is it for?

AP2 (Agent Payments Protocol) is an open protocol developed by Google. AP2 focuses on the authorization and traceability layer of agent payments. Google released AP2 as an open protocol under the Apache 2.0 license, and it has gathered more than sixty partners, including Mastercard, Adyen, PayPal and Coinbase.

In short, AP2 proves that the user has actually authorized the agent. AP2 defines how the user's authorization (the mandate) travels with the agent's payment over any payment method.

What is x402 and why would product data require payment?

x402 is a standard for making payments over HTTP. It is mostly used for machine-to-machine and stablecoin payments. It lets you answer an API request with "pay first."

This means requests such as product data or stock queries can be charged for. Coinbase describes this model as suitable for pay-as-you-go scenarios such as micropayments and per-crawl fees.

AP2 and x402 are not competitors; they complement each other. Together with Coinbase, the Ethereum Foundation, MetaMask and other organizations, Google extended AP2 and released the A2A x402 extension for agent-based crypto payments.

What is ACP and what does it do at checkout?

ACP (Agentic Commerce Protocol) defines how an agent completes the checkout flow in a store. ACP is an open standard developed jointly by Stripe and OpenAI. It enables programmatic commerce flows between buyers, AI agents and businesses. OpenAI and Stripe maintain the specification, and the protocol is currently in beta.

The key point for a store owner is that you can integrate once and open up to many agents. With ACP, you build once and distribute to any ACP-compatible AI agent. ACP is an open standard, so businesses that do not process payments with Stripe can also adopt it with their existing payment providers.

Where does WooCommerce stand in this world?

WooCommerce is part of Stripe's solution in this area. WooCommerce announced that it will make Stripe's Agentic Commerce Suite integration available. This integration will let AI shopping assistants complete transactions. According to Stripe, the Agentic Commerce Suite lets you share product, price and stock information with AI agents in near real time.

Compatibility of these integrations with payment infrastructure and shipping processes in Turkey needs to be checked separately. The five-step flow above is an example of how the protocols could connect to one another. It should not be read as a ready-made, one-click feature.

How mature is it?

The field is still early. According to Orium's comparison, AP2 has a broad coalition but adoption is at an early stage. x402 has working open-source implementations, but real-world usage is limited to developer experiments. That is why the work to do today is not a big investment but preparation.

A checklist for preparing your store for agents

  • Organize your product data. Titles, descriptions, prices, variations and images should be complete and consistent.
  • Keep stock up to date. If an agent places an order based on incorrect stock information, the customer is the one who suffers.
  • Set up API access securely. Authorization, rate limiting and logging should be planned from the start.
  • Clarify shipping and return rules. The information an agent will confirm must be machine-readable.
  • Review your payment infrastructure. Find out whether your provider supports agentic payments.
  • Track orders. Tag agent-originated orders separately and measure them.

A six-item checklist for preparing a store for agents: product data, stock, secure API, shipping and return rules, payment infrastructure and order tracking.

What does Medyateji recommend?

First strengthen the foundation, then open up to agents. If your site's infrastructure, APIs and product data are not ready, no protocol will help. With our web and software service, we clarify the technical side of your store and its integrations. Prices start at 25,000 TL. Scope, timeline and fee are clear from the start, with no contract and no surprise charges.

If you want to add an agent to your own workflow, our AI agent and automation

Note: the source body cuts off mid-sentence ("…AI Agent ve otomasyon say"). I translated only what was provided and did not guess the ending. Please send the rest if you want it localized.

Frequently asked questions

What is agentic commerce?

It is when an AI agent, with authorization from the user, selects products, pays and places an order. The agent talks directly to a store's systems on the user's behalf.

Are AP2, x402 and ACP the same thing?

No, they work at different layers. AP2 defines the user's authorization, x402 defines payment over HTTP, and ACP defines how an agent completes the checkout flow in a store.

Is my WooCommerce store ready for agentic commerce?

WooCommerce was announced as a launch partner for Stripe's Agentic Commerce Suite. To prepare, your product data needs to be clean, your stock up to date and your API secure.