{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/envestnet/json-schema/envestnet-verification-status-response-schema.json",
  "title": "VerificationStatusResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/envestnet-verification-api-openapi.yml#/components/schemas/VerificationStatusResponse",
  "type": "object",
  "properties": {
    "verification": {
      "type": "array",
      "readOnly": true,
      "items": {
        "$ref": "#/$defs/VerificationStatus"
      }
    }
  },
  "$defs": {
    "VerificationAccount": {
      "title": "VerificationAccount",
      "required": [
        "accountNumber",
        "accountType",
        "bankTransferCode"
      ],
      "type": "object",
      "properties": {
        "accountName": {
          "type": "string"
        },
        "accountType": {
          "type": "string",
          "enum": [
            "SAVINGS",
            "CHECKING"
          ]
        },
        "accountNumber": {
          "maxLength": 17,
          "minLength": 3,
          "type": "string"
        },
        "userClassification": {
          "type": "string",
          "enum": [
            "BUSINESS",
            "PERSONAL"
          ]
        },
        "bankTransferCode": {
          "$ref": "#/$defs/VerificationBankTransferCode"
        }
      }
    },
    "VerificationBankTransferCode": {
      "title": "VerificationBankTransferCode",
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "The FI's branch identification number.Additional Details: The routing number of the bank account in the United States. For non-United States accounts, it is the IFSC code (India), BSB number (Australia), and sort code (United Kingdom). <br><b>Account Type</b>: Aggregated<br><b>Applicable containers</b>: bank, investment<br><b>Endpoints</b>:<br><ul><li>GET accounts</li><li>GET accounts/{accountId}</li><li>POST verification</li></ul>"
        },
        "type": {
          "type": "string",
          "description": "The bank transfer code type varies depending on the region of the account origination. <br><b>Account Type</b>: Aggregated<br><b>Applicable containers</b>: bank, investment<br><b>Endpoints</b>:<br><ul><li>GET accounts</li><li>GET accounts/{accountId}</li><li>POST verification</li></ul><b>Applicable Values</b><br>",
          "enum": [
            "BSB",
            "IFSC",
            "ROUTING_NUMBER",
            "SORT_CODE"
          ]
        }
      }
    },
    "VerificationStatus": {
      "title": "VerificationStatus",
      "type": "object",
      "properties": {
        "accountId": {
          "type": "integer",
          "description": "Unique identifier for the account.<br><br><b>Endpoints</b>:<ul><li>POST verification</li><li>GET verification</li><li>PUT verification</li></ul>",
          "format": "int64"
        },
        "reason": {
          "type": "string",
          "description": "The reason the account verification failed.<br><br><b>Endpoints</b>:<ul><li>POST verification</li><li>GET verification</li><li>PUT verification</li></ul>",
          "readOnly": true,
          "enum": [
            "DATA_NOT_AVAILABLE",
            "ACCOUNT_HOLDER_MISMATCH",
            "FULL_ACCOUNT_NUMBER_AND_BANK_TRANSFER_CODE_NOT_AVAILABLE",
            "FULL_ACCOUNT_NUMBER_NOT_AVAILABLE",
            "BANK_TRANSFER_CODE_NOT_AVAILABLE",
            "EXPIRED",
            "DATA_MISMATCH",
            "INSTRUCTION_GENERATION_ERROR"
          ]
        },
        "verificationStatus": {
          "type": "string",
          "description": "The status of the account verification.<br><br><b>Endpoints</b>:<ul><li>POST verification</li><li>GET verification</li><li>PUT verification</li></ul><br><b>Applicable Values</b>",
          "readOnly": true,
          "enum": [
            "INITIATED",
            "DEPOSITED",
            "SUCCESS",
            "FAILED"
          ]
        },
        "providerAccountId": {
          "type": "integer",
          "description": "Unique identifier for the provider account.<br><br><b>Endpoints</b>:<ul><li>POST verification</li><li>GET verification</li><li>PUT verification</li></ul>",
          "format": "int64"
        },
        "verificationType": {
          "type": "string",
          "description": "The account verification type.<br><br><b>Endpoints</b>:<ul><li>POST verification</li><li>GET verification</li><li>PUT verification</li></ul><br><b>Applicable Values</b>",
          "enum": [
            "MATCHING",
            "CHALLENGE_DEPOSIT"
          ]
        },
        "account": {
          "$ref": "#/$defs/VerificationAccount"
        },
        "remainingAttempts": {
          "type": "integer",
          "format": "int64",
          "readOnly": true
        },
        "verificationDate": {
          "type": "string",
          "description": "The date of the account verification.<br><br><b>Endpoints</b>:<ul><li>POST verification</li><li>GET verification</li><li>PUT verification</li></ul>",
          "readOnly": true
        },
        "verificationId": {
          "type": "integer",
          "description": "Unique identifier for the verification request.<br><br><b>Endpoints</b>:<ul><li>POST verification</li><li>GET verification</li><li>PUT verification</li></ul>",
          "format": "int64",
          "readOnly": true
        }
      }
    }
  }
}