{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cm-com/json-schema/cm-com-identification-result-schema.json",
  "title": "Identification",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cm-com-identification-api-openapi.yml#/components/schemas/IdentificationResult",
  "type": "object",
  "properties": {
    "identificationMethod": {
      "$ref": "#/$defs/IdentificationMethod",
      "description": "The result of the identification"
    },
    "status": {
      "type": "string",
      "enum": [
        "open",
        "success",
        "expired",
        "cancelled",
        "failed"
      ],
      "description": "The identification status"
    },
    "result": {
      "type": "object",
      "description": "The result of the identification. Fields will change depending on the identification method, available data or status.",
      "additionalProperties": true
    }
  },
  "$defs": {
    "IdentificationMethod": {
      "type": "string",
      "enum": [
        "idin",
        "iban",
        "otp_sms",
        "otp_email",
        "otp_whatsapp",
        "otp_voice",
        "qualified"
      ],
      "description": "Additional user identification is required. When you select `qualified` it cannot be used with other identification methods. Please note that this is only available when configured for your account."
    }
  }
}