{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/datocapital-com/json-schema/datocapital-com-company-schema.json",
  "title": "Company",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/datocapital-com-openapi.yaml#/components/schemas/Company",
  "type": "object",
  "properties": {
    "uec": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "name_original": {
      "type": "string"
    },
    "name_commercial": {
      "type": "string"
    },
    "country": {
      "type": "string"
    },
    "country_of_origin": {
      "type": "string"
    },
    "company_number": {
      "type": "string"
    },
    "company_number_secondary": {
      "type": "string"
    },
    "incorporation_date": {
      "type": "string",
      "format": "date"
    },
    "published_on": {
      "type": "string",
      "format": "date"
    },
    "dissolution_date": {
      "type": "string",
      "format": "date"
    },
    "company_type": {
      "$ref": "#/$defs/CompanyType"
    },
    "status": {
      "$ref": "#/$defs/CompanyStatus"
    },
    "registered_address": {
      "$ref": "#/$defs/Address"
    },
    "website": {
      "type": "string"
    },
    "principal_activity": {
      "type": "string"
    },
    "corporate_purpose": {
      "type": "string"
    },
    "subscribed_capital": {
      "type": "number"
    },
    "paid_in_capital": {
      "type": "number"
    },
    "superseded_by": {
      "$ref": "#/$defs/Supersession"
    },
    "url": {
      "type": "string"
    },
    "representatives_url": {
      "type": "string"
    },
    "filings_url": {
      "type": "string"
    },
    "connections_url": {
      "type": "string"
    },
    "sources_url": {
      "type": "string"
    }
  },
  "$defs": {
    "Address": {
      "type": "object",
      "properties": {
        "line1": {
          "type": "string"
        },
        "line2": {
          "type": "string"
        },
        "postal_code": {
          "type": "string"
        },
        "city": {
          "type": "string"
        },
        "region": {
          "type": "string"
        },
        "country": {
          "type": "string"
        },
        "latitude": {
          "type": "number"
        },
        "longitude": {
          "type": "number"
        }
      }
    },
    "CompanyStatus": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "name_local": {
          "type": "string"
        },
        "is_closed": {
          "type": "boolean"
        }
      }
    },
    "CompanyType": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "code": {
          "type": "string"
        },
        "name_local": {
          "type": "string"
        },
        "country": {
          "type": "string"
        }
      }
    },
    "Supersession": {
      "type": "object",
      "properties": {
        "uec": {
          "type": "string"
        },
        "reason": {
          "type": "string",
          "enum": [
            "name_change",
            "address_change",
            "duplicate_name",
            "transformation",
            "dissolution",
            "extinction",
            "different_company_number"
          ]
        },
        "url": {
          "type": "string"
        }
      }
    }
  }
}