{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/q2/json-schema/q2-external-account-create-request-schema.json",
  "title": "ExternalAccountCreateRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/q2-external-account-api-openapi.yml#/components/schemas/ExternalAccountCreateRequest",
  "type": "object",
  "required": [
    "customerId",
    "routingNumber",
    "accountNumber",
    "firstName",
    "lastName",
    "type"
  ],
  "properties": {
    "customerId": {
      "$ref": "#/$defs/HelixId"
    },
    "routingNumber": {
      "type": "string",
      "maxLength": 50
    },
    "accountNumber": {
      "type": "string",
      "maxLength": 17
    },
    "firstName": {
      "type": "string",
      "maxLength": 50
    },
    "lastName": {
      "type": "string",
      "maxLength": 50
    },
    "businessName": {
      "type": "string",
      "maxLength": 100
    },
    "type": {
      "$ref": "#/$defs/type"
    },
    "name": {
      "type": "string",
      "maxLength": 50
    },
    "nickName": {
      "type": "string",
      "maxLength": 50
    },
    "tag": {
      "$ref": "#/$defs/TagProperty"
    },
    "customField1": {
      "type": "string",
      "maxLength": 50
    },
    "customField2": {
      "type": "string",
      "maxLength": 50
    },
    "customField3": {
      "type": "string",
      "maxLength": 50
    },
    "customField4": {
      "type": "string",
      "maxLength": 50
    },
    "customField5": {
      "type": "string",
      "maxLength": 50
    },
    "requestingCustomerId": {
      "allOf": [
        {
          "description": "The Helix-assigned unique ID for the individual customer requesting to create the external account. Only used when an individual is creating an external account on behalf of a business."
        },
        {
          "$ref": "#/$defs/HelixId"
        }
      ]
    }
  },
  "$defs": {
    "HelixId": {
      "type": "integer",
      "format": "int32",
      "minimum": 1
    },
    "TagProperty": {
      "type": "string",
      "maxLength": 50
    }
  }
}