{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/foxnfe-com-br/json-schema/foxnfe-com-br-post-api-v1-rtc-parameterization-taxpayer-profiles-request-schema.json",
  "title": "post_api_v1_rtc_parameterization_taxpayer_profilesRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": [
    "app/app/Modules/Fiscal/Rtc/Http/Controllers/RtcParameterizationController.php:45"
  ],
  "type": "object",
  "properties": {
    "establishment_key": {
      "x-laravel-rules": [
        "nullable",
        "string",
        "max:32"
      ],
      "type": [
        "string",
        "null"
      ],
      "maxLength": 32
    },
    "crt": {
      "x-laravel-rules": [
        "required",
        "integer",
        "in:1,2,3"
      ],
      "type": "integer",
      "enum": [
        1,
        2,
        3
      ]
    },
    "ibs_cbs_regime": {
      "x-laravel-rules": [
        "required",
        "string",
        "max:32"
      ],
      "type": "string",
      "maxLength": 32
    },
    "valid_from": {
      "x-laravel-rules": [
        "required",
        "date_format:Y-m-d"
      ],
      "type": "string",
      "format": "date"
    },
    "valid_until": {
      "x-laravel-rules": [
        "nullable",
        "date_format:Y-m-d",
        "after_or_equal:valid_from"
      ],
      "type": [
        "string",
        "null"
      ],
      "format": "date",
      "description": "Deve ser posterior ou igual a valid_from."
    },
    "special_regimes": {
      "x-laravel-rules": [
        "nullable",
        "array"
      ],
      "type": [
        "array",
        "object",
        "null"
      ],
      "items": {},
      "additionalProperties": true
    }
  },
  "required": [
    "crt",
    "ibs_cbs_regime",
    "valid_from"
  ]
}