{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/qorpiq-com/json-schema/qorpiq-com-annual-return-response-schema.json",
  "title": "AnnualReturnResponse",
  "x-generated": "2026-11-22",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/qorpiq-com-openapi.yml#/components/schemas/AnnualReturnResponse",
  "type": "object",
  "properties": {
    "transaction_id": {
      "type": "string"
    },
    "check": {
      "type": "string"
    },
    "cin": {
      "type": "string"
    },
    "company_name": {
      "type": [
        "string",
        "null"
      ]
    },
    "status": {
      "type": "string",
      "enum": [
        "ready"
      ]
    },
    "timestamp": {
      "type": "integer"
    },
    "currency": {
      "type": "string"
    },
    "unit": {
      "type": "string"
    },
    "annual_returns": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "fy_end": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "fy_start": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "fy_label": {
            "type": "string"
          },
          "form_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "turnover": {
            "type": [
              "number",
              "null"
            ]
          },
          "net_worth": {
            "type": [
              "number",
              "null"
            ]
          },
          "paid_up_equity": {
            "type": [
              "number",
              "null"
            ]
          },
          "equity_shares": {
            "type": [
              "number",
              "null"
            ]
          },
          "promoters": {
            "type": [
              "integer",
              "null"
            ]
          },
          "members": {
            "type": [
              "integer",
              "null"
            ]
          },
          "agm_date": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "promoter_shares": {
            "type": [
              "number",
              "null"
            ]
          },
          "public_shares": {
            "type": [
              "number",
              "null"
            ]
          },
          "promoter_pct": {
            "type": [
              "number",
              "null"
            ]
          },
          "public_pct": {
            "type": [
              "number",
              "null"
            ]
          },
          "source_document_code": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      }
    },
    "structure": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "fy_end": {
          "type": "string"
        },
        "shareholding": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "holder_group": {
                "type": "string",
                "enum": [
                  "promoter",
                  "public"
                ]
              },
              "category": {
                "type": "string"
              },
              "equity_shares": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "equity_pct": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "preference_shares": {
                "type": [
                  "number",
                  "null"
                ]
              }
            }
          }
        },
        "directors_and_kmp": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "din": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "name": {
                "type": "string"
              },
              "designation": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "equity_shares": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "cessation_date": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "date"
              }
            }
          },
          "description": "Directors and key managerial personnel with their shareholdings. din is null for KMP filed without a DIN."
        },
        "related_entities": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string"
              },
              "cin": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "relation": {
                "type": "string",
                "enum": [
                  "holding",
                  "subsidiary",
                  "associate",
                  "joint_venture",
                  "other"
                ]
              },
              "holding_pct": {
                "type": [
                  "number",
                  "null"
                ]
              }
            }
          }
        },
        "business_activities": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "code": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "description": {
                "type": "string"
              },
              "turnover_pct": {
                "type": [
                  "number",
                  "null"
                ]
              }
            }
          }
        }
      }
    },
    "named_by": {
      "type": "array",
      "description": "Companies whose own annual return names this company as a holding, subsidiary or associate.",
      "items": {
        "type": "object",
        "properties": {
          "cin": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "relation_to_them": {
            "type": "string"
          },
          "holding_pct": {
            "type": [
              "number",
              "null"
            ]
          },
          "fy_end": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          }
        }
      }
    },
    "auditors": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Auditor"
      }
    },
    "source": {
      "$ref": "#/$defs/FiledFormsSource"
    }
  },
  "$defs": {
    "Auditor": {
      "type": "object",
      "properties": {
        "fy_end": {
          "type": [
            "string",
            "null"
          ],
          "format": "date"
        },
        "firm_name": {
          "type": [
            "string",
            "null"
          ]
        },
        "firm_registration_no": {
          "type": [
            "string",
            "null"
          ]
        },
        "category": {
          "type": [
            "string",
            "null"
          ]
        },
        "partner_name": {
          "type": [
            "string",
            "null"
          ]
        },
        "partner_membership_no": {
          "type": [
            "string",
            "null"
          ]
        },
        "city": {
          "type": [
            "string",
            "null"
          ]
        },
        "report_qualified": {
          "type": [
            "boolean",
            "null"
          ]
        },
        "remarks": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "topic": {
                "type": "string"
              },
              "text": {
                "type": "string"
              }
            }
          }
        },
        "source_document_code": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    },
    "FiledFormsSource": {
      "type": "object",
      "description": "The filed forms an answer was read from, and when we last read them.",
      "required": [
        "provider",
        "kind",
        "fetched_at"
      ],
      "properties": {
        "provider": {
          "type": "string"
        },
        "kind": {
          "type": "string",
          "enum": [
            "filed_forms"
          ]
        },
        "fetched_at": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        }
      }
    }
  }
}