Back to blog

Agentic Commerce Architecture: AI Agent Payments & Checkout Diagrams (2026)

How to design and diagram agentic commerce architectures where AI agents shop and pay on behalf of users. Covers agent-to-merchant discovery, payment mandates, tokenized credentials, and human authorization gates — with AI prompt templates.

R
Ryan·Senior AI Engineer
·

Agentic commerce is the emerging pattern where an AI agent — not a human sitting in front of a browser — searches, compares, and completes a purchase on a user's behalf. A user might tell a shopping assistant "find me a pair of running shoes under $120 and order the best-reviewed pair," or a procurement agent might automatically restock office supplies when inventory drops below a threshold. In both cases, the agent reaches checkout without a human present to type in a card number or click "confirm order."

That breaks an assumption baked deep into e-commerce and payments architecture for the last three decades: that a human is physically present at the moment of payment to enter credentials and express intent. Card networks, fraud models, and checkout UX were all built around that assumption. Agentic commerce architecture is the set of patterns — discovery, authorization, tokenized credentials, verification, settlement — that lets a purchase happen safely when the actor at checkout is software. This guide covers the components of that architecture and includes prompt templates for diagramming it, as of mid-2026, while several competing protocols are still being standardized.

What is agentic commerce, and why does it need a new architecture pattern?

In traditional e-commerce, the checkout flow is a sequence of human-verified steps: a person browses a catalog, adds items to a cart, enters or selects a saved payment method, and clicks a button that represents explicit, in-the-moment consent. Fraud systems, 3-D Secure challenges, and card-network liability rules all assume a human is behind that click. Agentic commerce replaces that human click with an AI agent acting on a standing or scoped authorization granted earlier — which means the architecture has to answer new questions: How does the agent prove it is authorized to spend? How much can it spend, and on what? How does the merchant know the agent isn't a scraper or fraud bot pretending to be a legitimate buyer? And who is liable if the agent gets it wrong?

This is an active, fast-moving area in 2026, with several overlapping protocol efforts rather than one settled standard. Google has proposed the Agent Payments Protocol (AP2) with a coalition of payment and technology partners; the x402 protocol — built around the long-dormant HTTP 402 "Payment Required" status code — has been championed by Coinbase and others for stablecoin-based machine-to-machine payments; and OpenAI and Stripe have jointly published the Agentic Commerce Protocol (ACP) to let ChatGPT initiate purchases directly with participating merchants. None of these have fully displaced the others, and it is reasonable to expect consolidation, revision, or new entrants before the space settles.

Key components of an agentic commerce architecture

Agent-to-merchant discovery

Before an agent can buy anything, it has to find and evaluate what it's buying. Discovery in agentic commerce generally happens one of two ways: through structured, machine-readable product feeds (extensions of existing schema.org Product markup or dedicated commerce feeds designed for agent consumption) or through tool-calling interfaces exposed by a merchant or marketplace — often built on protocols like MCP, where a merchant exposes "search products," "get price," and "check availability" as callable tools rather than expecting an agent to scrape an HTML storefront.

The architectural implication is that merchants increasingly need a parallel, structured interface for agents alongside their human-facing storefront — one that returns normalized pricing, inventory, and shipping data an agent can compare across sellers without brittle HTML parsing.

Intent and payment mandates

A mandate is a cryptographically signed statement of what the user actually authorized: a maximum spend, a category or allowlist of approved merchants, an expiration window, and often the specific task the agent was asked to perform ("book a flight under $400 to Chicago," not "spend freely on travel"). AP2's design center is exactly this — a signed mandate object that travels with the transaction and gives every downstream party (merchant, payment processor, card network) something concrete to verify against, rather than trusting the agent's word for it.

Mandates are typically scoped narrowly and time-limited by design. An architecture that issues a single, broad, long-lived mandate instead of task-scoped ones concentrates risk — if the agent or its credentials are compromised, a narrow mandate limits the blast radius.

Tokenized payment credentials

Agents should never hold or transmit a user's raw card number. Instead, the architecture issues a scoped, revocable payment token — conceptually similar to network tokenization already used for stored cards in digital wallets — that is bound to the specific mandate, expires with it, and can be revoked independently of the user's underlying payment instrument. This is the layer that lets a compromised agent be cut off without forcing the user to cancel their actual card.

Human-in-the-loop authorization gate

