Back to Blog
AI Commerce23 September 20267 min read · 1,584 words

Agentic Commerce Risks and Mitigation Strategies in 2026

N7

No7 Engineering Team

Growth Architecture Unit

AI Commerce: Agentic Commerce Risks and Mitigation Strategies in 2026 (illustration)

When our team audited an autonomous purchasing pipeline, the initial break came from an unverified bot replaying an expired cart. Agentic commerce is an architecture where autonomous software agents discover, negotiate, and purchase goods for buyers. Addressing agentic commerce risks and mitigation strategies demands protocol-level cryptographic bounds, strict mandate scoping, and authoritative merchant webhooks rather than prompt filters.

Mapping core agentic commerce risks across the transaction lifecycle

Delegating purchasing authority to software agents creates seven distinct failure points between catalogue discovery and final ledger settlement. Unlike human shoppers who visually reconcile price changes and shipping options, an autonomous buyer executes code against API responses. When those responses lack cryptographic integrity or strict state validation, standard commerce workflows break down quickly.

Protecting the store requires pairing each threat with a defined protocol specification and an explicit architectural owner. The risk matrix below maps these vulnerabilities across the modern agentic commerce stack.

Agentic commerce risk register

Core security controls, protocols, and architectural ownership for autonomous checkout integrations.

RiskAttack mechanismProtocol controlSystem owner
Agent impersonationSpoofed headers and unauthorized bot executionUCP profile discovery, mTLS, and AP2 cnf key bindingAPI Gateway
Consent scope creepAgent exceeding buyer budget or cart boundariesAP2 closed mandates, short exp, and ACP allowancesCheckout Service
Credential exposureMan-in-the-middle interception of raw card PANsACP delegated_payment_token and Mastercard Level 3 noncesPayment Service Provider
Inventory and price driftStale cache exploitation and stock desynchronisationFeed timestamps and not_ready_for_payment session statusCatalogue & ERP Sync
Order duplicationNetwork retry loops creating multiple charges24-hour Idempotency-Key cache and HMAC webhook verificationOrder Management System
Repudiation disputesConsumer claims agent purchased without consentAP2 dual mandate and receipt chain as signed evidenceFraud & Ops
Origin scraping exhaustionHigh-frequency polling draining compute capacityToken-bucket rate limits (HTTP 429) and scoped feedsEdge Infrastructure

Agent impersonation: how do you stop unverified bots from transacting?

An unverified agent looks identical to a rogue scraper attempting credential stuffing unless your edge validates cryptographic identity claims. Malicious actors frequently alter the client User-Agent string to mimic standard search assistants or purchasing platforms, hoping to exploit permissive headless checkout endpoints.

Protocol-level agentic commerce security requires verifiable identity discovery. In the Universal Commerce Protocol specification, compliant clients send the UCP-Agent request header using RFC 8941 structured dictionary syntax to point to their hosted profile URI. Ingress gateways resolve this profile and enforce out-of-band verification, including pre-shared API keys, OAuth 2.0 client credentials, or mutual TLS (mTLS).

For payment authorisation, the Agent Payments Protocol (AP2) binds the agent to an asymmetric key pair using the cnf (confirmation) claim. On the card network level, Mastercard Agentic Tokens provisioned through MDES allow card issuers to verify that the request originated from an accredited purchasing agent rather than an automated browser script. If the cryptographic signature fails or the profile domain does not match verified records, your gateway drops the connection with an HTTP 401 Unauthorized response before cart creation begins.

Scope creep happens when an autonomous agent misunderstands natural-language constraints and commits a consumer to an unapproved price, incorrect quantity, or invalid product variant. Resolving agentic commerce consent requires rigid mathematical and temporal boundaries rather than prompt-based instructions.

Google AP2 establishes this separation by splitting permissions into open mandates and closed mandates. An open mandate defines general shopping intent with explicit ceiling constraints, such as a maximum budget and category restrictions. When the cart is assembled, the system issues a closed mandate binding the agent to an immutable, itemised list of items and an exact total price.

The AP2 specification enforces a strict operational rule: a shopping agent must not present a subsequent open mandate without first receiving a signed rejection receipt for the previous attempt. This prevents an agent from fanning out multiple checkout attempts against a single user authorisation. Merchants must enforce the exp (expiration) claim on incoming mandates, capping session validity at tight intervals, typically 900 seconds (15 minutes). Similarly, the OpenAI Agentic Commerce Protocol (ACP) enforces an allowance amount on the POST /agentic_commerce/delegate_payment endpoint. If the authoritative cart total exceeds this allowance by a single penny, the checkout rejects the execution automatically.

Eliminating payment credential exposure at the agent boundary

Passing raw Primary Account Numbers (PANs) through an LLM agent context exposes the store to catastrophic compliance liabilities and PCI DSS audit failures. Memory retention, prompt extraction exploits, and intermediate logging pipelines make conversational environments unsafe for raw financial data.

The architectural control is delegated tokenisation. Under ACP, the agent never touches the underlying payment credential. Instead, the merchant payment handler exchanges the buyer intent for a scoped, ephemeral delegated_payment_token. This token is restricted to a specific merchant identifier and order total, rendering it useless if exfiltrated.

Advanced implementations adopt Mastercard Level 3 programmatic checkout credentials. Technical guidance in the Mastercard Developer documentation establishes that Level 3 flows require cryptographic signature and nonce binding alongside credential-hash matching. The merchant validates that the nonce present in the incoming identity payload matches the nonce in the HTTP message signature headers. If the signature or nonce differs, the merchant terminates the session immediately, preventing token replay across checkout instances.

Stopping price and inventory drift before checkout completion

