{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/dbt-se/json-schema/dbt-se-organization-lookup-response-body-schema.json",
  "title": "OrganizationLookupResponseBody",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/dbt-se-identity-api-openapi.yml#/components/schemas/OrganizationLookupResponseBody",
  "type": "array",
  "items": {
    "type": "object",
    "properties": {
      "orgId": {
        "type": "string"
      },
      "name": {
        "type": "string"
      },
      "registeredName": {
        "type": [
          "string",
          "null"
        ]
      },
      "town": {
        "type": [
          "string",
          "null"
        ]
      },
      "country": {
        "type": [
          "string",
          "null"
        ]
      },
      "postalCode": {
        "type": [
          "string",
          "null"
        ]
      },
      "address": {
        "type": [
          "string",
          "null"
        ]
      },
      "coAddress": {
        "type": [
          "string",
          "null"
        ]
      },
      "municipality": {
        "type": [
          "string",
          "null"
        ]
      },
      "region": {
        "type": [
          "string",
          "null"
        ]
      },
      "county": {
        "type": [
          "string",
          "null"
        ]
      },
      "legalForm": {
        "type": [
          "string",
          "null"
        ]
      },
      "legalFormDescription": {
        "type": [
          "string",
          "null"
        ]
      },
      "registrationDate": {
        "type": [
          "object",
          "null"
        ],
        "properties": {
          "dateString": {
            "type": "string"
          },
          "day": {
            "type": "number"
          },
          "monthIndex": {
            "type": "number"
          },
          "timeZone": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "date"
            ]
          },
          "year": {
            "type": "number"
          }
        },
        "required": [
          "dateString",
          "day",
          "monthIndex",
          "timeZone",
          "type",
          "year"
        ]
      },
      "deregistrationDate": {
        "type": [
          "object",
          "null"
        ],
        "properties": {
          "dateString": {
            "type": "string"
          },
          "day": {
            "type": "number"
          },
          "monthIndex": {
            "type": "number"
          },
          "timeZone": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "date"
            ]
          },
          "year": {
            "type": "number"
          }
        },
        "required": [
          "dateString",
          "day",
          "monthIndex",
          "timeZone",
          "type",
          "year"
        ]
      },
      "deregistrationReason": {
        "type": [
          "string",
          "null"
        ]
      },
      "bankruptcyDate": {
        "type": [
          "object",
          "null"
        ],
        "properties": {
          "dateString": {
            "type": "string"
          },
          "day": {
            "type": "number"
          },
          "monthIndex": {
            "type": "number"
          },
          "timeZone": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "date"
            ]
          },
          "year": {
            "type": "number"
          }
        },
        "required": [
          "dateString",
          "day",
          "monthIndex",
          "timeZone",
          "type",
          "year"
        ]
      }
    },
    "required": [
      "orgId",
      "name",
      "registeredName",
      "town",
      "country",
      "postalCode",
      "address",
      "coAddress",
      "municipality",
      "region",
      "county",
      "legalForm",
      "legalFormDescription",
      "registrationDate",
      "deregistrationDate",
      "deregistrationReason",
      "bankruptcyDate"
    ]
  }
}