{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/recordwirehq-com/json-schema/recordwirehq-com-business-schema.json",
  "title": "Business",
  "description": "Fields differ by state; absent fields are omitted.",
  "x-generated": "2026-11-23",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/recordwirehq-com-openapi.json#/components/schemas/Business",
  "type": "object",
  "required": [
    "id",
    "jurisdiction",
    "jurisdictionEntityId",
    "legalName",
    "entityType",
    "status"
  ],
  "properties": {
    "id": {
      "type": "string"
    },
    "jurisdiction": {
      "type": "string"
    },
    "jurisdictionEntityId": {
      "type": "string"
    },
    "legalName": {
      "type": "string"
    },
    "entityType": {
      "$ref": "#/$defs/EntityType"
    },
    "status": {
      "type": "string",
      "enum": [
        "active",
        "inactive",
        "pending_inactive"
      ]
    },
    "statusReason": {
      "type": "string",
      "description": "The state’s own wording."
    },
    "statusDate": {
      "type": "string",
      "format": "date",
      "description": "YYYY-MM-DD"
    },
    "formationDate": {
      "type": "string",
      "format": "date",
      "description": "YYYY-MM-DD"
    },
    "formationJurisdiction": {
      "type": "string",
      "description": "Where a foreign company was formed, e.g. US-DE."
    },
    "observedAt": {
      "type": "string",
      "format": "date-time",
      "description": "When the company was first seen on the registry, where known."
    },
    "industryCode": {
      "type": "string",
      "description": "The state’s own code, where published."
    },
    "principalAddress": {
      "$ref": "#/$defs/Address"
    },
    "mailingAddress": {
      "$ref": "#/$defs/Address"
    },
    "registeredAgent": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "address": {
          "$ref": "#/$defs/Address"
        }
      }
    },
    "officers": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "name"
        ],
        "properties": {
          "name": {
            "type": "string"
          },
          "title": {
            "type": "string",
            "description": "As the state words it."
          }
        }
      }
    },
    "first_seen_at": {
      "type": "string",
      "format": "date",
      "description": "YYYY-MM-DD"
    },
    "changed_at": {
      "type": "string",
      "format": "date",
      "description": "YYYY-MM-DD"
    },
    "absent_since": {
      "oneOf": [
        {
          "type": "string",
          "format": "date",
          "description": "YYYY-MM-DD"
        },
        {
          "type": "null"
        }
      ]
    },
    "source": {
      "type": "string"
    },
    "verified_at": {
      "oneOf": [
        {
          "type": "string",
          "format": "date",
          "description": "Latest date the record was confirmed."
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "$defs": {
    "Address": {
      "type": "object",
      "properties": {
        "street1": {
          "type": "string"
        },
        "street2": {
          "type": "string"
        },
        "city": {
          "type": "string"
        },
        "state": {
          "type": "string"
        },
        "postalCode": {
          "type": "string"
        }
      }
    },
    "EntityType": {
      "type": "string",
      "enum": [
        "llc",
        "corporation",
        "lp",
        "gp",
        "business_trust",
        "public_service_authority",
        "other"
      ]
    }
  }
}