{
  "tool_id": "customer_lifetime_value",
  "slug": "customer-lifetime-value-calculator",
  "path": "/customer-lifetime-value-calculator/",
  "mode": "url_api",
  "api_usage": "GET https://aibizhub.io/api/customer-lifetime-value-calculator/?<params>",
  "sample_input": {
    "tool": "customer_lifetime_value",
    "avg_purchase_value": 50,
    "purchase_frequency_per_year": 4,
    "customer_lifespan_years": 3,
    "acquisition_cost": 100,
    "gross_margin_pct": 60
  },
  "input_schema": {
    "type": "object",
    "properties": {
      "tool": {
        "type": "string"
      },
      "avg_purchase_value": {
        "type": "integer"
      },
      "purchase_frequency_per_year": {
        "type": "integer"
      },
      "customer_lifespan_years": {
        "type": "integer"
      },
      "acquisition_cost": {
        "type": "integer"
      },
      "gross_margin_pct": {
        "type": "integer"
      }
    },
    "required": [
      "tool",
      "avg_purchase_value",
      "purchase_frequency_per_year",
      "customer_lifespan_years",
      "acquisition_cost",
      "gross_margin_pct"
    ]
  },
  "output_schema": {
    "type": "object",
    "properties": {
      "clv": {
        "type": "number"
      },
      "annualValue": {
        "type": "number"
      },
      "monthlyValue": {
        "type": "number"
      },
      "marginAdjustedClv": {
        "type": "number"
      },
      "ltcRatio": {
        "type": "number"
      },
      "paybackMonths": {
        "type": "number"
      }
    }
  }
}
