{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/taxcompass-it/json-schema/taxcompass-it-plan-request-schema.json",
  "title": "PlanRequest",
  "description": "Structured intake answers → one-shot Setup Plan.\n\nFive of the Italy pack's six ``critical`` slots are required here; the rest\nare optional but improve the cross-border risk flags + accountant match.\n``regulated_profession`` is the exception — it is **derived** from the\nactivity, not asked (see the field comment), so the intake never poses a\nquestion a foreign founder can't answer.",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/taxcompass-it-openapi.json#/components/schemas/PlanRequest",
  "properties": {
    "locale": {
      "type": "string",
      "enum": [
        "en",
        "pl",
        "it",
        "de",
        "fr",
        "es"
      ],
      "title": "Locale",
      "default": "en"
    },
    "current_residency": {
      "type": "string",
      "maxLength": 120,
      "minLength": 1,
      "title": "Current Residency"
    },
    "target_setup": {
      "type": "string",
      "enum": [
        "moving_to_italy",
        "staying_abroad",
        "already_in_italy"
      ],
      "title": "Target Setup"
    },
    "expected_annual_revenue_eur": {
      "type": "number",
      "maximum": 100000000.0,
      "minimum": 0.0,
      "title": "Expected Annual Revenue Eur"
    },
    "activity_description": {
      "type": "string",
      "maxLength": 2000,
      "minLength": 1,
      "title": "Activity Description"
    },
    "impatriate_eligibility": {
      "type": "boolean",
      "title": "Impatriate Eligibility"
    },
    "regulated_profession": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "title": "Regulated Profession"
    },
    "expected_annual_costs_eur": {
      "anyOf": [
        {
          "type": "number",
          "maximum": 100000000.0,
          "minimum": 0.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Expected Annual Costs Eur"
    },
    "business_type": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "professionista",
            "artigiano",
            "commerciante"
          ]
        },
        {
          "type": "null"
        }
      ],
      "title": "Business Type"
    },
    "passport_country": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 120
        },
        {
          "type": "null"
        }
      ],
      "title": "Passport Country"
    },
    "permit_status": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "eu_no_permit_needed",
            "has_self_employment",
            "has_other_permit",
            "needs_permit",
            "unsure"
          ]
        },
        {
          "type": "null"
        }
      ],
      "title": "Permit Status"
    },
    "ateco_chosen": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 12
        },
        {
          "type": "null"
        }
      ],
      "title": "Ateco Chosen"
    },
    "single_client_is_employer": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "title": "Single Client Is Employer"
    },
    "existing_business": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 2000
        },
        {
          "type": "null"
        }
      ],
      "title": "Existing Business"
    },
    "client_situation": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 2000
        },
        {
          "type": "null"
        }
      ],
      "title": "Client Situation"
    },
    "family_situation": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 2000
        },
        {
          "type": "null"
        }
      ],
      "title": "Family Situation"
    },
    "pension_situation": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 2000
        },
        {
          "type": "null"
        }
      ],
      "title": "Pension Situation"
    },
    "prior_employment_income_eur": {
      "anyOf": [
        {
          "type": "number",
          "maximum": 100000000.0,
          "minimum": 0.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Prior Employment Income Eur"
    },
    "social_security_coverage": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "none",
            "eu_a1",
            "non_eu_totalization",
            "unsure"
          ]
        },
        {
          "type": "null"
        }
      ],
      "title": "Social Security Coverage"
    },
    "days_in_italy_this_year": {
      "anyOf": [
        {
          "type": "integer",
          "maximum": 366.0,
          "minimum": 0.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Days In Italy This Year"
    },
    "urgency": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 120
        },
        {
          "type": "null"
        }
      ],
      "title": "Urgency"
    }
  },
  "type": "object",
  "required": [
    "current_residency",
    "target_setup",
    "expected_annual_revenue_eur",
    "activity_description",
    "impatriate_eligibility"
  ]
}