{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/methodfi/main/json-schema/methodfi-connect-response-schema.json",
  "title": "ConnectResponse",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/methodfi-connect-api-openapi.yml#/components/schemas/ConnectResponse",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "entity_id": {
      "type": "string"
    },
    "status": {
      "type": "string",
      "enum": [
        "in_progress",
        "completed",
        "failed"
      ]
    },
    "accounts": {
      "type": "array",
      "description": "Liability accounts discovered for the entity.",
      "items": {
        "$ref": "#/$defs/AccountResponse"
      }
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    }
  },
  "$defs": {
    "AccountResponse": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "holder_id": {
          "type": "string"
        },
        "status": {
          "type": "string",
          "enum": [
            "active",
            "disabled",
            "closed",
            "processing"
          ]
        },
        "type": {
          "type": "string",
          "enum": [
            "ach",
            "liability"
          ]
        },
        "ach": {
          "type": "object"
        },
        "liability": {
          "type": "object"
        },
        "products": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "error": {
          "type": [
            "object",
            "null"
          ]
        },
        "created_at": {
          "type": "string",
          "format": "date-time"
        },
        "updated_at": {
          "type": "string",
          "format": "date-time"
        }
      }
    }
  }
}