{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/divvy/json-schema/divvy-customer-bank-account-response-dto-schema.json",
  "title": "CustomerBankAccountResponseDto",
  "description": "CustomerBankAccount response Dto.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/divvy-customers-api-openapi.yml#/components/schemas/CustomerBankAccountResponseDto",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "BILL-generated ID of the customer bank account. The value begins with `cba`."
    },
    "nameOnAccount": {
      "type": "string",
      "description": "Customer bank account name"
    },
    "nickname": {
      "type": "string",
      "description": "Customer bank account nickname"
    },
    "routingNumber": {
      "type": "string",
      "description": "Customer bank routing number"
    },
    "accountNumber": {
      "type": "string",
      "description": "Customer bank account number"
    },
    "type": {
      "allOf": [
        {
          "$ref": "#/$defs/BankAccountType"
        },
        {
          "description": "Customer bank account type."
        }
      ]
    },
    "ownerType": {
      "allOf": [
        {
          "$ref": "#/$defs/BankAccountOwnerType"
        },
        {
          "description": "Customer bank account owner type."
        }
      ]
    },
    "status": {
      "allOf": [
        {
          "$ref": "#/$defs/BankAccountStatus"
        },
        {
          "description": "Customer bank account status."
        }
      ]
    },
    "archived": {
      "type": "boolean",
      "description": "Set as `true` if the customer bank account is archived"
    },
    "createdTime": {
      "type": "string",
      "description": "Created date and time",
      "format": "date-time"
    },
    "updatedTime": {
      "type": "string",
      "description": "Updated date and time",
      "format": "date-time"
    }
  },
  "$defs": {
    "BankAccountOwnerType": {
      "type": "string",
      "description": "BankAccountOwnerType Enum.",
      "enum": [
        "BUSINESS",
        "PERSONAL"
      ]
    },
    "BankAccountStatus": {
      "type": "string",
      "description": "Bank account status.",
      "enum": [
        "NOT_VERIFIED",
        "VERIFIED",
        "PENDING",
        "BLOCKED",
        "EXPIRED",
        "INVALID",
        "UNDEFINED"
      ]
    },
    "BankAccountType": {
      "type": "string",
      "description": "BankAccountType Enum.",
      "enum": [
        "CHECKING",
        "SAVINGS"
      ]
    }
  }
}