Most production agentic commerce designs keep a step-up confirmation gate for anything outside the pre-approved envelope: purchases above a dollar threshold, transactions with a merchant not on the allowlist, or the first purchase of a new category. That confirmation might be a push notification, an in-app approval, or a one-time code — the point is that the architecture routes the transaction to a human checkpoint rather than letting the agent silently complete it. Where that threshold sits is a product and risk decision, not just a technical one.

Merchant-side agent verification

From the merchant's side, an incoming "agent" request looks a lot like a bot — which is exactly the traffic pattern merchants have spent years training fraud systems to block. Merchant- side verification needs to confirm the request carries a valid, unexpired mandate signature, that the issuing agent platform is one the merchant trusts (via an allowlist, a certificate, or a protocol- level attestation such as ACP's merchant integration), and that the transaction pattern is otherwise consistent with legitimate purchasing behavior. Without this layer, agentic checkout traffic risks being indistinguishable from credential-stuffing or scalper bots.

Settlement and dispute handling

Once a purchase completes, settlement largely follows existing rails — card networks, ACH, or stablecoin settlement for x402-style transactions — but dispute handling gets more complicated. If an agent buys the wrong item, exceeds its intended scope, or is manipulated by a prompt-injection attack on a compromised merchant page, who absorbs the chargeback: the user, the agent platform, or the merchant? Architecturally, this is why the mandate and its signature matter so much after the fact — it becomes the audit trail a dispute resolution process (and potentially a court or card network arbitration) relies on to establish what was actually authorized.

Emerging agentic payment protocols comparison (2026)

ProtocolBacked byCore mechanismStatus
AP2 (Agent Payments Protocol)Google + partner coalitionCryptographically signed intent and cart mandates that travel with the transaction for verification by merchants and processorsAnnounced/launched 2025, evolving
x402Coinbase / open standardRevives the HTTP 402 "Payment Required" status code; pairs it with stablecoin settlement for machine-to-machine paymentsOpen standard, early adoption
ACP (Agentic Commerce Protocol)OpenAI + StripeStructured checkout API allowing ChatGPT to complete a purchase directly with participating merchantsLive in ChatGPT with launch partners
MCPAnthropicGeneral-purpose tool-calling protocol; sometimes used to expose merchant search/catalog tools to agents, but is not a payments-specific standardWidely adopted for tool-calling generally

These protocols are not strictly interchangeable — AP2 and x402 operate at different layers (mandate signing vs. settlement mechanism) and can in principle complement each other, while ACP is a more vertically integrated checkout API scoped to specific merchant integrations. Expect this table to keep changing; treat it as a snapshot of mid-2026, not a settled taxonomy.

Agentic commerce architecture patterns with prompt templates

AI shopping assistant with spending-limit mandate and step-up authorization

"An architecture diagram for a consumer AI shopping assistant. A user grants the assistant a signed spending mandate through a mobile app: a $150 per-transaction limit, a 30-day expiration, and an allowlist of three approved retail categories. The assistant, when asked to find and buy a product, queries a product discovery service that aggregates structured feeds from multiple merchants and returns normalized price and availability data. Once a product is selected, the assistant requests a scoped, single-use payment token from a token issuance service, which validates the request against the stored mandate before minting the token. The token and mandate signature are sent to the merchant's checkout API. If the order total is under the $150 limit and the merchant is on the allowlist, the purchase completes automatically and a confirmation is pushed to the user. If the total exceeds the limit or the merchant is new, the flow pauses and sends a step-up push notification to the user's phone requiring explicit approval before the token is authorized for use. Every transaction, whether auto-approved or step-up approved, is logged with its mandate ID for later audit."

Autonomous B2B procurement agent using x402 for machine-to-machine payments

"An architecture diagram for an autonomous B2B procurement agent that restocks office supplies without human approval below a fixed threshold. An inventory monitoring service tracks stock levels and triggers the procurement agent when an item drops below its reorder point. The agent queries several supplier APIs for current pricing and selects the lowest-cost option meeting a minimum-rating requirement. When the agent sends a purchase request to the chosen supplier's API, the supplier responds with an HTTP 402 Payment Required status per the x402 protocol, including the price and a settlement address. The agent's payment module signs and broadcasts a stablecoin payment to that address from a company-controlled treasury wallet with a pre-funded, capped balance. Once the supplier's node confirms settlement on-chain, it releases the order confirmation back to the agent. A finance reconciliation service polls the treasury wallet and matches each settled payment against the originating purchase order for month-end accounting. Purchases above $2,000 are excluded from autonomous execution and routed to a human approver instead."

