---
title: "Building the Universal Commerce Protocol"
description: "Universal Commerce Protocol (UCP), co-developed by Shopify and Google, is an open standard for AI agents to discover merchant capabilities and complete transactions."
url: "https://swe.quest/articles/building-the-universal-commerce-protocol-1c31a0f463d3eeef"
canonical: "https://shopify.engineering/ucp"
source: "Shopify Engineering"
published: "2026-01-11"
difficulty: "medium"
kind: "Deep dive"
reading_minutes: 6
tags: ["api-design","ecommerce","ai-agents","payments"]
---

# Building the Universal Commerce Protocol

A post on [Shopify Engineering](https://swe.quest/sources/shopify.md), published 2026-01-11, 6 min read, Deep dive. Original: [https://shopify.engineering/ucp](https://shopify.engineering/ucp)

## Summary

Universal Commerce Protocol (UCP), co-developed by Shopify and Google, is an open standard for AI agents to discover merchant capabilities and complete transactions. It layers a core shopping service (checkout sessions, line items, totals) under independently versioned capabilities (Checkout, Orders, Catalog) and composable extensions namespaced by reverse-domain names, so anyone owning a domain can define extensions without a central registry. Merchants publish profiles at /.well-known/ucp, agents pass their own profile URL, and the merchant computes the intersection of supported capabilities and payment handlers, similar to HTTP content negotiation. A checkout state machine (incomplete, requires\_escalation, ready\_for\_complete) plus a continue\_url and the JSON-RPC-based Embedded Checkout Protocol handle handoff to a human buyer when the agent cannot finish.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [API design](https://swe.quest/tags/api-design.md) (Backend & APIs)
- [E-commerce](https://swe.quest/tags/ecommerce.md) (Domains)
- [AI agents](https://swe.quest/tags/ai-agents.md) (AI & ML)
- [Payments & fintech](https://swe.quest/tags/payments.md) (Domains)

## Prerequisites

- REST/JSON APIs ([easy posts on API design](https://swe.quest/tags/api-design.md?difficulty=easy))
- HTTP content negotiation
- payment checkout flows

## Keywords

Universal Commerce Protocol, UCP, Embedded Checkout Protocol, Shopify Checkout Kit, JSON-RPC 2.0, Google, Shop Pay

## Related posts

- [Introducing the commerce payments protocol](https://swe.quest/articles/introducing-the-commerce-payments-protocol-364920964bfb2054.md): Shopify Engineering · 2025-06-12 · Medium · 10 min read · Payments & fintech, System design, Security
  The Commerce Payments Protocol, built by Coinbase and Shopify on Base, brings card-style authorize-and-capture flows onchain using an immutable escrow smart contract between payer and receiver.
- [MCP UI: Breaking the text wall with interactive components](https://swe.quest/articles/mcp-ui-breaking-the-text-wall-with-interactive-components-5c6a56be154e7a75.md): Shopify Engineering · 2025-08-05 · Easy · 4 min read · AI agents, Frontend, E-commerce, API design
  MCP UI extends the Model Context Protocol so servers can return interactive UI components, such as product selectors, galleries and cart flows, as embedded ui:// resources alongside JSON data.
- [ShopGym: Realistic, reproducible sandboxes for shopping agents](https://swe.quest/articles/shopgym-realistic-reproducible-sandboxes-for-shopping-agents-9debdd2215041431.md): Shopify Engineering · 2026-10-01 · Medium · 6 min read · AI agents, Evaluation, LLMs, E-commerce, Testing
  ShopGym turns live storefronts into self-contained, resettable sandbox shops and generates grounded shopping tasks so agents can be evaluated reproducibly.
- [Agents that can pay: building Restock with Stripe's Link and Managed Deep Agents](https://swe.quest/articles/agents-that-can-pay-building-restock-with-stripe-s-link-and-managed-deep-agents-d2c567a5926dc321.md): LangChain · 2026-10-08 · Medium · 6 min read · AI agents, Payments & fintech, Identity & auth, API design
  Restock is a sample Slack office-supply agent on Managed Deep Agents that makes real purchases.
- [Building the Agent Host Protocol for sessions that continue across devices](https://swe.quest/articles/building-the-agent-host-protocol-for-sessions-that-continue-across-devices-588952b6d83cc2ec.md): GitHub Engineering · 2026-11-17 · Medium · 7 min read · AI agents, API design, AI for coding, Distributed systems, Developer tools
  The Agent Host Protocol (AHP) is an open standard that lets multiple clients (VS Code, the Copilot app, mobile apps, custom tools) share the same long-running agent sessions, so work started on one device can continue on another.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
