{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/taxcompass-it/json-schema/taxcompass-it-fiscal-profile-schema.json",
  "title": "FiscalProfile",
  "description": "The stored profile as the API returns it (``GET /api/autopilot/profile``).\n\nCarries the two derived numbers the write model does not: they are part of\nthe tax position the user is entitled to see — and to check against their\ncommercialista — even though nothing they send can set them. The bounds are\nthe engine's own: a rate or coefficient outside 0–1 is not a rate.",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/taxcompass-it-openapi.json#/components/schemas/FiscalProfile",
  "properties": {
    "regime": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "forfettario",
            "ordinario"
          ]
        },
        {
          "type": "null"
        }
      ],
      "title": "Regime"
    },
    "business_type": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "professionista",
            "artigiano",
            "commerciante"
          ]
        },
        {
          "type": "null"
        }
      ],
      "title": "Business Type"
    },
    "inps_fund": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "gestione_separata",
            "artigiani",
            "commercianti"
          ]
        },
        {
          "type": "null"
        }
      ],
      "title": "Inps Fund"
    },
    "primary_ateco": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 8
        },
        {
          "type": "null"
        }
      ],
      "title": "Primary Ateco"
    },
    "activity_start_date": {
      "anyOf": [
        {
          "type": "string",
          "format": "date"
        },
        {
          "type": "null"
        }
      ],
      "title": "Activity Start Date"
    },
    "startup_rate_eligible": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "title": "Startup Rate Eligible"
    },
    "invoice_prefix": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 16
        },
        {
          "type": "null"
        }
      ],
      "title": "Invoice Prefix"
    },
    "codice_fiscale": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 32
        },
        {
          "type": "null"
        }
      ],
      "title": "Codice Fiscale"
    },
    "partita_iva": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 32
        },
        {
          "type": "null"
        }
      ],
      "title": "Partita Iva"
    },
    "full_legal_name": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 200
        },
        {
          "type": "null"
        }
      ],
      "title": "Full Legal Name"
    },
    "address": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 400
        },
        {
          "type": "null"
        }
      ],
      "title": "Address"
    },
    "pec": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 320
        },
        {
          "type": "null"
        }
      ],
      "title": "Pec"
    },
    "iban": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 64
        },
        {
          "type": "null"
        }
      ],
      "title": "Iban"
    },
    "forfettario_rate": {
      "anyOf": [
        {
          "type": "string",
          "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"
        },
        {
          "type": "null"
        }
      ],
      "title": "Forfettario Rate"
    },
    "coefficient": {
      "anyOf": [
        {
          "type": "string",
          "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"
        },
        {
          "type": "null"
        }
      ],
      "title": "Coefficient"
    },
    "onboarding_complete": {
      "type": "boolean",
      "title": "Onboarding Complete",
      "default": false
    },
    "updated_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Updated At"
    }
  },
  "type": "object"
}