{
  "openapi": "3.0.3",
  "info": {
    "title": "Healthy Life Egypt Agentic Commerce & Payment API",
    "version": "1.0.0",
    "description": "API for AI agents to discover, query products, and execute payments and orders on Healthy Life Egypt."
  },
  "x-service-info": {
    "categories": [
      "health",
      "supplements",
      "ecommerce",
      "weight-loss"
    ],
    "provider": "Healthy Life Egypt",
    "url": "https://healthylifeeg.com"
  },
  "servers": [
    {
      "url": "https://healthylifeeg.com/wp-json/wc/v3",
      "description": "Production WooCommerce REST API"
    },
    {
      "url": "https://healthylifeeg.com/api/x402",
      "description": "x402 Agent Payment Gateway"
    }
  ],
  "paths": {
    "/products": {
      "get": {
        "summary": "List supplements and products",
        "operationId": "listProducts",
        "responses": {
          "200": {
            "description": "List of products with stock, price, and descriptions."
          }
        }
      }
    },
    "/orders": {
      "post": {
        "summary": "Create an order with Machine Payment Protocol or COD",
        "operationId": "createOrder",
        "x-payment-info": {
          "intent": "charge",
          "method": "card",
          "amount": "550.00",
          "currency": "EGP",
          "description": "Healthy Life Egypt Natural Weight Loss Products & Dietary Supplements"
        },
        "responses": {
          "201": {
            "description": "Order created successfully."
          },
          "402": {
            "description": "Payment Required"
          }
        }
      }
    },
    "/checkout": {
      "post": {
        "summary": "Direct checkout session",
        "operationId": "createCheckout",
        "x-payment-info": {
          "intent": "session",
          "method": "stripe",
          "amount": "550.00",
          "currency": "EGP",
          "description": "Agent Direct Checkout Session"
        },
        "responses": {
          "200": {
            "description": "Checkout session initialized."
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "x402": {
        "type": "http",
        "scheme": "bearer",
        "description": "x402 Autonomous Machine Payment Protocol"
      },
      "oauth2": {
        "type": "oauth2",
        "description": "OAuth 2.0 / Auth.md agent authentication"
      }
    }
  }
}