{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/qorpiq-com/json-schema/qorpiq-com-company-report-response-schema.json",
  "title": "CompanyReportResponse",
  "x-generated": "2026-11-22",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/qorpiq-com-openapi.yml#/components/schemas/CompanyReportResponse",
  "type": "object",
  "properties": {
    "transaction_id": {
      "type": "string",
      "format": "uuid",
      "description": "Unique id for this request, echoed in the X-Transaction-Id header."
    },
    "check": {
      "type": "string"
    },
    "cin": {
      "type": "string"
    },
    "company": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "status": {
          "type": [
            "string",
            "null"
          ]
        },
        "class": {
          "type": [
            "string",
            "null"
          ]
        },
        "category": {
          "type": [
            "string",
            "null"
          ]
        },
        "sub_category": {
          "type": [
            "string",
            "null"
          ]
        },
        "incorporation_date": {
          "type": [
            "string",
            "null"
          ]
        },
        "roc": {
          "type": [
            "string",
            "null"
          ]
        },
        "registered_state": {
          "type": [
            "string",
            "null"
          ]
        },
        "activity": {
          "type": [
            "string",
            "null"
          ]
        },
        "authorized_capital": {
          "type": [
            "string",
            "null"
          ]
        },
        "paid_up_capital": {
          "type": [
            "string",
            "null"
          ]
        },
        "listed": {
          "type": "boolean"
        },
        "email": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    },
    "filing_health": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "latest_financials": {
          "type": [
            "object",
            "null"
          ],
          "properties": {
            "form": {
              "type": "string"
            },
            "srn": {
              "type": "string"
            },
            "event_date": {
              "type": "string"
            }
          }
        },
        "latest_annual_return": {
          "type": [
            "object",
            "null"
          ],
          "properties": {
            "form": {
              "type": "string"
            },
            "srn": {
              "type": "string"
            },
            "event_date": {
              "type": "string"
            }
          }
        },
        "financials_current": {
          "type": "boolean"
        },
        "annual_return_current": {
          "type": "boolean"
        }
      }
    },
    "charges": {
      "type": "object",
      "properties": {
        "has_open_charges": {
          "type": "boolean"
        },
        "open_count": {
          "type": "integer"
        },
        "total_count": {
          "type": "integer"
        },
        "items": {
          "type": "array",
          "items": {
            "type": "object"
          }
        }
      }
    },
    "director_count": {
      "type": "integer"
    },
    "directors": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "din": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "designation": {
            "type": [
              "string",
              "null"
            ]
          },
          "ceased": {
            "type": "boolean"
          },
          "disqualified": {
            "type": "boolean"
          }
        }
      }
    },
    "risk_flags": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "timestamp": {
      "type": "integer",
      "format": "int64",
      "description": "Response time (epoch ms)."
    },
    "adjudication": {
      "type": [
        "object",
        "null"
      ],
      "description": "Penalty exposure. null when the MCA adjudication source was transiently unavailable.",
      "properties": {
        "has_adjudication": {
          "type": "boolean"
        },
        "case_count": {
          "type": "integer"
        },
        "ongoing_violation_count": {
          "type": "integer"
        },
        "sections": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "cases": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/AdjudicationCase"
          }
        }
      }
    },
    "source": {
      "$ref": "#/$defs/RegisterSource"
    }
  },
  "$defs": {
    "AdjudicationCase": {
      "type": "object",
      "properties": {
        "case_id": {
          "type": [
            "string",
            "null"
          ]
        },
        "cin": {
          "type": [
            "string",
            "null"
          ]
        },
        "company_name": {
          "type": [
            "string",
            "null"
          ]
        },
        "identification_number": {
          "type": [
            "string",
            "null"
          ],
          "description": "The violator id the case is filed against: a DIN (director) or the CIN (company)."
        },
        "proceeding_status": {
          "type": [
            "string",
            "null"
          ]
        },
        "order_status": {
          "type": [
            "string",
            "null"
          ]
        },
        "action_required": {
          "type": [
            "string",
            "null"
          ]
        },
        "is_violator": {
          "type": "boolean"
        },
        "ongoing_violation": {
          "type": "boolean",
          "description": "true = the default is still continuing (accruing per-day penalty)."
        },
        "sections_violated": {
          "type": [
            "string",
            "null"
          ]
        },
        "provision": {
          "type": [
            "string",
            "null"
          ],
          "description": "Full statutory provision text."
        },
        "roc_code": {
          "type": [
            "string",
            "null"
          ]
        },
        "roc_location": {
          "type": [
            "string",
            "null"
          ]
        },
        "date_of_violation": {
          "type": [
            "string",
            "null"
          ]
        },
        "period_of_violation_start": {
          "type": [
            "string",
            "null"
          ]
        },
        "period_of_violation_end": {
          "type": [
            "string",
            "null"
          ]
        },
        "case_creation_date": {
          "type": [
            "string",
            "null"
          ]
        },
        "action_due_date": {
          "type": [
            "string",
            "null"
          ]
        },
        "last_updated": {
          "type": [
            "string",
            "null"
          ],
          "description": "MCA last-updated timestamp (ISO 8601)."
        }
      }
    },
    "RegisterSource": {
      "type": "object",
      "description": "Where a register answer came from: a live MCA read made for this call, or the saved copy, with when it was read.",
      "required": [
        "provider",
        "kind",
        "mode",
        "fetched_at"
      ],
      "properties": {
        "provider": {
          "type": "string"
        },
        "kind": {
          "type": "string",
          "enum": [
            "register"
          ]
        },
        "mode": {
          "type": "string",
          "enum": [
            "live",
            "saved_copy"
          ]
        },
        "fetched_at": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        }
      }
    }
  }
}