UCP Playground
Walk through a complete UCP checkout flow step-by-step. This interactive demo runs entirely in the browser, simulating payloads and validating against real UCP schemas at each stage.
1. Platform Profile
Select the capability profile for the Platform. This determines which extensions (e.g., fulfillment, discounts) are negotiated.
Configuration
Supports basic checkout and order retrieval.
2. Discovery
The Platform fetches /.well-known/ucp. The response below is filtered to show the intersection of the Business's capabilities and the Platform's profile.
GET /.well-known/ucp HTTP/1.1 Host: business.example.com Accept: application/json
3. Capability Negotiation
Intersection of Platform and Business capabilities. Orphaned extensions are pruned.
4. Create Checkout
The Platform initiates a session. The error response below follows the strict message.json schema.
5. Update Checkout
Patch the checkout with missing information to resolve validation errors.
6. Mint Instrument
Simulate the payment handler flow to acquire a payment credential.
Select Handler
com.shopify.shop_pay
com.google.pay
7. Complete Checkout
Submit the minted instrument to finalize the transaction and create an order.
8. Webhook Simulation
Simulate a backend event (e.g., shipping center update) triggering a webhook push to the Agent.
Trigger Event
This action runs on the Business server and pushes data to the Platform's webhook URL.
// Waiting for event trigger...