DEV Community

Søren Dalby
Søren Dalby

Posted on Originally published at dalby.md AI-assisted

Universal Commerce Protocol gives AI shopping agents a shared checkout interface

Originally published as a Technical Brief on dalby.md.

The Universal Commerce Protocol (UCP) is an open specification from Google for how an AI assistant buys something from an online store on a person's behalf. A store that implements it lets any assistant that also supports it see what the store offers, fill a checkout, pay with a credential from a payment service and hand difficult steps back to the buyer.

What happened

Google announced UCP on 11 January 2026 at the National Retail Federation's annual conference. It was co-developed with Shopify, Etsy, Wayfair, Target and Walmart, and more than 20 other companies endorsed it. Google's announcement · Google Developers Blog

The specification, its JSON schemas (machine-readable definitions of what each request and response must contain) and the documentation are on GitHub under the Apache 2.0 licence, which lets anyone use and adapt them, and the published specification is at ucp.dev. UCP repository

Two sides take part. The store sells and remains the legal seller, responsible for the sale, tax and returns. The assistant buys on the person's behalf: it is the application the buyer talks to, such as Gemini. The specification calls the store the business and the assistant the platform. Despite its name, the platform is on the buyer's side, not a shop system such as Shopify. This brief says store and assistant throughout; the specification's examples keep its own terms, so business.example.com is a store and platform.example an assistant.

A call sequence between the assistant, the store and a payment service. The assistant reads the store's profile at /.well-known/ucp, creates a checkout session, and sends details until the store reports ready_for_complete. The assistant then asks the payment service for a payment credential, passing the configuration the store gave for that service, and gets back a credential, such as a token; the store takes no part in this step. The assistant completes the checkout with the credential and the store places the order. If a step needs the buyer, at any time, the store returns requires_escalation with a continue_url, and the buyer finishes that step on the store's page.

Step 1: the assistant finds out what the store supports

The store publishes a JSON profile at a fixed address on its own domain, /.well-known/ucp. The /.well-known/ path is a web convention for files that software can find without being told where they are. The profile says which protocol version the store uses, where its interface is, and which capabilities it supports. A capability is one part of the protocol, such as checkout or order tracking, and each has a dotted name, such as dev.ucp.shopping.checkout. A shortened example from the specification: UCP specification overview

{
  "ucp": {
    "version": "2026-08-25",
    "services": {
      "dev.ucp.shopping": [
        { "transport": "rest",
          "endpoint": "https://business.example.com/ucp/v1" }
      ]
    },
    "capabilities": {
      "dev.ucp.shopping.checkout": [ { "version": "2026-08-25" } ]
    }
  }
}
Enter fullscreen mode Exit fullscreen mode

A service is how to reach the store; a capability is what the store can do there. In the example, services says where to reach the store and how: dev.ucp.shopping is the shopping service, offered over REST, a plain HTTP and JSON interface, at the given address. capabilities lists what the store can do through that service, here only checkout. A real profile also lists the payment methods the store accepts, such as Google Pay or Shopify's Shop Pay.

The assistant publishes a profile of its own and sends its address with every request, in a UCP-Agent header; "agent" in the header name means the assistant, and the profile= value in the request below is that address. So the assistant reads the store's profile before its first request, and the store reads the assistant's profile from the address in each request. The store then uses only the capabilities both sides support. Extensions, such as discount codes or delivery options, add fields to a capability; if the two sides do not share the checkout capability, its extensions are not used either.

Step 2: the assistant fills a checkout

The assistant creates a checkout session with an ordinary HTTP request:

POST /checkout-sessions HTTP/1.1
UCP-Agent: profile="https://platform.example/profile"
Content-Type: application/json

{"line_items":[{"item":{"id":"item_123"},"quantity":2}]}
Enter fullscreen mode Exit fullscreen mode

The store replies with the session: an identifier, a status and any problems. In the specification's example the status is incomplete, because the buyer's email address is missing. $.buyer.email is a path to that field: $ stands for the whole session (shortened):

{
  "id": "chk_1234567890",
  "status": "incomplete",
  "messages": [
    { "type": "error", "code": "missing", "path": "$.buyer.email",
      "content": "Buyer email is required" }
  ],
  "currency": "USD"
}
Enter fullscreen mode Exit fullscreen mode

Through further updates, the assistant fills in the missing details until the session's status is ready_for_complete.

