{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/pitchbook/json-schema/pitchbook-bulk-result-dto-list-active-investment-dto-schema.json",
  "title": "BulkResultDtoListActiveInvestmentDto",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/pitchbook-investors-api-openapi.yml#/components/schemas/BulkResultDtoListActiveInvestmentDto",
  "type": "object",
  "properties": {
    "stats": {
      "$ref": "#/$defs/BulkStatsDto"
    },
    "matched": {
      "type": "array",
      "items": {
        "type": "array",
        "items": {
          "$ref": "#/$defs/ActiveInvestmentDto"
        }
      }
    },
    "noData": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/NoDataItemDto"
      }
    },
    "unmatched": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/FailedItemDto"
      }
    },
    "duplicates": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/DuplicatedItemDto"
      }
    }
  },
  "$defs": {
    "ActiveInvestmentDto": {
      "type": "object",
      "properties": {
        "investorId": {
          "type": "string"
        },
        "companyId": {
          "type": "string"
        },
        "companyName": {
          "type": "string"
        },
        "investorSince": {
          "type": "string",
          "format": "date"
        },
        "investmentDealId": {
          "type": "string"
        },
        "investmentDate": {
          "type": "string",
          "format": "date"
        }
      }
    },
    "BulkStatsDto": {
      "type": "object",
      "properties": {
        "total": {
          "type": "integer",
          "format": "int32"
        },
        "matched": {
          "type": "integer",
          "format": "int32"
        },
        "noData": {
          "type": "integer",
          "format": "int32"
        },
        "unmatched": {
          "type": "integer",
          "format": "int32"
        },
        "duplicates": {
          "type": "integer",
          "format": "int32"
        }
      }
    },
    "DuplicatedItemDto": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "occurrence": {
          "type": "integer",
          "format": "int32"
        }
      }
    },
    "FailedItemDto": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "reason": {
          "type": "string",
          "enum": [
            "400 BAD_REQUEST",
            "401 UNAUTHORIZED",
            "402 PAYMENT_REQUIRED",
            "403 FORBIDDEN",
            "404 NOT_FOUND",
            "405 METHOD_NOT_ALLOWED",
            "415 UNSUPPORTED_MEDIA_TYPE",
            "429 TOO_MANY_REQUESTS",
            "500 INTERNAL_SERVER_ERROR",
            "503 SERVICE_UNAVAILABLE"
          ]
        },
        "message": {
          "type": "string"
        }
      }
    },
    "NoDataItemDto": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        }
      }
    }
  }
}