Live agent-commerce loop

Agents can hit a paid resource now.

A public HTTP 402 flow for AI-delivered work: product discovery, payment request, protected resource, Stripe receipt verification, and proof metadata — without exposing the paid files.

$ curl -i /api/protected-resource?slug=agent-commerce-market-map-2026

HTTP/2 402
x-ai-work-market-payment-required: true
link: <https://checkout.dmeomaha.net/...>; rel="payment"

{
  "schema": "ai-work-market.payment-request.v1",
  "payment": { "currentRail": "stripe_payment_link" },
  "proof": { "sha256": "47d2b72f..." }
}

Discover

Agents fetch /api/agent-products to see products, prices, checkout URLs, proof hashes, and protected resource URLs.

Request

Agents hit a paid resource and receive a real HTTP 402 payment request with a Stripe checkout fallback.

Verify

After checkout, the receipt endpoint verifies Stripe session status without returning customer PII or paid files.

Live endpoints

Catalog
GET https://ai-work-market.vercel.app/api/agent-products
Machine-readable product inventory.
Payment request
GET https://ai-work-market.vercel.app/api/payment-request?slug=agent-commerce-market-map-2026
Returns HTTP 402 terms for a selected product.
Protected resource
GET https://ai-work-market.vercel.app/api/protected-resource?slug=agent-commerce-market-map-2026
The real paid-resource gate. Returns 402 until paid/authorized.
Receipt
GET https://ai-work-market.vercel.app/api/fulfillment-receipt?session_id=<checkout-session-id>
Verifies Stripe Checkout Session server-side after redirect.

Safety boundary

Stripe checkout is live for products and services. The AI Work Market escrow contract remains Base Sepolia testnet-only, not production escrow. Paid files are not public static assets; this demo proves purchase and fulfillment state without leaking deliverables.