{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/easee/json-schema/easee-easee-cloud-api-site-dto-schema.json",
  "title": "Easee_Cloud_API_SiteDTO",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/easee-charger-api-openapi.yml#/components/schemas/Easee_Cloud_API_SiteDTO",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "uuid": {
      "type": [
        "string",
        "null"
      ],
      "format": "guid"
    },
    "id": {
      "type": "integer",
      "format": "int32"
    },
    "siteKey": {
      "type": [
        "string",
        "null"
      ]
    },
    "name": {
      "type": [
        "string",
        "null"
      ]
    },
    "accessMode": {
      "oneOf": [
        {
          "$ref": "#/$defs/Easee_Cloud_API_AccessMode"
        }
      ]
    },
    "levelOfAccess": {
      "oneOf": [
        {
          "$ref": "#/$defs/Easee_Cloud_API_LevelOfAccess2"
        }
      ]
    },
    "address": {
      "oneOf": [
        {
          "$ref": "#/$defs/Easee_Cloud_API_AddressDTO"
        }
      ]
    },
    "contactInfo": {
      "oneOf": [
        {
          "$ref": "#/$defs/Easee_Cloud_API_ContactInfoDTO"
        }
      ]
    },
    "costModel": {
      "type": [
        "string",
        "null"
      ]
    },
    "costModelVariant": {
      "type": [
        "string",
        "null"
      ]
    },
    "costPerKWh": {
      "type": [
        "number",
        "null"
      ],
      "format": "double"
    },
    "costPerKwhExcludeVat": {
      "type": [
        "number",
        "null"
      ],
      "format": "double"
    },
    "currencyId": {
      "type": [
        "string",
        "null"
      ]
    },
    "siteType": {
      "oneOf": [
        {
          "$ref": "#/$defs/Easee_Cloud_API_SiteType"
        }
      ]
    },
    "siteCategory": {
      "oneOf": [
        {
          "$ref": "#/$defs/Easee_Cloud_API_SiteCategory"
        }
      ]
    },
    "ratedCurrent": {
      "type": "number",
      "format": "double"
    },
    "maxAllocatedCurrent": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int32"
    },
    "vat": {
      "type": [
        "number",
        "null"
      ],
      "format": "double"
    },
    "partnerId": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int32"
    },
    "installerId": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int32"
    },
    "installerUserId": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int32"
    },
    "supportId": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int32"
    },
    "installerAlias": {
      "type": [
        "string",
        "null"
      ]
    },
    "useDynamicMaster": {
      "type": "boolean"
    },
    "hasEaseeControlUiAccess": {
      "type": "boolean"
    },
    "circuits": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/$defs/Easee_Cloud_API_CircuitDTO"
      }
    },
    "equalizers": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/$defs/Easee_Cloud_API_EqualizerDTO"
      }
    },
    "createdOn": {
      "type": "string",
      "format": "date-time"
    },
    "updatedOn": {
      "type": "string",
      "format": "date-time"
    },
    "userRole": {
      "oneOf": [
        {
          "$ref": "#/$defs/Easee_Cloud_API_SiteUserRole"
        }
      ]
    },
    "allowedSiteActions": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": "string"
      }
    },
    "support": {
      "oneOf": [
        {
          "$ref": "#/$defs/Easee_Cloud_API_SiteSupportDto"
        }
      ]
    },
    "regulations": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/$defs/Easee_Cloud_API_SiteRegulationDto"
      }
    },
    "preConfigurationStatus": {
      "oneOf": [
        {
          "$ref": "#/$defs/Easee_Cloud_API_PreConfigurationStatus"
        }
      ]
    }
  },
  "$defs": {
    "Easee_Cloud_API_AccessMode": {
      "type": "integer",
      "description": "",
      "x-enumNames": [
        "Mixed",
        "Shared",
        "Private"
      ],
      "enum": [
        1,
        2,
        3
      ]
    },
    "Easee_Cloud_API_AddressDTO": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "street": {
          "type": [
            "string",
            "null"
          ]
        },
        "buildingNumber": {
          "type": [
            "string",
            "null"
          ]
        },
        "zip": {
          "type": [
            "string",
            "null"
          ]
        },
        "area": {
          "type": [
            "string",
            "null"
          ]
        },
        "country": {
          "oneOf": [
            {
              "$ref": "#/$defs/Easee_Cloud_API_CountryDTO"
            }
          ]
        },
        "latitude": {
          "type": [
            "number",
            "null"
          ],
          "format": "double"
        },
        "longitude": {
          "type": [
            "number",
            "null"
          ],
          "format": "double"
        },
        "altitude": {
          "type": [
            "number",
            "null"
          ],
          "format": "double"
        }
      }
    },
    "Easee_Cloud_API_BackPlateDto": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "id": {
          "type": [
            "string",
            "null"
          ]
        },
        "masterBackPlateId": {
          "type": [
            "string",
            "null"
          ]
        },
        "name": {
          "type": [
            "string",
            "null"
          ]
        },
        "variant": {
          "type": [
            "string",
            "null"
          ]
        },
        "backplateType": {
          "$ref": "#/$defs/Easee_Cloud_API_BackplateType"
        },
        "features": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/Easee_Cloud_API_BackPlateFeature2"
          }
        },
        "createdOn": {
          "type": "string",
          "format": "date-time"
        },
        "installedAt": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        }
      }
    },
    "Easee_Cloud_API_BackPlateFeature2": {
      "type": "integer",
      "description": "",
      "x-enumNames": [
        "UkOffpeak",
        "UkRandomStartDelay",
        "FrPermaTether"
      ],
      "enum": [
        0,
        1,
        2
      ]
    },
    "Easee_Cloud_API_BackplateType": {
      "type": "integer",
      "description": "",
      "x-enumNames": [
        "Normal",
        "Factory"
      ],
      "enum": [
        0,
        1
      ]
    },
    "Easee_Cloud_API_ChargerColorType2": {
      "type": "integer",
      "description": "",
      "x-enumNames": [
        "Black",
        "Red",
        "Blue",
        "White",
        "Anthracite"
      ],
      "enum": [
        1,
        2,
        3,
        4,
        5
      ]
    },
    "Easee_Cloud_API_ChargerDTO2": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "id": {
          "type": [
            "string",
            "null"
          ]
        },
        "name": {
          "type": [
            "string",
            "null"
          ]
        },
        "color": {
          "oneOf": [
            {
              "$ref": "#/$defs/Easee_Cloud_API_ChargerColorType2"
            }
          ]
        },
        "createdOn": {
          "type": "string",
          "format": "date-time"
        },
        "updatedOn": {
          "type": "string",
          "format": "date-time"
        },
        "backPlate": {
          "oneOf": [
            {
              "$ref": "#/$defs/Easee_Cloud_API_BackPlateDto"
            }
          ]
        },
        "levelOfAccess": {
          "oneOf": [
            {
              "$ref": "#/$defs/Easee_Cloud_API_LevelOfAccess2"
            }
          ]
        },
        "productCode": {
          "oneOf": [
            {
              "$ref": "#/$defs/Easee_Cloud_API_ProductType2"
            }
          ]
        },
        "userRole": {
          "oneOf": [
            {
              "$ref": "#/$defs/Easee_Cloud_API_SiteUserRole"
            }
          ]
        },
        "isTemporary": {
          "type": "boolean"
        }
      }
    },
    "Easee_Cloud_API_CircuitDTO": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "id": {
          "type": "integer",
          "format": "int32"
        },
        "uuid": {
          "type": [
            "string",
            "null"
          ],
          "format": "guid"
        },
        "siteId": {
          "type": "integer",
          "format": "int32"
        },
        "circuitPanelId": {
          "type": "integer",
          "format": "int32"
        },
        "panelName": {
          "type": [
            "string",
            "null"
          ]
        },
        "ratedCurrent": {
          "type": "number",
          "format": "double"
        },
        "fuse": {
          "type": [
            "number",
            "null"
          ],
          "format": "double"
        },
        "chargers": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/Easee_Cloud_API_ChargerDTO2"
          }
        },
        "masterBackplate": {
          "oneOf": [
            {
              "$ref": "#/$defs/Easee_Cloud_API_BackPlateDto"
            }
          ]
        },
        "useDynamicMaster": {
          "type": "boolean"
        },
        "parentCircuitId": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int32"
        }
      }
    },
    "Easee_Cloud_API_ContactInfoDTO": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "installerName": {
          "type": [
            "string",
            "null"
          ]
        },
        "installerPhoneNumber": {
          "type": [
            "string",
            "null"
          ]
        },
        "ownerName": {
          "type": [
            "string",
            "null"
          ]
        },
        "ownerPhoneNumber": {
          "type": [
            "string",
            "null"
          ]
        },
        "company": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    },
    "Easee_Cloud_API_CountryDTO": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "id": {
          "type": [
            "string",
            "null"
          ]
        },
        "name": {
          "type": [
            "string",
            "null"
          ]
        },
        "phonePrefix": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int32"
        }
      }
    },
    "Easee_Cloud_API_EqualizerDTO": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "id": {
          "type": [
            "string",
            "null"
          ]
        },
        "name": {
          "type": [
            "string",
            "null"
          ]
        },
        "siteId": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int32"
        },
        "circuitId": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int32"
        }
      }
    },
    "Easee_Cloud_API_LevelOfAccess2": {
      "type": "integer",
      "description": "",
      "x-enumNames": [
        "Open",
        "EaseeAccounts",
        "SpecificUsers"
      ],
      "enum": [
        1,
        2,
        3
      ]
    },
    "Easee_Cloud_API_PreConfigurationStatus": {
      "type": "integer",
      "description": "",
      "x-enumNames": [
        "Done",
        "Pending"
      ],
      "enum": [
        0,
        1
      ]
    },
    "Easee_Cloud_API_ProductType2": {
      "type": "integer",
      "description": "",
      "x-enumNames": [
        "EaseeHome",
        "EaseeCharge",
        "Equalizer"
      ],
      "enum": [
        1,
        100,
        1000
      ]
    },
    "Easee_Cloud_API_Regulation": {
      "type": "integer",
      "description": "",
      "x-enumNames": [
        "UkSmartCharging2021",
        "FrNfC15100PermaTethering"
      ],
      "enum": [
        1,
        2
      ]
    },
    "Easee_Cloud_API_SiteCategory": {
      "type": "integer",
      "description": "",
      "x-enumNames": [
        "Normal",
        "Factory",
        "Test"
      ],
      "enum": [
        0,
        1,
        2
      ]
    },
    "Easee_Cloud_API_SiteRegulationDto": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "regulation": {
          "$ref": "#/$defs/Easee_Cloud_API_Regulation"
        },
        "createdOn": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        }
      }
    },
    "Easee_Cloud_API_SiteSupportDto": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "partnerId": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int32"
        },
        "country": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/Easee_Cloud_API_SupportPartnerDto"
          }
        }
      }
    },
    "Easee_Cloud_API_SiteType": {
      "type": "integer",
      "description": "",
      "x-enumNames": [
        "SingleDwellingUnit",
        "MultiDwellingUnit"
      ],
      "enum": [
        1,
        100
      ]
    },
    "Easee_Cloud_API_SiteUserRole": {
      "type": "integer",
      "description": "",
      "x-enumNames": [
        "Owner",
        "Admin",
        "BasicUser",
        "ChargerUser"
      ],
      "enum": [
        1,
        2,
        3,
        20
      ]
    },
    "Easee_Cloud_API_SupportPartnerDto": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "partnerId": {
          "type": "integer",
          "format": "int32"
        }
      }
    }
  }
}