Skip to content

Universal Commerce Protocol

UCP is the open standard AI agents use to discover, price, and complete a purchase without a bespoke integration. Every public Sessions business is reachable from any agent that speaks it — over REST, MCP, or an embedded checkout the host frames.

Endpoint/.well-known/ucpSpec version2026-04-08TransportsREST · MCP

What Sessions exposes

One capability: checkout. An agent creates a checkout session for a single product or a single scheduled session, sets the buyer, and completes it. Underneath, the adapter calls the same checkout the website calls — so pricing rules, early-bird tiers, discount conditions, tax, capacity, confirmation email, and webhooks all behave identically whether the buyer used a browser or an agent.

Sessions sells services and digital goods, so UCP's fulfillment object is omitted — there is no shipping address, carrier, or delivery window to negotiate. The business remains merchant of record through its own Stripe connected account, which is exactly the payment model UCP assumes.

Capability
dev.ucp.shopping.checkout
Transports
rest, mcp
Payment handler
com.sessions.stripe
Identity scope
ucp:checkout_session

Discovery

Every participating business publishes a manifest at the well-known UCP path on its own origin. Fetch it first: it tells you which capabilities exist, which transports carry them, and how to pay.

There is no opt-in: every public, live business exposes the manifest and both callable bindings. A business that is private or has been deleted 404s, exactly as it does everywhere else on the public API — so UCP never reveals a business the rest of the surface hides.

Item ids are Sessions global ids
A line item's item.id is the same opaque gid://Sessions/… id the public API hands out, so anything you found through the public API or the public MCP server can go straight into a checkout session.
bash
curl https://go.sessions.website/@<handle>/.well-known/ucp

Reading the manifest

Four keys matter. Everything else is spec boilerplate you can ignore.

services
Where to send requests, one entry per transport. Pick rest or mcp; both reach the same capability.
capabilities
What this merchant implements. Today that is dev.ucp.shopping.checkout and nothing else.
payment_handlers
How to pay. Sessions advertises a single Stripe handler carrying the business's own publishable key and connected account.
signing_keys
Empty. Sessions does not yet sign responses or emit signed order webhooks, so no key is advertised rather than one you cannot verify against.
.well-known/ucp
{
  "ucp": {
    "version": "2026-04-08",
    "services": {
      "dev.ucp.shopping": [
        {"transport": "rest", "endpoint": "…/api/ucp/rest"},
        {"transport": "mcp",  "endpoint": "…/api/ucp/mcp"}
      ]
    },
    "capabilities": {
      "dev.ucp.shopping.checkout": [{"version": "2026-04-08"}]
    },
    "payment_handlers": {
      "com.sessions.stripe": [{
        "id": "stripe",
        "available_instruments": [{"type": "card"}],
        "config": {
          "gateway": "stripe",
          "publishable_key": "pk_…",
          "stripe_account": "acct_…",
          "credential_type": "PAYMENT_GATEWAY"
        }
      }]
    }
  },
  "signing_keys": []
}

What you can put in a checkout

A line item points at a Sessions product or a scheduled session, by its global id.

Products
gid://Sessions/Pass/…
A multi-visit pass. Requires a linked identity, because the remaining visits live on an account.
gid://Sessions/Membership/…
A recurring membership. Always escalates — the buyer has to authorise the recurring charge themselves.
gid://Sessions/GiftCard/…
A gift card. Works anonymously.
gid://Sessions/PhysicalProduct/…
A physical good. Always escalates today — shipping is not collected.
Bookings
gid://Sessions/Session/…
One scheduled class session. Books the buyer in, or escalates when the session collects a waiver or is full.
One item per checkout
Sessions buys one product or books one session per order, so a checkout session takes exactly one line item with quantity 1. For several items, create several checkout sessions.

Status

The session's status is the single thing to branch on.

incomplete
Something is still missing — usually the buyer's email, or a payment credential for a paid item. Update and try again.
ready_for_complete
Priced and complete-able. Nothing is reserved and nothing is charged yet.
complete_in_progress
A completion is running. A second complete is refused rather than charging twice.
requires_escalation
The purchase needs a step the protocol cannot express. Send the buyer to continue_url to finish in the browser.
completed
Fulfilled and immutable. order carries the id, label, and a permalink the buyer can open.
canceled
Abandoned. Terminal.

Escalation

Some purchases involve a step no commerce protocol has vocabulary for: signing a waiver, answering an intake question, authorising a recurring charge, passing a bank's 3-D Secure challenge. Rather than completing an order that is missing something the business legally or operationally needs, the session comes back requires_escalation with a continue_url.

Escalation can happen at create (the session collects a waiver, the item is a membership) or at complete (the card needs a challenge). Treat it as a normal outcome, not an error: hand the buyer the link and stop polling.

Escalation is not failure
The checkout page behind continue_url picks up exactly where the agent left off, so the buyer finishes rather than starts over.

The two bindings

Same capability, same objects, same messages. Pick whichever your platform already speaks — the reference for each lives with the rest of the public API.

