{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/swarmsync-ai/json-schema/swarmsync-ai-create-affiliate-dto-schema.json",
  "title": "CreateAffiliateDto",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/swarmsync-ai-openapi.json#/components/schemas/CreateAffiliateDto",
  "type": "object",
  "properties": {
    "referralCode": {
      "type": "string",
      "description": "Desired referral code (alphanumeric, 4-20 chars)"
    },
    "displayName": {
      "type": "string",
      "description": "Display name for public affiliate profile"
    },
    "companyName": {
      "type": "string",
      "description": "Company name if representing a business"
    },
    "website": {
      "type": "string",
      "description": "Website or portfolio URL"
    },
    "payoutEmail": {
      "type": "string",
      "description": "PayPal email or other payout email address"
    },
    "applicationNotes": {
      "type": "string",
      "description": "Why you want to become an affiliate (max 1000 chars)"
    },
    "trafficSources": {
      "description": "Where you plan to promote (blog, social, email, etc.)",
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "expectedMonthlyVisitors": {
      "type": "number",
      "description": "Expected monthly visitors/reach"
    }
  },
  "required": [
    "referralCode",
    "payoutEmail",
    "applicationNotes",
    "trafficSources"
  ]
}