{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/leadstrategist-dk/json-schema/leadstrategist-dk-company-schema.json",
  "title": "Company",
  "x-generated": "2026-11-15",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/leadstrategist-dk-openapi.json#/components/schemas/Company",
  "allOf": [
    {
      "$ref": "#/$defs/CompanySummary"
    },
    {
      "type": "object",
      "properties": {
        "start_date": {
          "type": [
            "string",
            "null"
          ]
        },
        "business_type": {
          "type": [
            "string",
            "null"
          ]
        },
        "credit_status": {
          "type": [
            "string",
            "null"
          ]
        },
        "virksomhedsform_oversigt": {
          "type": [
            "string",
            "null"
          ]
        },
        "data_source": {
          "type": [
            "string",
            "null"
          ]
        },
        "last_updated_cvr_data": {
          "type": [
            "string",
            "null"
          ]
        },
        "snapshot_generated_at": {
          "type": [
            "string",
            "null"
          ]
        },
        "street_address": {
          "type": [
            "string",
            "null"
          ],
          "description": "Street, number, floor/door. null for sole proprietorships and other personal legal forms (the owner's home address is personal data)"
        },
        "region": {
          "type": [
            "string",
            "null"
          ],
          "description": "e.g. 'Region Midtjylland'"
        },
        "address_public": {
          "type": "boolean",
          "description": "false for personal legal forms or no address: do not display the address"
        }
      }
    }
  ],
  "$defs": {
    "CompanySummary": {
      "type": "object",
      "properties": {
        "cvrnummer": {
          "type": "string"
        },
        "company_name": {
          "type": [
            "string",
            "null"
          ]
        },
        "status": {
          "type": [
            "string",
            "null"
          ]
        },
        "industry_code": {
          "type": [
            "string",
            "null"
          ]
        },
        "industry_name": {
          "type": [
            "string",
            "null"
          ]
        },
        "phone_number": {
          "type": [
            "string",
            "null"
          ]
        },
        "email_address": {
          "type": [
            "string",
            "null"
          ]
        },
        "reklamebeskyttelse": {
          "type": "boolean"
        },
        "brancher_text": {
          "type": [
            "string",
            "null"
          ]
        },
        "latest_fin_period_end": {
          "type": [
            "string",
            "null"
          ]
        },
        "latest_fin_revenue": {
          "type": [
            "string",
            "null"
          ],
          "description": "DKK (bigint as string)"
        },
        "latest_fin_net_income": {
          "type": [
            "string",
            "null"
          ]
        },
        "latest_fin_avg_employees": {
          "type": [
            "number",
            "string",
            "null"
          ]
        },
        "latest_fin_equity": {
          "type": [
            "string",
            "null"
          ]
        },
        "latest_fin_assets": {
          "type": [
            "string",
            "null"
          ]
        },
        "postal_code": {
          "type": [
            "string",
            "null"
          ],
          "description": "Postnummer of the current CVR address, e.g. '8000'"
        },
        "city": {
          "type": [
            "string",
            "null"
          ],
          "description": "Postdistrikt, e.g. 'Aarhus C'"
        },
        "municipality_code": {
          "type": [
            "integer",
            "null"
          ],
          "description": "Kommunekode, e.g. 751"
        },
        "municipality": {
          "type": [
            "string",
            "null"
          ],
          "description": "Kommune, e.g. 'Aarhus'"
        },
        "contact_warning": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    }
  }
}