{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/mcpgate/main/json-schema/mcpgate-issue-request-schema.json",
  "title": "IssueRequest",
  "description": "Issue a new subscription.\n\nEither provide ``owner_id`` to link to an existing customer record,\nor provide ``customer_name`` (and optionally ``customer_email``) to\ncreate one inline. When both are given, ``owner_id`` wins.",
  "x-generated": "2026-10-18",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/mcpgate-api-openapi.json#/components/schemas/IssueRequest",
  "properties": {
    "owner_id": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 64
        },
        {
          "type": "null"
        }
      ],
      "title": "Owner Id"
    },
    "customer_name": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 255,
          "minLength": 1
        },
        {
          "type": "null"
        }
      ],
      "title": "Customer Name"
    },
    "customer_email": {
      "anyOf": [
        {
          "type": "string",
          "format": "email"
        },
        {
          "type": "null"
        }
      ],
      "title": "Customer Email"
    },
    "tier": {
      "type": "string",
      "enum": [
        "team",
        "enterprise"
      ],
      "title": "Tier"
    },
    "duration_days": {
      "type": "integer",
      "maximum": 3650.0,
      "minimum": 1.0,
      "title": "Duration Days"
    },
    "notes": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 2000
        },
        {
          "type": "null"
        }
      ],
      "title": "Notes"
    }
  },
  "type": "object",
  "required": [
    "tier",
    "duration_days"
  ]
}