{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/lynx/main/json-schema/lynx-doc-create-client-org-external-bank-account-request-schema.json",
  "title": "DocCreateClientOrgExternalBankAccountRequest",
  "x-generated": "2026-10-14",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/lynx-external-account-api-openapi.yml#/components/schemas/DocCreateClientOrgExternalBankAccountRequest",
  "type": "object",
  "properties": {
    "data": {
      "$ref": "#/$defs/CreateClientOrgExternalBankAccountRequest"
    },
    "idempotency": {
      "$ref": "#/$defs/Idempotency",
      "description": "Unique identifier that represents the operation"
    }
  },
  "required": [
    "data",
    "idempotency"
  ],
  "$defs": {
    "ChildClientOrgDto": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "The name of the child client organization"
        }
      },
      "required": [
        "name"
      ]
    },
    "ClientOrgDto": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "The name of the client organization"
        }
      },
      "required": [
        "name"
      ]
    },
    "ClientOrgExternalBankAccount": {
      "type": "object",
      "properties": {
        "accountNumber": {
          "type": "string",
          "description": "The bank account number"
        },
        "routingNumber": {
          "type": "string",
          "description": "The account routing number (9 Digits, numeric)"
        },
        "name": {
          "type": "string",
          "description": "A name for this account"
        },
        "achAuthorizedIndicator": {
          "type": "boolean",
          "description": "Indicates whether the Client has been authorized to initiate ACH transactions against this account"
        },
        "achPushIndicator": {
          "type": "boolean",
          "description": "Indicates whether the Client is authorizing the external account for ACH push transactions."
        },
        "type": {
          "type": "string",
          "description": "Type of account",
          "enum": [
            "Checking",
            "Savings"
          ]
        }
      },
      "required": [
        "accountNumber",
        "achAuthorizedIndicator",
        "name",
        "routingNumber",
        "type"
      ]
    },
    "CreateClientOrgExternalBankAccountRequest": {
      "type": "object",
      "properties": {
        "clientOrg": {
          "$ref": "#/$defs/ClientOrgDto"
        },
        "childClientOrg": {
          "$ref": "#/$defs/ChildClientOrgDto"
        },
        "clientOrgExternalBankAccount": {
          "$ref": "#/$defs/ClientOrgExternalBankAccount"
        }
      },
      "required": [
        "clientOrg",
        "clientOrgExternalBankAccount"
      ]
    },
    "Idempotency": {
      "type": "object",
      "properties": {
        "idempotencyKey": {
          "type": "string",
          "description": "Unique identifier that represents the operation"
        }
      }
    }
  }
}