Full UCP Protocol Implementation on Wix
| Component | Status |
|---|---|
| Discovery | ✅ /.well-known/ucp
|
| Catalog & Cart | ✅ Full CRUD |
| Checkout | ✅ Create/Update/Complete |
| Payment Handlers | ✅ Mint & Validate |
| Orders & Fulfillment | ✅ With Webhooks |
| Identity & Consent | ✅ GDPR Compliant |
| Protocol Bindings | ✅ MCP + A2A |
176 tests passing | 14 phases complete
Matches all 8 steps from ucp.dev/playground
| Step | Implementation |
|---|---|
| 1. Platform Profile | Capability discovery |
| 2. Discovery | /.well-known/ucp |
| 3. Capability Negotiation | 10 capabilities |
| 4. Create Checkout | POST /ucp/checkout |
| 5. Update Checkout | PATCH /ucp/checkout/:id |
| 6. Mint Instrument | POST /checkout/:id/mint |
| 7. Complete Checkout | POST /checkout/:id/complete |
| 8. Webhooks | Fulfillment events |
{
"capabilities": [
"catalog_search",
"product_details",
"cart_management",
"checkout",
"orders",
"fulfillment",
"discounts",
"payment_handlers",
"server_checkout",
"identity_linking"
]
}
Payment Handlers: com.wix.checkout.v1, com.ucp.sandbox
| Feature | Endpoint |
|---|---|
| Browse Products | GET /ucp/products |
| Product Details | GET /ucp/products/:id |
| Create Cart | POST /ucp/cart |
| Add to Cart | POST /ucp/cart/items |
| Update Item | PUT /ucp/cart/items/:id |
| Create Checkout | POST /ucp/checkout |
Powered by Wix SDK with OAuth + Headless mode
| Endpoint | Action |
|---|---|
GET /ucp/orders |
List with filters |
GET /ucp/orders/:id |
Get details |
GET /ucp/orders/:id/fulfillments |
Track shipments |
order.fulfilledshipment.in_transitshipment.deliveredtracking.updatedZod-powered request validation
router.post('/ucp/cart',
validate(UCPCreateCartRequestSchema),
handler
);
Standardized Error Response:
{
"error": "Validation Error",
"code": "VALIDATION_ERROR",
"details": [
{ "field": "items[0].quantity", "message": "Required" }
]
}
| Endpoint | Action |
|---|---|
POST /checkout/:id/coupons |
Apply coupon |
DELETE /checkout/:id/coupons |
Remove |
GET /checkout/:id/discounts |
View applied |
Response includes:
Discovery → Select Handler → Mint Instrument → Validate → Use
| Action | Endpoint |
|---|---|
| List Handlers | GET /ucp/payment-handlers |
| Mint | POST /checkout/:id/mint |
| Validate | POST /instruments/:id/validate |
4242... = Success4000...0002 = DeclineComplete purchase via API - no redirects
POST /ucp/checkout/:id/complete
{
"instrumentId": "instr_abc",
"billingAddress": {...},
"shippingAddress": {...},
"idempotencyKey": "unique-123"
}
Returns: Order ID, transaction details, totals
✅ Idempotent | ✅ One-time instrument use | ✅ Secure
Expose UCP as LLM tools
| Tool | Description |
|---|---|
ucp_discover |
Get capabilities |
ucp_search_products |
Search catalog |
ucp_create_cart |
Start cart |
ucp_complete_checkout |
Purchase |
POST /mcp/call
{ "name": "ucp_search_products", "arguments": {"query": "drinks"} }
Agent-to-Agent transaction handoff
Agent A UCP Agent B
│── POST /a2a/handoff ──▶│ │
│◀── handoffId + token ──│ │
│ │◀── accept + complete ──│
│◀── webhook ────────────│ │
Use case: Transfer shopping session between agents
POST /ucp/identity/link
{ "primaryId": "user@email.com", "platform": "alexa", "userId": "amzn1..." }
GET /gdpr/export/:id - Data exportPOST /gdpr/delete - Right to erasure┌─────────────────────────────────────────┐
│ AI Agents / LLMs │
└──────────────────┬──────────────────────┘
│ MCP / A2A / REST
┌──────────────────▼──────────────────────┐
│ UCP API Layer │
│ Discovery │ Cart │ Checkout │ Orders │
└──────────────────┬──────────────────────┘
│ Wix SDK
┌──────────────────▼──────────────────────┐
│ Wix eCommerce Platform │
│ Products │ Cart │ Checkout │ Payments │
└─────────────────────────────────────────┘
| Phase | Tests | Coverage |
|---|---|---|
| 7-10 | 45 | Orders, Validation, Fulfillment, Discounts |
| 11 | 35 | Payment Handlers |
| 12 | 20 | Server Checkout |
| 13 | 40 | MCP + A2A |
| 14 | 36 | Identity + Consent |
| Total | 176 | 100% |
All tests passing ✅
Production: https://wix-ucp-tpa.onrender.com
| Interface | URL |
|---|---|
| Discovery | /.well-known/ucp |
| AI Chat | /test/llm |
| Full Test UI | /test/full |
| Storefront | /test/storefront |
UCP Spec Version: 1.0 | Status: 100% Complete 🎉