{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/qorpiq-com/json-schema/qorpiq-com-allotments-response-schema.json",
  "title": "AllotmentsResponse",
  "x-generated": "2026-11-22",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/qorpiq-com-openapi.yml#/components/schemas/AllotmentsResponse",
  "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"
    },
    "capital_snapshot": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "as_of": {
          "type": [
            "string",
            "null"
          ],
          "format": "date"
        },
        "paid_up_capital": {
          "type": [
            "number",
            "null"
          ]
        },
        "shares": {
          "type": [
            "number",
            "null"
          ]
        },
        "form_id": {
          "type": "string"
        },
        "srn": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "description": "Paid-up capital and share count after the newest allotment that states them."
    },
    "count": {
      "type": "integer"
    },
    "allotments": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "allotment_date": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "filing_date": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "form_id": {
            "type": "string"
          },
          "srn": {
            "type": [
              "string",
              "null"
            ]
          },
          "allottees": {
            "type": [
              "integer",
              "null"
            ]
          },
          "security_type": {
            "type": [
              "string",
              "null"
            ]
          },
          "security_class": {
            "type": [
              "string",
              "null"
            ]
          },
          "allotment_type": {
            "type": [
              "string",
              "null"
            ]
          },
          "consideration": {
            "type": [
              "string",
              "null"
            ]
          },
          "consideration_description": {
            "type": [
              "string",
              "null"
            ]
          },
          "securities": {
            "type": [
              "number",
              "null"
            ]
          },
          "nominal_per_security": {
            "type": [
              "number",
              "null"
            ]
          },
          "premium_per_security": {
            "type": [
              "number",
              "null"
            ]
          },
          "paid_up_per_security": {
            "type": [
              "number",
              "null"
            ]
          },
          "total_nominal": {
            "type": [
              "number",
              "null"
            ]
          },
          "total_premium": {
            "type": [
              "number",
              "null"
            ]
          },
          "total_amount": {
            "type": [
              "number",
              "null"
            ]
          },
          "terms": {
            "type": [
              "string",
              "null"
            ]
          },
          "allottee_categories": {
            "type": [
              "string",
              "null"
            ]
          },
          "board_resolution_date": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "shareholder_resolution_date": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "mgt14_srn": {
            "type": [
              "string",
              "null"
            ]
          },
          "paid_up_capital_after": {
            "type": [
              "number",
              "null"
            ]
          },
          "shares_after": {
            "type": [
              "number",
              "null"
            ]
          }
        }
      }
    },
    "source": {
      "$ref": "#/$defs/FiledFormsSource"
    }
  },
  "$defs": {
    "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"
        }
      }
    }
  }
}