{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/rethink-behavioral-health/json-schema/rethink-behavioral-health-client-funder-add-request-schema.json",
  "title": "ClientFunderAddRequest",
  "x-generated": "2026-11-15",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/rethink-behavioral-health-openapi.json#/components/schemas/ClientFunderAddRequest",
  "required": [
    "authPaymentId",
    "authReleaseId",
    "clientId",
    "funderId",
    "funderSequence",
    "insuredGenderId",
    "insuredId",
    "relationshipId"
  ],
  "type": "object",
  "properties": {
    "funderId": {
      "maximum": 2147483647,
      "minimum": 1,
      "type": "integer",
      "format": "int32"
    },
    "clientId": {
      "maximum": 2147483647,
      "minimum": 1,
      "type": "integer",
      "format": "int32"
    },
    "funderSequence": {
      "maximum": 3,
      "minimum": 1,
      "type": "integer",
      "format": "int32"
    },
    "caseManagerId": {
      "maximum": 2147483647,
      "minimum": 1,
      "type": [
        "integer",
        "null"
      ],
      "format": "int32"
    },
    "clientMedicalRecordNumber": {
      "maxLength": 15,
      "minLength": 0,
      "type": [
        "string",
        "null"
      ]
    },
    "relationshipId": {
      "maximum": 2,
      "minimum": 1,
      "type": "integer",
      "format": "int32"
    },
    "insuredFirstName": {
      "maxLength": 100,
      "minLength": 0,
      "type": [
        "string",
        "null"
      ]
    },
    "insuredLastName": {
      "maxLength": 100,
      "minLength": 0,
      "type": [
        "string",
        "null"
      ]
    },
    "insuredAddressLine1": {
      "maxLength": 500,
      "minLength": 0,
      "type": [
        "string",
        "null"
      ]
    },
    "insuredCity": {
      "maxLength": 100,
      "minLength": 0,
      "type": [
        "string",
        "null"
      ]
    },
    "insuredStateId": {
      "maximum": 52,
      "minimum": 1,
      "type": [
        "integer",
        "null"
      ],
      "format": "int32"
    },
    "insuredZip": {
      "maxLength": 9,
      "minLength": 0,
      "type": [
        "string",
        "null"
      ]
    },
    "insuredPhone": {
      "maxLength": 13,
      "minLength": 0,
      "type": [
        "string",
        "null"
      ]
    },
    "insuredEmail": {
      "maxLength": 50,
      "minLength": 0,
      "pattern": "^(([^<>()\\[\\]\\.,;:\\s@\"]+(\\.[^<>()\\[\\]\\.,;:\\s@\"]+)*)|(\".+\"))@((\\[?[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\]?)|(([a-zA-Z0-9]+[a-zA-Z-0-9]*\\.)+[a-zA-Z]{2,}))$",
      "type": [
        "string",
        "null"
      ]
    },
    "serviceLineIds": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": "integer",
        "format": "int32"
      }
    },
    "insuredDob": {
      "type": [
        "string",
        "null"
      ]
    },
    "insuredGenderId": {
      "maximum": 3,
      "minimum": 1,
      "type": "integer",
      "format": "int32"
    },
    "insuredMaritalStatusId": {
      "maximum": 3,
      "minimum": 1,
      "type": [
        "integer",
        "null"
      ],
      "format": "int32"
    },
    "insuredId": {
      "maxLength": 20,
      "minLength": 0,
      "type": "string"
    },
    "policyStartDate": {
      "type": [
        "string",
        "null"
      ]
    },
    "policyEndDate": {
      "type": [
        "string",
        "null"
      ]
    },
    "policyGroup": {
      "maxLength": 100,
      "minLength": 0,
      "type": [
        "string",
        "null"
      ]
    },
    "planId": {
      "maximum": 2147483647,
      "minimum": 1,
      "type": [
        "integer",
        "null"
      ],
      "format": "int32"
    },
    "authReleaseId": {
      "maximum": 2,
      "minimum": 1,
      "type": "integer",
      "format": "int32"
    },
    "authPaymentId": {
      "maximum": 2,
      "minimum": 1,
      "type": "integer",
      "format": "int32"
    },
    "authReleaseDate": {
      "type": [
        "string",
        "null"
      ]
    }
  },
  "additionalProperties": false
}