{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/hopdrive/json-schema/hopdrive-get-locations-id-response-schema.json",
  "title": "GetLocationsIdResponse",
  "x-generated": "2026-12-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/hopdrive-openapi-generated.yml#/components/schemas/GetLocationsIdResponse",
  "type": "object",
  "properties": {
    "id": {
      "type": "number",
      "description": "HopDrive location ID."
    },
    "customer_id": {
      "type": "number",
      "description": "The rooftop that owns this location."
    },
    "name": {
      "type": "string",
      "description": "Display name (often the street address or a business name)."
    },
    "nickname": {
      "type": "string",
      "description": "Optional dealer-assigned nickname. May be null."
    },
    "address": {
      "type": "string",
      "description": "Full formatted address."
    },
    "address_one": {
      "type": "string",
      "description": "Street address line."
    },
    "address_two": {
      "type": "string",
      "description": "Suite / unit / PO box line. May be null."
    },
    "city": {
      "type": "string",
      "description": "City."
    },
    "state": {
      "type": "string",
      "description": "State."
    },
    "zip": {
      "type": "string",
      "description": "Postal code."
    },
    "latitude": {
      "type": "number",
      "description": "Geocoded latitude."
    },
    "longitude": {
      "type": "number",
      "description": "Geocoded longitude."
    },
    "place_id": {
      "type": "string",
      "description": "Google Place ID, when known."
    },
    "region_id": {
      "type": "number",
      "description": "HopDrive region this location falls in. May be null if not yet assigned."
    },
    "type": {
      "type": "string",
      "description": "Location type."
    },
    "timezone": {
      "type": "string",
      "description": "IANA timezone of the location."
    },
    "active": {
      "type": "number",
      "description": "1 if active, 0 if inactive."
    },
    "email": {
      "type": "string",
      "description": "Optional contact email. May be null."
    },
    "phone": {
      "type": "string",
      "description": "Optional contact phone. May be null."
    },
    "createdat": {
      "type": "string",
      "description": "ISO 8601 UTC creation timestamp."
    },
    "updatedat": {
      "type": "string",
      "description": "ISO 8601 UTC last-update timestamp."
    }
  }
}