{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/highlevel/json-schema/highlevel-get-business-by-location-response-dto-schema.json",
  "title": "GetBusinessByLocationResponseDto",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/highlevel-businesses-api-openapi.yml#/components/schemas/GetBusinessByLocationResponseDto",
  "type": "object",
  "properties": {
    "businesses": {
      "description": "Business Response",
      "type": "array",
      "items": {
        "$ref": "#/$defs/BusinessDto"
      }
    }
  },
  "required": [
    "businesses"
  ],
  "$defs": {
    "BusinessCreatedByOrUpdatedBy": {
      "type": "object",
      "properties": {}
    },
    "BusinessDto": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "Business Id"
        },
        "name": {
          "type": "string",
          "description": "Business Name"
        },
        "phone": {
          "type": "string",
          "description": "phone number"
        },
        "email": {
          "type": "string",
          "description": "email"
        },
        "website": {
          "type": "string",
          "description": "website"
        },
        "address": {
          "type": "string",
          "description": "address"
        },
        "city": {
          "type": "string",
          "description": "city"
        },
        "description": {
          "type": "string",
          "description": "description"
        },
        "state": {
          "type": "string",
          "description": "state"
        },
        "postalCode": {
          "type": "string",
          "description": "postal code"
        },
        "country": {
          "type": "string",
          "description": "country"
        },
        "updatedBy": {
          "description": "updated By",
          "allOf": [
            {
              "$ref": "#/$defs/BusinessCreatedByOrUpdatedBy"
            }
          ]
        },
        "locationId": {
          "type": "string",
          "description": "locaitonId"
        },
        "createdBy": {
          "description": "Created By",
          "allOf": [
            {
              "$ref": "#/$defs/BusinessCreatedByOrUpdatedBy"
            }
          ]
        },
        "createdAt": {
          "format": "date-time",
          "type": "string",
          "description": "Creation Time"
        },
        "updatedAt": {
          "format": "date-time",
          "type": "string",
          "description": "Last updation time"
        }
      },
      "required": [
        "id",
        "name",
        "locationId"
      ]
    }
  }
}