{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/bezal-ai/json-schema/bezal-ai-business-schema.json",
  "title": "Business",
  "description": "Public business record. Fields beyond the always-present ones appear only when the\nprovider's plan includes them (see the API description).\n",
  "x-generated": "2026-11-02",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/bezal-ai-openapi.yaml#/components/schemas/Business",
  "type": "object",
  "required": [
    "id",
    "name",
    "category",
    "city",
    "state",
    "avg_rating",
    "review_count",
    "tier",
    "quote_request_url"
  ],
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "name": {
      "type": "string"
    },
    "category": {
      "type": [
        "string",
        "null"
      ]
    },
    "city": {
      "type": [
        "string",
        "null"
      ]
    },
    "state": {
      "type": [
        "string",
        "null"
      ]
    },
    "avg_rating": {
      "type": "number",
      "description": "Average rating, 0 when unknown"
    },
    "review_count": {
      "type": "integer",
      "description": "Review count, 0 when unknown"
    },
    "tier": {
      "type": "string",
      "description": "The provider's Bezal plan, for example free, unclaimed, pro, business or premium"
    },
    "quote_request_url": {
      "type": "string",
      "format": "uri",
      "description": "Public Bezal profile for the business, for example https://bezal.ai/joes-plumbing"
    },
    "phone": {
      "type": [
        "string",
        "null"
      ],
      "description": "Pro, Business and Premium only"
    },
    "website": {
      "type": [
        "string",
        "null"
      ],
      "description": "Pro, Business and Premium only"
    },
    "address": {
      "type": [
        "string",
        "null"
      ],
      "description": "Pro, Business and Premium only"
    },
    "zip": {
      "type": [
        "string",
        "null"
      ],
      "description": "Pro, Business and Premium only"
    },
    "hours": {
      "nullable": true,
      "description": "Opening hours as stored for the business. Pro, Business and Premium only"
    },
    "photos": {
      "nullable": true,
      "description": "Photo list as stored for the business. Pro, Business and Premium only"
    },
    "lat": {
      "type": [
        "number",
        "null"
      ],
      "description": "Latitude. Pro, Business and Premium only"
    },
    "lng": {
      "type": [
        "number",
        "null"
      ],
      "description": "Longitude. Pro, Business and Premium only"
    },
    "description": {
      "type": [
        "string",
        "null"
      ],
      "description": "Business and Premium only"
    },
    "upgrade_note": {
      "type": "string",
      "description": "Present on free and unclaimed listings"
    }
  }
}