{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/medianfi-com/json-schema/medianfi-com-create-bank-account-input-schema.json",
  "title": "CreateBankAccountInput",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/medianfi-com-bank-accounts-api-openapi.yml#/components/schemas/CreateBankAccountInput",
  "type": "object",
  "required": [
    "entityId",
    "institutionName",
    "currency"
  ],
  "properties": {
    "entityId": {
      "type": "string",
      "format": "uuid"
    },
    "institutionName": {
      "type": "string",
      "minLength": 1,
      "maxLength": 255
    },
    "accountName": {
      "type": "string",
      "maxLength": 255
    },
    "accountType": {
      "type": "string",
      "enum": [
        "checking",
        "savings",
        "credit",
        "investment",
        "processor"
      ]
    },
    "mask": {
      "type": "string",
      "maxLength": 10
    },
    "currency": {
      "type": "string",
      "minLength": 3,
      "maxLength": 3,
      "pattern": "^[A-Z]{3}$"
    },
    "balanceCents": {
      "type": "integer"
    },
    "externalId": {
      "type": "string"
    }
  }
}