{
  "openapi": "3.1.0",
  "info": {"title": "Teal Packaging Agentic Commerce API", "version": "1.0.0",
    "description": "ACP checkout for the Teal sample kit + commerce discovery. Docs: https://tealpackaging.com/agents.md"},
  "servers": [{"url": "https://tealpackaging.com"}],
  "paths": {
    "/acp/checkout_sessions": {
      "post": {
        "operationId": "createCheckoutSession",
        "summary": "Create an agentic checkout session (TEAL-SAMPLE-KIT)",
        "security": [{"bearerAuth": []}],
        "x-payment-info": {"intent": "charge", "method": "stripe", "amount": 50, "currency": "USD",
          "description": "$50 sample kit, credited toward first custom order"},
        "responses": {"201": {"description": "Checkout session"}}
      }
    },
    "/acp/checkout_sessions/{id}/complete": {
      "post": {
        "operationId": "completeCheckoutSession",
        "summary": "Complete checkout with a Stripe Shared Payment Token",
        "security": [{"bearerAuth": []}],
        "x-payment-info": {"intent": "charge", "method": "stripe", "amount": 50, "currency": "USD"},
        "parameters": [{"name": "id", "in": "path", "required": true, "schema": {"type": "string"}}],
        "responses": {"200": {"description": "Completed session with order"}}
      }
    },
    "/mcp": {
      "post": {"operationId": "mcp", "summary": "MCP JSON-RPC endpoint (search_products, get_product, request_quote, order_sample_kit)",
        "responses": {"200": {"description": "JSON-RPC response"}}}
    }
  },
  "components": {"securitySchemes": {"bearerAuth": {"type": "http", "scheme": "bearer",
    "description": "Register: POST /oauth/register; token: POST /oauth/token (client_credentials). See /auth.md"}}}
}