ChatGPT-initiated purchase via Agentic Commerce Protocol with merchant-side verification

"An architecture diagram showing a purchase initiated inside a ChatGPT conversation using the Agentic Commerce Protocol. The user asks ChatGPT to buy a specific product from a merchant that has integrated ACP. ChatGPT calls the merchant's ACP-compliant checkout endpoint, passing the product ID, quantity, and the user's previously linked Stripe-tokenized payment method — the raw card details never pass through OpenAI's infrastructure. The merchant's commerce platform receives the request and runs it through an agent verification layer that checks the request signature against OpenAI's published integration credentials and cross-references the transaction against the merchant's existing fraud-scoring system used for normal web checkout. If verification passes, the merchant confirms the order and prices through Stripe, and returns a structured order confirmation object back to ChatGPT, which relays a plain-language summary to the user. If verification fails or the fraud score is elevated, the merchant returns a decline response and ChatGPT informs the user the order could not be completed automatically, offering to hand off to the merchant's normal web checkout instead."

Common mistakes and risks in agentic commerce architecture

  • No enforced spending limit at the token or mandate layer — relying on the agent's own prompt instructions to "stay under budget" is not a security control; the limit has to be enforced by infrastructure the agent cannot talk its way around
  • Treating agent authorization as equivalent to card-present human consent — a standing mandate granted weeks earlier is a different risk profile than a human clicking "buy" in the moment, and fraud models built for the latter don't transfer cleanly
  • No merchant-side bot or fraud verification specific to agent traffic — pointing an agent at the same endpoints built for human browsers, with no signature or attestation check, makes it indistinguishable from scraping or credential-stuffing traffic
  • Missing an audit trail linking each completed purchase back to the specific mandate that authorized it — without this, disputes have no way to establish what the agent was actually allowed to do
  • No revocation mechanism for compromised agent credentials — if a payment token can't be independently invalidated from the user's underlying card or bank account, a compromised agent forces a full instrument cancellation to contain damage
  • Conflating agent identity with user identity — logging, rate-limiting, and fraud scoring should distinguish "this agent, acting under this mandate, for this user" rather than attributing every agent action directly to the human as if they typed it themselves
  • Ignoring how dispute and chargeback liability shifts when a non-human made the purchase decision — this is still being worked out across the industry in 2026, and an architecture that assumes existing card-network liability rules apply unchanged may be wrong
  • Building against a single protocol as if it were a finished standard — AP2, x402, and ACP are all still evolving; hard-coding assumptions from one into core checkout logic risks a costly rewrite as the space consolidates

Frequently asked questions about agentic commerce architecture

What is the Agent Payments Protocol (AP2)?

AP2 is a protocol proposed by Google, developed with a coalition of payment and technology partners, for authorizing and verifying purchases made by AI agents. Its core idea is the mandate — a cryptographically signed record of what a user actually authorized an agent to buy, including spending limits and merchant constraints — that travels with the transaction so merchants and payment processors can verify the purchase was genuinely authorized rather than trusting the agent's unverified request. It is one of several competing efforts in this space in 2026, alongside x402 and the Agentic Commerce Protocol, and is still evolving.

How do AI agents make payments without exposing raw card data?

Agentic commerce architectures generally avoid ever giving an agent a raw card number. Instead, the user's actual payment instrument stays with a trusted issuer or payment platform, and the agent is issued a scoped, tokenized credential — bound to a specific mandate, spending limit, and expiration — that represents permission to spend rather than the underlying account details. This mirrors how network tokenization already protects stored cards in digital wallets, extended here so the token can be revoked independently if the agent or its credentials are compromised, without requiring the user to cancel their actual card.

Who is liable when an AI agent makes an unauthorized or fraudulent purchase?

This is not fully settled as of 2026 and varies by which protocol and payment rails are involved. In principle, a well-designed mandate system is meant to make liability traceable: if a purchase stayed within the signed mandate's limits and allowlist, the user authorized it; if it exceeded those bounds, that points toward a failure in the agent platform's or merchant's enforcement rather than the user. In practice, card networks, regulators, and the protocol operators themselves are still working out how existing chargeback and liability-shift rules apply when the party initiating the transaction is software rather than a human. Architects should treat the mandate's signed audit trail as the primary evidence source for any dispute process, since today's liability frameworks weren't written with agents in mind.

Related guides: A2A protocol architecture, MCP architecture diagrams, agentic AI security architecture, and payment systems architecture.

Ready to try it yourself?

Start Creating - Free