Skip to main content

UCP — Universal Commerce Protocol

“The common language for platforms, agents and businesses.”

What Is UCP

UCP (Universal Commerce Protocol) is an open protocol co-developed by six industry leaders: Google, Shopify, Etsy, Wayfair, Target, and Walmart. It defines a standardized interaction language between AI agents and merchants, covering the complete commerce lifecycle — product discovery, checkout management, identity linking, order tracking, and payment token exchange. Official Specification: ucp.dev | GitHub: Universal-Commerce-Protocol/ucp (2.6k stars) | License: Apache 2.0 Latest Spec Version: 2026-04-08 (date-based versioning strategy)

Ecosystem

UCP boasts 30+ ecosystem partners spanning payments, finance, and retail:

Design Principles

Four Core Capabilities

UCP defines four core capabilities, each identified by a reverse-domain namespace:

1. Checkout

Namespace: dev.ucp.shopping.checkout AI agents can create checkout sessions and manage shopping carts, shipping methods, and payment information. A checkout session has 6 standard states (incomplete, requires_escalation, ready_for_complete, complete_in_progress, completed, canceled) and supports 5 operations (Create/Get/Update/Complete/Cancel). All monetary amounts use ISO 4217 minor units.

2. Identity Linking

Namespace: dev.ucp.common.identity_linking Built on the OAuth 2.0 Authorization Code flow, with authorization server discovery via /.well-known/oauth-authorization-server. Supports token revocation (RFC 7009).

3. Order Management

Namespace: dev.ucp.shopping.order Tracks line item status (processing/partial/fulfilled/removed) and fulfillment events (processing/shipped/in_transit/delivered, etc.). Supports adjustments such as refunds, returns, and credits. Webhooks use RFC 9421 signatures for security.

4. Payment Token Exchange

Namespace: dev.ucp.shopping.payment_token_exchange A three-step lifecycle: Negotiation, Acquisition, and Completion. Payment processors use reverse-DNS naming, and credential flow is unidirectional: from platform to merchant.

Transport Mechanisms

UCP supports four transport mechanisms to accommodate different integration scenarios:

UCP and Other Protocols

Who Should Pay Attention to UCP

Chapter Index

  1. Core Concepts — Protocol architecture, namespaces, capability negotiation algorithm, UCP Profile
  2. Checkout API — 6 states, 5 operations, embedded UI, ISO 4217 amount handling
  3. Identity Linking — OAuth 2.0 Authorization Code, token revocation, scope management
  4. Order Management — Line item status, fulfillment events, adjustments, webhook signatures
  5. Product Data and Transport — MCP tools, REST/A2A/Embedded transports, data formats
  6. Security and Authentication — RFC 9421 signatures, JWK keys, mTLS, Content-Digest
  7. Merchant Integration Guide/.well-known/ucp Profile deployment, capability declarations
  8. Platform Integration Guide — Capability negotiation algorithm, extension mechanisms, multi-platform strategies
  9. Testing and Validation — Profile validation, checkout flow testing, security compliance checks
  10. Case Studies and Extensions — Buyer Consent, AP2 Mandate extensions, integration paths

AI Prompt: UCP Integration Planning

If you want an AI assistant to help plan your UCP integration:
UCP is a rapidly evolving protocol. The latest spec version is 2026-04-08. This book is based on that version of the official documentation. Always refer to the latest version at ucp.dev. GitHub repository: Universal-Commerce-Protocol/ucp