Payment goes through a payment service that the store accepts, such as Google Pay. The store's checkout response names the payment services it accepts, with its own configuration for each. The assistant starts the payment: it passes that configuration to the payment service and gets back a payment credential, such as a token tied to this purchase. The store takes no part in this step. The assistant then passes the credential on to the store instead of typing in card details. Google Developers Blog · UCP specification overview

The specification does not say where or how the buyer approves the payment. The one buyer step it describes for payment is the extra security check by the buyer's bank, covered below.

With that credential in hand, the assistant sends POST /checkout-sessions/{id}/complete, and the store places the order. UCP checkout over REST

Step 3: the buyer steps in when needed, at any point

Some steps need the buyer, such as an extra security check by the card issuer, the buyer's bank. The store then sets the status to requires_escalation, the specification's term for handing a step to the buyer, and must include a continue_url, a link to a page on its own site. The assistant opens that page, and the buyer finishes the step there. This can happen at any point during the checkout, not only after step 2; the numbers give the usual order, not a fixed one. UCP checkout schema

Other ways to connect, and versions

The examples above use REST. The specification describes three other ways to offer the same checkout:

  • MCP. The operations become tools in the Model Context Protocol (MCP), a standard way for AI assistants to call functions that an application provides. An assistant would call a checkout tool instead of sending the HTTP request itself.
  • A2A. The store runs an AI agent of its own, separate from the buyer's assistant (here "agent" means the store's AI, not the assistant named in the UCP-Agent header), and the assistant talks to it through the Agent2Agent (A2A) protocol, a standard for one AI agent to send requests to another.
  • Embedded checkout. The assistant shows the store's own checkout page inside its window, for stores that want to keep their checkout as it is.

Four versions have been released, each named by its date: 2026-01-11, 2026-01-23, 2026-04-08 and 2026-08-25. The 2026-08-25 release renames fields and moves some payment features to new names, so code written for an earlier version needs changes. When checked on 1 December 2026, it was still the latest release. UCP announcements · v2026-08-25 release notes

Why it matters

Without a shared protocol, every AI assistant needs its own integration with every store's checkout. UCP aims to replace those with one interface per store and one client per assistant. That saving arrives only if many stores and assistants adopt it.

For a shop developer, UCP is an HTTP interface described by published JSON schemas, so standard HTTP tools can send its requests, and the requests and responses can be checked against the schemas. The store's own code still decides prices, stock and taxes, and when the buyer must step in; requires_escalation gives it a defined way to hand control back. The brief on safe AI write access shows the same principle in a local app: the rules that hold are the ones the application enforces.

For a developer already building with MCP, a UCP store can appear as a set of tools in an MCP-compatible assistant. The comparison of OpenAPI and MCP explains when each kind of interface fits; UCP defines both.

Google plays two roles: it wrote UCP, and it is also an assistant that uses it, with a buy button in AI Mode, the conversational search in Google Search, and in the Gemini app. When checked on 1 December 2026, it was open only to selected stores, for products eligible in the United States, Canada and Australia. Buyers pay with Google Pay, and the store needs an account in Merchant Center, the Google service where stores manage the product listings that Google shows. Merchant Center Help

What remains unclear

  • Adoption outside Google. On 19 March 2026 Google said Commerce Inc, Salesforce and Stripe would implement UCP "in the near future". It also announced capabilities for carts, product catalogues, and linking a buyer's store account to keep member benefits. Google's March update None of the sources shows how many stores or non-Google assistants use UCP today.
  • Who controls it. UCP's Governing Council oversees how the protocol is run; for example, it approves the charters of the technical groups. Google and Shopify hold permanent seats on it, and Stripe joined on 28 April 2026. Technical groups that include Adyen, PayPal, Booking.com and DoorDash now write the payments, hotel and food parts. None of the sources mentions an independent foundation, which suggests that Google and Shopify keep a strong say over changes that implementers would have to follow. UCP announcements
  • Stability. Hotel booking (25 September 2026) and food ordering (12 November 2026) are drafts. Because a dated release can break earlier code, an implementation should state which version it supports and plan for upgrades.

AI Disclosure

Researched and drafted with AI assistance, then reviewed by Søren Dalby. Sources are linked; errors may remain, and corrections are welcome.

Sources

Checked on 1 December 2026.

Top comments (0)