{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/lynx/main/json-schema/lynx-get-member-external-accounts-response-schema.json",
  "title": "GetMemberExternalAccountsResponse",
  "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/GetMemberExternalAccountsResponse",
  "type": "object",
  "properties": {
    "member": {
      "$ref": "#/$defs/BaseMember"
    },
    "clientOrg": {
      "$ref": "#/$defs/ClientOrgDto"
    },
    "externalAccounts": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/MemberBankAccountResponseDto"
      }
    }
  },
  "$defs": {
    "BaseMember": {
      "type": "object",
      "properties": {
        "clientMemberId": {
          "type": "string",
          "description": "Unique client-side identifier for the member"
        }
      },
      "required": [
        "clientMemberId"
      ]
    },
    "ClientOrgDto": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "The name of the client organization"
        }
      },
      "required": [
        "name"
      ]
    },
    "MemberBankAccountResponseDto": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "description": "Type of account"
        },
        "routingNumber": {
          "type": "string",
          "description": "The account routing number (9 Digits, numeric)"
        },
        "name": {
          "type": "string",
          "description": "A name for this account"
        },
        "verifiedIndicator": {
          "type": "boolean",
          "description": "Flag that represents the state of verification of an account"
        },
        "verifiedDate": {
          "type": "string",
          "format": "date",
          "description": "Date when the account was verified"
        },
        "memberBankAccountId": {
          "type": "string",
          "format": "uuid",
          "description": "Unique identifier of the bank account"
        },
        "accountNumberLastFour": {
          "type": "string",
          "description": "9118"
        }
      },
      "required": [
        "accountNumberLastFour",
        "name",
        "routingNumber",
        "verifiedIndicator"
      ]
    }
  }
}