Agentic Commerce Starter Kit

Implementation checklists, protocol references, and templates for WebMCP, Universal Cart Protocol, AP2, and llms.txt.

Free Launch Lab Course: Understand AI Fundamentals & Practical Applications

Our free Launch Lab course is designed to help you master AI fundamentals and practical business workflows step by step.

The Universal Cart Protocol allows AI agents to push products into a browser-native shopping cart that persists across tabs, sessions, and even different websites. Users can browse multiple stores simultaneously and check out once.

POST /api/ucp/cart\nHeaders: Content-Type: application/json, Authorization: Bearer \nBody: { "product_id": "string", "quantity": number, "variant_id?": "string", "metadata?": {} }\nResponse: { "cart_id": "string", "item_count": number, "subtotal": number }

Every product must expose: sku (unique ID), name, price (with currency), in_stock (boolean), url (canonical product page), image_url (product image for cart display)

UCP carts expire after 24 hours if no items are added. Users receive a browser notification before expiry with a one-click extend option.

AP2 (Agent Payments Protocol) enables AI agents to request and execute payments on behalf of users — but only with explicit human consent. No agent can move money without user authorization.

1. Agent calls POST /api/ap2/request-consent with amount, currency, merchant, and item description.\n2. User sees a browser-native consent dialog showing exactly what they\'re authorizing.\n3. User approves or denies. If approved, a signed consent token is returned.\n4. Agent submits the token to POST /api/ap2/execute with cart_id and consent_token.\n5. Payment completes and both user and agent receive confirmation.

JWT payload: { "sub": "user-id", "agent": "agent-id", "amount": 9700, "currency": "USD", "merchant": "merchant-domain", "iat": timestamp, "exp": timestamp+300, "nonce": "random-uuid" }\nSigned with merchant\'s private key.

• Consent tokens expire after 5 minutes\n• Each nonce can only be used once\n• Amount cannot exceed 110% of the consented value\n• Merchant domain must match the manifest domain\n• Agent must be registered in the store\'s webmcp.json

Use the AP2 sandbox endpoint POST /api/ap2/sandbox with { "amount": 100, "currency": "USD" } to simulate the full consent flow without real payment processing.

Explore our services

Popular reading