{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/penneo/json-schema/penneo-com-penneo-collect-api-customer-dto-forms-customer-form-response-schema.json",
  "title": "CustomerFormResponse",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/penneo-penneo-collect-api-api-openapi.yml#/components/schemas/com.penneo.collect.api.customer.dto.forms.CustomerFormResponse",
  "type": "object",
  "properties": {
    "additionalSignersConfig": {
      "oneOf": [
        {
          "type": "null"
        },
        {
          "$ref": "#/$defs/com.penneo.collect.dal.entities.AdditionalSignersConfig"
        }
      ]
    },
    "cancelUrl": {
      "type": [
        "null",
        "string"
      ],
      "title": "String"
    },
    "caseFileOwnerId": {
      "type": [
        "null",
        "integer"
      ],
      "format": "int32",
      "title": "Int"
    },
    "caseFileTitleTemplate": {
      "type": [
        "null",
        "string"
      ],
      "title": "String"
    },
    "disableEmailAttachments": {
      "type": "boolean",
      "title": "Boolean"
    },
    "folderId": {
      "type": [
        "null",
        "integer"
      ],
      "format": "int32",
      "title": "Int"
    },
    "formId": {
      "$ref": "#/$defs/java.util.UUID"
    },
    "insecureSigningMethods": {
      "type": [
        "null",
        "array"
      ],
      "items": {
        "$ref": "#/$defs/com.penneo.collect.dal.models.InsecureSigningMethod"
      },
      "title": "List<InsecureSigningMethod>"
    },
    "instructions": {
      "type": [
        "null",
        "string"
      ],
      "title": "String"
    },
    "language": {
      "$ref": "#/$defs/com.penneo.collect.dal.entities.FormLang"
    },
    "name": {
      "type": "string",
      "title": "String"
    },
    "predefinedSigners": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/com.penneo.collect.api.customer.dto.signers.PredefinedSignerResponse"
      },
      "title": "List<PredefinedSignerResponse>"
    },
    "primarySigner": {
      "oneOf": [
        {
          "type": "null"
        },
        {
          "$ref": "#/$defs/com.penneo.collect.dal.entities.PrimarySignerConfig"
        }
      ]
    },
    "publishedURL": {
      "type": [
        "null",
        "string"
      ],
      "title": "String"
    },
    "reminder": {
      "oneOf": [
        {
          "type": "null"
        },
        {
          "$ref": "#/$defs/com.penneo.collect.dal.models.ReminderConfig"
        }
      ]
    },
    "sections": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/com.penneo.collect.api.customer.dto.forms.CustomerSectionResponse"
      },
      "title": "List<CustomerSectionResponse>"
    },
    "secureSigningMethods": {
      "type": [
        "null",
        "array"
      ],
      "items": {
        "$ref": "#/$defs/com.penneo.collect.dal.models.SecureSigningMethod"
      },
      "title": "List<SecureSigningMethod>"
    },
    "status": {
      "$ref": "#/$defs/com.penneo.collect.dal.entities.FormStatus"
    },
    "successUrl": {
      "type": [
        "null",
        "string"
      ],
      "title": "String"
    },
    "version": {
      "type": "string",
      "title": "String"
    }
  },
  "required": [
    "disableEmailAttachments",
    "formId",
    "language",
    "name",
    "predefinedSigners",
    "sections",
    "status",
    "version"
  ],
  "$defs": {
    "com.penneo.collect.api.common.dto.FieldPrefilledValueResponse": {
      "type": "object",
      "properties": {
        "editable": {
          "type": "boolean",
          "title": "Boolean"
        },
        "value": {
          "type": [
            "null",
            "object"
          ],
          "title": "Any"
        }
      },
      "required": [
        "editable"
      ],
      "title": "FieldPrefilledValueResponse"
    },
    "com.penneo.collect.api.common.dto.FieldValidationsResponse": {
      "type": "object",
      "properties": {
        "allowDecimals": {
          "type": [
            "null",
            "boolean"
          ],
          "title": "Boolean"
        },
        "digitsOnly": {
          "type": [
            "null",
            "boolean"
          ],
          "title": "Boolean"
        },
        "exact": {
          "type": [
            "null",
            "string"
          ],
          "title": "String"
        },
        "max": {
          "type": [
            "null",
            "number"
          ],
          "format": "double",
          "title": "Double"
        },
        "maxDate": {
          "type": [
            "null",
            "string"
          ],
          "title": "String"
        },
        "maxLength": {
          "type": [
            "null",
            "integer"
          ],
          "format": "int32",
          "title": "Int"
        },
        "min": {
          "type": [
            "null",
            "number"
          ],
          "format": "double",
          "title": "Double"
        },
        "minDate": {
          "type": [
            "null",
            "string"
          ],
          "title": "String"
        },
        "minLength": {
          "type": [
            "null",
            "integer"
          ],
          "format": "int32",
          "title": "Int"
        }
      },
      "title": "FieldValidationsResponse"
    },
    "com.penneo.collect.api.common.dto.SectionAttrRequest": {
      "type": "object",
      "properties": {
        "collapsable": {
          "type": [
            "null",
            "boolean"
          ],
          "title": "Boolean"
        },
        "collapsed": {
          "type": [
            "null",
            "boolean"
          ],
          "title": "Boolean"
        }
      },
      "title": "SectionAttrRequest"
    },
    "com.penneo.collect.api.customer.dto.fields.CreateFieldOptionRequest": {
      "type": "object",
      "properties": {
        "label": {
          "type": "string",
          "title": "String"
        },
        "selected": {
          "type": [
            "null",
            "boolean"
          ],
          "title": "Boolean"
        },
        "value": {
          "type": "string",
          "title": "String"
        }
      },
      "required": [
        "label",
        "value"
      ],
      "title": "CreateFieldOptionRequest"
    },
    "com.penneo.collect.api.customer.dto.forms.CustomerFieldResponse": {
      "type": "object",
      "properties": {
        "condition": {
          "oneOf": [
            {
              "type": "null"
            },
            {
              "$ref": "#/$defs/com.penneo.collect.dal.models.ConditionConfig"
            }
          ]
        },
        "content": {
          "type": [
            "null",
            "string"
          ],
          "title": "String"
        },
        "countryCodes": {
          "type": [
            "null",
            "array"
          ],
          "items": {
            "$ref": "#/$defs/com.penneo.collect.dal.models.CountryCode"
          },
          "title": "List<CountryCode>"
        },
        "dateFormat": {
          "type": [
            "null",
            "string"
          ],
          "title": "String"
        },
        "datetimeFormat": {
          "type": [
            "null",
            "string"
          ],
          "title": "String"
        },
        "description": {
          "type": [
            "null",
            "string"
          ],
          "title": "String"
        },
        "label": {
          "type": "string",
          "title": "String"
        },
        "layout": {
          "oneOf": [
            {
              "type": "null"
            },
            {
              "$ref": "#/$defs/com.penneo.collect.dal.models.Layout"
            }
          ]
        },
        "mapTo": {
          "type": [
            "null",
            "string"
          ],
          "title": "String"
        },
        "multiline": {
          "type": [
            "null",
            "boolean"
          ],
          "title": "Boolean"
        },
        "multipleEntries": {
          "oneOf": [
            {
              "type": "null"
            },
            {
              "$ref": "#/$defs/com.penneo.collect.dal.models.MultipleEntriesConfig"
            }
          ]
        },
        "name": {
          "type": "string",
          "title": "String"
        },
        "options": {
          "type": [
            "null",
            "array"
          ],
          "items": {
            "$ref": "#/$defs/com.penneo.collect.api.customer.dto.fields.CreateFieldOptionRequest"
          },
          "title": "List<CreateFieldOptionRequest>"
        },
        "prefilled": {
          "oneOf": [
            {
              "type": "null"
            },
            {
              "$ref": "#/$defs/com.penneo.collect.api.common.dto.FieldPrefilledValueResponse"
            }
          ]
        },
        "required": {
          "type": "boolean",
          "title": "Boolean"
        },
        "signable": {
          "type": [
            "null",
            "boolean"
          ],
          "title": "Boolean"
        },
        "type": {
          "$ref": "#/$defs/com.penneo.collect.dal.entities.FieldType"
        },
        "validations": {
          "$ref": "#/$defs/com.penneo.collect.api.common.dto.FieldValidationsResponse"
        }
      },
      "required": [
        "label",
        "name",
        "required",
        "type",
        "validations"
      ],
      "title": "CustomerFieldResponse"
    },
    "com.penneo.collect.api.customer.dto.forms.CustomerSectionResponse": {
      "type": "object",
      "properties": {
        "attr": {
          "oneOf": [
            {
              "type": "null"
            },
            {
              "$ref": "#/$defs/com.penneo.collect.api.common.dto.SectionAttrRequest"
            }
          ]
        },
        "condition": {
          "oneOf": [
            {
              "type": "null"
            },
            {
              "$ref": "#/$defs/com.penneo.collect.dal.models.ConditionConfig"
            }
          ]
        },
        "description": {
          "type": [
            "null",
            "string"
          ],
          "title": "String"
        },
        "fields": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/com.penneo.collect.api.customer.dto.forms.CustomerFieldResponse"
          },
          "title": "List<CustomerFieldResponse>"
        },
        "multipleEntries": {
          "oneOf": [
            {
              "type": "null"
            },
            {
              "$ref": "#/$defs/com.penneo.collect.dal.models.SectionMultipleEntriesConfig"
            }
          ]
        },
        "slug": {
          "type": "string",
          "title": "String"
        },
        "title": {
          "type": "string",
          "title": "String"
        }
      },
      "required": [
        "fields",
        "slug",
        "title"
      ],
      "title": "CustomerSectionResponse"
    },
    "com.penneo.collect.api.customer.dto.signers.PredefinedSignerResponse": {
      "type": "object",
      "properties": {
        "email": {
          "type": "string",
          "title": "String"
        },
        "fullName": {
          "type": "string",
          "title": "String"
        },
        "insecureSigningMethods": {
          "type": [
            "null",
            "array"
          ],
          "items": {
            "$ref": "#/$defs/com.penneo.collect.dal.models.InsecureSigningMethod"
          },
          "title": "List<InsecureSigningMethod>"
        },
        "secureSigningMethods": {
          "type": [
            "null",
            "array"
          ],
          "items": {
            "$ref": "#/$defs/com.penneo.collect.dal.models.SecureSigningMethod"
          },
          "title": "List<SecureSigningMethod>"
        }
      },
      "required": [
        "email",
        "fullName"
      ],
      "title": "PredefinedSignerResponse"
    },
    "com.penneo.collect.dal.entities.AdditionalSignersConfig": {
      "type": "object",
      "properties": {
        "maxDynamicSlots": {
          "type": "integer",
          "format": "int32",
          "title": "Int"
        },
        "slots": {
          "type": [
            "null",
            "array"
          ],
          "items": {
            "$ref": "#/$defs/com.penneo.collect.dal.entities.SignerSlot"
          },
          "title": "List<SignerSlot>"
        }
      },
      "required": [
        "maxDynamicSlots"
      ],
      "title": "AdditionalSignersConfig"
    },
    "com.penneo.collect.dal.entities.FieldType": {
      "type": "string",
      "enum": [
        "TEXT",
        "NUMBER",
        "DATE",
        "DATETIME",
        "NIN",
        "PHONE",
        "CHOICE",
        "HTML",
        "EMAIL",
        "BUSINESS_ID",
        "FILE",
        "IBAN"
      ],
      "title": "FieldType"
    },
    "com.penneo.collect.dal.entities.FormLang": {
      "type": "string",
      "enum": [
        "DA",
        "DE",
        "EN",
        "FI",
        "FR",
        "NL",
        "NO",
        "SV"
      ],
      "title": "FormLang"
    },
    "com.penneo.collect.dal.entities.FormStatus": {
      "type": "string",
      "enum": [
        "DRAFT",
        "ACTIVE",
        "ARCHIVED",
        "SUPERSEDED",
        "DELETED"
      ],
      "title": "FormStatus"
    },
    "com.penneo.collect.dal.entities.PrimarySignerConfig": {
      "type": "object",
      "properties": {
        "insecureSigningMethods": {
          "type": [
            "null",
            "array"
          ],
          "items": {
            "$ref": "#/$defs/com.penneo.collect.dal.models.InsecureSigningMethod"
          },
          "title": "List<InsecureSigningMethod>"
        },
        "secureSigningMethods": {
          "type": [
            "null",
            "array"
          ],
          "items": {
            "$ref": "#/$defs/com.penneo.collect.dal.models.SecureSigningMethod"
          },
          "title": "List<SecureSigningMethod>"
        },
        "title": {
          "type": [
            "null",
            "string"
          ],
          "title": "String"
        }
      },
      "title": "PrimarySignerConfig"
    },
    "com.penneo.collect.dal.entities.SignerSlot": {
      "type": "object",
      "properties": {
        "condition": {
          "oneOf": [
            {
              "type": "null"
            },
            {
              "$ref": "#/$defs/com.penneo.collect.dal.models.ConditionConfig"
            }
          ]
        },
        "description": {
          "type": [
            "null",
            "string"
          ],
          "title": "String"
        },
        "insecureSigningMethods": {
          "type": [
            "null",
            "array"
          ],
          "items": {
            "$ref": "#/$defs/com.penneo.collect.dal.models.InsecureSigningMethod"
          },
          "title": "List<InsecureSigningMethod>"
        },
        "required": {
          "type": [
            "null",
            "boolean"
          ],
          "title": "Boolean"
        },
        "secureSigningMethods": {
          "type": [
            "null",
            "array"
          ],
          "items": {
            "$ref": "#/$defs/com.penneo.collect.dal.models.SecureSigningMethod"
          },
          "title": "List<SecureSigningMethod>"
        },
        "title": {
          "type": [
            "null",
            "string"
          ],
          "title": "String"
        }
      },
      "title": "SignerSlot"
    },
    "com.penneo.collect.dal.models.ConditionConfig": {
      "type": "object",
      "properties": {
        "match": {
          "$ref": "#/$defs/com.penneo.collect.dal.models.ConditionMatch"
        },
        "rules": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/com.penneo.collect.dal.models.ConditionRule"
          },
          "title": "List<ConditionRule>"
        }
      },
      "required": [
        "match",
        "rules"
      ],
      "title": "ConditionConfig"
    },
    "com.penneo.collect.dal.models.ConditionMatch": {
      "type": "string",
      "enum": [
        "ALL",
        "ANY"
      ],
      "title": "ConditionMatch"
    },
    "com.penneo.collect.dal.models.ConditionOperator": {
      "type": "string",
      "enum": [
        "EQUALS",
        "NOT_EQUALS",
        "GREATER_THAN",
        "LESS_THAN",
        "IS_EMPTY",
        "IS_NOT_EMPTY"
      ],
      "title": "ConditionOperator"
    },
    "com.penneo.collect.dal.models.ConditionRule": {
      "type": "object",
      "properties": {
        "field": {
          "type": "string",
          "title": "String"
        },
        "operator": {
          "$ref": "#/$defs/com.penneo.collect.dal.models.ConditionOperator"
        },
        "value": {
          "type": [
            "null",
            "object"
          ],
          "title": "Any"
        }
      },
      "required": [
        "field",
        "operator"
      ],
      "title": "ConditionRule"
    },
    "com.penneo.collect.dal.models.CountryCode": {
      "type": "string",
      "enum": [
        "DK",
        "NO",
        "BE",
        "SE",
        "DE",
        "FI",
        "GB",
        "US",
        "AG",
        "AI",
        "AS",
        "BB",
        "BM",
        "BS",
        "CA",
        "DM",
        "DO",
        "GD",
        "GU",
        "JM",
        "KN",
        "KY",
        "LC",
        "MP",
        "MS",
        "PR",
        "SX",
        "TC",
        "TT",
        "VC",
        "VG",
        "VI",
        "KZ",
        "RU",
        "EG",
        "ZA",
        "GR",
        "NL",
        "FR",
        "ES",
        "HU",
        "IT",
        "VA",
        "RO",
        "CH",
        "AT",
        "GG",
        "IM",
        "JE",
        "SJ",
        "PL",
        "PE",
        "MX",
        "CU",
        "AR",
        "BR",
        "CL",
        "CO",
        "VE",
        "MY",
        "AU",
        "CC",
        "CX",
        "ID",
        "PH",
        "NZ",
        "SG",
        "TH",
        "JP",
        "KR",
        "VN",
        "CN",
        "TR",
        "IN",
        "PK",
        "AF",
        "LK",
        "MM",
        "IR",
        "SS",
        "EH",
        "MA",
        "DZ",
        "TN",
        "LY",
        "GM",
        "SN",
        "MR",
        "ML",
        "GN",
        "CI",
        "BF",
        "NE",
        "TG",
        "BJ",
        "MU",
        "LR",
        "SL",
        "GH",
        "NG",
        "TD",
        "CF",
        "CM",
        "CV",
        "ST",
        "GQ",
        "GA",
        "CG",
        "CD",
        "AO",
        "GW",
        "IO",
        "AC",
        "SC",
        "SD",
        "RW",
        "ET",
        "SO",
        "DJ",
        "KE",
        "TZ",
        "UG",
        "BI",
        "MZ",
        "ZM",
        "MG",
        "RE",
        "YT",
        "ZW",
        "NA",
        "MW",
        "LS",
        "BW",
        "SZ",
        "KM",
        "SH",
        "TA",
        "ER",
        "AW",
        "FO",
        "GL",
        "GI",
        "PT",
        "LU",
        "IE",
        "IS",
        "AL",
        "MT",
        "CY",
        "AX",
        "BG",
        "LT",
        "LV",
        "EE",
        "MD",
        "AM",
        "BY",
        "AD",
        "MC",
        "SM",
        "UA",
        "RS",
        "ME",
        "XK",
        "HR",
        "SI",
        "BA",
        "MK",
        "CZ",
        "SK",
        "LI",
        "FK",
        "BZ",
        "GT",
        "SV",
        "HN",
        "NI",
        "CR",
        "PA",
        "PM",
        "HT",
        "BL",
        "GP",
        "MF",
        "BO",
        "GY",
        "EC",
        "GF",
        "PY",
        "MQ",
        "SR",
        "UY",
        "BQ",
        "CW",
        "TL",
        "NF",
        "BN",
        "NR",
        "PG",
        "TO",
        "SB",
        "VU",
        "FJ",
        "PW",
        "WF",
        "CK",
        "NU",
        "WS",
        "KI",
        "NC",
        "TV",
        "PF",
        "TK",
        "FM",
        "MH",
        "KP",
        "HK",
        "MO",
        "KH",
        "LA",
        "BD",
        "TW",
        "MV",
        "LB",
        "JO",
        "SY",
        "IQ",
        "KW",
        "SA",
        "YE",
        "OM",
        "PS",
        "AE",
        "IL",
        "BH",
        "QA",
        "BT",
        "MN",
        "NP",
        "TJ",
        "TM",
        "AZ",
        "GE",
        "KG",
        "UZ"
      ],
      "title": "CountryCode"
    },
    "com.penneo.collect.dal.models.InsecureSigningMethod": {
      "type": "string",
      "enum": [
        "TEXT",
        "DRAW",
        "IMAGE"
      ],
      "title": "InsecureSigningMethod"
    },
    "com.penneo.collect.dal.models.Layout": {
      "type": "string",
      "enum": [
        "CHECKBOX",
        "RADIO",
        "SELECT"
      ],
      "title": "Layout"
    },
    "com.penneo.collect.dal.models.MultipleEntriesConfig": {
      "type": "object",
      "properties": {
        "max": {
          "type": "integer",
          "format": "int32",
          "title": "Int"
        }
      },
      "required": [
        "max"
      ],
      "title": "MultipleEntriesConfig"
    },
    "com.penneo.collect.dal.models.ReminderConfig": {
      "type": "object",
      "properties": {
        "intervalHours": {
          "type": "array",
          "items": {
            "type": "integer",
            "format": "int32",
            "title": "Int"
          },
          "title": "List<Int>"
        },
        "maxReminders": {
          "type": "integer",
          "format": "int32",
          "title": "Int"
        },
        "sendImmediately": {
          "type": "boolean",
          "title": "Boolean"
        }
      },
      "required": [
        "intervalHours",
        "maxReminders",
        "sendImmediately"
      ],
      "title": "ReminderConfig"
    },
    "com.penneo.collect.dal.models.SectionMultipleEntriesConfig": {
      "type": "object",
      "properties": {
        "max": {
          "type": "integer",
          "format": "int32",
          "title": "Int"
        }
      },
      "required": [
        "max"
      ],
      "title": "SectionMultipleEntriesConfig"
    },
    "com.penneo.collect.dal.models.SecureSigningMethod": {
      "type": "string",
      "enum": [
        "MITID_DK",
        "BANKID_SE",
        "BANKID_NO",
        "ITSME_BE",
        "FTN_FI",
        "EID_BELGIUM_BE",
        "PASSPORT_READER_EIDENT_DK",
        "AUSWEISAPP_BUND_DE",
        "QES_PERSONAL_MITID_DK",
        "QES_ERHVERV_MITID_DK"
      ],
      "title": "SecureSigningMethod"
    },
    "java.util.UUID": {
      "type": "object",
      "properties": {},
      "title": "UUID"
    }
  }
}