/api/ucp/rest
Five HTTP routes under /api/ucp/rest. The natural fit for a server-side commerce integration, and the binding the wider UCP ecosystem targets first.
/api/ucp/mcp
The same five operations as JSON-RPC tools at /api/ucp/mcp. The natural fit for a conversational assistant already connected to Sessions for discovery — it can carry a session id straight from browse_sessions into create_checkout on the same connection.

What UCP reaches

UCP's checkout capability is a narrower contract than the Sessions API. Here is exactly where the edges are and what to use instead — so you find out now rather than three days into an integration.

AgentAgent
Works end to end from the agent. No browser step.
EscalatesEscalates
Starts in the agent and finishes in the browser: the session returns requires_escalation with a continue_url that resumes where you left off.
ElsewhereElsewhere
Outside the checkout capability entirely. Use the public GraphQL API, the public MCP server, or webhooks.

Coverage

Every row of the Sessions checkout surface, and where it lands.

Products
PassesAgent
Bought and fulfilled through the agent, provided the buyer's identity is linked — the remaining visits have to live on an account.
Gift cardsAgent
Bought and fulfilled through the agent, anonymously or linked.
MembershipsEscalates
A membership is a subscription with its own recurring-charge consent and mandate. Consenting on the buyer's behalf isn't ours to do, so it always escalates.
Physical productsEscalates
No shipping address is collected, because UCP's fulfillment capability isn't implemented. Always escalates.
Gifting a productElsewhere
Buying a product for someone else, with a recipient and a scheduled send, has no UCP shape. Use purchaseProduct on the public GraphQL API.
Bookings
Class bookingAgent
One scheduled class session, booked for the buyer.
Waivers & intake formsEscalates
A waiver, contract, or required intake question has to be answered by the buyer, and UCP has no vocabulary for collecting it. Escalates.
WaitlistsEscalates
Joining a waitlist is a different promise from buying a spot, so the buyer should see it. The message carries requires_buyer_review and a link.
Choosing a spotEscalates
Sessions with assigned spots (a bike, a mat, a lane) need the buyer to pick one. Escalates.
Appointment bookingElsewhere
Booking a time range on a bookable activity isn't a line item — it's a start and an end. Use bookActivityTime on the public GraphQL API.
League & team sign-upElsewhere
Team and division sign-up has its own multi-step flow. Use the public GraphQL API.
Booking for a child or guestElsewhere
Booking for a child or a guest needs that participant's details, which UCP's buyer object doesn't carry. Use the public GraphQL API.
Money
Card paymentAgent
Charged on the business's connected account with the token you supply.
Free checkoutAgent
A zero-total checkout completes with no credential at all.
Discount & gift-card codesAgent
Both are supported, through a Sessions-namespaced extension on the checkout object.
Sales taxAgent
Computed by the same engine as the website, and reflected in the totals column before you complete.
3-D SecureEscalates
A bank challenge needs the buyer present. Escalates, with the payment left recoverable.
Paying with an existing passElsewhere
Paying for a booking by spending an existing pass or membership isn't a payment instrument in UCP's model. Use checkout on the public GraphQL API, naming the pass as the session item's useEntitlement.
The buyer’s saved cardsElsewhere
The buyer's cards saved in Sessions aren't selectable from an agent — you supply your own token. Saved cards stay a browser feature.
Refunds & cancellationsElsewhere
UCP cancel abandons an unfinished checkout; it never reverses a completed order. Cancelling a booking is cancel_booking on the public MCP server, and refunds are the business's to issue.
Around the purchase
Browsing what’s for saleElsewhere
There is no UCP catalogue capability, so an agent arrives with an item id. Find items with the public MCP server's discovery tools or the public GraphQL API.
Reading past ordersElsewhere
The checkout session returns its own order; reading a buyer's history is my_bookings on the public MCP server.
Order lifecycle eventsElsewhere
Order lifecycle events aren't emitted in UCP shape yet. Sessions' own signed webhooks already cover confirmed bookings, completed orders, and issued passes.

Shape of a checkout

Constraints that come from how Sessions sells, not from the protocol.

One line item
A checkout session takes exactly one item. Sessions' checkout buys one product or books one session per order, and splitting a basket across orders would silently change what the buyer pays.
Quantity is always 1
There is no quantity on a Sessions purchase — a pass is a pass, a seat is a seat. A request with a quantity above 1 is rejected rather than quietly rounded down.
Passes need a linked identity
Passes and memberships attach to an account, so they need OAuth identity linking. Gift cards and bookings don't.
Anonymous checkout is a business setting
Buying without a linked identity requires the business to have guest checkout enabled. When it's off, the session escalates so the buyer can sign in.
Paid checkout needs Stripe onboarding
A business that hasn't finished Stripe onboarding can still sell free items through UCP, but a paid checkout has nowhere to charge.

Parts of UCP not implemented

The spec is broader than what Sessions advertises. Nothing here is announced in the manifest, so a conformant agent already knows not to try — this is for humans planning an integration.

