{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/taxcompass-it/json-schema/taxcompass-it-fiscal-profile-update-schema.json",
  "title": "FiscalProfileUpdate",
  "description": "``PUT /api/autopilot/profile`` body — a partial update.\n\nEvery field is optional and ``None`` means \"leave it alone\", so the client can\nsend one step of the onboarding wizard at a time. ``onboarding_complete`` is\ndeliberately absent: the store derives it from whether the fields the first\ninvoice needs are present, rather than trusting the client to say so.\n\n``forfettario_rate`` and ``coefficient`` are absent for the same reason and a\nsharper one. The coefficient is statutory — fixed by the ATECO division under\nL. 190/2014 Allegato 4 — and the rate has conditions no field here records, so\nboth are computed by the store on every write (``derived_regime_params``).\nThey used to be accepted here and were the *only* way to set them, which is\nhow every real profile ended up with neither and the year's payment calendar\nrefused to compute. A body that still sends them is ignored rather than\nrefused: they were never anyone's to send, so a 422 would punish a client for\na field this API should not have offered.",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/taxcompass-it-openapi.json#/components/schemas/FiscalProfileUpdate",
  "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"
    }
  },
  "type": "object"
}