{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/cm-com/main/json-schema/cm-com-identity-match-request-schema.json",
  "title": "IdentityMatchRequest",
  "x-generated": "2026-10-13",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cm-com-verification-mobile-identity-v1-openapi.yml#/components/schemas/IdentityMatchRequest",
  "type": "object",
  "properties": {
    "phoneNumber": {
      "type": "string",
      "description": "The phone number to match the person to. Must be in E.164 format."
    },
    "serviceType": {
      "$ref": "#/$defs/IdentityMatchType",
      "description": "Type of Identity Match response to be retrieved."
    },
    "firstName": {
      "type": [
        "string",
        "null"
      ],
      "description": "The first name of the person to match to",
      "maxLength": 255
    },
    "lastName": {
      "type": [
        "string",
        "null"
      ],
      "description": "The last name of the person to match to",
      "maxLength": 255
    },
    "address": {
      "type": [
        "string",
        "null"
      ],
      "description": "House number, first line of the address of the person to match to",
      "maxLength": 255
    },
    "address2": {
      "type": [
        "string",
        "null"
      ],
      "description": "Optional additional address line",
      "maxLength": 255
    },
    "address3": {
      "type": [
        "string",
        "null"
      ],
      "description": "Optional additional address line",
      "maxLength": 255
    },
    "postalCode": {
      "type": [
        "string",
        "null"
      ],
      "description": "Postal code of the address of the person to match to",
      "maxLength": 255
    },
    "dateOfBirth": {
      "type": [
        "string",
        "null"
      ],
      "description": "The date of birth of the person to match to. In 'YYYY-MM-DD' format.",
      "format": "date"
    }
  },
  "required": [
    "phoneNumber",
    "serviceType"
  ],
  "$defs": {
    "IdentityMatchType": {
      "type": "string",
      "enum": [
        "match",
        "score"
      ]
    }
  }
}