{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/moov/json-schema/moov-financial-institutions-schema.json",
  "title": "FinancialInstitutions",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/moov-institutions-api-openapi.yml#/components/schemas/FinancialInstitutions",
  "type": "object",
  "required": [
    "achParticipants"
  ],
  "properties": {
    "achParticipants": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/AchParticipant"
      }
    }
  },
  "$defs": {
    "AchLocation": {
      "type": "object",
      "required": [
        "address",
        "city",
        "postalCode",
        "postalCodeExtension",
        "state"
      ],
      "properties": {
        "address": {
          "type": "string",
          "maxLength": 32
        },
        "city": {
          "type": "string",
          "maxLength": 24
        },
        "postalCode": {
          "type": "string",
          "maxLength": 5
        },
        "postalCodeExtension": {
          "type": "string",
          "maxLength": 4
        },
        "state": {
          "type": "string",
          "maxLength": 24
        }
      }
    },
    "AchParticipant": {
      "type": "object",
      "required": [
        "achLocation",
        "customerName",
        "newRoutingNumber",
        "officeCode",
        "phoneNumber",
        "recordTypeCode",
        "revised",
        "routingNumber",
        "servicingFRBNumber",
        "statusCode",
        "viewCode",
        "cleanName",
        "logo"
      ],
      "properties": {
        "achLocation": {
          "$ref": "#/$defs/AchLocation"
        },
        "customerName": {
          "type": "string"
        },
        "newRoutingNumber": {
          "type": "string",
          "maxLength": 9
        },
        "officeCode": {
          "type": "string"
        },
        "phoneNumber": {
          "type": "string"
        },
        "recordTypeCode": {
          "type": "string"
        },
        "revised": {
          "type": "string"
        },
        "routingNumber": {
          "type": "string",
          "maxLength": 9
        },
        "servicingFRBNumber": {
          "type": "string"
        },
        "statusCode": {
          "type": "string"
        },
        "viewCode": {
          "type": "string"
        },
        "cleanName": {
          "type": "string"
        },
        "logo": {
          "type": [
            "object",
            "null"
          ],
          "allOf": [
            {
              "$ref": "#/$defs/InstitutionLogo"
            }
          ]
        }
      }
    },
    "InstitutionLogo": {
      "type": "object",
      "required": [
        "name",
        "url"
      ],
      "properties": {
        "name": {
          "type": "string"
        },
        "url": {
          "type": "string"
        }
      }
    }
  }
}