{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/medianfi-com/json-schema/medianfi-com-bank-account-response-schema.json",
  "title": "BankAccountResponse",
  "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/BankAccountResponse",
  "type": "object",
  "properties": {
    "success": {
      "type": "boolean"
    },
    "data": {
      "$ref": "#/$defs/BankAccount"
    }
  },
  "$defs": {
    "BankAccount": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid"
        },
        "companyId": {
          "type": "string",
          "format": "uuid"
        },
        "entityId": {
          "type": "string",
          "format": "uuid"
        },
        "integrationId": {
          "type": [
            "string",
            "null"
          ],
          "format": "uuid"
        },
        "provider": {
          "type": [
            "string",
            "null"
          ]
        },
        "institutionName": {
          "type": "string"
        },
        "accountName": {
          "type": [
            "string",
            "null"
          ]
        },
        "accountType": {
          "type": [
            "string",
            "null"
          ],
          "enum": [
            "checking",
            "savings",
            "credit",
            "investment",
            "processor"
          ]
        },
        "mask": {
          "type": [
            "string",
            "null"
          ]
        },
        "currency": {
          "type": "string"
        },
        "balanceCents": {
          "type": [
            "integer",
            "null"
          ]
        },
        "status": {
          "type": "string",
          "enum": [
            "active",
            "disconnected",
            "error"
          ]
        },
        "externalId": {
          "type": [
            "string",
            "null"
          ]
        },
        "connectedAt": {
          "type": "string",
          "format": "date-time"
        },
        "lastSyncedAt": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "createdAt": {
          "type": "string",
          "format": "date-time"
        },
        "updatedAt": {
          "type": "string",
          "format": "date-time"
        }
      }
    }
  }
}