{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/methodfi/main/json-schema/methodfi-entity-response-2-schema.json",
  "title": "EntityResponse_2",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/methodfi-entities-api-openapi.yml#/components/schemas/EntityResponse_2",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "type": {
      "type": "string"
    },
    "individual": {
      "$ref": "#/$defs/Individual"
    },
    "corporation": {
      "$ref": "#/$defs/Corporation"
    },
    "status": {
      "type": "string",
      "enum": [
        "active",
        "incomplete",
        "disabled"
      ]
    },
    "verification": {
      "type": "object"
    },
    "products": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "restricted_products": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "error": {
      "type": [
        "object",
        "null"
      ]
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time"
    }
  },
  "$defs": {
    "Corporation": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "dba": {
          "type": "string"
        },
        "ein": {
          "type": "string"
        },
        "owners": {
          "type": "array",
          "items": {
            "type": "object"
          }
        }
      }
    },
    "Individual": {
      "type": "object",
      "properties": {
        "first_name": {
          "type": "string"
        },
        "last_name": {
          "type": "string"
        },
        "phone": {
          "type": "string"
        },
        "email": {
          "type": "string"
        },
        "dob": {
          "type": "string",
          "format": "date"
        }
      }
    }
  }
}