{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/genomsyn-se/json-schema/genomsyn-se-foretag-schema.json",
  "title": "Foretag",
  "x-generated": "2026-11-09",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/genomsyn-se-openapi.json#/components/schemas/Foretag",
  "properties": {
    "antal_bokslut": {
      "type": "integer"
    },
    "avregistreringsdatum": {
      "format": "date",
      "type": [
        "string",
        "null"
      ]
    },
    "bankgiro": {
      "description": "Daterade uppslag hos Bankgirot. Tom lista betyder att färska uppgifter saknas, inte att bolaget saknar bankgiro.",
      "items": {
        "$ref": "#/$defs/Bankgiro"
      },
      "type": "array"
    },
    "bransch": {
      "type": [
        "string",
        "null"
      ]
    },
    "bransch_kod": {
      "type": [
        "string",
        "null"
      ]
    },
    "gatuadress": {
      "type": [
        "string",
        "null"
      ]
    },
    "lank": {
      "format": "uri",
      "type": "string"
    },
    "namn": {
      "type": "string"
    },
    "organisationsform": {
      "type": [
        "string",
        "null"
      ]
    },
    "orgnr": {
      "type": "string"
    },
    "postnummer": {
      "type": [
        "string",
        "null"
      ]
    },
    "postort": {
      "type": [
        "string",
        "null"
      ]
    },
    "registreringsdatum": {
      "format": "date",
      "type": [
        "string",
        "null"
      ]
    },
    "senaste_anstallda": {
      "type": [
        "number",
        "null"
      ]
    },
    "senaste_omsattning": {
      "type": [
        "integer",
        "null"
      ]
    },
    "senaste_resultat": {
      "type": [
        "integer",
        "null"
      ]
    },
    "senaste_soliditet": {
      "type": [
        "number",
        "null"
      ]
    },
    "status": {
      "type": "string"
    },
    "stiftelse": {
      "$ref": "#/$defs/Stiftelse"
    },
    "verksamhet": {
      "type": [
        "string",
        "null"
      ]
    }
  },
  "type": "object",
  "$defs": {
    "Bankgiro": {
      "properties": {
        "bankgironummer": {
          "type": "string"
        },
        "hamtad_at": {
          "format": "date-time",
          "type": "string"
        },
        "kalla": {
          "format": "uri",
          "type": "string"
        },
        "namn": {
          "description": "Mottagarnamn hos Bankgirot.",
          "type": "string"
        }
      },
      "type": "object"
    },
    "Stiftelse": {
      "description": "Komplettering från Länsstyrelsen. Saknas utan matchad källpost. Personroller publiceras inte.",
      "properties": {
        "adress": {
          "type": "string"
        },
        "andamal": {
          "type": "string"
        },
        "coadress": {
          "type": "string"
        },
        "firmateckning": {
          "type": "string"
        },
        "firmor": {
          "items": {
            "properties": {
              "namn": {
                "type": "string"
              },
              "naringsverksamhet": {
                "type": "string"
              }
            },
            "type": "object"
          },
          "type": "array"
        },
        "id": {
          "type": "integer"
        },
        "inlast_tid": {
          "description": "När en ny källfil importerades här, inte när registerposten ändrades.",
          "format": "date-time",
          "type": "string"
        },
        "kalla": {
          "format": "uri",
          "type": "string"
        },
        "kommun_kod": {
          "type": [
            "string",
            "null"
          ]
        },
        "lan_kod": {
          "type": [
            "string",
            "null"
          ]
        },
        "namn": {
          "type": "string"
        },
        "postnummer": {
          "type": "string"
        },
        "postort": {
          "type": "string"
        },
        "sha256": {
          "type": "string"
        },
        "telefon": {
          "type": "string"
        },
        "typ": {
          "type": "string"
        },
        "typ_kod": {
          "type": "integer"
        },
        "webbplats": {
          "type": "string"
        }
      },
      "type": "object"
    }
  }
}