{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/wagepoint/main/json-schema/wagepoint-company-response-schema.json",
  "title": "company_response",
  "x-generated": "2026-10-14",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/wagepoint-api-openapi.json#/components/schemas/company_response",
  "type": "object",
  "properties": {
    "id": {
      "type": "integer",
      "format": "int32"
    },
    "name": {
      "type": "string"
    },
    "dba": {
      "type": "string"
    },
    "company_code": {
      "type": "string"
    },
    "status": {
      "enum": [
        "not_defined",
        "waiting_data",
        "pending_verification",
        "active",
        "inactive",
        "close_initiated",
        "close_pending",
        "closed",
        "expired",
        "banned"
      ],
      "type": "string",
      "default": "not_defined"
    },
    "phone_number": {
      "type": "string"
    },
    "primary_address": {
      "$ref": "#/$defs/address_response"
    },
    "locations": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/location_response"
      }
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    }
  },
  "$defs": {
    "address_response": {
      "type": "object",
      "properties": {
        "line1": {
          "type": "string"
        },
        "line2": {
          "type": "string"
        },
        "city": {
          "type": "string"
        },
        "state": {
          "type": "string"
        },
        "postal_code": {
          "type": "string"
        },
        "country": {
          "type": "string"
        }
      }
    },
    "location_response": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer",
          "format": "int32"
        },
        "name": {
          "type": "string"
        },
        "location_type": {
          "enum": [
            "not_defined",
            "not_specified",
            "headquarters"
          ],
          "type": "string",
          "default": "not_defined"
        },
        "is_primary": {
          "type": "boolean"
        },
        "address": {
          "$ref": "#/$defs/address_response"
        }
      }
    }
  }
}