Cart capability
No dev.ucp.shopping.cart. Checkout sessions are the only container.
Fulfillment capability
Not implemented. Every checkout omits the fulfillment object, which is the spec's shape for a digital or service transaction.
Discount capability
Not implemented. Codes ride in a Sessions extension instead.
Order capability
Not implemented. There is no GET /orders/<id> and no UCP-shaped lifecycle webhook.
Message signing
No HTTP message signatures on requests or responses, and signing_keys is advertised empty rather than populated with a key nothing signs with.
Embedded (ECP) transport
Implemented: an agent host frames the checkout and drives it over postMessage, with payment delegated to the host so no card input is ever framed. Available on every public business.
A2A transport
Only rest, mcp, and embedded are advertised.
Localized messages
Protocol messages are English regardless of Accept-Language. Product and session names come back in the business's own content.

Reaching the rest

Everything marked Elsewhere is reachable today — just not through this capability. The public GraphQL API is the full surface the Sessions website itself uses, and the public MCP server wraps its most common tasks as agent tools.

Discovery pairs well with UCP
An assistant can browse a business's schedule with the public MCP server, then hand the session id it found straight to create_checkout — the ids are the same.

The full public schema is documented field by field. Public GraphQL API

Identity linking

Checkout works anonymously for most items — pass a buyer email and Sessions creates or finds the account, exactly as guest checkout does on the website. Linking the buyer's real Sessions identity is what unlocks account-bound purchases, because a pass's credits have to live on an account.

ucp:checkout_session
is the OAuth scope an agent requests to transact on a buyer's behalf. It uses the existing Sessions OAuth provider — authorization code with PKCE, discovered through the standard authorization-server metadata document — so there is no UCP-specific auth flow to implement.

The handshake is the same one the MCP servers use. OAuth reference

Payments

The manifest names a Stripe handler with the business's publishable key and connected account. Tokenize the card directly against that account, then send the resulting payment-method token as the instrument's credential when you complete. Sessions never sees the card number, and no PCI scope moves to your platform.

The business is merchant of record
Charges are direct charges on the business's own Stripe account. Refunds, disputes, and receipts are the business's — not the platform's and not yours.

Errors

Protocol errors and business outcomes are deliberately different things, and you branch on them differently.

Protocol errors — a non-2xx with `{code, content}`
400 · invalid_request
The request is malformed: no line item, more than one, a quantity above 1, or a body that isn't a JSON object.
404 · not_found
No such checkout session, no such route — or no such business on this host.
409 · sessions.invalid_state
The session can no longer be changed: it is completed, cancelled, mid-completion, or its quote expired.
429 · rate_limited
Rate limited. Back off for the interval in Retry-After.
Business outcomes — a 200 carrying `messages`
out_of_stock
The session filled up. Severity distinguishes a hard stop from a waitlist the buyer could still join.
item_unavailable
The item isn't for sale — hidden, outside its sale window, cancelled, or already past.
eligibility_invalid
A rule rejected this buyer or this code: an unmet discount condition, an intro offer already used, a closed booking window.
missing_buyer_info
Something has to come from the buyer before this can complete — their email, or a payment credential.
payment_failed
The card was declined, or it needs a challenge. Severity says which.
sessions.escalation_required
A step the protocol can't express is in the way. continue_url is set.
sessions.checkout_session_expired
The quote aged out. Create a new checkout session rather than completing a stale price.

Read severity before deciding what to do: recoverable means retry as-is, requires_buyer_input means collect something, requires_buyer_review means show the buyer before continuing, and unrecoverable means stop.

Idempotency

Send an Idempotency-Key on every mutation. A repeated create with the same key returns the original session instead of a second one, so a retry after a timeout never leaves a duplicate behind.

Completion is idempotent on its own terms too: completing an already-completed session returns the same order without charging again, and the underlying charge is keyed on the session so a racing retry reuses the original payment.

Discount and gift-card codes

UCP's discount capability isn't implemented, so codes ride in a Sessions-namespaced extension on create and update rather than pretending to be a capability we don't have. They are validated server-side; a rejected code returns a recoverable message and leaves the session priced at full price.

extension
"com.sessions.codes": {"discount": "SPRING20", "gift_card": "GC-…"}

References

Sessions implements the spec as published; these are the primary sources.

Protocol overview
The protocol overview — services, capabilities, payment handlers, and the discovery manifest. ucp.dev/specification/overview
Checkout capability
The checkout capability: the session object, its status machine, totals, and messages. ucp.dev/specification/checkout
HTTP / REST binding
The HTTP binding — routes, headers, and the protocol-error vs business-outcome split. ucp.dev/specification/checkout-rest
MCP binding
The Model Context Protocol binding — tool names, the meta argument, and the dual-output result shape. ucp.dev/specification/checkout-mcp
Embedded checkout binding
The embedded binding, for hosts that want to frame a merchant checkout rather than link to it. Sessions implements it, and every public business has it. ucp.dev/specification/embedded-checkout/

Sessions pins one dated version of the spec, advertised in every manifest and echoed in every payload.

Next