{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/optum/json-schema/optum-enrollment-root-schema.json",
  "title": "EnrollmentRoot",
  "x-generated": "2026-11-09",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/optum-era-enrollment-api-api-openapi.yml#/components/schemas/EnrollmentRoot",
  "properties": {
    "attachment1": {
      "description": "Base64 encoded string",
      "type": "string"
    },
    "attachment2": {
      "description": "Base64 encoded string",
      "type": "string"
    },
    "attachment3": {
      "description": "Base64 encoded string",
      "type": "string"
    },
    "authorizedSignature": {
      "type": "string"
    },
    "clearinghouseContactName": {
      "type": "string"
    },
    "clearinghouseName": {
      "type": "string"
    },
    "emailAddress": {
      "type": "string"
    },
    "epId": {
      "format": "int64",
      "type": "integer"
    },
    "errorMessages": {
      "type": "string"
    },
    "otherId": {
      "type": "string"
    },
    "otherIdentifiers": {
      "$ref": "#/$defs/OtherIdentifiers"
    },
    "payerId": {
      "type": "string"
    },
    "preferenceForAggregation": {
      "$ref": "#/$defs/PreferenceForAggregation"
    },
    "providerAddress": {
      "$ref": "#/$defs/ProviderAddress"
    },
    "providerContact": {
      "$ref": "#/$defs/ProviderContact"
    },
    "providerIdentifiers": {
      "$ref": "#/$defs/ProviderIdentifiers"
    },
    "providerName": {
      "type": "string"
    },
    "reasonForSubmission": {
      "enum": [
        "NEW_ENROLLMENT",
        "CHANGE_ENROLLMENT",
        "CANCEL_ENROLLMENT"
      ],
      "type": "string"
    },
    "statuses": {
      "$ref": "#/$defs/ProviderEnrollmentStatus"
    },
    "version": {
      "format": "int32",
      "type": "integer"
    }
  },
  "type": "object",
  "$defs": {
    "AssociationStatus": {
      "properties": {
        "payerId": {
          "type": "string"
        },
        "providerId": {
          "type": "string"
        },
        "providerIdType": {
          "type": "string"
        },
        "rejectionReason": {
          "type": "string"
        },
        "status": {
          "type": "string"
        },
        "statusDate": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "OtherIdentifiers": {
      "properties": {
        "assigningAuthority": {
          "type": "string"
        },
        "tradingPartnerId": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "PreferenceForAggregation": {
      "properties": {
        "npi": {
          "format": "int64",
          "type": "integer"
        },
        "tin": {
          "format": "int64",
          "type": "integer"
        }
      },
      "type": "object"
    },
    "ProviderAddress": {
      "properties": {
        "city": {
          "type": "string"
        },
        "stateProvince": {
          "type": "string"
        },
        "street": {
          "type": "string"
        },
        "zipCode": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "ProviderContact": {
      "properties": {
        "contactName": {
          "type": "string"
        },
        "emailAddress": {
          "type": "string"
        },
        "faxNumber": {
          "type": "string"
        },
        "telephoneNumber": {
          "type": "string"
        },
        "telephoneNumberExtension": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "ProviderEnrollmentStatus": {
      "properties": {
        "associationStatuses": {
          "items": {
            "$ref": "#/$defs/AssociationStatus"
          },
          "type": "array"
        },
        "enrollmentStatus": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "ProviderIdentifiers": {
      "properties": {
        "npi": {
          "format": "int64",
          "type": "integer"
        },
        "tinOrEin": {
          "format": "int64",
          "type": "integer"
        }
      },
      "type": "object"
    }
  }
}