{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/conversoriaecnae-es/json-schema/conversoriaecnae-es-subscribe-request-schema.json",
  "title": "SubscribeRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/conversoriaecnae-es-cuenta-api-openapi.yml#/components/schemas/SubscribeRequest",
  "type": "object",
  "required": [
    "email",
    "name",
    "plan"
  ],
  "properties": {
    "email": {
      "type": "string",
      "format": "email",
      "maxLength": 254
    },
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 100
    },
    "plan": {
      "type": "string",
      "enum": [
        "profesional",
        "empresa"
      ]
    },
    "billing_cycle": {
      "type": "string",
      "enum": [
        "monthly",
        "annual"
      ],
      "default": "monthly"
    },
    "utm_source": {
      "type": "string",
      "minLength": 1,
      "maxLength": 64,
      "pattern": "^[a-z0-9_-]+$"
    },
    "email_lead_id": {
      "type": "string",
      "format": "uuid"
    }
  }
}