Cached product feeds inevitably diverge from live warehouse inventory during multi-step agent evaluation cycles. A consumer assistant might spend thirty minutes negotiating options across multiple vendors, only to attempt a purchase after stock has depleted or a scheduled flash sale has ended.

A chatbot hallucinating a discount is mildly embarrassing; an autonomous agent executing three consecutive orders against that hallucinated price is an accounting disaster.

Mitigating inventory drift requires treating catalog feeds as advisory signals while enforcing transactional truth at the checkout session boundary. In the ACP feed specification, merchants publish structured attributes including availability, inventory_quantity, price, and expiration_date. While static feeds refresh on periodic cadences, the merchant checkout engine performs real-time stock allocation during POST /checkout_sessions updates.

If real-time stock drops below the requested quantity or a price expires, the checkout engine returns a status of not_ready_for_payment instead of advancing to ready_for_payment. The response payload returns updated total details and fulfilment options, forcing the agent to evaluate the updated reality and obtain fresh consent before completing the transaction.

Tackling agentic commerce fraud, webhook idempotency, and non-repudiable disputes

High-speed autonomous retries frequently cause duplicate order placement and fulfilment desynchronisation unless mutating endpoints enforce idempotency guarantees. When network connections drop during payment processing, agents naturally retry the completion call, which can trigger duplicate ledger charges without proper guards.

Every mutating checkout call must require an Idempotency-Key header containing a unique UUID. On the custom checkout middleware we shipped for a multi-channel retailer, we configured Redis to store idempotency keys for 24 hours, returning cached completion payloads on retries rather than re-executing payment captures.

Order lifecycle synchronisation relies on the order.created and order.updated webhooks. Merchants must sign every outbound webhook payload with HMAC SHA-256 signatures, allowing receiving platforms to verify that order confirmation events originate from the authoritative store.

While our architectural review of agentic payments and checkout architecture details how liability shifts between network participants, the merchant remains the party holding inventory risk during authorisation windows. Resolving agentic commerce fraud and chargebacks requires non-repudiable evidence. Under the Google Agent Payments Protocol repository, transactions generate four linked cryptographic records: the Checkout Mandate, Checkout Receipt, Payment Mandate, and Payment Receipt. Storing this signed bundle alongside your order management record provides irrefutable proof of agent authority and buyer consent during payment network dispute evaluations.

Containing catalogue scraping overhead and rate limit exhaustion

Unchecked agent discovery swarms can rapidly exhaust origin compute resources, degrading storefront performance for human shoppers. As multiple agent platforms crawl products concurrently, un-cached Storefront API queries and dynamic server-side rendering routes experience heavy latency spikes.

Protecting infrastructure requires establishing clear protocol boundaries, as outlined in our analysis of agentic commerce protocols ACP, MCP, and UCP. Merchants must isolate agent traffic from primary theme rendering pipelines by directing bots to lightweight machine-readable feeds or scoped Catalog Model Context Protocol (MCP) endpoints.

Edge proxies should enforce token-bucket rate limiting, returning HTTP 429 Too Many Requests when unauthenticated crawlers exceed thresholds, such as 100 requests per minute per IP address. Edge-caching catalogue responses ensures p95 read latency stays under 100ms, insulating origin database instances from automated query volume.

The short version

Securing an online store for autonomous agent transactions is an engineering discipline centred on protocol boundaries, cryptographic assertions, and strict state management. Implementing an agent-ready architecture requires a structured rollout across your infrastructure:

  1. Week 1 (Edge isolation and discovery): Publish structured product feeds containing explicit availability and expiration_date fields. Enforce edge rate limits at 100 requests per minute to prevent origin exhaustion.
  2. Week 2 (Session validation and idempotency): Implement Idempotency-Key validation backed by a 24-hour Redis cache on all checkout endpoints. Enforce the not_ready_for_payment state whenever live price or stock diverges from feed records.
  3. Week 3 (Identity and tokenisation): Configure UCP-Agent header verification at the ingress gateway. Replace plaintext payment collection with ACP delegated_payment_token handlers and enforce Mastercard Level 3 nonce verification.
  4. Week 4 (Mandates and audit logging): Implement AP2 mandate verification, rejecting open mandates without prior rejection receipts and checking the exp timestamp. Archive dual mandate and receipt chains next to order records for non-repudiable dispute defence.

If your team is preparing your checkout architecture for autonomous agents or hardening existing endpoints against protocol-level fraud, we scope and implement these controls through our eCommerce development services.

Frequently Asked Questions

The questions buyers and engineers ask us most about this topic.

How do merchants prevent unverified AI agents from completing fraudulent checkouts?

Merchants authenticate incoming requests using protocol-level identity checks rather than bot detection heuristics. In the Universal Commerce Protocol (UCP), endpoints inspect the UCP-Agent header to discover the agent profile and enforce out-of-band verification like mutual TLS or scoped API keys. On payment networks, Mastercard Agentic Tokens allow card issuers to distinguish agent transactions from human checkouts, stopping unauthenticated bot swarms at the payment gateway.

What is the difference between open and closed mandates in agentic commerce?

An open mandate grants an agent bounded purchasing authority across product categories within a budget and time window, while a closed mandate binds the agent to an exact, itemised cart and final price. Under protocols like Google AP2, agents must not issue a subsequent open mandate without holding a rejection receipt from the prior attempt, preventing automated double-spending across multiple checkout sessions.

How does agentic checkout protect raw payment credentials from interception?

Standard agentic protocols eliminate plaintext cardholder data by replacing raw Primary Account Numbers with scoped delegated tokens. In the Agentic Commerce Protocol (ACP), the delegate payment endpoint returns a short-lived delegated_payment_token. Mastercard Level 3 implementations combine these tokens with cryptographic signature and nonce binding, ensuring that intercepted tokens cannot be replayed on other checkouts.