We built UCP to power agentic commerce. Here's the architecture behind it.
Overview
Shopify introduces the Universal Commerce Protocol (UCP), an open standard co-developed with Google that enables AI agents to discover, negotiate, and transact with any merchant. The article explains UCP's layered architecture of capabilities and extensions, its discovery and negotiation mechanisms using reverse-domain naming, graceful human-agent handoff via the Embedded Checkout Protocol, and dynamic two-sided payment negotiation.
What You'll Learn
How UCP layers capabilities and extensions to model complex commerce without monolithic rigidity
How discovery and negotiation work between AI agents and merchants using published profiles
Why reverse-domain naming enables permissionless extension of the protocol without central registries
How the checkout state machine enables graceful handoff between AI agents and human buyers
How two-sided payment negotiation dynamically resolves payment methods per transaction
Prerequisites & Requirements
- Understanding of API protocols and HTTP content negotiation patterns
- Familiarity with e-commerce concepts like checkout flows, payment processing, and fulfillment
- Basic understanding of AI agents and agentic commerce patterns(optional)
- Understanding of protocol design principles such as TCP/IP layering(optional)
Key Questions Answered
What is the Universal Commerce Protocol (UCP) and what problem does it solve?
How does UCP handle capability discovery and negotiation between agents and merchants?
How does UCP allow custom extensions without a central registry or approval process?
What happens when an AI agent cannot complete a checkout autonomously in UCP?
What is the Embedded Checkout Protocol (ECP) and how does it enable agent-merchant collaboration?
How does UCP handle payment method negotiation between merchants and buyers?
How is UCP different from monolithic commerce protocols?
Which companies support the Universal Commerce Protocol?
Key Statistics & Figures
Technologies & Tools
Key Actionable Insights
1Design commerce integrations using UCP's layered capability model rather than monolithic API contracts. Separate core transaction primitives from domain-specific extensions, allowing each layer to version and evolve independently. This prevents the rigidity that causes monolithic protocols to collapse under growing complexity.UCP's architecture mirrors TCP/IP's proven approach to protocol layering, which has survived decades of internet evolution. Apply this when building any commerce platform or marketplace integration.
2Publish merchant and agent capability profiles using the /.well-known/ucp endpoint convention, and implement capability negotiation as an intersection of both profiles. This allows dynamic feature availability per transaction without hardcoded integration logic.This pattern follows the same principle as HTTP content negotiation. Implementing profile-based negotiation means new capabilities can be added without requiring coordinated deployments between merchants and agents.
3Use reverse-domain naming for custom extensions to enable permissionless protocol evolution. Any organization can define extensions under their own domain namespace without approval from a central authority, enabling an open ecosystem of commerce capabilities.This is critical for loyalty programs, specialized fulfillment, or any domain-specific commerce requirement. The pattern provides security through namespace binding while eliminating the bottleneck of committee-based standardization.
4Implement graceful handoff between AI agents and human buyers using a checkout state machine with explicit escalation states. Design for the reality that some transactions will always require human participation, while others may become fully automated as agent capabilities mature.The three-state model (incomplete, requires_escalation, ready_for_complete) with continuation URLs ensures no transaction is abandoned when an agent hits a capability gap. This is essential for regulatory compliance and merchant policies.
5Adopt two-sided payment negotiation where both merchant and agent declare supported payment handlers, and the protocol dynamically computes available options per transaction. This preserves merchant PSP optimization while respecting buyer payment preferences.Payment handlers shift based on cart contents, buyer location, and transaction amount. By inverting the integration burden—letting each payment provider publish their own handler specification—new payment methods can join the ecosystem without core protocol changes.
6Leverage Shopify's Checkout Kit and the Embedded Checkout Protocol (ECP) to embed checkout experiences directly in agent surfaces with bi-directional JSON-RPC 2.0 communication, ensuring PCIv4 compliance through strong sandboxing.ECP is built on years of Shopify's embedded checkout experience at scale. This enables seamless collaboration between agent and merchant while maintaining payment security standards.