{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/blackbaud/json-schema/blackbaud-enrichment-request-schema.json",
  "title": "EnrichmentRequest",
  "description": "Enrichment request containing records to be matched.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/blackbaud-enrichment-api-openapi.yml#/components/schemas/EnrichmentRequest",
  "required": [
    "requested_records"
  ],
  "type": "object",
  "properties": {
    "requested_records": {
      "maxItems": 1000,
      "minItems": 1,
      "type": "array",
      "items": {
        "$ref": "#/$defs/EnrichmentRequestPerson"
      },
      "description": "List of records to be matched. Can provide up to 1000 records."
    }
  },
  "additionalProperties": false,
  "$defs": {
    "EnrichmentRequestPerson": {
      "type": "object",
      "properties": {
        "record_id": {
          "type": [
            "string",
            "null"
          ],
          "description": "The unique identifier for the person record. This field is not used for matching, but can be passed through for reference."
        },
        "first_name": {
          "type": [
            "string",
            "null"
          ],
          "description": "The person's first name."
        },
        "middle_name": {
          "type": [
            "string",
            "null"
          ],
          "description": "The person's middle name."
        },
        "last_name": {
          "type": [
            "string",
            "null"
          ],
          "description": "The person's last name."
        },
        "suffix": {
          "type": [
            "string",
            "null"
          ],
          "description": "The person's suffix (e.g., Jr., Sr., III)."
        },
        "address": {
          "type": [
            "string",
            "null"
          ],
          "description": "The person's address."
        },
        "city": {
          "type": [
            "string",
            "null"
          ],
          "description": "The person's city."
        },
        "state": {
          "type": [
            "string",
            "null"
          ],
          "description": "The person's state."
        },
        "zip_code": {
          "type": [
            "string",
            "null"
          ],
          "description": "The person's zip code."
        },
        "email": {
          "type": [
            "string",
            "null"
          ],
          "description": "The person's email address."
        },
        "phone": {
          "type": [
            "string",
            "null"
          ],
          "description": "The person's phone number."
        }
      },
      "additionalProperties": false,
      "description": "Person information to be used for matching."
    }
  }
}