{
  "openapi": "3.1.1",
  "info": {
    "title": "ProRanked CPMS API",
    "version": "cpms"
  },
  "servers": [
    {
      "url": "https://api.proranked.com"
    }
  ],
  "paths": {
    "/cpms/v1/me": {
      "get": {
        "tags": [
          "Account"
        ],
        "summary": "Operator API key context (accessible networks + granted scopes)",
        "operationId": "Cpms_GetContext",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsContextResponse"
                }
              }
            }
          }
        },
        "security": [
          {},
          {}
        ]
      }
    },
    "/cpms/v1/me-key": {
      "get": {
        "tags": [
          "Me Key"
        ],
        "summary": "Describe the authenticated operator key (networks, scopes, capabilities)",
        "description": "Alias of GET /cpms/v1/me, exempt from scope gating so a key can always describe itself.",
        "operationId": "Cpms_MeKey",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsContextResponse"
                }
              }
            }
          }
        },
        "security": [
          {},
          {}
        ]
      }
    },
    "/cpms/v1/.well-known/scopes": {
      "get": {
        "tags": [
          ".Well Known"
        ],
        "summary": "Canonical CPMS operator scope catalog (the OAuth scope vocabulary)",
        "description": "Every CPMS scope and what it grants. Note that cpms:command:* scopes are elevated and excluded from the default operator set.",
        "operationId": "Cpms_ScopeCatalog",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsScopeCatalogResponse"
                }
              }
            }
          }
        },
        "security": [
          {},
          {}
        ]
      }
    },
    "/cpms/v1/networks": {
      "get": {
        "tags": [
          "Networks"
        ],
        "summary": "List the networks this key is authorized to operate",
        "operationId": "Cpms_ListNetworks",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsNetworkListResponse"
                }
              }
            }
          }
        },
        "security": [
          {},
          {}
        ]
      }
    },
    "/cpms/v1/usage": {
      "get": {
        "tags": [
          "Usage"
        ],
        "summary": "API consumption rollup (metering) for this key's networks",
        "operationId": "Cpms_GetUsage",
        "parameters": [
          {
            "name": "days",
            "in": "query",
            "description": "Look-back window, in days.",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsUsageResponse"
                }
              }
            }
          }
        },
        "security": [
          {},
          {}
        ]
      }
    },
    "/cpms/v1/chargers": {
      "get": {
        "tags": [
          "Chargers"
        ],
        "summary": "List the operator's chargers (+ live status)",
        "operationId": "Cpms_ListChargers",
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "description": "Page number, 1-based. Defaults to 1.",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "description": "Number of items per page (1–100). Defaults to 50.",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsChargerListResponse"
                }
              }
            }
          }
        },
        "security": [
          {},
          {}
        ]
      },
      "post": {
        "tags": [
          "Chargers"
        ],
        "summary": "Register (create) a charger on one of the operator's networks",
        "operationId": "Cpms_RegisterCharger",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CpmsRegisterChargerRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsLifecycleRegisterChargerResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsLifecycleErrorResponse"
                }
              }
            }
          },
          "402": {
            "description": "Payment Required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsLifecycleUpgradeRequiredResponse"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsLifecycleErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsLifecycleErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsLifecycleErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {},
          {}
        ]
      }
    },
    "/cpms/v1/sessions": {
      "get": {
        "tags": [
          "Sessions"
        ],
        "summary": "List the operator's charging sessions",
        "operationId": "Cpms_ListSessions",
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "description": "Page number, 1-based. Defaults to 1.",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "description": "Number of items per page (1–100). Defaults to 50.",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "status",
            "in": "query",
            "description": "Filter the results by status.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "chargerId",
            "in": "query",
            "description": "Charger UUID.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "from",
            "in": "query",
            "description": "Start of the time range, inclusive. ISO-8601.",
            "schema": {
              "format": "date-time"
            }
          },
          {
            "name": "to",
            "in": "query",
            "description": "End of the time range, inclusive. ISO-8601.",
            "schema": {
              "format": "date-time"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsSessionListResponse"
                }
              }
            }
          }
        },
        "security": [
          {},
          {}
        ]
      }
    },
    "/cpms/v1/locations": {
      "get": {
        "tags": [
          "Locations"
        ],
        "summary": "List the operator's locations/stations",
        "operationId": "Cpms_ListLocations",
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "description": "Page number, 1-based. Defaults to 1.",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "description": "Number of items per page (1–100). Defaults to 50.",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsLocationListResponse"
                }
              }
            }
          }
        },
        "security": [
          {},
          {}
        ]
      },
      "post": {
        "tags": [
          "Locations"
        ],
        "summary": "Create a location/site on one of the operator's networks",
        "operationId": "Cpms_CreateLocation",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CpmsCreateLocationRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsLifecycleCreateLocationResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsLifecycleErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsLifecycleErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsLifecycleErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {},
          {}
        ]
      }
    },
    "/cpms/v1/tariffs": {
      "get": {
        "tags": [
          "Tariffs"
        ],
        "summary": "List the operator's tariffs",
        "operationId": "Cpms_ListTariffs",
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "description": "Page number, 1-based. Defaults to 1.",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "description": "Number of items per page (1–100). Defaults to 50.",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsTariffListResponse"
                }
              }
            }
          }
        },
        "security": [
          {},
          {}
        ]
      },
      "post": {
        "tags": [
          "Tariffs"
        ],
        "summary": "Create a new tariff on one of the operator's networks",
        "operationId": "Cpms_CreateTariff",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CpmsCreateTariffRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsTariffWriteCreateResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsTariffWriteErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsTariffWriteErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {},
          {}
        ]
      }
    },
    "/cpms/v1/chargers/{uuid}": {
      "get": {
        "tags": [
          "Chargers"
        ],
        "summary": "Charger detail (status, network, location, connectors)",
        "operationId": "Cpms_GetCharger",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "The resource UUID.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsChargerResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {},
          {}
        ]
      },
      "patch": {
        "tags": [
          "Chargers"
        ],
        "summary": "Update charger details (status, physical reference, floor level, location)",
        "operationId": "Cpms_UpdateCharger",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "The resource UUID.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CpmsUpdateChargerRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsLifecycleUpdatedResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsLifecycleErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsLifecycleErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsLifecycleErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {},
          {}
        ]
      },
      "delete": {
        "tags": [
          "Chargers"
        ],
        "summary": "Soft-delete (decommission) a charger",
        "operationId": "Cpms_DeleteCharger",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "The resource UUID.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsLifecycleDeleteChargerResponse"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsLifecycleErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsLifecycleErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsLifecycleErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {},
          {}
        ]
      }
    },
    "/cpms/v1/connectors/{uuid}/status": {
      "get": {
        "tags": [
          "Connectors"
        ],
        "summary": "Live connector status",
        "operationId": "Cpms_GetConnectorStatus",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "The resource UUID.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsConnectorStatusResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {},
          {}
        ]
      }
    },
    "/cpms/v1/sessions/{id}": {
      "get": {
        "tags": [
          "Sessions"
        ],
        "summary": "Charging session detail (energy, cost, timing)",
        "operationId": "Cpms_GetSession",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The resource identifier.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsSessionResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {},
          {}
        ]
      }
    },
    "/cpms/v1/sessions/{id}/meter-values": {
      "get": {
        "tags": [
          "Sessions"
        ],
        "summary": "Session energy curve (meter values)",
        "description": "Returns the time-ordered OCPP meter-value samples captured during the charge — the per-session kWh consumption curve (cumulative register + instantaneous power, plus current/voltage/SoC/temperature when the charger reports them) for charging graphs and delivered-energy verification. Capped by `limit` (default 1000, max 5000); `truncated` flags when the session has more. Scoped to the key's networks.",
        "operationId": "Cpms_GetSessionMeterValues",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The resource identifier.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum number of items to return.",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsSessionMeterValuesResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {},
          {}
        ]
      }
    },
    "/cpms/v1/locations/{id}": {
      "get": {
        "tags": [
          "Locations"
        ],
        "summary": "Location/site detail",
        "operationId": "Cpms_GetLocation",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The resource identifier.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsLocationResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {},
          {}
        ]
      },
      "put": {
        "tags": [
          "Locations"
        ],
        "summary": "Update a location/site",
        "operationId": "Cpms_UpdateLocation",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The resource identifier.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CpmsUpdateLocationRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsLifecycleUpdatedResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsLifecycleErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsLifecycleErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsLifecycleErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {},
          {}
        ]
      },
      "delete": {
        "tags": [
          "Locations"
        ],
        "summary": "Soft-delete a location/site (blocks if chargers attached or sessions active)",
        "operationId": "Cpms_DeleteLocation",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The resource identifier.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsLifecycleDeletedResponse"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsLifecycleErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsLifecycleErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsLifecycleErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {},
          {}
        ]
      }
    },
    "/cpms/v1/tariffs/{id}": {
      "get": {
        "tags": [
          "Tariffs"
        ],
        "summary": "Tariff detail (rates, currency)",
        "operationId": "Cpms_GetTariff",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The resource identifier.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsTariffResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {},
          {}
        ]
      }
    },
    "/cpms/v1/tariffs/{tariffUuid}": {
      "put": {
        "tags": [
          "Tariffs"
        ],
        "summary": "Update tariff pricing and fields",
        "operationId": "Cpms_UpdateTariff",
        "parameters": [
          {
            "name": "tariffUuid",
            "in": "path",
            "description": "Tariff UUID.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CpmsUpdateTariffRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsTariffWriteUpdateResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsTariffWriteErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsTariffWriteErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {},
          {}
        ]
      },
      "delete": {
        "tags": [
          "Tariffs"
        ],
        "summary": "Soft-delete a tariff (cascade-deactivates its assignments)",
        "operationId": "Cpms_DeleteTariff",
        "parameters": [
          {
            "name": "tariffUuid",
            "in": "path",
            "description": "Tariff UUID.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsTariffWriteDeleteResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsTariffWriteErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {},
          {}
        ]
      }
    },
    "/cpms/v1/webhooks": {
      "post": {
        "tags": [
          "Webhooks"
        ],
        "summary": "Create a webhook subscription for the operator's network",
        "operationId": "Cpms_CreateWebhook",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CpmsCreateWebhookRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsWebhookWriteCreateResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsWebhookWriteErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {},
          {}
        ]
      },
      "get": {
        "tags": [
          "Webhooks"
        ],
        "summary": "List the operator's webhook subscriptions",
        "operationId": "Cpms_ListWebhooks",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsObservabilityWebhookListResponse"
                }
              }
            }
          }
        },
        "security": [
          {},
          {}
        ]
      }
    },
    "/cpms/v1/webhooks/{webhookId}": {
      "delete": {
        "tags": [
          "Webhooks"
        ],
        "summary": "Delete a webhook subscription owned by the operator",
        "operationId": "Cpms_DeleteWebhook",
        "parameters": [
          {
            "name": "webhookId",
            "in": "path",
            "description": "Webhook subscription UUID.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsWebhookWriteDeleteResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsWebhookWriteErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {},
          {}
        ]
      },
      "patch": {
        "tags": [
          "Webhooks"
        ],
        "summary": "Update / re-enable a webhook subscription owned by the operator",
        "operationId": "Cpms_UpdateWebhook",
        "parameters": [
          {
            "name": "webhookId",
            "in": "path",
            "description": "Webhook subscription UUID.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CpmsUpdateWebhookRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsObservabilityWebhookResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsObservabilityErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsObservabilityErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {},
          {}
        ]
      }
    },
    "/cpms/v1/connectors/{connectorUuid}": {
      "put": {
        "tags": [
          "Connectors"
        ],
        "summary": "Update a connector's provisioning fields (Standard, Format, PowerType, MaxVoltage, MaxAmperage, MaxPower kW, Status). Scoped to the key's networks.",
        "operationId": "Cpms_UpdateConnector",
        "parameters": [
          {
            "name": "connectorUuid",
            "in": "path",
            "description": "Connector UUID.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateCpmsConnectorRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsConnectorWriteResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicApiErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicApiErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicApiErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {},
          {}
        ]
      }
    },
    "/cpms/v1/chargers/{chargerUuid}/remote-start": {
      "post": {
        "tags": [
          "Chargers"
        ],
        "summary": "Operator remote-start a charging session on one of the operator's own chargers (live control)",
        "operationId": "Cpms_RemoteStart",
        "parameters": [
          {
            "name": "chargerUuid",
            "in": "path",
            "description": "Charger UUID.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CpmsRemoteStartRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsRemoteControlStartResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicApiErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicApiErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicApiErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {},
          {}
        ]
      }
    },
    "/cpms/v1/chargers/{chargerUuid}/remote-stop": {
      "post": {
        "tags": [
          "Chargers"
        ],
        "summary": "Operator remote-stop an active charging session on one of the operator's own chargers (live control)",
        "operationId": "Cpms_RemoteStop",
        "parameters": [
          {
            "name": "chargerUuid",
            "in": "path",
            "description": "Charger UUID.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "oneOf": [
                  {
                    "type": "null"
                  },
                  {
                    "$ref": "#/components/schemas/CpmsRemoteStopRequest"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsRemoteControlStopResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicApiErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicApiErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicApiErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {},
          {}
        ]
      }
    },
    "/cpms/v1/chargers/{chargerUuid}/reboot": {
      "post": {
        "tags": [
          "Chargers"
        ],
        "summary": "Operator reboot (Soft/Hard reset) one of the operator's own chargers (live control)",
        "operationId": "Cpms_Reboot",
        "parameters": [
          {
            "name": "chargerUuid",
            "in": "path",
            "description": "Charger UUID.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "oneOf": [
                  {
                    "type": "null"
                  },
                  {
                    "$ref": "#/components/schemas/CpmsRebootRequest"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsRemoteControlRebootResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicApiErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicApiErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicApiErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {},
          {}
        ]
      }
    },
    "/cpms/v1/chargers/{uuid}/connectors": {
      "post": {
        "tags": [
          "Chargers"
        ],
        "summary": "Add a connector to one of the operator's chargers",
        "operationId": "Cpms_AddConnector",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "The resource UUID.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CpmsAddConnectorRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsLifecycleAddConnectorResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsLifecycleErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsLifecycleErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsLifecycleErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsLifecycleErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {},
          {}
        ]
      }
    },
    "/cpms/v1/connectors/{uuid}": {
      "delete": {
        "tags": [
          "Connectors"
        ],
        "summary": "Soft-delete a connector",
        "operationId": "Cpms_DeleteConnector",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "The resource UUID.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsLifecycleDeleteConnectorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsLifecycleErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsLifecycleErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsLifecycleErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {},
          {}
        ]
      }
    },
    "/cpms/v1/tariffs/{tariffUuid}/assign": {
      "post": {
        "tags": [
          "Tariffs"
        ],
        "summary": "Assign a tariff to a network, location, charger, or connector",
        "operationId": "Cpms_AssignTariff",
        "parameters": [
          {
            "name": "tariffUuid",
            "in": "path",
            "description": "Tariff UUID.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CpmsAssignTariffRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsLifecycleAssignTariffResponse"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsLifecycleErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsLifecycleErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {},
          {}
        ]
      }
    },
    "/cpms/v1/tariffs/{tariffUuid}/assignments": {
      "get": {
        "tags": [
          "Tariffs"
        ],
        "summary": "List active assignments for a tariff",
        "operationId": "Cpms_ListTariffAssignments",
        "parameters": [
          {
            "name": "tariffUuid",
            "in": "path",
            "description": "Tariff UUID.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsLifecycleTariffAssignmentListResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsLifecycleErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {},
          {}
        ]
      }
    },
    "/cpms/v1/tariffs/assignments/{assignmentId}": {
      "delete": {
        "tags": [
          "Tariffs"
        ],
        "summary": "Detach (deactivate) a tariff assignment",
        "operationId": "Cpms_DetachTariffAssignment",
        "parameters": [
          {
            "name": "assignmentId",
            "in": "path",
            "description": "Tariff assignment UUID.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsLifecycleDetachAssignmentResponse"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsLifecycleErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsLifecycleErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {},
          {}
        ]
      }
    },
    "/cpms/v1/chargers/{chargerUuid}/unlock-connector": {
      "post": {
        "tags": [
          "Chargers"
        ],
        "summary": "Operator unlock a connector on one of the operator's own chargers (live control)",
        "operationId": "Cpms_UnlockConnector",
        "parameters": [
          {
            "name": "chargerUuid",
            "in": "path",
            "description": "Charger UUID.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CpmsUnlockConnectorRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsControlUnlockResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicApiErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicApiErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicApiErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {},
          {}
        ]
      }
    },
    "/cpms/v1/chargers/{chargerUuid}/change-availability": {
      "post": {
        "tags": [
          "Chargers"
        ],
        "summary": "Operator change a charger/connector availability on the device (Operative/Inoperative, live control)",
        "operationId": "Cpms_ChangeAvailability",
        "parameters": [
          {
            "name": "chargerUuid",
            "in": "path",
            "description": "Charger UUID.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CpmsChangeAvailabilityRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsControlChangeAvailabilityResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicApiErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicApiErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicApiErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {},
          {}
        ]
      }
    },
    "/cpms/v1/chargers/{chargerUuid}/trigger-message": {
      "post": {
        "tags": [
          "Chargers"
        ],
        "summary": "Operator trigger an OCPP message on one of the operator's own chargers (live control)",
        "operationId": "Cpms_TriggerMessage",
        "parameters": [
          {
            "name": "chargerUuid",
            "in": "path",
            "description": "Charger UUID.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CpmsTriggerMessageRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsControlTriggerMessageResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicApiErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicApiErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicApiErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {},
          {}
        ]
      }
    },
    "/cpms/v1/chargers/{chargerUuid}/configuration": {
      "get": {
        "tags": [
          "Chargers"
        ],
        "summary": "Read a charger's OCPP configuration (1.6 GetConfiguration / 2.0.1 GetVariables)",
        "operationId": "Cpms_GetConfiguration",
        "parameters": [
          {
            "name": "chargerUuid",
            "in": "path",
            "description": "Charger UUID.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "keys",
            "in": "query",
            "description": "Comma-separated list of configuration keys to return. Omit for all.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsControlConfigurationResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicApiErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {},
          {}
        ]
      },
      "post": {
        "tags": [
          "Chargers"
        ],
        "summary": "Change a charger's OCPP configuration key (1.6 ChangeConfiguration / 2.0.1 SetVariables, live control)",
        "operationId": "Cpms_ChangeConfiguration",
        "parameters": [
          {
            "name": "chargerUuid",
            "in": "path",
            "description": "Charger UUID.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ChangeConfigurationRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsControlChangeConfigurationResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicApiErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicApiErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicApiErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {},
          {}
        ]
      }
    },
    "/cpms/v1/chargers/{chargerUuid}/variables/get": {
      "post": {
        "tags": [
          "Chargers"
        ],
        "summary": "OCPP 2.0.1: read device-model variables (GetVariables)",
        "operationId": "Cpms_GetVariables",
        "parameters": [
          {
            "name": "chargerUuid",
            "in": "path",
            "description": "Charger UUID.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CpmsGetVariablesRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsControlConfigurationResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicApiErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicApiErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {},
          {}
        ]
      }
    },
    "/cpms/v1/chargers/{chargerUuid}/variables/set": {
      "post": {
        "tags": [
          "Chargers"
        ],
        "summary": "OCPP 2.0.1: write device-model variables (SetVariables, live control)",
        "operationId": "Cpms_SetVariables",
        "parameters": [
          {
            "name": "chargerUuid",
            "in": "path",
            "description": "Charger UUID.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CpmsSetVariablesRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsControlSetVariablesResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicApiErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicApiErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicApiErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {},
          {}
        ]
      }
    },
    "/cpms/v1/transactions": {
      "get": {
        "tags": [
          "Transactions"
        ],
        "summary": "Operator CDR / transaction ledger (paged; filters: chargerId, from, to) with cost/profit/payout fields",
        "operationId": "Cpms_ListTransactions",
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "description": "Page number, 1-based. Defaults to 1.",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "description": "Number of items per page (1–100). Defaults to 50.",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "chargerId",
            "in": "query",
            "description": "Charger UUID.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "from",
            "in": "query",
            "description": "Start of the time range, inclusive. ISO-8601.",
            "schema": {
              "format": "date-time"
            }
          },
          {
            "name": "to",
            "in": "query",
            "description": "End of the time range, inclusive. ISO-8601.",
            "schema": {
              "format": "date-time"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsBillingTransactionListResponse"
                }
              }
            }
          }
        },
        "security": [
          {},
          {}
        ]
      }
    },
    "/cpms/v1/transactions/export": {
      "get": {
        "tags": [
          "Transactions"
        ],
        "summary": "Export the operator's CDRs for a date range as CSV (Form 480 / reconciliation)",
        "operationId": "Cpms_ExportTransactions",
        "parameters": [
          {
            "name": "from",
            "in": "query",
            "description": "Start of the time range, inclusive. ISO-8601.",
            "schema": {
              "format": "date-time"
            }
          },
          {
            "name": "to",
            "in": "query",
            "description": "End of the time range, inclusive. ISO-8601.",
            "schema": {
              "format": "date-time"
            }
          },
          {
            "name": "chargerId",
            "in": "query",
            "description": "Charger UUID.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "security": [
          {},
          {}
        ]
      }
    },
    "/cpms/v1/transactions/{id}": {
      "get": {
        "tags": [
          "Transactions"
        ],
        "summary": "Operator transaction (CDR) detail with full cost breakdown, profit summary, and payout id",
        "operationId": "Cpms_GetTransaction",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The resource identifier.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsBillingTransactionResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsBillingErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {},
          {}
        ]
      }
    },
    "/cpms/v1/sessions/{id}/refund": {
      "post": {
        "tags": [
          "Sessions"
        ],
        "summary": "Refund a session's charge (reverses the operator transfer) — off-by-default money action",
        "operationId": "Cpms_RefundSession",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The resource identifier.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "oneOf": [
                  {
                    "type": "null"
                  },
                  {
                    "$ref": "#/components/schemas/CpmsRefundRequest"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsBillingRefundResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsBillingErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {},
          {}
        ]
      }
    },
    "/cpms/v1/sessions/{id}/force-stop": {
      "post": {
        "tags": [
          "Sessions"
        ],
        "summary": "Operator force-close a hung charging session (live control)",
        "operationId": "Cpms_ForceStopSession",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The resource identifier.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsBillingForceStopResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsBillingErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {},
          {}
        ]
      }
    },
    "/cpms/v1/sessions/{id}/waive-idle-fee": {
      "post": {
        "tags": [
          "Sessions"
        ],
        "summary": "Waive a session's idle fee (full or partial) — money adjustment; off-by-default",
        "operationId": "Cpms_WaiveIdleFee",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The resource identifier.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "oneOf": [
                  {
                    "type": "null"
                  },
                  {
                    "$ref": "#/components/schemas/CpmsWaiveIdleFeeRequest"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsBillingWaiveResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsBillingErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsBillingErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {},
          {}
        ]
      }
    },
    "/cpms/v1/smart-charging/{chargerUuid}/limit": {
      "get": {
        "tags": [
          "Smart Charging"
        ],
        "summary": "Get the effective charging limit (composite schedule) for one of the operator's connectors",
        "operationId": "Cpms_GetSmartChargingLimit",
        "parameters": [
          {
            "name": "chargerUuid",
            "in": "path",
            "description": "Charger UUID.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "connector",
            "in": "query",
            "description": "Connector number on the charger, 1-based.",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "unit",
            "in": "query",
            "description": "Unit the value is expressed in.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsLoadGetLimitResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsLoadErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsLoadErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {},
          {}
        ]
      },
      "put": {
        "tags": [
          "Smart Charging"
        ],
        "summary": "Set a per-connector charging limit (A or W) on one of the operator's chargers",
        "operationId": "Cpms_SetSmartChargingLimit",
        "parameters": [
          {
            "name": "chargerUuid",
            "in": "path",
            "description": "Charger UUID.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CpmsSmartChargingLimitRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsLoadSetLimitResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsLoadErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsLoadErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {},
          {}
        ]
      },
      "delete": {
        "tags": [
          "Smart Charging"
        ],
        "summary": "Clear the operator-set charging limit on one of the operator's connectors",
        "operationId": "Cpms_ClearSmartChargingLimit",
        "parameters": [
          {
            "name": "chargerUuid",
            "in": "path",
            "description": "Charger UUID.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "connector",
            "in": "query",
            "description": "Connector number on the charger, 1-based.",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsLoadClearLimitResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsLoadErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {},
          {}
        ]
      }
    },
    "/cpms/v1/smart-charging/{chargerUuid}/composite-schedule": {
      "get": {
        "tags": [
          "Smart Charging"
        ],
        "summary": "Read the OCPP composite schedule for one of the operator's connectors",
        "operationId": "Cpms_GetCompositeSchedule",
        "parameters": [
          {
            "name": "chargerUuid",
            "in": "path",
            "description": "Charger UUID.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "connector",
            "in": "query",
            "description": "Connector number on the charger, 1-based.",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "duration",
            "in": "query",
            "description": "Duration of the requested window, in seconds.",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "unit",
            "in": "query",
            "description": "Unit the value is expressed in.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsLoadCompositeScheduleResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsLoadErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsLoadErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {},
          {}
        ]
      }
    },
    "/cpms/v1/load-balancing/{stationOrLocationId}": {
      "get": {
        "tags": [
          "Load Balancing"
        ],
        "summary": "Read the present load-balancing allocation/cap for one of the operator's stations",
        "operationId": "Cpms_GetLoadBalancing",
        "parameters": [
          {
            "name": "stationOrLocationId",
            "in": "path",
            "description": "Station or location UUID — either is accepted.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsLoadBalancingResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsLoadErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {},
          {}
        ]
      },
      "put": {
        "tags": [
          "Load Balancing"
        ],
        "summary": "Update the load-balancing configuration for one of the operator's stations",
        "operationId": "Cpms_UpdateLoadBalancing",
        "parameters": [
          {
            "name": "stationOrLocationId",
            "in": "path",
            "description": "Station or location UUID — either is accepted.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CpmsLoadBalancingRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsLoadBalancingUpdateResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsLoadErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsLoadErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {},
          {}
        ]
      }
    },
    "/cpms/v1/load-balancing/{stationOrLocationId}/rebalance": {
      "post": {
        "tags": [
          "Load Balancing"
        ],
        "summary": "Trigger an immediate load-balancing rebalance for one of the operator's stations",
        "operationId": "Cpms_RebalanceLoadBalancing",
        "parameters": [
          {
            "name": "stationOrLocationId",
            "in": "path",
            "description": "Station or location UUID — either is accepted.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "202": {
            "description": "Accepted",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsLoadRebalanceResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsLoadErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {},
          {}
        ]
      }
    },
    "/cpms/v1/chargers/{chargerUuid}/firmware/update": {
      "post": {
        "tags": [
          "Chargers"
        ],
        "summary": "Apply a firmware image to one of the operator's own chargers (OTA; live control)",
        "operationId": "Cpms_UpdateFirmware",
        "parameters": [
          {
            "name": "chargerUuid",
            "in": "path",
            "description": "Charger UUID.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "oneOf": [
                  {
                    "type": "null"
                  },
                  {
                    "$ref": "#/components/schemas/CpmsUpdateFirmwareRequest"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsFirmwareUpdateResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicApiErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicApiErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicApiErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {},
          {}
        ]
      }
    },
    "/cpms/v1/chargers/{chargerUuid}/firmware/status": {
      "get": {
        "tags": [
          "Chargers"
        ],
        "summary": "Current firmware version + most recent firmware-update status for a charger",
        "operationId": "Cpms_GetFirmwareStatus",
        "parameters": [
          {
            "name": "chargerUuid",
            "in": "path",
            "description": "Charger UUID.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsFirmwareStatusResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicApiErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {},
          {}
        ]
      }
    },
    "/cpms/v1/charger-models/{modelId}/firmware": {
      "get": {
        "tags": [
          "Charger Models"
        ],
        "summary": "Catalog of firmware images available for a charger model",
        "operationId": "Cpms_ListModelFirmware",
        "parameters": [
          {
            "name": "modelId",
            "in": "path",
            "description": "Charger model UUID.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "page",
            "in": "query",
            "description": "Page number, 1-based. Defaults to 1.",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "description": "Number of items per page (1–100). Defaults to 50.",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsFirmwareCatalogListResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicApiErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {},
          {}
        ]
      }
    },
    "/cpms/v1/firmware": {
      "get": {
        "tags": [
          "Firmware"
        ],
        "summary": "Catalog of firmware images applicable to the operator's chargers",
        "operationId": "Cpms_ListFirmware",
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "description": "Page number, 1-based. Defaults to 1.",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "description": "Number of items per page (1–100). Defaults to 50.",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "modelId",
            "in": "query",
            "description": "Charger model UUID.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsFirmwareCatalogListResponse"
                }
              }
            }
          }
        },
        "security": [
          {},
          {}
        ]
      }
    },
    "/cpms/v1/chargers/{chargerUuid}/diagnostics/fetch": {
      "post": {
        "tags": [
          "Chargers"
        ],
        "summary": "Ask a charger to upload its diagnostics/log file (GetDiagnostics / GetLog)",
        "operationId": "Cpms_FetchDiagnostics",
        "parameters": [
          {
            "name": "chargerUuid",
            "in": "path",
            "description": "Charger UUID.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "oneOf": [
                  {
                    "type": "null"
                  },
                  {
                    "$ref": "#/components/schemas/CpmsFetchDiagnosticsRequest"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsFirmwareFetchDiagnosticsResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicApiErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicApiErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicApiErrorResponse"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicApiErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {},
          {}
        ]
      }
    },
    "/cpms/v1/chargers/{chargerUuid}/diagnostics": {
      "get": {
        "tags": [
          "Chargers"
        ],
        "summary": "Charger health snapshot: last heartbeat, online, recent status/error codes",
        "operationId": "Cpms_GetDiagnostics",
        "parameters": [
          {
            "name": "chargerUuid",
            "in": "path",
            "description": "Charger UUID.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsFirmwareDiagnosticsResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicApiErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {},
          {}
        ]
      }
    },
    "/cpms/v1/diagnostic-files": {
      "get": {
        "tags": [
          "Diagnostic Files"
        ],
        "summary": "List diagnostic files a charger has uploaded (requires chargerId)",
        "operationId": "Cpms_ListDiagnosticFiles",
        "parameters": [
          {
            "name": "chargerId",
            "in": "query",
            "description": "Charger UUID.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsFirmwareDiagnosticFilesResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicApiErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicApiErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {},
          {}
        ]
      }
    },
    "/cpms/v1/analytics/revenue": {
      "get": {
        "tags": [
          "Analytics"
        ],
        "summary": "Operator revenue rollup over a date range (scoped to the key's networks)",
        "operationId": "Cpms_AnalyticsRevenue",
        "parameters": [
          {
            "name": "from",
            "in": "query",
            "description": "Start of the time range, inclusive. ISO-8601.",
            "schema": {
              "format": "date-time"
            }
          },
          {
            "name": "to",
            "in": "query",
            "description": "End of the time range, inclusive. ISO-8601.",
            "schema": {
              "format": "date-time"
            }
          },
          {
            "name": "networkId",
            "in": "query",
            "description": "Network UUID.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "period",
            "in": "query",
            "description": "Aggregation period for the results, e.g. day, week or month.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsAnalyticsRevenueResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsAnalyticsErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {},
          {}
        ]
      }
    },
    "/cpms/v1/analytics/energy": {
      "get": {
        "tags": [
          "Analytics"
        ],
        "summary": "Operator energy (kWh) rollup over a date range",
        "operationId": "Cpms_AnalyticsEnergy",
        "parameters": [
          {
            "name": "from",
            "in": "query",
            "description": "Start of the time range, inclusive. ISO-8601.",
            "schema": {
              "format": "date-time"
            }
          },
          {
            "name": "to",
            "in": "query",
            "description": "End of the time range, inclusive. ISO-8601.",
            "schema": {
              "format": "date-time"
            }
          },
          {
            "name": "networkId",
            "in": "query",
            "description": "Network UUID.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "period",
            "in": "query",
            "description": "Aggregation period for the results, e.g. day, week or month.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsAnalyticsEnergyResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsAnalyticsErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {},
          {}
        ]
      }
    },
    "/cpms/v1/analytics/sessions": {
      "get": {
        "tags": [
          "Analytics"
        ],
        "summary": "Operator session-count rollup over a date range",
        "operationId": "Cpms_AnalyticsSessions",
        "parameters": [
          {
            "name": "from",
            "in": "query",
            "description": "Start of the time range, inclusive. ISO-8601.",
            "schema": {
              "format": "date-time"
            }
          },
          {
            "name": "to",
            "in": "query",
            "description": "End of the time range, inclusive. ISO-8601.",
            "schema": {
              "format": "date-time"
            }
          },
          {
            "name": "networkId",
            "in": "query",
            "description": "Network UUID.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "period",
            "in": "query",
            "description": "Aggregation period for the results, e.g. day, week or month.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsAnalyticsSessionsResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsAnalyticsErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {},
          {}
        ]
      }
    },
    "/cpms/v1/analytics/utilization": {
      "get": {
        "tags": [
          "Analytics"
        ],
        "summary": "Operator connector utilization rollup over a date range",
        "operationId": "Cpms_AnalyticsUtilization",
        "parameters": [
          {
            "name": "from",
            "in": "query",
            "description": "Start of the time range, inclusive. ISO-8601.",
            "schema": {
              "format": "date-time"
            }
          },
          {
            "name": "to",
            "in": "query",
            "description": "End of the time range, inclusive. ISO-8601.",
            "schema": {
              "format": "date-time"
            }
          },
          {
            "name": "networkId",
            "in": "query",
            "description": "Network UUID.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "period",
            "in": "query",
            "description": "Aggregation period for the results, e.g. day, week or month.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsAnalyticsUtilizationResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsAnalyticsErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {},
          {}
        ]
      }
    },
    "/cpms/v1/analytics/uptime": {
      "get": {
        "tags": [
          "Analytics"
        ],
        "summary": "Operator charger uptime / availability (SLA) snapshot",
        "operationId": "Cpms_AnalyticsUptime",
        "parameters": [
          {
            "name": "networkId",
            "in": "query",
            "description": "Network UUID.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsAnalyticsUptimeResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsAnalyticsErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {},
          {}
        ]
      }
    },
    "/cpms/v1/analytics/kpis": {
      "get": {
        "tags": [
          "Analytics"
        ],
        "summary": "Operator KPI summary (revenue, energy, sessions, avg duration)",
        "operationId": "Cpms_AnalyticsKpis",
        "parameters": [
          {
            "name": "from",
            "in": "query",
            "description": "Start of the time range, inclusive. ISO-8601.",
            "schema": {
              "format": "date-time"
            }
          },
          {
            "name": "to",
            "in": "query",
            "description": "End of the time range, inclusive. ISO-8601.",
            "schema": {
              "format": "date-time"
            }
          },
          {
            "name": "networkId",
            "in": "query",
            "description": "Network UUID.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsAnalyticsKpisResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsAnalyticsErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {},
          {}
        ]
      }
    },
    "/cpms/v1/reports/export": {
      "get": {
        "tags": [
          "Reports"
        ],
        "summary": "CSV (or JSON) export of the operator's sessions/revenue for a date range",
        "operationId": "Cpms_ReportsExport",
        "parameters": [
          {
            "name": "type",
            "in": "query",
            "description": "Filter the results by type.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "format",
            "in": "query",
            "description": "Response format to export.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "from",
            "in": "query",
            "description": "Start of the time range, inclusive. ISO-8601.",
            "schema": {
              "format": "date-time"
            }
          },
          {
            "name": "to",
            "in": "query",
            "description": "End of the time range, inclusive. ISO-8601.",
            "schema": {
              "format": "date-time"
            }
          },
          {
            "name": "networkId",
            "in": "query",
            "description": "Network UUID.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "security": [
          {},
          {}
        ]
      }
    },
    "/cpms/v1/settings": {
      "get": {
        "tags": [
          "Settings"
        ],
        "summary": "Read the operator's network settings (the fields safe for self-service)",
        "operationId": "Cpms_GetSettings",
        "parameters": [
          {
            "name": "networkUuid",
            "in": "query",
            "description": "Network UUID.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsOrgSettingsResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsOrgErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {},
          {}
        ]
      },
      "put": {
        "tags": [
          "Settings"
        ],
        "summary": "Update the operator's network settings (self-service subset only)",
        "operationId": "Cpms_UpdateSettings",
        "parameters": [
          {
            "name": "networkUuid",
            "in": "query",
            "description": "Network UUID.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CpmsUpdateSettingsRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsOrgSettingsUpdateResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsOrgErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {},
          {}
        ]
      }
    },
    "/cpms/v1/team": {
      "get": {
        "tags": [
          "Team"
        ],
        "summary": "List the operator's team members",
        "operationId": "Cpms_ListTeam",
        "parameters": [
          {
            "name": "networkUuid",
            "in": "query",
            "description": "Network UUID.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsOrgTeamListResponse"
                }
              }
            }
          }
        },
        "security": [
          {},
          {}
        ]
      },
      "post": {
        "tags": [
          "Team"
        ],
        "summary": "Add an existing platform user to the operator's team",
        "operationId": "Cpms_AddTeamMember",
        "parameters": [
          {
            "name": "networkUuid",
            "in": "query",
            "description": "Network UUID.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CpmsAddTeamMemberRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsOrgAddTeamMemberResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsOrgErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsOrgErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsOrgErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {},
          {}
        ]
      }
    },
    "/cpms/v1/team/{id}": {
      "put": {
        "tags": [
          "Team"
        ],
        "summary": "Update a team member's role",
        "operationId": "Cpms_UpdateTeamMember",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The resource identifier.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "networkUuid",
            "in": "query",
            "description": "Network UUID.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CpmsUpdateTeamMemberRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsOrgUpdateTeamMemberResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsOrgErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {},
          {}
        ]
      },
      "delete": {
        "tags": [
          "Team"
        ],
        "summary": "Remove a team member from the operator's network",
        "operationId": "Cpms_RemoveTeamMember",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The resource identifier.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "networkUuid",
            "in": "query",
            "description": "Network UUID.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsOrgRemoveTeamMemberResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsOrgErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {},
          {}
        ]
      }
    },
    "/cpms/v1/api-keys": {
      "get": {
        "tags": [
          "API Keys"
        ],
        "summary": "List the operator's CPMS API keys (prefix/suffix only — never the secret)",
        "operationId": "Cpms_ListApiKeys",
        "parameters": [
          {
            "name": "networkUuid",
            "in": "query",
            "description": "Network UUID.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsOrgApiKeyListResponse"
                }
              }
            }
          }
        },
        "security": [
          {},
          {}
        ]
      },
      "post": {
        "tags": [
          "API Keys"
        ],
        "summary": "Mint a new CPMS API key (the full secret is shown ONCE in this response)",
        "operationId": "Cpms_CreateApiKey",
        "parameters": [
          {
            "name": "networkUuid",
            "in": "query",
            "description": "Network UUID.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CpmsCreateApiKeyRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsOrgCreatedApiKeyResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsOrgErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {},
          {}
        ]
      }
    },
    "/cpms/v1/api-keys/{id}": {
      "delete": {
        "tags": [
          "API Keys"
        ],
        "summary": "Revoke + soft-delete one of the operator's CPMS API keys",
        "operationId": "Cpms_RevokeApiKey",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The resource identifier.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "networkUuid",
            "in": "query",
            "description": "Network UUID.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsOrgRevokeApiKeyResponse"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsOrgErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsOrgErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {},
          {}
        ]
      }
    },
    "/cpms/v1/webhooks/{webhookId}/test": {
      "post": {
        "tags": [
          "Webhooks"
        ],
        "summary": "Send a test event to a webhook subscription",
        "operationId": "Cpms_TestWebhook",
        "parameters": [
          {
            "name": "webhookId",
            "in": "path",
            "description": "Webhook subscription UUID.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsObservabilityWebhookTestResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsObservabilityErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {},
          {}
        ]
      }
    },
    "/cpms/v1/webhooks/{webhookId}/deliveries": {
      "get": {
        "tags": [
          "Webhooks"
        ],
        "summary": "List recent delivery attempts for a webhook subscription",
        "operationId": "Cpms_ListWebhookDeliveries",
        "parameters": [
          {
            "name": "webhookId",
            "in": "path",
            "description": "Webhook subscription UUID.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "page",
            "in": "query",
            "description": "Page number, 1-based. Defaults to 1.",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "description": "Number of items per page (1–100). Defaults to 50.",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsObservabilityDeliveryListResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsObservabilityErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {},
          {}
        ]
      }
    },
    "/cpms/v1/webhooks/{webhookId}/deliveries/{deliveryId}/retry": {
      "post": {
        "tags": [
          "Webhooks"
        ],
        "summary": "Retry a webhook delivery attempt",
        "operationId": "Cpms_RetryWebhookDelivery",
        "parameters": [
          {
            "name": "webhookId",
            "in": "path",
            "description": "Webhook subscription UUID.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "deliveryId",
            "in": "path",
            "description": "Webhook delivery attempt UUID.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "202": {
            "description": "Accepted",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsObservabilityRetryResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsObservabilityErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {},
          {}
        ]
      }
    },
    "/cpms/v1/webhooks/event-types": {
      "get": {
        "tags": [
          "Webhooks"
        ],
        "summary": "Catalog of available webhook event types",
        "operationId": "Cpms_GetWebhookEventTypes",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsObservabilityEventTypesResponse"
                }
              }
            }
          }
        },
        "security": [
          {},
          {}
        ]
      }
    },
    "/cpms/v1/events/stream": {
      "get": {
        "tags": [
          "Events"
        ],
        "summary": "Operator SSE event stream (real-time updates scoped to the operator's networks)",
        "operationId": "Cpms_StreamEvents",
        "parameters": [
          {
            "name": "eventTypes",
            "in": "query",
            "description": "Comma-separated list of event types to subscribe to.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "stationIds",
            "in": "query",
            "description": "Comma-separated list of station UUIDs to filter by.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "security": [
          {},
          {}
        ]
      }
    },
    "/cpms/v1/audit-log": {
      "get": {
        "tags": [
          "Audit Log"
        ],
        "summary": "Query the network's operator-action audit log",
        "description": "Returns the tenant-scoped audit trail of operator/API actions (create/update/delete/commands across tariffs, chargers, connectors, settings, team, API keys), newest first. Filter by category, action, resourceId, and a from/to UTC window. Page size 1–200 (default 50). The 'who did what, when, from where' feed for SOC2/ISO and compliance dashboards.",
        "operationId": "Cpms_GetAuditLog",
        "parameters": [
          {
            "name": "category",
            "in": "query",
            "description": "Filter the results by category.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "action",
            "in": "query",
            "description": "Filter the results by action.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "resourceId",
            "in": "query",
            "description": "Identifier of the resource the entry refers to.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "from",
            "in": "query",
            "description": "Start of the time range, inclusive. ISO-8601.",
            "schema": {
              "format": "date-time"
            }
          },
          {
            "name": "to",
            "in": "query",
            "description": "End of the time range, inclusive. ISO-8601.",
            "schema": {
              "format": "date-time"
            }
          },
          {
            "name": "page",
            "in": "query",
            "description": "Page number, 1-based. Defaults to 1.",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "description": "Number of items per page (1–100). Defaults to 50.",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsAuditLogListResponse"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {},
          {}
        ]
      }
    },
    "/cpms/v1/wallets/credit": {
      "post": {
        "tags": [
          "Wallets"
        ],
        "summary": "Grant a driver wallet credit (operator-funded)",
        "description": "Adds operator-funded balance to a driver's wallet for this network (promo/loyalty/goodwill); the driver spends it on the operator's chargers. Idempotent via idempotencyKey. Not a driver cash top-up.",
        "operationId": "Cpms_WalletCredit",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WalletCreditRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "security": [
          {},
          {}
        ]
      }
    },
    "/cpms/v1/wallets/{driverId}": {
      "get": {
        "tags": [
          "Wallets"
        ],
        "summary": "Get a driver's wallet balance for this network",
        "operationId": "Cpms_GetDriverWallet",
        "parameters": [
          {
            "name": "driverId",
            "in": "path",
            "description": "Driver UUID.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "security": [
          {},
          {}
        ]
      }
    },
    "/cpms/v1/fraud/holds": {
      "get": {
        "tags": [
          "Fraud"
        ],
        "summary": "List drivers on the operator's networks currently held for an unpaid balance",
        "operationId": "Cpms_ListFraudHolds",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsFraudHoldsResponse"
                }
              }
            }
          }
        },
        "security": [
          {},
          {}
        ]
      }
    },
    "/cpms/v1/fraud/drivers/{driverUuid}": {
      "get": {
        "tags": [
          "Fraud"
        ],
        "summary": "Anti-fraud status for a driver (phone-verified, hold, outstanding balance)",
        "operationId": "Cpms_DriverFraudStatus",
        "parameters": [
          {
            "name": "driverUuid",
            "in": "path",
            "description": "Driver UUID.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsFraudDriverStatusResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsFraudErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {},
          {}
        ]
      }
    },
    "/cpms/v1/fraud/drivers/{driverUuid}/clear-hold": {
      "post": {
        "tags": [
          "Fraud"
        ],
        "summary": "Clear a driver's fraud hold (optionally waive the outstanding balance so the live check passes)",
        "operationId": "Cpms_ClearFraudHold",
        "parameters": [
          {
            "name": "driverUuid",
            "in": "path",
            "description": "Driver UUID.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "oneOf": [
                  {
                    "type": "null"
                  },
                  {
                    "$ref": "#/components/schemas/ClearHoldRequest"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsFraudClearHoldResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsFraudErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {},
          {}
        ]
      }
    },
    "/cpms/v1/limits": {
      "get": {
        "tags": [
          "Limits"
        ],
        "summary": "Get provisioning caps: tier ceiling, your self-imposed cap, current usage, and remaining headroom for chargers and billable connectors",
        "operationId": "Cpms_GetProvisioningLimits",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsProvisioningLimitsResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicApiErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicApiErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {},
          {}
        ]
      },
      "put": {
        "tags": [
          "Limits"
        ],
        "summary": "Set or clear your self-imposed charger/connector caps (full replacement; null clears; never above the tier ceiling)",
        "operationId": "Cpms_SetProvisioningLimits",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CpmsSetLimitsRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsProvisioningLimitsResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicApiErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicApiErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {},
          {}
        ]
      }
    },
    "/cpms/v1/limits/increase-request": {
      "post": {
        "tags": [
          "Limits"
        ],
        "summary": "Request that the platform raise your tier ceiling above what your current plan allows",
        "operationId": "Cpms_RequestLimitIncrease",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CpmsLimitIncreaseRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "202": {
            "description": "Accepted",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsLimitIncreaseResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicApiErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicApiErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {},
          {}
        ]
      }
    },
    "/cpms/v1/limits/increase-requests": {
      "get": {
        "tags": [
          "Limits"
        ],
        "summary": "List your tier-increase requests and their review status",
        "operationId": "Cpms_ListLimitIncreaseRequests",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsLimitIncreaseListResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicApiErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicApiErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {},
          {}
        ]
      }
    },
    "/cpms/v1/manufacturers": {
      "get": {
        "tags": [
          "Manufacturers"
        ],
        "summary": "List charger manufacturers (global catalog, paginated)",
        "operationId": "Cpms_ListManufacturers",
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "description": "Page number, 1-based. Defaults to 1.",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "description": "Number of items per page (1–100). Defaults to 50.",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "search",
            "in": "query",
            "description": "Free-text search across the resource's principal fields.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsManufacturerListResponse"
                }
              }
            }
          }
        },
        "security": [
          {},
          {}
        ]
      }
    },
    "/cpms/v1/manufacturers/{id}": {
      "get": {
        "tags": [
          "Manufacturers"
        ],
        "summary": "Get a charger manufacturer by id",
        "operationId": "Cpms_GetManufacturer",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The resource identifier.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsManufacturerResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found"
          }
        },
        "security": [
          {},
          {}
        ]
      }
    },
    "/cpms/v1/charger-models": {
      "get": {
        "tags": [
          "Charger Models"
        ],
        "summary": "List charger models (global catalog, paginated; filter by manufacturer or search)",
        "operationId": "Cpms_ListChargerModels",
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "description": "Page number, 1-based. Defaults to 1.",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "description": "Number of items per page (1–100). Defaults to 50.",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "search",
            "in": "query",
            "description": "Free-text search across the resource's principal fields.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "manufacturerId",
            "in": "query",
            "description": "Charger manufacturer UUID.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsChargerModelListResponse"
                }
              }
            }
          }
        },
        "security": [
          {},
          {}
        ]
      }
    },
    "/cpms/v1/charger-models/{id}": {
      "get": {
        "tags": [
          "Charger Models"
        ],
        "summary": "Get a charger model by id (with manufacturer details)",
        "operationId": "Cpms_GetChargerModel",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The resource identifier.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsChargerModelResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found"
          }
        },
        "security": [
          {},
          {}
        ]
      }
    },
    "/cpms/v1/chargers/{chargerUuid}/commands": {
      "get": {
        "tags": [
          "Chargers"
        ],
        "summary": "Recent OCPP commands sent to one of the operator's chargers, with results",
        "operationId": "Cpms_GetChargerCommandHistory",
        "parameters": [
          {
            "name": "chargerUuid",
            "in": "path",
            "description": "Charger UUID.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum number of items to return.",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsChargerCommandListResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicApiErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {},
          {}
        ]
      }
    },
    "/cpms/v1/sessions/{id}/events": {
      "get": {
        "tags": [
          "Sessions"
        ],
        "summary": "Recorded lifecycle/domain events for one of the operator's charging sessions",
        "operationId": "Cpms_GetSessionEvents",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The resource identifier.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum number of items to return.",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsSessionEventListResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicApiErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {},
          {}
        ]
      }
    },
    "/cpms/v1/chargers/{chargerUuid}/device-model": {
      "get": {
        "tags": [
          "Chargers"
        ],
        "summary": "OCPP 2.0.1 device-model variables last reported by one of the operator's chargers",
        "operationId": "Cpms_GetChargerDeviceModel",
        "parameters": [
          {
            "name": "chargerUuid",
            "in": "path",
            "description": "Charger UUID.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "component",
            "in": "query",
            "description": "OCPP 2.x component name.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "variable",
            "in": "query",
            "description": "OCPP 2.x variable name.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "attributeType",
            "in": "query",
            "description": "OCPP 2.x attribute type, e.g. Actual or Target.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "evseId",
            "in": "query",
            "description": "EVSE identifier.",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum number of items to return.",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsDeviceModelResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicApiErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {},
          {}
        ]
      }
    },
    "/cpms/v1/chargers/{chargerUuid}/charging-profiles": {
      "get": {
        "tags": [
          "Chargers"
        ],
        "summary": "Smart-charging profiles currently assigned to one of the operator's chargers",
        "operationId": "Cpms_GetChargerChargingProfiles",
        "parameters": [
          {
            "name": "chargerUuid",
            "in": "path",
            "description": "Charger UUID.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum number of items to return.",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsChargingProfileListResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicApiErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {},
          {}
        ]
      }
    },
    "/cpms/v1/chargers/{chargerUuid}/monitoring/events": {
      "get": {
        "tags": [
          "Chargers"
        ],
        "summary": "Variable-monitoring events reported by one of the operator's chargers",
        "operationId": "Cpms_GetChargerMonitoringEvents",
        "parameters": [
          {
            "name": "chargerUuid",
            "in": "path",
            "description": "Charger UUID.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum number of items to return.",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "since",
            "in": "query",
            "description": "Return only items changed at or after this timestamp. ISO-8601.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "trigger",
            "in": "query",
            "description": "Filter the results by trigger.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "component",
            "in": "query",
            "description": "OCPP 2.x component name.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsMonitoringEventListResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicApiErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {},
          {}
        ]
      }
    },
    "/cpms/v1/chargers/{chargerUuid}/certificates": {
      "get": {
        "tags": [
          "Chargers"
        ],
        "summary": "Certificate metadata (serial, CN, validity, status) for one of the operator's chargers",
        "operationId": "Cpms_GetChargerCertificates",
        "parameters": [
          {
            "name": "chargerUuid",
            "in": "path",
            "description": "Charger UUID.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "status",
            "in": "query",
            "description": "Filter the results by status.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum number of items to return.",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsCertificateListResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicApiErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {},
          {}
        ]
      }
    },
    "/cpms/v1/chargers/{chargerUuid}/charging-profiles/query": {
      "post": {
        "tags": [
          "Chargers"
        ],
        "summary": "Live GetChargingProfiles — ask an OCPP 2.0.1 charger to report its installed profiles now",
        "operationId": "Cpms_QueryChargingProfiles",
        "parameters": [
          {
            "name": "chargerUuid",
            "in": "path",
            "description": "Charger UUID.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "oneOf": [
                  {
                    "type": "null"
                  },
                  {
                    "$ref": "#/components/schemas/CpmsChargingProfileQueryRequest"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsOcppQueryResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicApiErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicApiErrorResponse"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicApiErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {},
          {}
        ]
      }
    },
    "/cpms/v1/chargers/{chargerUuid}/device-model/report": {
      "post": {
        "tags": [
          "Chargers"
        ],
        "summary": "Live GetBaseReport — ask an OCPP 2.0.1 charger to re-report its full device model now",
        "operationId": "Cpms_RequestDeviceModelReport",
        "parameters": [
          {
            "name": "chargerUuid",
            "in": "path",
            "description": "Charger UUID.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsOcppQueryResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicApiErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicApiErrorResponse"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicApiErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {},
          {}
        ]
      }
    },
    "/cpms/v1/chargers/{chargerUuid}/display-messages": {
      "get": {
        "tags": [
          "Chargers"
        ],
        "summary": "Live GetDisplayMessages — list messages currently shown on an OCPP 2.0.1 charger",
        "operationId": "Cpms_GetDisplayMessages",
        "parameters": [
          {
            "name": "chargerUuid",
            "in": "path",
            "description": "Charger UUID.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "priority",
            "in": "query",
            "description": "Filter the results by priority.",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "state",
            "in": "query",
            "description": "Filter the results by state.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsOcppQueryResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicApiErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicApiErrorResponse"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicApiErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {},
          {}
        ]
      },
      "post": {
        "tags": [
          "Chargers"
        ],
        "summary": "Show a message on an OCPP 2.0.1 charger's display (SetDisplayMessage)",
        "operationId": "Cpms_SetDisplayMessage",
        "parameters": [
          {
            "name": "chargerUuid",
            "in": "path",
            "description": "Charger UUID.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "oneOf": [
                  {
                    "type": "null"
                  },
                  {
                    "$ref": "#/components/schemas/CpmsSetDisplayMessageRequest"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsOcppQueryResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicApiErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicApiErrorResponse"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicApiErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {},
          {}
        ]
      }
    },
    "/cpms/v1/chargers/{chargerUuid}/display-messages/{messageId}": {
      "delete": {
        "tags": [
          "Chargers"
        ],
        "summary": "Clear a message from an OCPP 2.0.1 charger's display (ClearDisplayMessage)",
        "operationId": "Cpms_ClearDisplayMessage",
        "parameters": [
          {
            "name": "chargerUuid",
            "in": "path",
            "description": "Charger UUID.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "messageId",
            "in": "path",
            "description": "Display message identifier.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsOcppQueryResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicApiErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicApiErrorResponse"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicApiErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {},
          {}
        ]
      }
    },
    "/cpms/v1/chargers/{chargerUuid}/monitoring/set": {
      "post": {
        "tags": [
          "Chargers"
        ],
        "summary": "Install variable monitors on an OCPP 2.0.1 charger (SetVariableMonitoring)",
        "operationId": "Cpms_SetVariableMonitoring",
        "parameters": [
          {
            "name": "chargerUuid",
            "in": "path",
            "description": "Charger UUID.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "oneOf": [
                  {
                    "type": "null"
                  },
                  {
                    "$ref": "#/components/schemas/CpmsSetVariableMonitoringRequest"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsOcppQueryResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicApiErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicApiErrorResponse"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicApiErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {},
          {}
        ]
      }
    },
    "/cpms/v1/chargers/{chargerUuid}/monitoring/{monitorId}": {
      "delete": {
        "tags": [
          "Chargers"
        ],
        "summary": "Clear a variable monitor by id on an OCPP 2.0.1 charger (ClearVariableMonitoring)",
        "operationId": "Cpms_ClearVariableMonitoring",
        "parameters": [
          {
            "name": "chargerUuid",
            "in": "path",
            "description": "Charger UUID.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "monitorId",
            "in": "path",
            "description": "Monitor identifier.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpmsOcppQueryResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicApiErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicApiErrorResponse"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicApiErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {},
          {}
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "ChangeConfigurationRequest": {
        "required": [
          "key",
          "value"
        ],
        "type": "object",
        "properties": {
          "key": {
            "type": "string"
          },
          "value": {
            "type": "string"
          }
        }
      },
      "ClearHoldRequest": {
        "type": "object",
        "properties": {
          "waive": {
            "type": "boolean"
          }
        }
      },
      "CpmsAddConnectorRequest": {
        "type": "object",
        "properties": {
          "standard": {
            "type": [
              "null",
              "string"
            ]
          },
          "format": {
            "type": [
              "null",
              "string"
            ]
          },
          "powerType": {
            "type": [
              "null",
              "string"
            ]
          },
          "connectorNumber": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int32"
          },
          "maxVoltage": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int32"
          },
          "maxAmperage": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int32"
          },
          "maxPower": {
            "type": [
              "null",
              "number"
            ],
            "format": "double"
          }
        }
      },
      "CpmsAddTeamMemberRequest": {
        "type": "object",
        "properties": {
          "email": {
            "type": "string"
          },
          "role": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "CpmsAnalyticsEnergy": {
        "type": "object",
        "properties": {
          "metric": {
            "type": "string",
            "description": "Always \"energy\".",
            "example": "energy"
          },
          "period": {
            "type": "string",
            "description": "Grouping period requested.",
            "example": "day"
          },
          "from": {
            "description": "UTC start of the window.",
            "format": "date-time",
            "example": "2026-05-21T00:00:00Z"
          },
          "to": {
            "description": "UTC end of the window.",
            "format": "date-time",
            "example": "2026-06-20T00:00:00Z"
          },
          "totalEnergyKwh": {
            "type": "number",
            "description": "Total energy across all targeted networks (kWh), rounded to 2 decimals.",
            "format": "double",
            "example": 54210.4
          },
          "networkCount": {
            "type": "integer",
            "description": "Number of networks included in this rollup.",
            "format": "int32",
            "example": 2
          },
          "networks": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CpmsAnalyticsNetworkRollup"
            },
            "description": "Per-network energy rollups."
          }
        }
      },
      "CpmsAnalyticsEnergyResponse": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/CpmsAnalyticsEnergy"
          },
          "success": {
            "type": "boolean",
            "description": "Always true on a 2xx response.",
            "example": true
          },
          "timestamp": {
            "description": "UTC time the response was generated.",
            "format": "date-time",
            "example": "2026-06-20T18:42:09Z"
          }
        }
      },
      "CpmsAnalyticsErrorResponse": {
        "type": "object",
        "properties": {
          "error": {
            "type": "string",
            "description": "Stable machine-readable error code (duplicated as `code`).",
            "example": "not_found"
          },
          "code": {
            "type": "string",
            "description": "Stable machine-readable error code.",
            "example": "not_found"
          },
          "message": {
            "type": "string",
            "description": "Human-readable explanation of the error.",
            "example": "Network 'c0ffee00-1234-4567-89ab-cdef01234567' not found"
          }
        }
      },
      "CpmsAnalyticsKpis": {
        "type": "object",
        "properties": {
          "metric": {
            "type": "string",
            "description": "Always \"kpis\".",
            "example": "kpis"
          },
          "from": {
            "description": "UTC start of the window.",
            "format": "date-time",
            "example": "2026-05-21T00:00:00Z"
          },
          "to": {
            "description": "UTC end of the window.",
            "format": "date-time",
            "example": "2026-06-20T00:00:00Z"
          },
          "totalSessions": {
            "type": "integer",
            "description": "Total sessions in the window across the targeted networks.",
            "format": "int32",
            "example": 7421
          },
          "totalEnergyKwh": {
            "type": "number",
            "description": "Total energy delivered (kWh), rounded to 2 decimals.",
            "format": "double",
            "example": 54210.4
          },
          "totalRevenue": {
            "type": "number",
            "description": "Total revenue, rounded to 2 decimals.",
            "format": "double",
            "example": 18432.55
          },
          "avgDurationMinutes": {
            "type": "object",
            "anyOf": [
              {
                "type": "number"
              },
              {
                "enum": [
                  "NaN",
                  "Infinity",
                  "-Infinity"
                ]
              }
            ],
            "description": "Average completed-session duration in minutes, rounded to 1 decimal.",
            "format": "double",
            "example": 46.7
          },
          "networkCount": {
            "type": "integer",
            "description": "Number of networks included in the summary.",
            "format": "int32",
            "example": 2
          }
        }
      },
      "CpmsAnalyticsKpisResponse": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/CpmsAnalyticsKpis"
          },
          "success": {
            "type": "boolean",
            "description": "Always true on a 2xx response.",
            "example": true
          },
          "timestamp": {
            "description": "UTC time the response was generated.",
            "format": "date-time",
            "example": "2026-06-20T18:42:09Z"
          }
        }
      },
      "CpmsAnalyticsNetworkRollup": {
        "type": "object",
        "properties": {
          "networkId": {
            "type": "string",
            "description": "UUID of the network this rollup belongs to.",
            "format": "uuid",
            "example": "c0ffee00-1234-4567-89ab-cdef01234567"
          },
          "rollup": {
            "description": "The metric rollup for this network as produced by the analytics engine (time-series + summary). Shape depends on the metric; may be null."
          }
        }
      },
      "CpmsAnalyticsRevenue": {
        "type": "object",
        "properties": {
          "metric": {
            "type": "string",
            "description": "Always \"revenue\".",
            "example": "revenue"
          },
          "period": {
            "type": "string",
            "description": "Grouping period requested (day | week | month).",
            "example": "day"
          },
          "from": {
            "description": "UTC start of the window (defaults to 30 days before `to`).",
            "format": "date-time",
            "example": "2026-05-21T00:00:00Z"
          },
          "to": {
            "description": "UTC end of the window (defaults to now).",
            "format": "date-time",
            "example": "2026-06-20T00:00:00Z"
          },
          "totalRevenue": {
            "type": "number",
            "description": "Total revenue across all targeted networks, rounded to 2 decimals.",
            "format": "double",
            "example": 18432.55
          },
          "networkCount": {
            "type": "integer",
            "description": "Number of networks included in this rollup.",
            "format": "int32",
            "example": 2
          },
          "networks": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CpmsAnalyticsNetworkRollup"
            },
            "description": "Per-network revenue rollups."
          }
        }
      },
      "CpmsAnalyticsRevenueResponse": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/CpmsAnalyticsRevenue"
          },
          "success": {
            "type": "boolean",
            "description": "Always true on a 2xx response.",
            "example": true
          },
          "timestamp": {
            "description": "UTC time the response was generated.",
            "format": "date-time",
            "example": "2026-06-20T18:42:09Z"
          }
        }
      },
      "CpmsAnalyticsSessions": {
        "type": "object",
        "properties": {
          "metric": {
            "type": "string",
            "description": "Always \"sessions\".",
            "example": "sessions"
          },
          "period": {
            "type": "string",
            "description": "Grouping period requested.",
            "example": "day"
          },
          "from": {
            "description": "UTC start of the window.",
            "format": "date-time",
            "example": "2026-05-21T00:00:00Z"
          },
          "to": {
            "description": "UTC end of the window.",
            "format": "date-time",
            "example": "2026-06-20T00:00:00Z"
          },
          "totalSessions": {
            "type": "integer",
            "description": "Total session count across all targeted networks.",
            "format": "int64",
            "example": 7421
          },
          "networkCount": {
            "type": "integer",
            "description": "Number of networks included in this rollup.",
            "format": "int32",
            "example": 2
          },
          "networks": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CpmsAnalyticsNetworkRollup"
            },
            "description": "Per-network session rollups."
          }
        }
      },
      "CpmsAnalyticsSessionsResponse": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/CpmsAnalyticsSessions"
          },
          "success": {
            "type": "boolean",
            "description": "Always true on a 2xx response.",
            "example": true
          },
          "timestamp": {
            "description": "UTC time the response was generated.",
            "format": "date-time",
            "example": "2026-06-20T18:42:09Z"
          }
        }
      },
      "CpmsAnalyticsUptime": {
        "type": "object",
        "properties": {
          "metric": {
            "type": "string",
            "description": "Always \"uptime\".",
            "example": "uptime"
          },
          "totalChargers": {
            "type": "integer",
            "description": "Total non-deleted chargers across the targeted networks.",
            "format": "int32",
            "example": 84
          },
          "available": {
            "type": "integer",
            "description": "Chargers reporting AVAILABLE across all targeted networks.",
            "format": "int32",
            "example": 60
          },
          "charging": {
            "type": "integer",
            "description": "Chargers reporting CHARGING across all targeted networks.",
            "format": "int32",
            "example": 16
          },
          "offline": {
            "type": "integer",
            "description": "Offline chargers across all targeted networks.",
            "format": "int32",
            "example": 8
          },
          "uptimePercent": {
            "type": "number",
            "description": "\"In service\" (available + charging) as a percentage of total, rounded to 1 decimal.",
            "format": "double",
            "example": 90.5
          },
          "offlinePercent": {
            "type": "number",
            "description": "Offline chargers as a percentage of total, rounded to 1 decimal.",
            "format": "double",
            "example": 9.5
          },
          "networkCount": {
            "type": "integer",
            "description": "Number of networks included in the snapshot.",
            "format": "int32",
            "example": 2
          },
          "networks": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CpmsAnalyticsUptimeNetwork"
            },
            "description": "Per-network availability breakdowns."
          }
        }
      },
      "CpmsAnalyticsUptimeNetwork": {
        "type": "object",
        "properties": {
          "networkId": {
            "type": [
              "null",
              "string"
            ],
            "description": "UUID of the network, or null if it could not be resolved.",
            "format": "uuid",
            "example": "c0ffee00-1234-4567-89ab-cdef01234567"
          },
          "totalChargers": {
            "type": "integer",
            "description": "Total non-deleted chargers on this network.",
            "format": "int32",
            "example": 42
          },
          "available": {
            "type": "integer",
            "description": "Chargers reporting AVAILABLE.",
            "format": "int32",
            "example": 30
          },
          "charging": {
            "type": "integer",
            "description": "Chargers reporting CHARGING.",
            "format": "int32",
            "example": 8
          },
          "offline": {
            "type": "integer",
            "description": "Chargers neither AVAILABLE nor CHARGING (total minus available minus charging).",
            "format": "int32",
            "example": 4
          },
          "availablePercent": {
            "type": "number",
            "description": "Available chargers as a percentage of total, rounded to 1 decimal.",
            "format": "double",
            "example": 71.4
          },
          "inUsePercent": {
            "type": "number",
            "description": "Charging chargers as a percentage of total, rounded to 1 decimal.",
            "format": "double",
            "example": 19
          },
          "offlinePercent": {
            "type": "number",
            "description": "Offline chargers as a percentage of total, rounded to 1 decimal.",
            "format": "double",
            "example": 9.5
          }
        }
      },
      "CpmsAnalyticsUptimeResponse": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/CpmsAnalyticsUptime"
          },
          "success": {
            "type": "boolean",
            "description": "Always true on a 2xx response.",
            "example": true
          },
          "timestamp": {
            "description": "UTC time the response was generated.",
            "format": "date-time",
            "example": "2026-06-20T18:42:09Z"
          }
        }
      },
      "CpmsAnalyticsUtilization": {
        "type": "object",
        "properties": {
          "metric": {
            "type": "string",
            "description": "Always \"utilization\".",
            "example": "utilization"
          },
          "period": {
            "type": "string",
            "description": "Grouping period requested.",
            "example": "day"
          },
          "from": {
            "description": "UTC start of the window.",
            "format": "date-time",
            "example": "2026-05-21T00:00:00Z"
          },
          "to": {
            "description": "UTC end of the window.",
            "format": "date-time",
            "example": "2026-06-20T00:00:00Z"
          },
          "averageUtilization": {
            "type": "number",
            "description": "Mean connector utilization (percent) across the targeted networks, rounded to 2 decimals.",
            "format": "double",
            "example": 37.42
          },
          "networkCount": {
            "type": "integer",
            "description": "Number of networks included in this rollup.",
            "format": "int32",
            "example": 2
          },
          "networks": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CpmsAnalyticsNetworkRollup"
            },
            "description": "Per-network utilization rollups."
          }
        }
      },
      "CpmsAnalyticsUtilizationResponse": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/CpmsAnalyticsUtilization"
          },
          "success": {
            "type": "boolean",
            "description": "Always true on a 2xx response.",
            "example": true
          },
          "timestamp": {
            "description": "UTC time the response was generated.",
            "format": "date-time",
            "example": "2026-06-20T18:42:09Z"
          }
        }
      },
      "CpmsAssignTariffRequest": {
        "type": "object",
        "properties": {
          "locationUuid": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "chargerUuid": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "connectorUuid": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          }
        }
      },
      "CpmsAuditLogEntry": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "description": "Monotonic audit-log entry id.",
            "format": "int64",
            "example": 80421
          },
          "category": {
            "type": "string",
            "description": "Resource category the action touched (e.g. charger, station, tariff, settings, team, api_key, connector, ocpi).",
            "example": "tariff"
          },
          "action": {
            "type": "string",
            "description": "Operation performed (e.g. created, updated, deleted, enabled, disabled, command_sent, remote_start).",
            "example": "updated"
          },
          "resourceId": {
            "type": [
              "null",
              "string"
            ],
            "description": "Identifier of the affected resource (UUID/UID), or null when not resource-specific.",
            "example": "5e6f1a2b-3c4d-4e5f-8a9b-0c1d2e3f4a5b"
          },
          "resourceName": {
            "type": [
              "null",
              "string"
            ],
            "description": "Human-readable label for the affected resource, or null.",
            "example": "Standard AC"
          },
          "description": {
            "type": "string",
            "description": "Human-readable summary of the change.",
            "example": "Tariff pricing updated"
          },
          "details": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional JSON string with field-level deltas, e.g. {\"field\":\"energyRate\",\"from\":0.30,\"to\":0.35}.",
            "example": "{\"field\":\"energyRate\",\"from\":0.30,\"to\":0.35}"
          },
          "userId": {
            "type": [
              "null",
              "string"
            ],
            "description": "UUID of the user who performed the action, or null for system/service actions.",
            "format": "uuid",
            "example": "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaa001"
          },
          "userName": {
            "type": [
              "null",
              "string"
            ],
            "description": "Display name / email of the actor, or null.",
            "example": "ops@acme-ev.com"
          },
          "ipAddress": {
            "type": [
              "null",
              "string"
            ],
            "description": "Source IP the action was made from, or null.",
            "example": "203.0.113.24"
          },
          "timestamp": {
            "description": "UTC time the action occurred.",
            "format": "date-time",
            "example": "2026-06-19T18:42:09Z"
          }
        }
      },
      "CpmsAuditLogListResponse": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CpmsAuditLogEntry"
            },
            "description": "The page of audit-log entries, most recent first."
          },
          "pagination": {
            "$ref": "#/components/schemas/CpmsPagination"
          },
          "success": {
            "type": "boolean",
            "description": "Always true on a 2xx response.",
            "example": true
          },
          "timestamp": {
            "description": "UTC time the response was generated.",
            "format": "date-time",
            "example": "2026-06-19T18:42:09Z"
          }
        }
      },
      "CpmsBillingCostBreakdown": {
        "type": "object",
        "properties": {
          "energyCost": {
            "type": "number",
            "description": "Operator cost attributable to delivered energy.",
            "format": "double",
            "example": 4.1
          },
          "timeCost": {
            "type": "number",
            "description": "Operator cost attributable to occupancy time.",
            "format": "double",
            "example": 0
          },
          "sessionFee": {
            "type": "number",
            "description": "Fixed per-session cost component.",
            "format": "double",
            "example": 0.5
          },
          "processingFees": {
            "type": "number",
            "description": "Payment-processing fees borne for this CDR.",
            "format": "double",
            "example": 0.41
          },
          "subtotal": {
            "type": "number",
            "description": "energyCost + timeCost + sessionFee, before tax.",
            "format": "double",
            "example": 4.6
          },
          "tax": {
            "type": "number",
            "description": "Tax applied to this CDR (0 when none).",
            "format": "double",
            "example": 0
          },
          "taxRate": {
            "type": [
              "null",
              "number"
            ],
            "description": "Tax rate (percent) applied, or null when no tax rate is set.",
            "format": "double",
            "example": 11.5
          },
          "total": {
            "type": "number",
            "description": "Total amount charged to the driver (matches the CDR amount).",
            "format": "double",
            "example": 9.82
          },
          "totalCosts": {
            "type": "number",
            "description": "Sum of all operator costs for this CDR.",
            "format": "double",
            "example": 5.01
          }
        }
      },
      "CpmsBillingErrorResponse": {
        "type": "object",
        "properties": {
          "error": {
            "type": "string",
            "description": "Stable machine-readable error code (duplicated as `code`).",
            "example": "not_found"
          },
          "code": {
            "type": "string",
            "description": "Stable machine-readable error code.",
            "example": "not_found"
          },
          "message": {
            "type": "string",
            "description": "Human-readable explanation of the error.",
            "example": "Transaction '7c1a2b30-4d5e-6a7b-8c9d-0e1f2a3b4c5d' not found"
          }
        }
      },
      "CpmsBillingForceStopResponse": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/CpmsBillingForceStopResult"
          },
          "success": {
            "type": "boolean",
            "description": "Always true on a 2xx response.",
            "example": true
          },
          "timestamp": {
            "description": "UTC time the response was generated.",
            "format": "date-time",
            "example": "2026-06-20T18:42:09Z"
          }
        }
      },
      "CpmsBillingForceStopResult": {
        "type": "object",
        "properties": {
          "sessionId": {
            "type": "string",
            "description": "UUID of the session that was force-stopped.",
            "format": "uuid",
            "example": "3f5d6e70-8a9b-4c1d-2e3f-4a5b6c7d8e9f"
          },
          "stopped": {
            "type": "boolean",
            "description": "Always true once the session has been finalized to COMPLETED.",
            "example": true
          }
        }
      },
      "CpmsBillingPagination": {
        "type": "object",
        "properties": {
          "page": {
            "type": "integer",
            "description": "1-based page index of this result set.",
            "format": "int32",
            "example": 1
          },
          "pageSize": {
            "type": "integer",
            "description": "Items requested per page (1–100; defaults to 50).",
            "format": "int32",
            "example": 50
          },
          "total": {
            "type": "integer",
            "description": "Total number of items across all pages.",
            "format": "int32",
            "example": 412
          },
          "totalPages": {
            "type": "integer",
            "description": "Total number of pages at the current pageSize.",
            "format": "int32",
            "example": 9
          }
        }
      },
      "CpmsBillingPayoutRef": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Payout UUID.",
            "format": "uuid",
            "example": "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d"
          },
          "number": {
            "type": [
              "null",
              "string"
            ],
            "description": "Human-readable payout number.",
            "example": "PO-2026-0042"
          }
        }
      },
      "CpmsBillingProfitSummary": {
        "type": "object",
        "properties": {
          "grossProfit": {
            "type": "number",
            "description": "Gross profit (amount minus direct costs).",
            "format": "double",
            "example": 5.31
          },
          "netProfit": {
            "type": "number",
            "description": "Net profit after fees.",
            "format": "double",
            "example": 4.81
          },
          "profitMarginPercent": {
            "type": "number",
            "description": "Net profit as a percentage of the amount charged.",
            "format": "double",
            "example": 48.9
          }
        }
      },
      "CpmsBillingRefundResponse": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/CpmsBillingRefundResult"
          },
          "success": {
            "type": "boolean",
            "description": "Always true on a 2xx response.",
            "example": true
          },
          "timestamp": {
            "description": "UTC time the response was generated.",
            "format": "date-time",
            "example": "2026-06-20T18:42:09Z"
          }
        }
      },
      "CpmsBillingRefundResult": {
        "type": "object",
        "properties": {
          "sessionId": {
            "type": "string",
            "description": "UUID supplied to identify the session that was refunded.",
            "format": "uuid",
            "example": "3f5d6e70-8a9b-4c1d-2e3f-4a5b6c7d8e9f"
          },
          "refundId": {
            "type": [
              "null",
              "string"
            ],
            "description": "Payment-processor refund id (e.g. a Stripe refund id).",
            "example": "re_3PXyZ2EXAMPLE0001"
          },
          "refundedAmount": {
            "type": "number",
            "description": "Amount that was refunded (in the session currency).",
            "format": "double",
            "example": 9.82
          },
          "currency": {
            "type": [
              "null",
              "string"
            ],
            "description": "ISO-4217 currency of the refunded amount.",
            "example": "USD"
          },
          "paymentIntent": {
            "type": [
              "null",
              "string"
            ],
            "description": "The Stripe PaymentIntent id (pi_...) that was reversed.",
            "example": "pi_3PXyZ2EXAMPLE0001"
          },
          "refunded": {
            "type": "boolean",
            "description": "Always true on a successful refund.",
            "example": true
          }
        }
      },
      "CpmsBillingRequest": {
        "type": "object",
        "properties": {
          "vatRate": {
            "type": [
              "null",
              "number"
            ],
            "format": "double"
          },
          "billingAddress": {
            "type": [
              "null",
              "string"
            ]
          },
          "invoicePrefix": {
            "type": [
              "null",
              "string"
            ]
          },
          "paymentTermsDays": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int32"
          }
        }
      },
      "CpmsBillingTransactionDetail": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Stable CDR UUID.",
            "format": "uuid",
            "example": "7c1a2b30-4d5e-6a7b-8c9d-0e1f2a3b4c5d"
          },
          "ocpiId": {
            "type": [
              "null",
              "string"
            ],
            "description": "OCPI CDR id, or null.",
            "example": "CDR-2026-000123"
          },
          "sessionId": {
            "type": [
              "null",
              "string"
            ],
            "description": "UUID of the linked charging session, or null.",
            "format": "uuid",
            "example": "3f5d6e70-8a9b-4c1d-2e3f-4a5b6c7d8e9f"
          },
          "startTime": {
            "description": "UTC timestamp the session started.",
            "format": "date-time",
            "example": "2026-06-19T14:02:11Z"
          },
          "endTime": {
            "description": "UTC timestamp the session ended.",
            "format": "date-time",
            "example": "2026-06-19T14:48:53Z"
          },
          "energyKwh": {
            "type": "number",
            "description": "Total energy delivered, in kWh.",
            "format": "double",
            "example": 23.4
          },
          "totalTimeMinutes": {
            "type": "number",
            "description": "Total occupancy time of the session, in minutes (CDR time is stored in hours).",
            "format": "double",
            "example": 46.7
          },
          "currency": {
            "type": [
              "null",
              "string"
            ],
            "description": "ISO-4217 currency of the amounts.",
            "example": "USD"
          },
          "amount": {
            "type": "number",
            "description": "Total amount charged to the driver.",
            "format": "double",
            "example": 9.82
          },
          "paymentStatus": {
            "type": [
              "null",
              "string"
            ],
            "description": "Payment status of the CDR.",
            "example": "succeeded"
          },
          "paymentMethod": {
            "type": [
              "null",
              "string"
            ],
            "description": "Payment method used.",
            "example": "card"
          },
          "paymentReference": {
            "type": [
              "null",
              "string"
            ],
            "description": "Payment-processor reference for the charge.",
            "example": "pi_3PXyZ2EXAMPLE0001"
          },
          "authMethod": {
            "type": [
              "null",
              "string"
            ],
            "description": "How the session was authorized (e.g. RFID, AppUser, AuthRequest).",
            "example": "AppUser"
          },
          "authorizationReference": {
            "type": [
              "null",
              "string"
            ],
            "description": "Authorization reference for the session (e.g. the Stripe PaymentIntent id).",
            "example": "pi_3PXyZ2EXAMPLE0001"
          },
          "isFree": {
            "type": "boolean",
            "description": "True when the session was free.",
            "example": false
          },
          "locationName": {
            "type": [
              "null",
              "string"
            ],
            "description": "Name of the session's location, or null.",
            "example": "Isla Verde Plaza"
          },
          "locationAddress": {
            "type": [
              "null",
              "string"
            ],
            "description": "Street address of the session's location, or null.",
            "example": "100 Av. Isla Verde, Carolina"
          },
          "chargerUid": {
            "type": [
              "null",
              "string"
            ],
            "description": "OCPP charge-point identity of the station, or null.",
            "example": "CP-IslaVerde-01"
          },
          "connectorNumber": {
            "type": [
              "null",
              "integer"
            ],
            "description": "Connector number used (1-based), or null.",
            "format": "int32",
            "example": 1
          },
          "costBreakdown": {
            "description": "Full operator cost breakdown for this CDR.",
            "$ref": "#/components/schemas/CpmsBillingCostBreakdown"
          },
          "profit": {
            "description": "Profit summary for this CDR.",
            "$ref": "#/components/schemas/CpmsBillingProfitSummary"
          },
          "payout": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "description": "Payout reference for this CDR, or null when not yet settled.",
                "$ref": "#/components/schemas/CpmsBillingPayoutRef"
              }
            ]
          },
          "invoiceNumber": {
            "type": [
              "null",
              "string"
            ],
            "description": "Invoice number, if an invoice was generated.",
            "example": "INV-2026-000123"
          },
          "invoiceDate": {
            "description": "UTC date the invoice was generated, or null.",
            "format": "date-time",
            "example": "2026-06-20T00:00:00Z"
          }
        }
      },
      "CpmsBillingTransactionListResponse": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CpmsBillingTransactionSummary"
            },
            "description": "The page of transactions (CDRs)."
          },
          "pagination": {
            "$ref": "#/components/schemas/CpmsBillingPagination"
          },
          "success": {
            "type": "boolean",
            "description": "Always true on a 2xx response.",
            "example": true
          },
          "timestamp": {
            "description": "UTC time the response was generated.",
            "format": "date-time",
            "example": "2026-06-20T18:42:09Z"
          }
        }
      },
      "CpmsBillingTransactionResponse": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/CpmsBillingTransactionDetail"
          },
          "success": {
            "type": "boolean",
            "description": "Always true on a 2xx response.",
            "example": true
          },
          "timestamp": {
            "description": "UTC time the response was generated.",
            "format": "date-time",
            "example": "2026-06-20T18:42:09Z"
          }
        }
      },
      "CpmsBillingTransactionSummary": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Stable CDR UUID. Use it in GET /transactions/{id}.",
            "format": "uuid",
            "example": "7c1a2b30-4d5e-6a7b-8c9d-0e1f2a3b4c5d"
          },
          "ocpiId": {
            "type": [
              "null",
              "string"
            ],
            "description": "OCPI CDR id, when this CDR was produced/exchanged over OCPI; null otherwise.",
            "example": "CDR-2026-000123"
          },
          "sessionId": {
            "type": [
              "null",
              "string"
            ],
            "description": "UUID of the charging session that produced this CDR, or null if not linked.",
            "format": "uuid",
            "example": "3f5d6e70-8a9b-4c1d-2e3f-4a5b6c7d8e9f"
          },
          "chargerUid": {
            "type": [
              "null",
              "string"
            ],
            "description": "OCPP charge-point identity of the station that served the session, or null.",
            "example": "CP-IslaVerde-01"
          },
          "locationName": {
            "type": [
              "null",
              "string"
            ],
            "description": "Name of the site/location the session occurred at, or null.",
            "example": "Isla Verde Plaza"
          },
          "startTime": {
            "description": "UTC timestamp the session started.",
            "format": "date-time",
            "example": "2026-06-19T14:02:11Z"
          },
          "endTime": {
            "description": "UTC timestamp the session ended.",
            "format": "date-time",
            "example": "2026-06-19T14:48:53Z"
          },
          "energyKwh": {
            "type": "number",
            "description": "Total energy delivered for this CDR, in kWh.",
            "format": "double",
            "example": 23.4
          },
          "amount": {
            "type": "number",
            "description": "Total amount charged to the driver for this CDR (in the CDR currency).",
            "format": "double",
            "example": 9.82
          },
          "currency": {
            "type": [
              "null",
              "string"
            ],
            "description": "ISO-4217 currency of the amount (e.g. USD).",
            "example": "USD"
          },
          "paymentStatus": {
            "type": [
              "null",
              "string"
            ],
            "description": "Payment status of the CDR (e.g. succeeded, failed, refunded, waived).",
            "example": "succeeded"
          },
          "paymentMethod": {
            "type": [
              "null",
              "string"
            ],
            "description": "Payment method used (e.g. card, wallet, managed).",
            "example": "card"
          },
          "paymentReference": {
            "type": [
              "null",
              "string"
            ],
            "description": "Payment-processor reference for the charge (e.g. a Stripe PaymentIntent id).",
            "example": "pi_3PXyZ2EXAMPLE0001"
          },
          "energyCost": {
            "type": "number",
            "description": "Operator cost attributable to delivered energy (operator-only field).",
            "format": "double",
            "example": 4.1
          },
          "timeCost": {
            "type": "number",
            "description": "Operator cost attributable to occupancy time (operator-only field).",
            "format": "double",
            "example": 0
          },
          "sessionFee": {
            "type": "number",
            "description": "Fixed per-session cost component (operator-only field).",
            "format": "double",
            "example": 0.5
          },
          "processingFees": {
            "type": "number",
            "description": "Payment-processing fees borne for this CDR (operator-only field).",
            "format": "double",
            "example": 0.41
          },
          "totalCosts": {
            "type": "number",
            "description": "Sum of all operator costs for this CDR (operator-only field).",
            "format": "double",
            "example": 5.01
          },
          "grossProfit": {
            "type": "number",
            "description": "Gross profit (amount minus direct costs) for this CDR (operator-only field).",
            "format": "double",
            "example": 5.31
          },
          "netProfit": {
            "type": "number",
            "description": "Net profit after fees for this CDR (operator-only field).",
            "format": "double",
            "example": 4.81
          },
          "profitMarginPercent": {
            "type": "number",
            "description": "Net profit as a percentage of the amount charged (operator-only field).",
            "format": "double",
            "example": 48.9
          },
          "taxAmount": {
            "type": [
              "null",
              "number"
            ],
            "description": "Tax charged on this CDR, or null when no tax applied.",
            "format": "double",
            "example": 0
          },
          "payoutId": {
            "type": [
              "null",
              "string"
            ],
            "description": "UUID of the payout this CDR was settled in, or null if not yet paid out.",
            "format": "uuid",
            "example": "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d"
          },
          "isFree": {
            "type": "boolean",
            "description": "True when the session was free (no charge).",
            "example": false
          }
        }
      },
      "CpmsBillingWaiveResponse": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/CpmsBillingWaiveResult"
          },
          "success": {
            "type": "boolean",
            "description": "Always true on a 2xx response.",
            "example": true
          },
          "timestamp": {
            "description": "UTC time the response was generated.",
            "format": "date-time",
            "example": "2026-06-20T18:42:09Z"
          }
        }
      },
      "CpmsBillingWaiveResult": {
        "type": "object",
        "properties": {
          "sessionId": {
            "type": "string",
            "description": "UUID of the session whose idle fee was waived.",
            "format": "uuid",
            "example": "3f5d6e70-8a9b-4c1d-2e3f-4a5b6c7d8e9f"
          },
          "originalIdleFee": {
            "type": "number",
            "description": "The session's idle fee before the waiver (session currency).",
            "format": "double",
            "example": 6
          },
          "waivedAmount": {
            "type": "number",
            "description": "Amount waived (full idle fee unless a partial amount was requested).",
            "format": "double",
            "example": 6
          },
          "remainingIdleFee": {
            "type": "number",
            "description": "Idle fee remaining after the waiver (0 for a full waiver).",
            "format": "double",
            "example": 0
          },
          "currency": {
            "type": [
              "null",
              "string"
            ],
            "description": "ISO-4217 currency of the amounts.",
            "example": "USD"
          },
          "waived": {
            "type": "boolean",
            "description": "Always true on a successful waiver.",
            "example": true
          }
        }
      },
      "CpmsBrandingRequest": {
        "type": "object",
        "properties": {
          "primaryColor": {
            "type": [
              "null",
              "string"
            ]
          },
          "secondaryColor": {
            "type": [
              "null",
              "string"
            ]
          },
          "logoUrl": {
            "type": [
              "null",
              "string"
            ]
          },
          "faviconUrl": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "CpmsCatalogPagination": {
        "required": [
          "page",
          "pageSize",
          "total",
          "totalPages"
        ],
        "type": "object",
        "properties": {
          "page": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "total": {
            "type": "integer",
            "format": "int32"
          },
          "totalPages": {
            "type": "integer",
            "format": "int32"
          }
        }
      },
      "CpmsCertificateDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Certificate id (stable UUID).",
            "format": "uuid"
          },
          "serialNumber": {
            "type": [
              "null",
              "string"
            ],
            "description": "Hex serial number assigned by the CA."
          },
          "thumbprint": {
            "type": [
              "null",
              "string"
            ],
            "description": "SHA-256 thumbprint (hex)."
          },
          "subjectCN": {
            "type": [
              "null",
              "string"
            ],
            "description": "Subject common name (typically the charger's identity)."
          },
          "issuerCN": {
            "type": [
              "null",
              "string"
            ],
            "description": "Issuing CA common name."
          },
          "notBefore": {
            "description": "Valid-from (UTC).",
            "format": "date-time"
          },
          "notAfter": {
            "description": "Valid-to / expiry (UTC).",
            "format": "date-time"
          },
          "status": {
            "type": [
              "null",
              "string"
            ],
            "description": "Lifecycle status: Active, Revoked, Expired, or Superseded."
          },
          "revokedAt": {
            "description": "When revoked (UTC), if applicable.",
            "format": "date-time"
          },
          "revocationReason": {
            "type": [
              "null",
              "string"
            ],
            "description": "Revocation reason, if revoked."
          },
          "issuedAt": {
            "description": "When issued (UTC).",
            "format": "date-time"
          },
          "source": {
            "type": [
              "null",
              "string"
            ],
            "description": "Issuance source, e.g. \"Internal-AKV\"."
          }
        }
      },
      "CpmsCertificateListResponse": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CpmsCertificateDto"
            }
          },
          "chargerId": {
            "type": "string",
            "description": "The charger these certificates were issued to.",
            "format": "uuid"
          },
          "count": {
            "type": "integer",
            "description": "Number of certificates returned.",
            "format": "int32"
          },
          "success": {
            "type": "boolean"
          },
          "timestamp": {
            "format": "date-time"
          }
        }
      },
      "CpmsChangeAvailabilityRequest": {
        "type": "object",
        "properties": {
          "connectorNumber": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int32"
          },
          "type": {
            "type": "string"
          }
        }
      },
      "CpmsChargerCommandDto": {
        "type": "object",
        "properties": {
          "action": {
            "type": [
              "null",
              "string"
            ],
            "description": "OCPP action sent to the charger, e.g. \"Reset\", \"RemoteStartTransaction\"."
          },
          "status": {
            "type": [
              "null",
              "string"
            ],
            "description": "Result status of the command (e.g. \"Accepted\", \"Rejected\", \"Timeout\")."
          },
          "responseTimeMs": {
            "type": [
              "null",
              "integer"
            ],
            "description": "Round-trip time to the charger's response, in milliseconds (null if no response).",
            "format": "int32"
          },
          "timestamp": {
            "description": "When the command was sent (UTC).",
            "format": "date-time"
          },
          "sentBy": {
            "type": [
              "null",
              "string"
            ],
            "description": "Who triggered the command — the operator user id, or the calling service for automated flows."
          },
          "correlationId": {
            "type": [
              "null",
              "string"
            ],
            "description": "Correlation id linking the command to its OCPP response."
          }
        }
      },
      "CpmsChargerCommandListResponse": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CpmsChargerCommandDto"
            }
          },
          "chargerId": {
            "type": "string",
            "description": "The charger these commands were sent to.",
            "format": "uuid"
          },
          "success": {
            "type": "boolean"
          },
          "timestamp": {
            "format": "date-time"
          }
        }
      },
      "CpmsChargerDetail": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Stable charger UUID.",
            "format": "uuid",
            "example": "4b2e9c10-7d8a-4a6e-9b1f-2c3d4e5f6a7b"
          },
          "uid": {
            "type": "string",
            "description": "OCPP charge-point identity (chargePointId).",
            "example": "CP-IslaVerde-01"
          },
          "status": {
            "type": "string",
            "description": "Last OCPP status reported by the station. Cross-check isOnline for liveness.",
            "example": "Available"
          },
          "networkId": {
            "type": "integer",
            "description": "Internal numeric id of the owning network.",
            "format": "int32",
            "example": 3
          },
          "locationId": {
            "type": [
              "null",
              "integer"
            ],
            "description": "Internal numeric id of the assigned location/site, or null.",
            "format": "int32",
            "example": 12
          },
          "serialNumber": {
            "type": [
              "null",
              "string"
            ],
            "description": "Manufacturer hardware serial number, if reported.",
            "example": "SN-A1B2C3D4"
          },
          "firmwareVersion": {
            "type": [
              "null",
              "string"
            ],
            "description": "Firmware version last reported via BootNotification.",
            "example": "1.5.32"
          },
          "ocppVersion": {
            "type": [
              "null",
              "string"
            ],
            "description": "OCPP protocol the station negotiated.",
            "example": "1.6"
          },
          "maxPowerKw": {
            "type": [
              "null",
              "number"
            ],
            "description": "Rated maximum power of the charger, in kW.",
            "format": "double",
            "example": 150
          },
          "securityProfile": {
            "type": "integer",
            "description": "OCPP security profile in force: 1 = ws:// + Basic auth, 2 = wss:// + Basic auth, 3 = wss:// + mutual TLS.",
            "format": "int32",
            "example": 2
          },
          "lastHeartbeat": {
            "description": "UTC timestamp of the last OCPP heartbeat / StatusNotification from the station.",
            "format": "date-time",
            "example": "2026-06-19T18:42:07Z"
          },
          "isOnline": {
            "type": "boolean",
            "description": "True only if a heartbeat arrived within the last 5 minutes. Treat !isOnline as unavailable regardless of the status field.",
            "example": true
          },
          "modelUuid": {
            "type": [
              "null",
              "string"
            ],
            "description": "UUID of the charger's hardware model, or null. Resolve names/specs via GET /charger-models/{id}.",
            "format": "uuid",
            "example": "a1b2c3d4-5e6f-7a8b-9c0d-1e2f3a4b5c6d"
          },
          "manufacturerUuid": {
            "type": [
              "null",
              "string"
            ],
            "description": "UUID of the charger's manufacturer, or null. Resolve the name/logo via GET /manufacturers/{id}.",
            "format": "uuid",
            "example": "b2c3d4e5-6f7a-8b9c-0d1e-2f3a4b5c6d7e"
          },
          "locationName": {
            "type": [
              "null",
              "string"
            ],
            "description": "Name of the assigned site/location, or null if unassigned.",
            "example": "Isla Verde Plaza"
          },
          "locationUuid": {
            "type": [
              "null",
              "string"
            ],
            "description": "UUID of the assigned location/site, or null if unassigned.",
            "format": "uuid",
            "example": "c3d4e5f6-7a8b-9c0d-1e2f-3a4b5c6d7e8f"
          },
          "connectors": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CpmsConnectorSummary"
            },
            "description": "The charger's connectors, ordered by connector number."
          }
        }
      },
      "CpmsChargerListResponse": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CpmsChargerSummary"
            },
            "description": "The page of chargers."
          },
          "pagination": {
            "$ref": "#/components/schemas/CpmsPagination"
          },
          "success": {
            "type": "boolean",
            "description": "Always true on a 2xx response.",
            "example": true
          },
          "timestamp": {
            "description": "UTC time the response was generated.",
            "format": "date-time",
            "example": "2026-06-19T18:42:09Z"
          }
        }
      },
      "CpmsChargerModelDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Charger model id (stable UUID).",
            "format": "uuid"
          },
          "modelName": {
            "type": "string",
            "description": "Model name, e.g. \"Terra AC W22\"."
          },
          "description": {
            "type": [
              "null",
              "string"
            ],
            "description": "Free-text description of the model."
          },
          "maxPower": {
            "type": "number",
            "description": "Maximum power output in kW.",
            "format": "double"
          },
          "numberOfConnectors": {
            "type": "integer",
            "description": "Number of connectors on the model.",
            "format": "int32"
          },
          "supportedConnectorTypes": {
            "type": [
              "null",
              "string"
            ],
            "description": "Supported connector types (catalog-defined string)."
          },
          "ocppVersion": {
            "type": [
              "null",
              "string"
            ],
            "description": "OCPP version the model speaks, e.g. \"1.6\" or \"2.0.1\"."
          },
          "supportedFeatures": {
            "type": [
              "null",
              "string"
            ],
            "description": "Supported OCPP features (catalog-defined string)."
          },
          "imageUrl": {
            "type": [
              "null",
              "string"
            ],
            "description": "URL of the model image, if set."
          },
          "datasheetUrl": {
            "type": [
              "null",
              "string"
            ],
            "description": "URL of the model datasheet, if set."
          },
          "manufacturer": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "description": "The model's manufacturer (id, name, logo).",
                "$ref": "#/components/schemas/CpmsManufacturerDto"
              }
            ]
          },
          "createdAt": {
            "format": "date-time"
          },
          "updatedAt": {
            "format": "date-time"
          }
        }
      },
      "CpmsChargerModelListResponse": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CpmsChargerModelDto"
            }
          },
          "pagination": {
            "$ref": "#/components/schemas/CpmsCatalogPagination"
          },
          "success": {
            "type": "boolean"
          },
          "timestamp": {
            "format": "date-time"
          }
        }
      },
      "CpmsChargerModelResponse": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/CpmsChargerModelDto"
          },
          "success": {
            "type": "boolean"
          },
          "timestamp": {
            "format": "date-time"
          }
        }
      },
      "CpmsChargerResponse": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/CpmsChargerDetail"
          },
          "success": {
            "type": "boolean",
            "description": "Always true on a 2xx response.",
            "example": true
          },
          "timestamp": {
            "description": "UTC time the response was generated.",
            "format": "date-time",
            "example": "2026-06-19T18:42:09Z"
          }
        }
      },
      "CpmsChargerSummary": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Stable charger UUID. Use it in GET /chargers/{uuid} and wherever a chargerId is required.",
            "format": "uuid",
            "example": "4b2e9c10-7d8a-4a6e-9b1f-2c3d4e5f6a7b"
          },
          "uid": {
            "type": "string",
            "description": "OCPP charge-point identity — the chargePointId the physical station connects to the CSMS with.",
            "example": "CP-IslaVerde-01"
          },
          "status": {
            "type": "string",
            "description": "Last OCPP status reported by the station (Available, Charging, Faulted, Unavailable, …). Can read stale after a station drops offline — cross-check isOnline on the detail view for liveness.",
            "example": "Available"
          },
          "networkId": {
            "type": "integer",
            "description": "Internal numeric id of the owning network. The public network handle is the UUID returned by GET /networks.",
            "format": "int32",
            "example": 3
          },
          "locationId": {
            "type": [
              "null",
              "integer"
            ],
            "description": "Internal numeric id of the location/site this charger is assigned to, or null if unassigned.",
            "format": "int32",
            "example": 12
          },
          "serialNumber": {
            "type": [
              "null",
              "string"
            ],
            "description": "Manufacturer hardware serial number, if the station reported one.",
            "example": "SN-A1B2C3D4"
          },
          "firmwareVersion": {
            "type": [
              "null",
              "string"
            ],
            "description": "Firmware version last reported by the station via OCPP BootNotification.",
            "example": "1.5.32"
          },
          "ocppVersion": {
            "type": [
              "null",
              "string"
            ],
            "description": "OCPP protocol the station negotiated (e.g. 1.6 or 2.0.1).",
            "example": "1.6"
          },
          "modelUuid": {
            "type": [
              "null",
              "string"
            ],
            "description": "UUID of the charger's hardware model, or null if unspecified. Resolve names/specs via GET /charger-models/{id}.",
            "format": "uuid",
            "example": "a1b2c3d4-5e6f-7a8b-9c0d-1e2f3a4b5c6d"
          },
          "manufacturerUuid": {
            "type": [
              "null",
              "string"
            ],
            "description": "UUID of the charger's manufacturer, or null. Resolve the name/logo via GET /manufacturers/{id}.",
            "format": "uuid",
            "example": "b2c3d4e5-6f7a-8b9c-0d1e-2f3a4b5c6d7e"
          },
          "locationName": {
            "type": [
              "null",
              "string"
            ],
            "description": "Name of the site/location the charger is assigned to, or null if unassigned.",
            "example": "Isla Verde Plaza"
          },
          "locationUuid": {
            "type": [
              "null",
              "string"
            ],
            "description": "UUID of the assigned location/site (the public handle for locationId), or null if unassigned.",
            "format": "uuid",
            "example": "c3d4e5f6-7a8b-9c0d-1e2f-3a4b5c6d7e8f"
          }
        }
      },
      "CpmsChargingProfileDetailDto": {
        "type": "object",
        "properties": {
          "name": {
            "type": [
              "null",
              "string"
            ],
            "description": "Profile name."
          },
          "profileType": {
            "type": [
              "null",
              "string"
            ],
            "description": "Profile purpose, e.g. \"TxProfile\", \"ChargingStationMaxProfile\"."
          },
          "chargingCurveType": {
            "type": [
              "null",
              "string"
            ],
            "description": "Charging curve kind (absolute/recurring/relative)."
          },
          "recurrenceType": {
            "type": [
              "null",
              "string"
            ],
            "description": "Recurrence, e.g. \"Daily\", \"Weekly\", or none."
          },
          "validFrom": {
            "description": "Profile valid-from (UTC), if bounded.",
            "format": "date-time"
          },
          "validTo": {
            "description": "Profile valid-to (UTC), if bounded.",
            "format": "date-time"
          },
          "priority": {
            "type": "integer",
            "description": "Stacking priority (higher wins).",
            "format": "int32"
          },
          "minPowerKw": {
            "type": [
              "null",
              "number"
            ],
            "description": "Minimum power floor in kW, if set.",
            "format": "double"
          },
          "maxPowerKw": {
            "type": [
              "null",
              "number"
            ],
            "description": "Maximum power limit in kW, if set.",
            "format": "double"
          },
          "profileData": {
            "type": [
              "null",
              "string"
            ],
            "description": "Raw OCPP charging-schedule payload (JSON)."
          }
        }
      },
      "CpmsChargingProfileDto": {
        "type": "object",
        "properties": {
          "assignmentId": {
            "type": "integer",
            "description": "Assignment id (charger↔profile link).",
            "format": "int32"
          },
          "profileId": {
            "type": "integer",
            "description": "The charging profile's id.",
            "format": "int32"
          },
          "isActive": {
            "type": "boolean",
            "description": "Whether the assignment is currently active on the charger."
          },
          "startDate": {
            "description": "When the assignment takes effect (UTC), if scheduled.",
            "format": "date-time"
          },
          "endDate": {
            "description": "When the assignment ends (UTC), if scheduled.",
            "format": "date-time"
          },
          "profile": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "description": "The assigned profile's definition.",
                "$ref": "#/components/schemas/CpmsChargingProfileDetailDto"
              }
            ]
          }
        }
      },
      "CpmsChargingProfileListResponse": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CpmsChargingProfileDto"
            }
          },
          "chargerId": {
            "type": "string",
            "description": "The charger these profiles are assigned to.",
            "format": "uuid"
          },
          "count": {
            "type": "integer",
            "description": "Number of profile assignments returned.",
            "format": "int32"
          },
          "success": {
            "type": "boolean"
          },
          "timestamp": {
            "format": "date-time"
          }
        }
      },
      "CpmsChargingProfileQueryRequest": {
        "type": "object",
        "properties": {
          "evseId": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int32"
          },
          "chargingProfilePurpose": {
            "type": [
              "null",
              "string"
            ]
          },
          "stackLevel": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int32"
          }
        }
      },
      "CpmsConnectorStatus": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Stable connector UUID.",
            "format": "uuid",
            "example": "9f1c2b30-4d5e-6a7b-8c9d-0e1f2a3b4c5d"
          },
          "number": {
            "type": "integer",
            "description": "Connector number on the charger (1-based).",
            "format": "int32",
            "example": 1
          },
          "chargerId": {
            "type": "string",
            "description": "Stable UUID of the charger this connector belongs to.",
            "format": "uuid",
            "example": "4b2e9c10-7d8a-4a6e-9b1f-2c3d4e5f6a7b"
          },
          "status": {
            "type": "string",
            "description": "Live connector status (Available, Charging, Faulted, …) or UNKNOWN if never reported.",
            "example": "Charging"
          },
          "standard": {
            "type": "string",
            "description": "Plug standard (e.g. IEC_62196_T2, CHADEMO, IEC_62196_T1_COMBO).",
            "example": "IEC_62196_T2"
          },
          "powerType": {
            "type": "string",
            "description": "Power delivery type (AC_1_PHASE, AC_3_PHASE, DC).",
            "example": "AC_3_PHASE"
          },
          "maxPowerKw": {
            "type": [
              "null",
              "number"
            ],
            "description": "Maximum power this connector can deliver, in kW.",
            "format": "double",
            "example": 22
          },
          "chargerOnline": {
            "type": "boolean",
            "description": "True only if the parent charger sent a heartbeat within the last 5 minutes.",
            "example": true
          }
        }
      },
      "CpmsConnectorStatusResponse": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/CpmsConnectorStatus"
          },
          "success": {
            "type": "boolean",
            "description": "Always true on a 2xx response.",
            "example": true
          },
          "timestamp": {
            "description": "UTC time the response was generated.",
            "format": "date-time",
            "example": "2026-06-19T18:42:09Z"
          }
        }
      },
      "CpmsConnectorSummary": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Stable connector UUID. Use it in GET /connectors/{uuid}/status.",
            "format": "uuid",
            "example": "9f1c2b30-4d5e-6a7b-8c9d-0e1f2a3b4c5d"
          },
          "number": {
            "type": "integer",
            "description": "Connector number on the charger (1-based).",
            "format": "int32",
            "example": 1
          },
          "standard": {
            "type": "string",
            "description": "Plug standard (e.g. IEC_62196_T2, CHADEMO, IEC_62196_T1_COMBO).",
            "example": "IEC_62196_T2"
          },
          "format": {
            "type": "string",
            "description": "Connector format: CABLE (tethered) or SOCKET (untethered).",
            "example": "SOCKET"
          },
          "powerType": {
            "type": "string",
            "description": "Power delivery type (AC_1_PHASE, AC_3_PHASE, DC).",
            "example": "AC_3_PHASE"
          },
          "maxPowerKw": {
            "type": [
              "null",
              "number"
            ],
            "description": "Maximum power this connector can deliver, in kW.",
            "format": "double",
            "example": 22
          },
          "status": {
            "type": "string",
            "description": "Live connector status (Available, Charging, Faulted, …) or UNKNOWN if never reported.",
            "example": "Available"
          }
        }
      },
      "CpmsConnectorWriteData": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Stable connector UUID.",
            "format": "uuid",
            "example": "9f1c2b30-4d5e-6a7b-8c9d-0e1f2a3b4c5d"
          },
          "chargerId": {
            "type": "string",
            "description": "Stable UUID of the charger this connector belongs to.",
            "format": "uuid",
            "example": "4b2e9c10-7d8a-4a6e-9b1f-2c3d4e5f6a7b"
          },
          "connectorNumber": {
            "type": "integer",
            "description": "Connector number on the charger (1-based).",
            "format": "int32",
            "example": 1
          },
          "connectorIdentifier": {
            "type": "string",
            "description": "Provisioning identifier of the connector within its charger.",
            "example": "CP-IslaVerde-01-1"
          },
          "standard": {
            "type": "string",
            "description": "Plug standard (e.g. IEC_62196_T2, CHADEMO, IEC_62196_T1_COMBO).",
            "example": "IEC_62196_T2"
          },
          "format": {
            "type": "string",
            "description": "Connector format: CABLE (tethered) or SOCKET (untethered).",
            "example": "SOCKET"
          },
          "powerType": {
            "type": "string",
            "description": "Power delivery type (AC_1_PHASE, AC_3_PHASE, DC).",
            "example": "AC_3_PHASE"
          },
          "maxVoltage": {
            "type": "integer",
            "description": "Maximum voltage of the connector, in volts.",
            "format": "int32",
            "example": 400
          },
          "maxAmperage": {
            "type": "integer",
            "description": "Maximum amperage of the connector, in amperes.",
            "format": "int32",
            "example": 32
          },
          "maxPower": {
            "type": "number",
            "description": "Maximum power this connector can deliver, in kW (stored internally as watts).",
            "format": "double",
            "example": 22
          },
          "status": {
            "type": [
              "null",
              "string"
            ],
            "description": "Internal connector status (AVAILABLE, PREPARING, CHARGING, OUTOFORDER, BLOCKED, INOPERATIVE, …) or null if never set.",
            "example": "AVAILABLE"
          },
          "networkId": {
            "type": "integer",
            "description": "Internal numeric id of the owning network (inherited from the connector's charger).",
            "format": "int32",
            "example": 3
          },
          "lastUpdated": {
            "description": "UTC timestamp this connector record was last updated.",
            "format": "date-time",
            "example": "2026-06-19T18:42:07Z"
          }
        }
      },
      "CpmsConnectorWriteResponse": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/CpmsConnectorWriteData"
          },
          "success": {
            "type": "boolean",
            "description": "Always true on a 2xx response.",
            "example": true
          },
          "timestamp": {
            "description": "UTC time the response was generated.",
            "format": "date-time",
            "example": "2026-06-19T18:42:09Z"
          }
        }
      },
      "CpmsContext": {
        "type": "object",
        "properties": {
          "accessibleNetworkCount": {
            "type": "integer",
            "description": "Number of networks this key is authorized to operate.",
            "format": "int32",
            "example": 2
          },
          "scopes": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "OAuth scopes granted to this key (the cpms:* vocabulary). See GET /.well-known/scopes."
          },
          "keyType": {
            "type": [
              "null",
              "string"
            ],
            "description": "Visibility class of the API key (e.g. Private, Publishable), or null if unset.",
            "example": "Private"
          },
          "unrestricted": {
            "type": "boolean",
            "description": "True for first-party AllNetworks keys that are not pinned to a fixed network set.",
            "example": false
          },
          "operatorId": {
            "type": [
              "null",
              "string"
            ],
            "description": "The connected operator's stable account id — present only when authenticated with an operator OAuth token (e.g. ProRanked Connect), null for an X-API-Key caller. Use it to label the connection.",
            "format": "uuid",
            "example": "1d475851-fb81-45eb-bc9f-aa7c0368fca4"
          },
          "email": {
            "type": [
              "null",
              "string"
            ],
            "description": "The connected operator's account email — present only when authenticated with an operator OAuth token, null for an X-API-Key caller.",
            "example": "ops@example.com"
          }
        }
      },
      "CpmsContextResponse": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/CpmsContext"
          },
          "success": {
            "type": "boolean",
            "description": "Always true on a 2xx response.",
            "example": true
          },
          "timestamp": {
            "description": "UTC time the response was generated.",
            "format": "date-time",
            "example": "2026-06-19T18:42:09Z"
          }
        }
      },
      "CpmsControlChangeAvailabilityData": {
        "type": "object",
        "properties": {
          "chargerId": {
            "type": "string",
            "description": "Stable charger UUID the command was sent to.",
            "format": "uuid",
            "example": "4b2e9c10-7d8a-4a6e-9b1f-2c3d4e5f6a7b"
          },
          "connectorNumber": {
            "type": "integer",
            "description": "Targeted connector number; 0 means the whole charger (OCPP connectorId 0).",
            "format": "int32",
            "example": 0
          },
          "type": {
            "type": "string",
            "description": "Availability requested on the device: 'Operative' or 'Inoperative'.",
            "example": "Inoperative"
          },
          "accepted": {
            "type": "boolean",
            "description": "True when the station accepted the change-availability command.",
            "example": true
          },
          "message": {
            "type": "string",
            "description": "Human-readable confirmation of the dispatched command.",
            "example": "ChangeAvailability (Inoperative) command sent successfully"
          }
        }
      },
      "CpmsControlChangeAvailabilityResponse": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/CpmsControlChangeAvailabilityData"
          },
          "success": {
            "type": "boolean",
            "description": "Always true on a 2xx response.",
            "example": true
          },
          "timestamp": {
            "description": "UTC time the response was generated.",
            "format": "date-time",
            "example": "2026-06-19T18:42:09Z"
          }
        }
      },
      "CpmsControlChangeConfigurationData": {
        "type": "object",
        "properties": {
          "chargerId": {
            "type": "string",
            "description": "Stable charger UUID the configuration change targeted.",
            "format": "uuid",
            "example": "4b2e9c10-7d8a-4a6e-9b1f-2c3d4e5f6a7b"
          },
          "chargePointId": {
            "type": "string",
            "description": "OCPP charge-point identity (chargePointId) the station connects with.",
            "example": "CP-IslaVerde-01"
          },
          "ocppVersion": {
            "type": [
              "null",
              "string"
            ],
            "description": "OCPP protocol the station negotiated — determines whether ChangeConfiguration (1.6) or SetVariables (2.0.1) was used.",
            "example": "1.6"
          },
          "key": {
            "type": "string",
            "description": "Configuration key that was changed. For 2.0.1 this is the 'Component.Variable' form (default component 'Charger').",
            "example": "HeartbeatInterval"
          },
          "accepted": {
            "type": "boolean",
            "description": "True when the station accepted the configuration change.",
            "example": true
          },
          "result": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "description": "Raw OCPP command result returned by the station (acceptance status / reboot-required hint in PayloadJson).",
                "$ref": "#/components/schemas/OcppCommandResponse"
              }
            ]
          }
        }
      },
      "CpmsControlChangeConfigurationResponse": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/CpmsControlChangeConfigurationData"
          },
          "success": {
            "type": "boolean",
            "description": "Always true on a 2xx response.",
            "example": true
          },
          "timestamp": {
            "description": "UTC time the response was generated.",
            "format": "date-time",
            "example": "2026-06-19T18:42:09Z"
          }
        }
      },
      "CpmsControlConfigurationData": {
        "type": "object",
        "properties": {
          "chargerId": {
            "type": "string",
            "description": "Stable charger UUID the configuration read targeted.",
            "format": "uuid",
            "example": "4b2e9c10-7d8a-4a6e-9b1f-2c3d4e5f6a7b"
          },
          "chargePointId": {
            "type": "string",
            "description": "OCPP charge-point identity (chargePointId) the station connects with.",
            "example": "CP-IslaVerde-01"
          },
          "ocppVersion": {
            "type": [
              "null",
              "string"
            ],
            "description": "OCPP protocol the station negotiated — determines whether GetConfiguration (1.6) or GetVariables (2.0.1) was used.",
            "example": "1.6"
          },
          "result": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "description": "Raw OCPP command result returned by the station (key/value configuration or device-model variable payload in PayloadJson).",
                "$ref": "#/components/schemas/OcppCommandResponse"
              }
            ]
          }
        }
      },
      "CpmsControlConfigurationResponse": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/CpmsControlConfigurationData"
          },
          "success": {
            "type": "boolean",
            "description": "Always true on a 2xx response.",
            "example": true
          },
          "timestamp": {
            "description": "UTC time the response was generated.",
            "format": "date-time",
            "example": "2026-06-19T18:42:09Z"
          }
        }
      },
      "CpmsControlSetVariablesData": {
        "type": "object",
        "properties": {
          "chargerId": {
            "type": "string",
            "description": "Stable charger UUID the SetVariables call targeted.",
            "format": "uuid",
            "example": "4b2e9c10-7d8a-4a6e-9b1f-2c3d4e5f6a7b"
          },
          "chargePointId": {
            "type": "string",
            "description": "OCPP charge-point identity (chargePointId) the station connects with.",
            "example": "CP-IslaVerde-01"
          },
          "ocppVersion": {
            "type": [
              "null",
              "string"
            ],
            "description": "OCPP protocol the station negotiated (always a 2.0.1 charger for SetVariables).",
            "example": "2.0.1"
          },
          "accepted": {
            "type": "boolean",
            "description": "True when the station accepted the SetVariables request.",
            "example": true
          },
          "result": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "description": "Raw OCPP SetVariables result returned by the station (per-variable accept/reject in PayloadJson).",
                "$ref": "#/components/schemas/OcppCommandResponse"
              }
            ]
          }
        }
      },
      "CpmsControlSetVariablesResponse": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/CpmsControlSetVariablesData"
          },
          "success": {
            "type": "boolean",
            "description": "Always true on a 2xx response.",
            "example": true
          },
          "timestamp": {
            "description": "UTC time the response was generated.",
            "format": "date-time",
            "example": "2026-06-19T18:42:09Z"
          }
        }
      },
      "CpmsControlTriggerMessageData": {
        "type": "object",
        "properties": {
          "chargerId": {
            "type": "string",
            "description": "Stable charger UUID the command was sent to.",
            "format": "uuid",
            "example": "4b2e9c10-7d8a-4a6e-9b1f-2c3d4e5f6a7b"
          },
          "requestedMessage": {
            "type": "string",
            "description": "OCPP message the station was asked to emit (e.g. BootNotification, Heartbeat, MeterValues, StatusNotification).",
            "example": "StatusNotification"
          },
          "connectorNumber": {
            "type": [
              "null",
              "integer"
            ],
            "description": "Optional connector scope for the triggered message, or null for the whole charger.",
            "format": "int32",
            "example": 1
          },
          "accepted": {
            "type": "boolean",
            "description": "True when the station accepted the trigger-message command.",
            "example": true
          },
          "message": {
            "type": "string",
            "description": "Human-readable confirmation of the dispatched command.",
            "example": "TriggerMessage (StatusNotification) command sent successfully"
          }
        }
      },
      "CpmsControlTriggerMessageResponse": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/CpmsControlTriggerMessageData"
          },
          "success": {
            "type": "boolean",
            "description": "Always true on a 2xx response.",
            "example": true
          },
          "timestamp": {
            "description": "UTC time the response was generated.",
            "format": "date-time",
            "example": "2026-06-19T18:42:09Z"
          }
        }
      },
      "CpmsControlUnlockData": {
        "type": "object",
        "properties": {
          "chargerId": {
            "type": "string",
            "description": "Stable charger UUID the command was sent to.",
            "format": "uuid",
            "example": "4b2e9c10-7d8a-4a6e-9b1f-2c3d4e5f6a7b"
          },
          "connectorNumber": {
            "type": "integer",
            "description": "Connector number (1-based) that was unlocked.",
            "format": "int32",
            "example": 1
          },
          "accepted": {
            "type": "boolean",
            "description": "True when the station accepted the unlock command.",
            "example": true
          },
          "message": {
            "type": "string",
            "description": "Human-readable confirmation of the dispatched command.",
            "example": "Unlock command sent successfully"
          }
        }
      },
      "CpmsControlUnlockResponse": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/CpmsControlUnlockData"
          },
          "success": {
            "type": "boolean",
            "description": "Always true on a 2xx response.",
            "example": true
          },
          "timestamp": {
            "description": "UTC time the response was generated.",
            "format": "date-time",
            "example": "2026-06-19T18:42:09Z"
          }
        }
      },
      "CpmsCreateApiKeyRequest": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "description": {
            "type": [
              "null",
              "string"
            ]
          },
          "scopes": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "type": "string"
            }
          },
          "expiresAt": {
            "format": "date-time"
          },
          "rateLimitPerHour": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int32"
          },
          "allowedIPs": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "type": "string"
            }
          }
        }
      },
      "CpmsCreateLocationRequest": {
        "required": [
          "name"
        ],
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "networkUuid": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "address": {
            "type": [
              "null",
              "string"
            ]
          },
          "city": {
            "type": [
              "null",
              "string"
            ]
          },
          "state": {
            "type": [
              "null",
              "string"
            ]
          },
          "country": {
            "type": [
              "null",
              "string"
            ]
          },
          "postalCode": {
            "type": [
              "null",
              "string"
            ]
          },
          "contactPhone": {
            "type": [
              "null",
              "string"
            ]
          },
          "timezone": {
            "type": [
              "null",
              "string"
            ]
          },
          "latitude": {
            "type": "object",
            "anyOf": [
              {
                "type": "number"
              },
              {
                "enum": [
                  "NaN",
                  "Infinity",
                  "-Infinity"
                ]
              }
            ],
            "format": "double"
          },
          "longitude": {
            "type": "object",
            "anyOf": [
              {
                "type": "number"
              },
              {
                "enum": [
                  "NaN",
                  "Infinity",
                  "-Infinity"
                ]
              }
            ],
            "format": "double"
          }
        }
      },
      "CpmsCreateTariffRequest": {
        "required": [
          "name"
        ],
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "networkUuid": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "description": {
            "type": [
              "null",
              "string"
            ]
          },
          "currency": {
            "type": [
              "null",
              "string"
            ]
          },
          "energyRate": {
            "type": [
              "null",
              "number"
            ],
            "format": "double"
          },
          "timeRate": {
            "type": [
              "null",
              "number"
            ],
            "format": "double"
          },
          "sessionFee": {
            "type": [
              "null",
              "number"
            ],
            "format": "double"
          },
          "idleRate": {
            "type": [
              "null",
              "number"
            ],
            "format": "double"
          },
          "idleGracePeriodMinutes": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int32"
          },
          "peakHoursStart": {
            "type": [
              "null",
              "string"
            ]
          },
          "peakHoursEnd": {
            "type": [
              "null",
              "string"
            ]
          },
          "peakMultiplier": {
            "type": [
              "null",
              "number"
            ],
            "format": "double"
          },
          "weekendMultiplier": {
            "type": [
              "null",
              "number"
            ],
            "format": "double"
          },
          "taxRate": {
            "type": [
              "null",
              "number"
            ],
            "format": "double"
          },
          "isFree": {
            "type": [
              "null",
              "boolean"
            ]
          }
        }
      },
      "CpmsCreateWebhookRequest": {
        "required": [
          "url",
          "events",
          "description"
        ],
        "type": "object",
        "properties": {
          "url": {
            "type": "string"
          },
          "events": {
            "type": "string"
          },
          "description": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "CpmsDeviceModelResponse": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CpmsDeviceModelVariableDto"
            }
          },
          "chargerId": {
            "type": "string",
            "description": "The charger this device model belongs to.",
            "format": "uuid"
          },
          "count": {
            "type": "integer",
            "description": "Number of variables returned.",
            "format": "int32"
          },
          "success": {
            "type": "boolean"
          },
          "timestamp": {
            "format": "date-time"
          }
        }
      },
      "CpmsDeviceModelVariableDto": {
        "type": "object",
        "properties": {
          "componentName": {
            "type": [
              "null",
              "string"
            ],
            "description": "OCPP component name, e.g. \"EVSE\", \"Connector\", \"SmartChargingCtrlr\"."
          },
          "componentInstance": {
            "type": [
              "null",
              "string"
            ],
            "description": "Component instance qualifier, if any."
          },
          "evseId": {
            "type": [
              "null",
              "integer"
            ],
            "description": "EVSE id the component belongs to (null = charger-level).",
            "format": "int32"
          },
          "connectorId": {
            "type": [
              "null",
              "integer"
            ],
            "description": "Connector id the component belongs to, if any.",
            "format": "int32"
          },
          "variableName": {
            "type": [
              "null",
              "string"
            ],
            "description": "OCPP variable name, e.g. \"Available\", \"Enabled\"."
          },
          "variableInstance": {
            "type": [
              "null",
              "string"
            ],
            "description": "Variable instance qualifier, if any."
          },
          "attributeType": {
            "type": [
              "null",
              "string"
            ],
            "description": "Attribute type, e.g. \"Actual\", \"Target\", \"MinSet\", \"MaxSet\"."
          },
          "attributeValue": {
            "type": [
              "null",
              "string"
            ],
            "description": "The variable's reported value."
          },
          "mutability": {
            "type": [
              "null",
              "string"
            ],
            "description": "Mutability of the variable, e.g. \"ReadOnly\", \"ReadWrite\", \"WriteOnly\"."
          },
          "dataType": {
            "type": [
              "null",
              "string"
            ],
            "description": "OCPP data type of the value."
          },
          "unit": {
            "type": [
              "null",
              "string"
            ],
            "description": "Unit of the value, if any."
          },
          "supportsMonitoring": {
            "type": "boolean",
            "description": "Whether this variable supports monitoring."
          },
          "lastReportedAt": {
            "description": "When the charger last reported this variable (UTC).",
            "format": "date-time"
          }
        }
      },
      "CpmsDisplayMessageContent": {
        "required": [
          "content"
        ],
        "type": "object",
        "properties": {
          "content": {
            "type": "string",
            "description": "The message text to show on the charger display."
          },
          "format": {
            "type": [
              "null",
              "string"
            ],
            "description": "Content format: UTF8 (default), ASCII, HTML, or URI."
          },
          "language": {
            "type": [
              "null",
              "string"
            ],
            "description": "BCP-47 language tag, e.g. \"en\"."
          }
        }
      },
      "CpmsErrorResponse": {
        "type": "object",
        "properties": {
          "error": {
            "type": "string",
            "description": "Stable machine-readable error code (duplicated as `code`).",
            "example": "not_found"
          },
          "code": {
            "type": "string",
            "description": "Stable machine-readable error code.",
            "example": "not_found"
          },
          "message": {
            "type": "string",
            "description": "Human-readable explanation of the error.",
            "example": "Charger '4b2e9c10-7d8a-4a6e-9b1f-2c3d4e5f6a7b' not found"
          }
        }
      },
      "CpmsFetchDiagnosticsRequest": {
        "type": "object",
        "properties": {
          "startTime": {
            "type": [
              "null",
              "string"
            ]
          },
          "stopTime": {
            "type": [
              "null",
              "string"
            ]
          },
          "retries": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int32"
          },
          "retryInterval": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int32"
          }
        }
      },
      "CpmsFirmwareCatalogItem": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Stable firmware-version UUID. Pass it as firmwareVersionId to the OTA update endpoint.",
            "format": "uuid",
            "example": "a1c2e3f4-5b6a-4c7d-8e9f-0a1b2c3d4e5f"
          },
          "version": {
            "type": "string",
            "description": "Firmware version string.",
            "example": "1.5.32"
          },
          "fileName": {
            "type": "string",
            "description": "Firmware image file name.",
            "example": "evlink-1.5.32.bin"
          },
          "fileUrl": {
            "type": "string",
            "description": "Download URL the charger fetches the image from during the OTA update.",
            "example": "https://firmware.phevnix.com/evlink/evlink-1.5.32.bin"
          },
          "fileSizeBytes": {
            "type": "integer",
            "description": "Firmware image size, in bytes.",
            "format": "int64",
            "example": 8388608
          },
          "releaseNotes": {
            "type": [
              "null",
              "string"
            ],
            "description": "Human-readable release notes for this firmware version, if any.",
            "example": "Fixes intermittent MeterValues drop on AC connectors."
          },
          "ocppVersionSupport": {
            "type": [
              "null",
              "string"
            ],
            "description": "OCPP protocol versions this firmware supports.",
            "example": "1.6,2.0.1"
          },
          "checksum": {
            "type": [
              "null",
              "string"
            ],
            "description": "Image checksum (e.g. SHA-256) for integrity verification.",
            "example": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08"
          },
          "isLatest": {
            "type": "boolean",
            "description": "True when this is the latest published image for its charger model.",
            "example": true
          },
          "releasedAt": {
            "description": "UTC timestamp the firmware version was released.",
            "format": "date-time",
            "example": "2026-05-01T00:00:00Z"
          },
          "createdAt": {
            "description": "UTC timestamp the catalog row was created.",
            "format": "date-time",
            "example": "2026-05-01T00:00:00Z"
          }
        }
      },
      "CpmsFirmwareCatalogListResponse": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CpmsFirmwareCatalogItem"
            },
            "description": "The page of firmware images."
          },
          "pagination": {
            "$ref": "#/components/schemas/CpmsFirmwarePagination"
          },
          "success": {
            "type": "boolean",
            "description": "Always true on a 2xx response.",
            "example": true
          },
          "timestamp": {
            "description": "UTC time the response was generated.",
            "format": "date-time",
            "example": "2026-06-19T18:42:09Z"
          }
        }
      },
      "CpmsFirmwareDiagnosticFile": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "Diagnostics file name.",
            "example": "SN-A1B2C3D4_20260619-184205.log"
          },
          "url": {
            "type": "string",
            "description": "Storage URL to download the diagnostics file.",
            "example": "https://blob.phevnix.com/diagnostics/SN-A1B2C3D4/SN-A1B2C3D4_20260619-184205.log"
          },
          "size": {
            "type": "integer",
            "description": "File size in bytes.",
            "format": "int64",
            "example": 204800
          },
          "uploadedAt": {
            "description": "UTC timestamp the file was uploaded (blob last-modified).",
            "format": "date-time",
            "example": "2026-06-19T18:43:30Z"
          }
        }
      },
      "CpmsFirmwareDiagnosticFilesResponse": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CpmsFirmwareDiagnosticFile"
            },
            "description": "Uploaded diagnostics files for the charger, newest first."
          },
          "success": {
            "type": "boolean",
            "description": "Always true on a 2xx response.",
            "example": true
          },
          "timestamp": {
            "description": "UTC time the response was generated.",
            "format": "date-time",
            "example": "2026-06-19T18:42:09Z"
          }
        }
      },
      "CpmsFirmwareDiagnosticsData": {
        "type": "object",
        "properties": {
          "chargerId": {
            "type": "string",
            "description": "Stable charger UUID.",
            "format": "uuid",
            "example": "4b2e9c10-7d8a-4a6e-9b1f-2c3d4e5f6a7b"
          },
          "serialNumber": {
            "type": [
              "null",
              "string"
            ],
            "description": "Manufacturer hardware serial number, if reported.",
            "example": "SN-A1B2C3D4"
          },
          "firmwareVersion": {
            "type": [
              "null",
              "string"
            ],
            "description": "Firmware version last reported by the charger.",
            "example": "1.5.32"
          },
          "ocppVersion": {
            "type": [
              "null",
              "string"
            ],
            "description": "OCPP protocol the charger negotiated.",
            "example": "1.6"
          },
          "ipAddress": {
            "type": [
              "null",
              "string"
            ],
            "description": "Last-known IP address the charger connected from, if recorded.",
            "example": "203.0.113.42"
          },
          "lastHeartbeat": {
            "description": "UTC timestamp of the charger's last heartbeat.",
            "format": "date-time",
            "example": "2026-06-19T18:42:07Z"
          },
          "isOnline": {
            "type": "boolean",
            "description": "True only if a heartbeat arrived within the last 5 minutes.",
            "example": true
          },
          "lastConnectionStatus": {
            "type": [
              "null",
              "string"
            ],
            "description": "Last-recorded CSMS connection status for the charger.",
            "example": "Connected"
          },
          "statusHistory": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CpmsFirmwareStatusHistoryEntry"
            },
            "description": "The most recent charger status changes, newest first."
          },
          "recentOcppMessages": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CpmsFirmwareOcppMessage"
            },
            "description": "The most recent OCPP message exchanges with the charger, newest first."
          },
          "ocppMessageCount": {
            "type": "integer",
            "description": "Total number of OCPP messages on record for this charger.",
            "format": "int32",
            "example": 12847
          }
        }
      },
      "CpmsFirmwareDiagnosticsResponse": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/CpmsFirmwareDiagnosticsData"
          },
          "success": {
            "type": "boolean",
            "description": "Always true on a 2xx response.",
            "example": true
          },
          "timestamp": {
            "description": "UTC time the response was generated.",
            "format": "date-time",
            "example": "2026-06-19T18:42:09Z"
          }
        }
      },
      "CpmsFirmwareFetchDiagnosticsData": {
        "type": "object",
        "properties": {
          "chargerId": {
            "type": "string",
            "description": "Stable charger UUID the diagnostics request was sent to.",
            "format": "uuid",
            "example": "4b2e9c10-7d8a-4a6e-9b1f-2c3d4e5f6a7b"
          },
          "chargePointId": {
            "type": "string",
            "description": "OCPP charge-point identity (chargePointId) of the station.",
            "example": "CP-IslaVerde-01"
          },
          "fileName": {
            "type": "string",
            "description": "Name of the diagnostics file the charger will upload.",
            "example": "SN-A1B2C3D4_20260619-184205.log"
          },
          "accepted": {
            "type": "boolean",
            "description": "True when the station accepted the GetDiagnostics / GetLog command.",
            "example": true
          },
          "uploadUrl": {
            "type": "string",
            "description": "Storage URL where the uploaded diagnostics file will be readable once the charger completes the upload.",
            "example": "https://blob.phevnix.com/diagnostics/SN-A1B2C3D4/SN-A1B2C3D4_20260619-184205.log"
          },
          "payload": {
            "type": [
              "null",
              "string"
            ],
            "description": "Raw OCPP response payload (JSON) returned by the station for the diagnostics command.",
            "example": "{\"fileName\":\"SN-A1B2C3D4_20260619-184205.log\"}"
          },
          "message": {
            "type": "string",
            "description": "Human-readable guidance on retrieving the uploaded file.",
            "example": "Diagnostics request accepted. The charger uploads the file asynchronously; list it via GET /api/cpms/v1/diagnostic-files?chargerId={id}."
          }
        }
      },
      "CpmsFirmwareFetchDiagnosticsResponse": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/CpmsFirmwareFetchDiagnosticsData"
          },
          "success": {
            "type": "boolean",
            "description": "Always true on a 2xx response.",
            "example": true
          },
          "timestamp": {
            "description": "UTC time the response was generated.",
            "format": "date-time",
            "example": "2026-06-19T18:42:09Z"
          }
        }
      },
      "CpmsFirmwareLastUpdate": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "description": "OCPP action of the exchange (UpdateFirmware or FirmwareStatusNotification).",
            "example": "FirmwareStatusNotification"
          },
          "direction": {
            "type": "string",
            "description": "Message direction (incoming / outgoing).",
            "example": "incoming"
          },
          "status": {
            "type": "string",
            "description": "Status of the exchange (success / error / pending).",
            "example": "success"
          },
          "payload": {
            "type": "string",
            "description": "Raw request payload (JSON) of the exchange.",
            "example": "{\"status\":\"Installed\"}"
          },
          "response": {
            "type": [
              "null",
              "string"
            ],
            "description": "Raw response payload (JSON) of the exchange, if any.",
            "example": "{}"
          },
          "timestamp": {
            "description": "UTC timestamp of the exchange.",
            "format": "date-time",
            "example": "2026-06-19T18:40:11Z"
          },
          "ocppVersion": {
            "type": "string",
            "description": "OCPP protocol version of the exchange.",
            "example": "1.6"
          }
        }
      },
      "CpmsFirmwareOcppMessage": {
        "type": "object",
        "properties": {
          "timestamp": {
            "description": "UTC timestamp of the message.",
            "format": "date-time",
            "example": "2026-06-19T18:41:55Z"
          },
          "direction": {
            "type": "string",
            "description": "Message direction (incoming / outgoing).",
            "example": "incoming"
          },
          "messageType": {
            "type": "string",
            "description": "OCPP-J message type (Call / CallResult / CallError).",
            "example": "Call"
          },
          "action": {
            "type": "string",
            "description": "OCPP action name (Heartbeat, StatusNotification, MeterValues, …).",
            "example": "Heartbeat"
          },
          "status": {
            "type": "string",
            "description": "Processing status (success / error / pending).",
            "example": "success"
          },
          "responseTimeMs": {
            "type": [
              "null",
              "integer"
            ],
            "description": "Round-trip processing time for the message, in milliseconds, if recorded.",
            "format": "int32",
            "example": 42
          },
          "correlationId": {
            "type": [
              "null",
              "string"
            ],
            "description": "OCPP-J unique message id correlating the request and response.",
            "example": "b2c3d4e5-6f7a-8b9c-0d1e-2f3a4b5c6d7e"
          },
          "ocppVersion": {
            "type": "string",
            "description": "OCPP protocol version of the message.",
            "example": "1.6"
          }
        }
      },
      "CpmsFirmwarePagination": {
        "type": "object",
        "properties": {
          "page": {
            "type": "integer",
            "description": "1-based page index of this result set.",
            "format": "int32",
            "example": 1
          },
          "pageSize": {
            "type": "integer",
            "description": "Items per page (1–100).",
            "format": "int32",
            "example": 25
          },
          "total": {
            "type": "integer",
            "description": "Total number of items across all pages.",
            "format": "int32",
            "example": 7
          },
          "totalPages": {
            "type": "integer",
            "description": "Total number of pages at the current pageSize.",
            "format": "int32",
            "example": 1
          }
        }
      },
      "CpmsFirmwareStatusData": {
        "type": "object",
        "properties": {
          "chargerId": {
            "type": "string",
            "description": "Stable charger UUID.",
            "format": "uuid",
            "example": "4b2e9c10-7d8a-4a6e-9b1f-2c3d4e5f6a7b"
          },
          "currentFirmwareVersion": {
            "type": [
              "null",
              "string"
            ],
            "description": "Firmware version the charger last reported via BootNotification.",
            "example": "1.5.32"
          },
          "ocppVersion": {
            "type": [
              "null",
              "string"
            ],
            "description": "OCPP protocol the charger negotiated.",
            "example": "1.6"
          },
          "isOnline": {
            "type": "boolean",
            "description": "True only if a heartbeat arrived within the last 5 minutes.",
            "example": true
          },
          "lastHeartbeat": {
            "description": "UTC timestamp of the charger's last heartbeat.",
            "format": "date-time",
            "example": "2026-06-19T18:42:07Z"
          },
          "lastFirmwareUpdate": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "description": "The most recent firmware-related OCPP exchange, or null if none recorded.",
                "$ref": "#/components/schemas/CpmsFirmwareLastUpdate"
              }
            ]
          }
        }
      },
      "CpmsFirmwareStatusHistoryEntry": {
        "type": "object",
        "properties": {
          "oldStatus": {
            "type": "string",
            "description": "Charger status before the change.",
            "example": "AVAILABLE"
          },
          "newStatus": {
            "type": "string",
            "description": "Charger status after the change.",
            "example": "FAULTED"
          },
          "errorCode": {
            "type": "string",
            "description": "OCPP error code reported with the status change, if any.",
            "example": "GroundFailure"
          },
          "errorMessage": {
            "type": "string",
            "description": "Human-readable error message reported with the status change, if any.",
            "example": "Residual current detected"
          },
          "vendorErrorCode": {
            "type": "string",
            "description": "Vendor-specific error code reported with the status change, if any.",
            "example": "E-1042"
          },
          "timestamp": {
            "description": "UTC timestamp of the status change.",
            "format": "date-time",
            "example": "2026-06-19T18:30:00Z"
          }
        }
      },
      "CpmsFirmwareStatusResponse": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/CpmsFirmwareStatusData"
          },
          "success": {
            "type": "boolean",
            "description": "Always true on a 2xx response.",
            "example": true
          },
          "timestamp": {
            "description": "UTC time the response was generated.",
            "format": "date-time",
            "example": "2026-06-19T18:42:09Z"
          }
        }
      },
      "CpmsFirmwareUpdateData": {
        "type": "object",
        "properties": {
          "chargerId": {
            "type": "string",
            "description": "Stable charger UUID the OTA update was sent to.",
            "format": "uuid",
            "example": "4b2e9c10-7d8a-4a6e-9b1f-2c3d4e5f6a7b"
          },
          "firmwareVersionId": {
            "type": [
              "null",
              "string"
            ],
            "description": "Catalog firmware-version UUID that was applied, or null when a raw location URL was supplied.",
            "format": "uuid",
            "example": "a1c2e3f4-5b6a-4c7d-8e9f-0a1b2c3d4e5f"
          },
          "firmwareVersion": {
            "type": [
              "null",
              "string"
            ],
            "description": "Catalog firmware version string that was applied, or null for a raw location URL.",
            "example": "1.5.32"
          },
          "location": {
            "type": "string",
            "description": "Image URL the charger was instructed to download.",
            "example": "https://firmware.phevnix.com/evlink/evlink-1.5.32.bin"
          },
          "accepted": {
            "type": "boolean",
            "description": "True when the station accepted the UpdateFirmware command.",
            "example": true
          },
          "payload": {
            "type": [
              "null",
              "string"
            ],
            "description": "Raw OCPP response payload (JSON) returned by the station for the UpdateFirmware command.",
            "example": "{\"status\":\"Accepted\"}"
          },
          "message": {
            "type": "string",
            "description": "Human-readable guidance on tracking OTA progress.",
            "example": "UpdateFirmware command accepted. Track progress via the charger's FirmwareStatusNotification (GET /api/cpms/v1/chargers/{id}/firmware/status)."
          }
        }
      },
      "CpmsFirmwareUpdateResponse": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/CpmsFirmwareUpdateData"
          },
          "success": {
            "type": "boolean",
            "description": "Always true on a 2xx response.",
            "example": true
          },
          "timestamp": {
            "description": "UTC time the response was generated.",
            "format": "date-time",
            "example": "2026-06-19T18:42:09Z"
          }
        }
      },
      "CpmsFraudClearHoldResponse": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/CpmsFraudClearHoldResult"
          },
          "success": {
            "type": "boolean",
            "description": "Always true on a 2xx response.",
            "example": true
          },
          "timestamp": {
            "description": "UTC time the response was generated.",
            "format": "date-time",
            "example": "2026-06-20T18:42:09Z"
          }
        }
      },
      "CpmsFraudClearHoldResult": {
        "type": "object",
        "properties": {
          "driver_id": {
            "type": "string",
            "description": "Stable driver UUID the action targeted.",
            "format": "uuid",
            "example": "1ae38f39-2b4c-4d5e-8f6a-7b8c9d0e1f2a"
          },
          "fraud_hold": {
            "type": "boolean",
            "description": "The driver's hold state AFTER the action — still true if the driver remains over-threshold on another operator's networks.",
            "example": false
          },
          "hold_cleared": {
            "type": "boolean",
            "description": "True when the global hold was actually cleared (the driver is no longer over-threshold anywhere).",
            "example": true
          },
          "sessions_waived": {
            "type": "integer",
            "description": "How many of THIS operator's failed sessions were waived (0 unless waive=true was requested).",
            "format": "int32",
            "example": 2
          }
        }
      },
      "CpmsFraudDriverStatus": {
        "type": "object",
        "properties": {
          "driver_id": {
            "type": "string",
            "description": "Stable driver UUID.",
            "format": "uuid",
            "example": "1ae38f39-2b4c-4d5e-8f6a-7b8c9d0e1f2a"
          },
          "email": {
            "type": "string",
            "description": "Driver's email address.",
            "example": "driver@example.com"
          },
          "phone_verified": {
            "type": "boolean",
            "description": "True when the driver has completed phone verification.",
            "example": true
          },
          "phone_verified_at": {
            "description": "UTC timestamp the driver verified their phone, or null.",
            "format": "date-time",
            "example": "2026-05-30T11:02:00Z"
          },
          "fraud_hold": {
            "type": "boolean",
            "description": "True when the driver is currently held.",
            "example": true
          },
          "fraud_hold_reason": {
            "type": [
              "null",
              "string"
            ],
            "description": "Why the hold was placed, or null.",
            "example": "Unpaid idle-fee balance over threshold"
          },
          "fraud_hold_at": {
            "description": "UTC timestamp the hold was placed, or null.",
            "format": "date-time",
            "example": "2026-06-18T09:21:44Z"
          },
          "outstanding_balance": {
            "type": "number",
            "description": "The driver's outstanding (failed) balance across the operator's networks.",
            "format": "double",
            "example": 12.5
          }
        }
      },
      "CpmsFraudDriverStatusResponse": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/CpmsFraudDriverStatus"
          },
          "success": {
            "type": "boolean",
            "description": "Always true on a 2xx response.",
            "example": true
          },
          "timestamp": {
            "description": "UTC time the response was generated.",
            "format": "date-time",
            "example": "2026-06-20T18:42:09Z"
          }
        }
      },
      "CpmsFraudErrorResponse": {
        "type": "object",
        "properties": {
          "error": {
            "type": "string",
            "description": "Stable machine-readable error code.",
            "example": "not_found"
          },
          "message": {
            "type": "string",
            "description": "Human-readable explanation of the error.",
            "example": "Driver not found"
          },
          "code": {
            "type": [
              "null",
              "string"
            ],
            "description": "Stable machine-readable error code (duplicated from `error`).",
            "example": "not_found"
          },
          "timestamp": {
            "description": "UTC time the error was generated.",
            "format": "date-time",
            "example": "2026-06-20T18:42:09Z"
          }
        }
      },
      "CpmsFraudHold": {
        "type": "object",
        "properties": {
          "driver_id": {
            "type": "string",
            "description": "Stable driver UUID.",
            "format": "uuid",
            "example": "1ae38f39-2b4c-4d5e-8f6a-7b8c9d0e1f2a"
          },
          "email": {
            "type": "string",
            "description": "Driver's email address.",
            "example": "driver@example.com"
          },
          "phone_verified": {
            "type": "boolean",
            "description": "True when the driver has completed phone verification.",
            "example": true
          },
          "reason": {
            "type": [
              "null",
              "string"
            ],
            "description": "Why the hold was placed, or null when no reason was recorded.",
            "example": "Unpaid idle-fee balance over threshold"
          },
          "held_at": {
            "description": "UTC timestamp the hold was placed, or null.",
            "format": "date-time",
            "example": "2026-06-18T09:21:44Z"
          },
          "outstanding_balance": {
            "type": "number",
            "description": "The driver's outstanding (failed) balance across the operator's networks, in the network currency.",
            "format": "double",
            "example": 12.5
          }
        }
      },
      "CpmsFraudHoldsResponse": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CpmsFraudHold"
            },
            "description": "The drivers currently held on the operator's networks."
          },
          "success": {
            "type": "boolean",
            "description": "Always true on a 2xx response.",
            "example": true
          },
          "timestamp": {
            "description": "UTC time the response was generated.",
            "format": "date-time",
            "example": "2026-06-20T18:42:09Z"
          }
        }
      },
      "CpmsGetVariablesRequest": {
        "type": "object",
        "properties": {
          "variables": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CpmsVariableRef"
            }
          }
        }
      },
      "CpmsLifecycleAddConnectorData": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Stable connector UUID of the newly created connector.",
            "format": "uuid",
            "example": "9f1c2b30-4d5e-6a7b-8c9d-0e1f2a3b4c5d"
          },
          "chargerId": {
            "type": "string",
            "description": "UUID of the charger the connector was added to.",
            "format": "uuid",
            "example": "4b2e9c10-7d8a-4a6e-9b1f-2c3d4e5f6a7b"
          },
          "connectorNumber": {
            "type": "integer",
            "description": "Connector number on the charger (1-based).",
            "format": "int32",
            "example": 2
          },
          "standard": {
            "type": "string",
            "description": "Plug standard (e.g. IEC_62196_T2, CHADEMO, CCS).",
            "example": "IEC_62196_T2"
          },
          "format": {
            "type": "string",
            "description": "Connector format: SOCKET (untethered) or CABLE (tethered).",
            "example": "SOCKET"
          },
          "powerType": {
            "type": "string",
            "description": "Power delivery type (AC_1_PHASE, AC_3_PHASE, DC).",
            "example": "AC_3_PHASE"
          },
          "maxVoltage": {
            "type": "integer",
            "description": "Maximum voltage (V).",
            "format": "int32",
            "example": 400
          },
          "maxAmperage": {
            "type": "integer",
            "description": "Maximum amperage (A).",
            "format": "int32",
            "example": 32
          },
          "maxPower": {
            "type": "number",
            "description": "Maximum electric power, in kW (stored internally as watts).",
            "format": "double",
            "example": 22
          },
          "created": {
            "type": "boolean",
            "description": "Always true on success.",
            "example": true
          }
        }
      },
      "CpmsLifecycleAddConnectorResponse": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/CpmsLifecycleAddConnectorData"
          },
          "success": {
            "type": "boolean",
            "description": "Always true on a 2xx response.",
            "example": true
          },
          "timestamp": {
            "description": "UTC time the response was generated.",
            "format": "date-time",
            "example": "2026-06-19T18:42:09Z"
          }
        }
      },
      "CpmsLifecycleAssignTariffData": {
        "type": "object",
        "properties": {
          "assignmentId": {
            "type": "string",
            "description": "Stable UUID of the new tariff assignment.",
            "format": "uuid",
            "example": "e5f6a7b8-9c0d-1e2f-3a4b-5c6d7e8f9a0b"
          },
          "tariffId": {
            "type": "string",
            "description": "UUID of the tariff that was assigned.",
            "format": "uuid",
            "example": "b2c3d4e5-6f70-8192-a3b4-c5d6e7f8a9b0"
          },
          "level": {
            "type": "string",
            "description": "Resolved assignment level (Network, Location, Charger, or Connector) — most-specific target wins.",
            "example": "Charger"
          },
          "locationUuid": {
            "type": [
              "null",
              "string"
            ],
            "description": "Location target UUID if supplied, else null.",
            "format": "uuid",
            "example": "a1b2c3d4-5e6f-7a8b-9c0d-1e2f3a4b5c6d"
          },
          "chargerUuid": {
            "type": [
              "null",
              "string"
            ],
            "description": "Charger target UUID if supplied, else null.",
            "format": "uuid",
            "example": "4b2e9c10-7d8a-4a6e-9b1f-2c3d4e5f6a7b"
          },
          "connectorUuid": {
            "type": [
              "null",
              "string"
            ],
            "description": "Connector target UUID if supplied, else null.",
            "format": "uuid",
            "example": "9f1c2b30-4d5e-6a7b-8c9d-0e1f2a3b4c5d"
          },
          "assigned": {
            "type": "boolean",
            "description": "Always true on success.",
            "example": true
          }
        }
      },
      "CpmsLifecycleAssignTariffResponse": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/CpmsLifecycleAssignTariffData"
          },
          "success": {
            "type": "boolean",
            "description": "Always true on a 2xx response.",
            "example": true
          },
          "timestamp": {
            "description": "UTC time the response was generated.",
            "format": "date-time",
            "example": "2026-06-19T18:42:09Z"
          }
        }
      },
      "CpmsLifecycleCreateLocationData": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Stable location UUID of the newly created site.",
            "format": "uuid",
            "example": "a1b2c3d4-5e6f-7a8b-9c0d-1e2f3a4b5c6d"
          },
          "name": {
            "type": "string",
            "description": "Display name of the site.",
            "example": "Isla Verde Plaza"
          },
          "address": {
            "type": "string",
            "description": "Street address of the site.",
            "example": "100 Av. Isla Verde"
          },
          "city": {
            "type": "string",
            "description": "City of the site.",
            "example": "Carolina"
          },
          "networkId": {
            "type": "integer",
            "description": "Internal numeric id of the network the site was created on.",
            "format": "int32",
            "example": 3
          },
          "created": {
            "type": "boolean",
            "description": "Always true on success.",
            "example": true
          }
        }
      },
      "CpmsLifecycleCreateLocationResponse": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/CpmsLifecycleCreateLocationData"
          },
          "success": {
            "type": "boolean",
            "description": "Always true on a 2xx response.",
            "example": true
          },
          "timestamp": {
            "description": "UTC time the response was generated.",
            "format": "date-time",
            "example": "2026-06-19T18:42:09Z"
          }
        }
      },
      "CpmsLifecycleDeleteChargerData": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "UUID of the decommissioned charger.",
            "format": "uuid",
            "example": "4b2e9c10-7d8a-4a6e-9b1f-2c3d4e5f6a7b"
          },
          "deleted": {
            "type": "boolean",
            "description": "Always true on success.",
            "example": true
          },
          "deactivatedConnectors": {
            "type": "integer",
            "description": "Number of the charger's connectors that were cascade soft-deleted.",
            "format": "int32",
            "example": 2
          },
          "deactivatedAssignments": {
            "type": "integer",
            "description": "Number of active tariff assignments pointing at the charger (or its connectors) that were deactivated.",
            "format": "int32",
            "example": 1
          }
        }
      },
      "CpmsLifecycleDeleteChargerResponse": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/CpmsLifecycleDeleteChargerData"
          },
          "success": {
            "type": "boolean",
            "description": "Always true on a 2xx response.",
            "example": true
          },
          "timestamp": {
            "description": "UTC time the response was generated.",
            "format": "date-time",
            "example": "2026-06-19T18:42:09Z"
          }
        }
      },
      "CpmsLifecycleDeleteConnectorData": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "UUID of the deleted connector.",
            "format": "uuid",
            "example": "9f1c2b30-4d5e-6a7b-8c9d-0e1f2a3b4c5d"
          },
          "deleted": {
            "type": "boolean",
            "description": "Always true on success.",
            "example": true
          },
          "deactivatedAssignments": {
            "type": "integer",
            "description": "Number of active connector-level tariff assignments that were deactivated.",
            "format": "int32",
            "example": 0
          }
        }
      },
      "CpmsLifecycleDeleteConnectorResponse": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/CpmsLifecycleDeleteConnectorData"
          },
          "success": {
            "type": "boolean",
            "description": "Always true on a 2xx response.",
            "example": true
          },
          "timestamp": {
            "description": "UTC time the response was generated.",
            "format": "date-time",
            "example": "2026-06-19T18:42:09Z"
          }
        }
      },
      "CpmsLifecycleDeletedData": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "UUID of the soft-deleted entity.",
            "format": "uuid",
            "example": "a1b2c3d4-5e6f-7a8b-9c0d-1e2f3a4b5c6d"
          },
          "deleted": {
            "type": "boolean",
            "description": "Always true on success.",
            "example": true
          }
        }
      },
      "CpmsLifecycleDeletedResponse": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/CpmsLifecycleDeletedData"
          },
          "success": {
            "type": "boolean",
            "description": "Always true on a 2xx response.",
            "example": true
          },
          "timestamp": {
            "description": "UTC time the response was generated.",
            "format": "date-time",
            "example": "2026-06-19T18:42:09Z"
          }
        }
      },
      "CpmsLifecycleDetachAssignmentData": {
        "type": "object",
        "properties": {
          "assignmentId": {
            "type": "string",
            "description": "UUID of the assignment that was detached.",
            "format": "uuid",
            "example": "e5f6a7b8-9c0d-1e2f-3a4b-5c6d7e8f9a0b"
          },
          "detached": {
            "type": "boolean",
            "description": "True once the assignment has been deactivated.",
            "example": true
          }
        }
      },
      "CpmsLifecycleDetachAssignmentResponse": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/CpmsLifecycleDetachAssignmentData"
          },
          "success": {
            "type": "boolean",
            "description": "Always true on a 2xx response.",
            "example": true
          },
          "timestamp": {
            "description": "UTC time the response was generated.",
            "format": "date-time",
            "example": "2026-06-19T18:42:09Z"
          }
        }
      },
      "CpmsLifecycleErrorResponse": {
        "type": "object",
        "properties": {
          "error": {
            "type": "string",
            "description": "Stable machine-readable error slug.",
            "example": "not_found"
          },
          "message": {
            "type": "string",
            "description": "Human-readable explanation of the error.",
            "example": "Charger '4b2e9c10-7d8a-4a6e-9b1f-2c3d4e5f6a7b' was not found."
          },
          "code": {
            "type": [
              "null",
              "string"
            ],
            "description": "Stable machine-readable error code (defaults to the error slug when not set explicitly).",
            "example": "not_found"
          },
          "timestamp": {
            "description": "UTC time the error was generated.",
            "format": "date-time",
            "example": "2026-06-19T18:42:09Z"
          },
          "details": {
            "type": [
              "null",
              "object"
            ],
            "additionalProperties": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "description": "Optional field-level validation details (field name → messages), or null."
          }
        }
      },
      "CpmsLifecycleRegisterChargerData": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Stable charger UUID of the newly created charger.",
            "format": "uuid",
            "example": "4b2e9c10-7d8a-4a6e-9b1f-2c3d4e5f6a7b"
          },
          "uid": {
            "type": "string",
            "description": "OCPP charge-point identity (chargePointId) — set from the supplied serial.",
            "example": "CP-IslaVerde-01"
          },
          "evseId": {
            "type": "string",
            "description": "Short, printable EVSE identifier generated for the charger.",
            "example": "PR-A1B2C3"
          },
          "serialNumber": {
            "type": "string",
            "description": "Hardware serial number recorded for the charger.",
            "example": "SN-A1B2C3D4"
          },
          "status": {
            "type": "string",
            "description": "Initial OCPP status (UNKNOWN unless a status was supplied).",
            "example": "UNKNOWN"
          },
          "networkId": {
            "type": "integer",
            "description": "Internal numeric id of the network the charger was created on.",
            "format": "int32",
            "example": 3
          },
          "locationId": {
            "type": [
              "null",
              "string"
            ],
            "description": "UUID of the location the charger was assigned to, or null if unassigned.",
            "format": "uuid",
            "example": "a1b2c3d4-5e6f-7a8b-9c0d-1e2f3a4b5c6d"
          },
          "created": {
            "type": "boolean",
            "description": "Always true on success.",
            "example": true
          }
        }
      },
      "CpmsLifecycleRegisterChargerResponse": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/CpmsLifecycleRegisterChargerData"
          },
          "success": {
            "type": "boolean",
            "description": "Always true on a 2xx response.",
            "example": true
          },
          "timestamp": {
            "description": "UTC time the response was generated.",
            "format": "date-time",
            "example": "2026-06-19T18:42:09Z"
          }
        }
      },
      "CpmsLifecycleTariffAssignment": {
        "type": "object",
        "properties": {
          "assignmentId": {
            "type": "string",
            "description": "Stable tariff-assignment UUID.",
            "format": "uuid",
            "example": "e5f6a7b8-9c0d-1e2f-3a4b-5c6d7e8f9a0b"
          },
          "level": {
            "type": "string",
            "description": "Assignment level (Network, Location, Charger, or Connector).",
            "example": "Charger"
          },
          "locationId": {
            "type": [
              "null",
              "integer"
            ],
            "description": "Internal numeric location id the assignment targets, or null.",
            "format": "int32",
            "example": 12
          },
          "chargerId": {
            "type": [
              "null",
              "integer"
            ],
            "description": "Internal numeric charger id the assignment targets, or null.",
            "format": "int32",
            "example": 45
          },
          "connectorId": {
            "type": [
              "null",
              "integer"
            ],
            "description": "Internal numeric connector id the assignment targets, or null.",
            "format": "int32",
            "example": 89
          },
          "startDate": {
            "description": "UTC time the assignment became active, or null.",
            "format": "date-time",
            "example": "2026-06-01T12:00:00Z"
          },
          "priority": {
            "type": "integer",
            "description": "Assignment priority (lower = higher precedence).",
            "format": "int32",
            "example": 0
          }
        }
      },
      "CpmsLifecycleTariffAssignmentListResponse": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CpmsLifecycleTariffAssignment"
            },
            "description": "The tariff's active assignments."
          },
          "success": {
            "type": "boolean",
            "description": "Always true on a 2xx response.",
            "example": true
          },
          "timestamp": {
            "description": "UTC time the response was generated.",
            "format": "date-time",
            "example": "2026-06-19T18:42:09Z"
          }
        }
      },
      "CpmsLifecycleUpdatedData": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "UUID of the updated entity.",
            "format": "uuid",
            "example": "4b2e9c10-7d8a-4a6e-9b1f-2c3d4e5f6a7b"
          },
          "updated": {
            "type": "boolean",
            "description": "Always true on success.",
            "example": true
          }
        }
      },
      "CpmsLifecycleUpdatedResponse": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/CpmsLifecycleUpdatedData"
          },
          "success": {
            "type": "boolean",
            "description": "Always true on a 2xx response.",
            "example": true
          },
          "timestamp": {
            "description": "UTC time the response was generated.",
            "format": "date-time",
            "example": "2026-06-19T18:42:09Z"
          }
        }
      },
      "CpmsLifecycleUpgradeRequiredResponse": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean",
            "description": "Always false on this error.",
            "example": false
          },
          "error": {
            "type": "string",
            "description": "Always 'upgrade_required'.",
            "example": "upgrade_required"
          },
          "code": {
            "type": "string",
            "description": "Always 'upgrade_required'.",
            "example": "upgrade_required"
          },
          "message": {
            "type": "string",
            "description": "Human-readable explanation including the current tier and connector cap.",
            "example": "This network is on the Free tier (max 2 connectors). Upgrade to add more."
          },
          "currentTier": {
            "type": "string",
            "description": "The network's current subscription tier / plan type.",
            "example": "Free"
          },
          "maxConnectors": {
            "type": "integer",
            "description": "Maximum connectors allowed on the current tier.",
            "format": "int32",
            "example": 2
          },
          "timestamp": {
            "description": "UTC time the error was generated.",
            "format": "date-time",
            "example": "2026-06-19T18:42:09Z"
          }
        }
      },
      "CpmsLimitDimensionDto": {
        "type": "object",
        "properties": {
          "tierLimit": {
            "type": [
              "null",
              "integer"
            ],
            "description": "Your subscription tier's hard ceiling for this resource. null = unlimited on your plan.",
            "format": "int32",
            "example": 50
          },
          "selfLimit": {
            "type": [
              "null",
              "integer"
            ],
            "description": "The cap YOU set on yourself (guard-rail), at or below the tier ceiling. null = no self-restriction.",
            "format": "int32",
            "example": 10
          },
          "effectiveLimit": {
            "type": [
              "null",
              "integer"
            ],
            "description": "The cap actually enforced when you provision = the lower of tierLimit and selfLimit. null = unlimited.",
            "format": "int32",
            "example": 10
          },
          "currentUsage": {
            "type": "integer",
            "description": "How many you currently have toward this cap (chargers: all non-deleted; connectors: billable = enabled on a stationed charger).",
            "format": "int32",
            "example": 3
          },
          "remaining": {
            "type": [
              "null",
              "integer"
            ],
            "description": "effectiveLimit - currentUsage, floored at 0. null = unlimited.",
            "format": "int32",
            "example": 7
          }
        }
      },
      "CpmsLimitIncreaseListItemDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "example": "b2d3e4f5-6a7b-8c9d-0e1f-2a3b4c5d6e7f"
          },
          "resource": {
            "type": "string",
            "example": "connectors"
          },
          "currentTierLimit": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int32",
            "example": 50
          },
          "requestedLimit": {
            "type": "integer",
            "format": "int32",
            "example": 200
          },
          "status": {
            "type": "string",
            "example": "pending"
          },
          "reason": {
            "type": [
              "null",
              "string"
            ],
            "example": "Rolling out 150 connectors across 30 sites in Q3."
          },
          "createdAt": {
            "format": "date-time",
            "example": "2026-06-23T18:22:00Z"
          },
          "reviewedAt": {
            "format": "date-time",
            "example": "2026-06-24T09:00:00Z"
          },
          "reviewNote": {
            "type": [
              "null",
              "string"
            ],
            "example": "Approved — Pro ceiling raised to 200 connectors."
          }
        }
      },
      "CpmsLimitIncreaseListResponse": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CpmsLimitIncreaseListItemDto"
            }
          },
          "success": {
            "type": "boolean"
          },
          "timestamp": {
            "format": "date-time"
          }
        }
      },
      "CpmsLimitIncreaseRequestBody": {
        "type": "object",
        "properties": {
          "resource": {
            "type": "string",
            "description": "Which dimension to raise: \"chargers\" or \"connectors\".",
            "example": "connectors"
          },
          "requestedLimit": {
            "type": "integer",
            "description": "The new ceiling you are requesting. Must be greater than your current tier ceiling.",
            "format": "int32",
            "example": 200
          },
          "reason": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional justification to help the review (e.g. expected fleet size, rollout timeline).",
            "example": "Rolling out 150 connectors across 30 sites in Q3."
          }
        }
      },
      "CpmsLimitIncreaseResponse": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/CpmsLimitIncreaseResultDto"
          },
          "success": {
            "type": "boolean"
          },
          "timestamp": {
            "format": "date-time"
          }
        }
      },
      "CpmsLimitIncreaseResultDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Public id of the request — track its status via GET /limits/increase-requests.",
            "format": "uuid",
            "example": "b2d3e4f5-6a7b-8c9d-0e1f-2a3b4c5d6e7f"
          },
          "resource": {
            "type": "string",
            "example": "connectors"
          },
          "currentTierLimit": {
            "type": [
              "null",
              "integer"
            ],
            "description": "Your tier ceiling at the time of the request. null = the tier was already unlimited.",
            "format": "int32",
            "example": 50
          },
          "requestedLimit": {
            "type": "integer",
            "format": "int32",
            "example": 200
          },
          "status": {
            "type": "string",
            "description": "pending | approved | denied | cancelled. New requests start pending.",
            "example": "pending"
          },
          "createdAt": {
            "format": "date-time",
            "example": "2026-06-23T18:22:00Z"
          },
          "nextStep": {
            "type": "string",
            "description": "Human-readable guidance on how this request will be handled for your plan.",
            "example": "Upgrade to Pro for a higher ceiling, or our team will review this request."
          }
        }
      },
      "CpmsLoadBalancingData": {
        "type": "object",
        "properties": {
          "stationId": {
            "type": "string",
            "description": "Station (location) UUID.",
            "format": "uuid",
            "example": "a1b2c3d4-5e6f-7a8b-9c0d-1e2f3a4b5c6d"
          },
          "enabled": {
            "type": "boolean",
            "description": "Whether load balancing is enabled for this station.",
            "example": true
          },
          "strategy": {
            "type": "string",
            "description": "Active allocation strategy (from the highest-priority rule), or 'equal' if no rules exist.",
            "example": "equal"
          },
          "siteMaxPowerKw": {
            "type": "number",
            "description": "Site-wide power cap for the station, in kW.",
            "format": "double",
            "example": 150
          },
          "safetyMarginPct": {
            "type": "number",
            "description": "Safety margin reserved below the site cap, as a percentage (15–40).",
            "format": "double",
            "example": 15
          },
          "currentDrawKw": {
            "type": "object",
            "anyOf": [
              {
                "type": "number"
              },
              {
                "enum": [
                  "NaN",
                  "Infinity",
                  "-Infinity"
                ]
              }
            ],
            "description": "Total power currently drawn across the station's chargers, in kW.",
            "format": "double",
            "example": 29.6
          },
          "allocatedKw": {
            "type": "object",
            "anyOf": [
              {
                "type": "number"
              },
              {
                "enum": [
                  "NaN",
                  "Infinity",
                  "-Infinity"
                ]
              }
            ],
            "description": "Total power currently allocated across the station's chargers, in kW.",
            "format": "double",
            "example": 44
          },
          "evses": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CpmsLoadEvse"
            },
            "description": "Per-charger allocation/draw snapshot for the station."
          },
          "rules": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CpmsLoadRule"
            },
            "description": "Load-balancing rules configured for the station, ordered by priority."
          }
        }
      },
      "CpmsLoadBalancingRequest": {
        "type": "object",
        "properties": {
          "enabled": {
            "type": [
              "null",
              "boolean"
            ]
          },
          "strategy": {
            "type": [
              "null",
              "string"
            ]
          },
          "siteMaxPowerKw": {
            "type": [
              "null",
              "number"
            ],
            "format": "double"
          },
          "safetyMarginPct": {
            "type": [
              "null",
              "number"
            ],
            "format": "double"
          },
          "priorities": {
            "type": [
              "null",
              "object"
            ],
            "additionalProperties": {
              "type": "integer",
              "format": "int32"
            }
          }
        }
      },
      "CpmsLoadBalancingResponse": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/CpmsLoadBalancingData"
          },
          "success": {
            "type": "boolean",
            "description": "Always true on a 2xx response.",
            "example": true
          },
          "timestamp": {
            "description": "UTC time the response was generated.",
            "format": "date-time",
            "example": "2026-06-19T18:42:09Z"
          }
        }
      },
      "CpmsLoadBalancingUpdateData": {
        "type": "object",
        "properties": {
          "stationId": {
            "type": "string",
            "description": "Station (location) UUID that was updated.",
            "format": "uuid",
            "example": "a1b2c3d4-5e6f-7a8b-9c0d-1e2f3a4b5c6d"
          },
          "updated": {
            "type": "boolean",
            "description": "Always true on success.",
            "example": true
          }
        }
      },
      "CpmsLoadBalancingUpdateResponse": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/CpmsLoadBalancingUpdateData"
          },
          "success": {
            "type": "boolean",
            "description": "Always true on a 2xx response.",
            "example": true
          },
          "timestamp": {
            "description": "UTC time the response was generated.",
            "format": "date-time",
            "example": "2026-06-19T18:42:09Z"
          }
        }
      },
      "CpmsLoadClearLimitData": {
        "type": "object",
        "properties": {
          "chargerId": {
            "type": "string",
            "description": "UUID of the charger the cap was cleared from.",
            "format": "uuid",
            "example": "4b2e9c10-7d8a-4a6e-9b1f-2c3d4e5f6a7b"
          },
          "connectorNumber": {
            "type": "integer",
            "description": "Connector number the cap was cleared from (1-based).",
            "format": "int32",
            "example": 1
          },
          "profileId": {
            "type": "integer",
            "description": "OCPP charging-profile id that was cleared (the reserved operator-cap id).",
            "format": "int32",
            "example": 90001
          },
          "accepted": {
            "type": "boolean",
            "description": "True if the station accepted the ClearChargingProfile request.",
            "example": true
          },
          "reason": {
            "type": [
              "null",
              "string"
            ],
            "description": "Null when accepted; otherwise the station's rejection reason.",
            "example": "The charger rejected the request."
          },
          "retryable": {
            "type": "boolean",
            "description": "True if the request can be safely retried (transient failure / charger offline).",
            "example": false
          }
        }
      },
      "CpmsLoadClearLimitResponse": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/CpmsLoadClearLimitData"
          },
          "success": {
            "type": "boolean",
            "description": "Always true on a 2xx response.",
            "example": true
          },
          "timestamp": {
            "description": "UTC time the response was generated.",
            "format": "date-time",
            "example": "2026-06-19T18:42:09Z"
          }
        }
      },
      "CpmsLoadCompositeScheduleData": {
        "type": "object",
        "properties": {
          "chargerId": {
            "type": "string",
            "description": "UUID of the charger the schedule was read from.",
            "format": "uuid",
            "example": "4b2e9c10-7d8a-4a6e-9b1f-2c3d4e5f6a7b"
          },
          "connectorNumber": {
            "type": "integer",
            "description": "Connector number the schedule applies to (1-based).",
            "format": "int32",
            "example": 1
          },
          "durationSeconds": {
            "type": "integer",
            "description": "Look-ahead window of the composite schedule, in seconds (1–86400).",
            "format": "int32",
            "example": 3600
          },
          "unit": {
            "type": "string",
            "description": "Charging rate unit of the schedule: A (amps) or W (watts).",
            "example": "A"
          },
          "accepted": {
            "type": "boolean",
            "description": "True if the station accepted and answered the GetCompositeSchedule request.",
            "example": true
          },
          "schedule": {
            "description": "Raw OCPP composite-schedule payload returned by the station, or null if it did not answer. Shape follows the OCPP 1.6 GetCompositeSchedule.conf payload."
          }
        }
      },
      "CpmsLoadCompositeScheduleResponse": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/CpmsLoadCompositeScheduleData"
          },
          "success": {
            "type": "boolean",
            "description": "Always true on a 2xx response.",
            "example": true
          },
          "timestamp": {
            "description": "UTC time the response was generated.",
            "format": "date-time",
            "example": "2026-06-19T18:42:09Z"
          }
        }
      },
      "CpmsLoadErrorResponse": {
        "type": "object",
        "properties": {
          "error": {
            "type": "string",
            "description": "Stable machine-readable error code (duplicated as `code`).",
            "example": "not_found"
          },
          "code": {
            "type": "string",
            "description": "Stable machine-readable error code.",
            "example": "not_found"
          },
          "message": {
            "type": "string",
            "description": "Human-readable explanation of the error.",
            "example": "Charger '4b2e9c10-7d8a-4a6e-9b1f-2c3d4e5f6a7b' not found"
          }
        }
      },
      "CpmsLoadEvse": {
        "type": "object",
        "properties": {
          "evseId": {
            "type": [
              "null",
              "string"
            ],
            "description": "Short, printable EVSE identifier for the charger.",
            "example": "PR-A1B2C3"
          },
          "physicalRef": {
            "type": [
              "null",
              "string"
            ],
            "description": "Operator-set physical reference / label on the unit.",
            "example": "Bay 3"
          },
          "maxPowerKw": {
            "type": "object",
            "anyOf": [
              {
                "type": "number"
              },
              {
                "enum": [
                  "NaN",
                  "Infinity",
                  "-Infinity"
                ]
              }
            ],
            "description": "Rated maximum power of the charger, in kW.",
            "format": "double",
            "example": 22
          },
          "allocatedKw": {
            "type": "object",
            "anyOf": [
              {
                "type": "number"
              },
              {
                "enum": [
                  "NaN",
                  "Infinity",
                  "-Infinity"
                ]
              }
            ],
            "description": "Power currently allocated to this charger by load balancing, in kW.",
            "format": "double",
            "example": 11
          },
          "currentDrawKw": {
            "type": "object",
            "anyOf": [
              {
                "type": "number"
              },
              {
                "enum": [
                  "NaN",
                  "Infinity",
                  "-Infinity"
                ]
              }
            ],
            "description": "Power currently being drawn by this charger, in kW.",
            "format": "double",
            "example": 7.4
          },
          "status": {
            "type": "string",
            "description": "Last OCPP status reported by the charger.",
            "example": "Charging"
          },
          "priority": {
            "type": "integer",
            "description": "Load-balancing priority for this charger (lower = higher priority).",
            "format": "int32",
            "example": 0
          }
        }
      },
      "CpmsLoadGetLimitData": {
        "type": "object",
        "properties": {
          "chargerId": {
            "type": "string",
            "description": "UUID of the charger the limit was read from.",
            "format": "uuid",
            "example": "4b2e9c10-7d8a-4a6e-9b1f-2c3d4e5f6a7b"
          },
          "connectorNumber": {
            "type": "integer",
            "description": "Connector number on the charger the limit applies to (1-based).",
            "format": "int32",
            "example": 1
          },
          "unit": {
            "type": "string",
            "description": "Charging rate unit of the schedule: A (amps) or W (watts).",
            "example": "A"
          },
          "accepted": {
            "type": "boolean",
            "description": "True if the station accepted and answered the GetCompositeSchedule request.",
            "example": true
          },
          "schedule": {
            "description": "Raw OCPP composite-schedule payload returned by the station, or null if it did not answer. Shape follows the OCPP 1.6 GetCompositeSchedule.conf payload."
          }
        }
      },
      "CpmsLoadGetLimitResponse": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/CpmsLoadGetLimitData"
          },
          "success": {
            "type": "boolean",
            "description": "Always true on a 2xx response.",
            "example": true
          },
          "timestamp": {
            "description": "UTC time the response was generated.",
            "format": "date-time",
            "example": "2026-06-19T18:42:09Z"
          }
        }
      },
      "CpmsLoadRebalanceData": {
        "type": "object",
        "properties": {
          "stationId": {
            "type": "string",
            "description": "Station identifier (UUID, numeric LocationId, or slug) as supplied on the request path.",
            "example": "a1b2c3d4-5e6f-7a8b-9c0d-1e2f3a4b5c6d"
          },
          "rebalanced": {
            "type": "boolean",
            "description": "Always true once the rebalance has been accepted/queued.",
            "example": true
          }
        }
      },
      "CpmsLoadRebalanceResponse": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/CpmsLoadRebalanceData"
          },
          "success": {
            "type": "boolean",
            "description": "Always true on a 2xx response.",
            "example": true
          },
          "timestamp": {
            "description": "UTC time the response was generated.",
            "format": "date-time",
            "example": "2026-06-19T18:42:09Z"
          }
        }
      },
      "CpmsLoadRule": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Stable rule UUID.",
            "format": "uuid",
            "example": "7c2b1a90-4d5e-6a7b-8c9d-0e1f2a3b4c5d"
          },
          "name": {
            "type": [
              "null",
              "string"
            ],
            "description": "Human-readable rule name.",
            "example": "Default"
          },
          "description": {
            "type": [
              "null",
              "string"
            ],
            "description": "Free-text description of what the rule does.",
            "example": "Default load balancing rule"
          },
          "loadLimitKw": {
            "type": [
              "null",
              "number"
            ],
            "description": "Power cap this rule enforces, in kW.",
            "format": "double",
            "example": 150
          },
          "loadLimitAmps": {
            "type": [
              "null",
              "integer"
            ],
            "description": "Current cap this rule enforces, in amps.",
            "format": "int32",
            "example": 0
          },
          "numberOfPhases": {
            "type": "integer",
            "description": "Number of electrical phases the rule assumes (1 or 3).",
            "format": "int32",
            "example": 3
          },
          "strategy": {
            "type": [
              "null",
              "string"
            ],
            "description": "Primary allocation strategy (e.g. equal, priority, firstComeFirstServed).",
            "example": "equal"
          },
          "fallbackStrategy": {
            "type": [
              "null",
              "string"
            ],
            "description": "Strategy used when the primary cannot be satisfied.",
            "example": "equal"
          },
          "priority": {
            "type": "integer",
            "description": "Rule evaluation priority (lower = evaluated first).",
            "format": "int32",
            "example": 0
          },
          "isActive": {
            "type": "boolean",
            "description": "Whether the rule is currently active.",
            "example": true
          },
          "startTime": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional daily start time the rule is in force (HH:mm), or null for all day.",
            "example": "00:00"
          },
          "endTime": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional daily end time the rule is in force (HH:mm), or null for all day.",
            "example": "23:59"
          },
          "daysOfWeek": {
            "type": [
              "null",
              "string"
            ],
            "description": "Days of week the rule applies, as a digit string (0=Sun … 6=Sat), e.g. '0123456' for every day.",
            "example": "0123456"
          }
        }
      },
      "CpmsLoadSetLimitData": {
        "type": "object",
        "properties": {
          "chargerId": {
            "type": "string",
            "description": "UUID of the charger the limit was applied to.",
            "format": "uuid",
            "example": "4b2e9c10-7d8a-4a6e-9b1f-2c3d4e5f6a7b"
          },
          "connectorNumber": {
            "type": "integer",
            "description": "Connector number the limit was applied to (1-based).",
            "format": "int32",
            "example": 1
          },
          "unit": {
            "type": "string",
            "description": "Charging rate unit of the applied limit: A (amps) or W (watts).",
            "example": "A"
          },
          "limit": {
            "type": "number",
            "description": "The numeric limit requested, in the given unit.",
            "format": "double",
            "example": 32
          },
          "profileId": {
            "type": "integer",
            "description": "OCPP charging-profile id used for this operator cap (reserved id range so it is individually clearable).",
            "format": "int32",
            "example": 90001
          },
          "accepted": {
            "type": "boolean",
            "description": "True if the station accepted the SetChargingProfile request.",
            "example": true
          },
          "reason": {
            "type": [
              "null",
              "string"
            ],
            "description": "Null when accepted; otherwise the station's rejection reason.",
            "example": "The charger rejected the request."
          },
          "retryable": {
            "type": "boolean",
            "description": "True if the request can be safely retried (transient failure / charger offline).",
            "example": false
          }
        }
      },
      "CpmsLoadSetLimitResponse": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/CpmsLoadSetLimitData"
          },
          "success": {
            "type": "boolean",
            "description": "Always true on a 2xx response.",
            "example": true
          },
          "timestamp": {
            "description": "UTC time the response was generated.",
            "format": "date-time",
            "example": "2026-06-19T18:42:09Z"
          }
        }
      },
      "CpmsLocationDetail": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Stable location UUID.",
            "format": "uuid",
            "example": "2a1b9c80-3d4e-4f5a-9b6c-7d8e9f0a1b2c"
          },
          "name": {
            "type": "string",
            "description": "Human-readable site name.",
            "example": "Isla Verde Plaza"
          },
          "address": {
            "type": "string",
            "description": "Street address of the site.",
            "example": "8169 Calle Marginal"
          },
          "city": {
            "type": "string",
            "description": "City the site is in.",
            "example": "Carolina"
          },
          "state": {
            "type": "string",
            "description": "State/region the site is in.",
            "example": "PR"
          },
          "country": {
            "type": "string",
            "description": "Country code/name of the site.",
            "example": "US"
          },
          "postalCode": {
            "type": "string",
            "description": "Postal/ZIP code of the site.",
            "example": "00979"
          },
          "networkId": {
            "type": "integer",
            "description": "Internal numeric id of the owning network.",
            "format": "int32",
            "example": 3
          }
        }
      },
      "CpmsLocationListResponse": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CpmsLocationSummary"
            },
            "description": "The page of locations."
          },
          "pagination": {
            "$ref": "#/components/schemas/CpmsPagination"
          },
          "success": {
            "type": "boolean",
            "description": "Always true on a 2xx response.",
            "example": true
          },
          "timestamp": {
            "description": "UTC time the response was generated.",
            "format": "date-time",
            "example": "2026-06-19T18:42:09Z"
          }
        }
      },
      "CpmsLocationResponse": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/CpmsLocationDetail"
          },
          "success": {
            "type": "boolean",
            "description": "Always true on a 2xx response.",
            "example": true
          },
          "timestamp": {
            "description": "UTC time the response was generated.",
            "format": "date-time",
            "example": "2026-06-19T18:42:09Z"
          }
        }
      },
      "CpmsLocationSummary": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Stable location UUID. Use it in GET /locations/{id}.",
            "format": "uuid",
            "example": "2a1b9c80-3d4e-4f5a-9b6c-7d8e9f0a1b2c"
          },
          "name": {
            "type": "string",
            "description": "Human-readable site name.",
            "example": "Isla Verde Plaza"
          },
          "address": {
            "type": "string",
            "description": "Street address of the site.",
            "example": "8169 Calle Marginal"
          },
          "city": {
            "type": "string",
            "description": "City the site is in.",
            "example": "Carolina"
          },
          "state": {
            "type": "string",
            "description": "State/region the site is in.",
            "example": "PR"
          },
          "country": {
            "type": "string",
            "description": "Country code/name of the site.",
            "example": "US"
          },
          "networkId": {
            "type": "integer",
            "description": "Internal numeric id of the owning network.",
            "format": "int32",
            "example": 3
          }
        }
      },
      "CpmsManufacturerDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Manufacturer id (stable UUID).",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "description": "Manufacturer display name, e.g. \"ABB\"."
          },
          "logoUrl": {
            "type": [
              "null",
              "string"
            ],
            "description": "URL of the manufacturer logo, if set."
          }
        }
      },
      "CpmsManufacturerListResponse": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CpmsManufacturerDto"
            }
          },
          "pagination": {
            "$ref": "#/components/schemas/CpmsCatalogPagination"
          },
          "success": {
            "type": "boolean"
          },
          "timestamp": {
            "format": "date-time"
          }
        }
      },
      "CpmsManufacturerResponse": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/CpmsManufacturerDto"
          },
          "success": {
            "type": "boolean"
          },
          "timestamp": {
            "format": "date-time"
          }
        }
      },
      "CpmsMonitoringEventDto": {
        "type": "object",
        "properties": {
          "eventId": {
            "type": [
              "null",
              "integer"
            ],
            "description": "Charger-assigned monitor/event id, if present.",
            "format": "int32"
          },
          "timestamp": {
            "description": "When the event was reported (UTC).",
            "format": "date-time"
          },
          "trigger": {
            "type": [
              "null",
              "string"
            ],
            "description": "What triggered it: Alerting, Delta, or Periodic."
          },
          "actualValue": {
            "type": [
              "null",
              "string"
            ],
            "description": "The monitored variable's value at trigger time."
          },
          "techCode": {
            "type": [
              "null",
              "string"
            ],
            "description": "Vendor tech code, if any."
          },
          "techInfo": {
            "type": [
              "null",
              "string"
            ],
            "description": "Vendor tech info, if any."
          },
          "cleared": {
            "type": "boolean",
            "description": "Whether the alert condition has since cleared."
          },
          "transactionId": {
            "type": [
              "null",
              "string"
            ],
            "description": "Associated transaction id, if the event occurred during a session."
          },
          "componentName": {
            "type": [
              "null",
              "string"
            ],
            "description": "OCPP component the monitor is on."
          },
          "componentInstance": {
            "type": [
              "null",
              "string"
            ]
          },
          "variableName": {
            "type": [
              "null",
              "string"
            ],
            "description": "OCPP variable the monitor watches."
          },
          "variableInstance": {
            "type": [
              "null",
              "string"
            ]
          },
          "severity": {
            "type": "integer",
            "description": "Severity (0 = highest/most urgent per OCPP).",
            "format": "int32"
          }
        }
      },
      "CpmsMonitoringEventListResponse": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CpmsMonitoringEventDto"
            }
          },
          "chargerId": {
            "type": "string",
            "description": "The charger these events were reported by.",
            "format": "uuid"
          },
          "count": {
            "type": "integer",
            "description": "Number of events returned.",
            "format": "int32"
          },
          "success": {
            "type": "boolean"
          },
          "timestamp": {
            "format": "date-time"
          }
        }
      },
      "CpmsNetworkListResponse": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CpmsNetworkSummary"
            },
            "description": "The networks this key is authorized to operate."
          },
          "success": {
            "type": "boolean",
            "description": "Always true on a 2xx response.",
            "example": true
          },
          "timestamp": {
            "description": "UTC time the response was generated.",
            "format": "date-time",
            "example": "2026-06-19T18:42:09Z"
          }
        }
      },
      "CpmsNetworkSummary": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Stable network UUID — the public network handle used in headers and filters.",
            "format": "uuid",
            "example": "1ae38f39-2b4c-4d5e-8f6a-7b8c9d0e1f2a"
          },
          "name": {
            "type": "string",
            "description": "Human-readable network name.",
            "example": "Isla Verde Network"
          }
        }
      },
      "CpmsObservabilityDelivery": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Stable delivery UUID. Use it in the retry endpoint.",
            "format": "uuid",
            "example": "d1e2f3a4-5b6c-7d8e-9f01-2a3b4c5d6e7f"
          },
          "event_type": {
            "type": "string",
            "description": "Event type that triggered this delivery (e.g. charging.session.stopped).",
            "example": "charging.session.stopped"
          },
          "http_status": {
            "type": [
              "null",
              "integer"
            ],
            "description": "HTTP status code returned by the endpoint, or null if no response was received.",
            "format": "int32",
            "example": 200
          },
          "success": {
            "type": "boolean",
            "description": "True only when the delivery reached terminal Delivered status.",
            "example": true
          },
          "status": {
            "type": "string",
            "description": "Delivery state (Pending, Delivered, Failed, …).",
            "example": "Delivered"
          },
          "attempts": {
            "type": "integer",
            "description": "Number of delivery attempts made so far.",
            "format": "int32",
            "example": 1
          },
          "max_attempts": {
            "type": "integer",
            "description": "Maximum attempts before the delivery is abandoned.",
            "format": "int32",
            "example": 5
          },
          "duration_ms": {
            "type": [
              "null",
              "integer"
            ],
            "description": "Round-trip duration of the last attempt, in milliseconds, or null if not yet attempted.",
            "format": "int32",
            "example": 142
          },
          "next_retry_at": {
            "description": "UTC time the next retry is scheduled, or null when terminal / not scheduled.",
            "format": "date-time",
            "example": "2026-06-19T18:47:09Z"
          },
          "created_at": {
            "description": "UTC time the delivery was created.",
            "format": "date-time",
            "example": "2026-06-19T18:42:00Z"
          },
          "completed_at": {
            "description": "UTC time the delivery reached a terminal state, or null if still in flight.",
            "format": "date-time",
            "example": "2026-06-19T18:42:09Z"
          }
        }
      },
      "CpmsObservabilityDeliveryListResponse": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CpmsObservabilityDelivery"
            },
            "description": "The page of delivery attempts, most recent first."
          },
          "pagination": {
            "$ref": "#/components/schemas/CpmsObservabilityPagination"
          },
          "success": {
            "type": "boolean",
            "description": "Always true on a 2xx response.",
            "example": true
          },
          "timestamp": {
            "description": "UTC time the response was generated.",
            "format": "date-time",
            "example": "2026-06-19T18:42:09Z"
          }
        }
      },
      "CpmsObservabilityErrorResponse": {
        "type": "object",
        "properties": {
          "error": {
            "type": "string",
            "description": "Stable machine-readable error slug.",
            "example": "not_found"
          },
          "message": {
            "type": "string",
            "description": "Human-readable explanation of the error.",
            "example": "Webhook subscription not found"
          },
          "code": {
            "type": [
              "null",
              "string"
            ],
            "description": "Stable machine-readable error code (defaults to the error slug when not set explicitly).",
            "example": "not_found"
          },
          "timestamp": {
            "description": "UTC time the error was generated.",
            "format": "date-time",
            "example": "2026-06-19T18:42:09Z"
          },
          "details": {
            "type": [
              "null",
              "object"
            ],
            "additionalProperties": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "description": "Optional field-level validation details (field name → messages), or null."
          }
        }
      },
      "CpmsObservabilityEventTypesResponse": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The canonical catalog of subscribable webhook event types."
          },
          "success": {
            "type": "boolean",
            "description": "Always true on a 2xx response.",
            "example": true
          },
          "timestamp": {
            "description": "UTC time the response was generated.",
            "format": "date-time",
            "example": "2026-06-19T18:42:09Z"
          }
        }
      },
      "CpmsObservabilityPagination": {
        "type": "object",
        "properties": {
          "page": {
            "type": "integer",
            "description": "1-based page index of this result set.",
            "format": "int32",
            "example": 1
          },
          "pageSize": {
            "type": "integer",
            "description": "Items requested per page (1–100; defaults to 20).",
            "format": "int32",
            "example": 20
          },
          "total": {
            "type": "integer",
            "description": "Total number of deliveries across all pages.",
            "format": "int32",
            "example": 42
          },
          "totalPages": {
            "type": "integer",
            "description": "Total number of pages at the current pageSize.",
            "format": "int32",
            "example": 3
          }
        }
      },
      "CpmsObservabilityRetryData": {
        "type": "object",
        "properties": {
          "delivery_id": {
            "type": "string",
            "description": "UUID of the delivery that was re-enqueued.",
            "format": "uuid",
            "example": "d1e2f3a4-5b6c-7d8e-9f01-2a3b4c5d6e7f"
          },
          "retry_enqueued": {
            "type": "boolean",
            "description": "Always true once the delivery has been marked Pending for retry.",
            "example": true
          }
        }
      },
      "CpmsObservabilityRetryResponse": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/CpmsObservabilityRetryData"
          },
          "success": {
            "type": "boolean",
            "description": "Always true on a 2xx response.",
            "example": true
          },
          "timestamp": {
            "description": "UTC time the response was generated.",
            "format": "date-time",
            "example": "2026-06-19T18:42:09Z"
          }
        }
      },
      "CpmsObservabilityWebhook": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Stable webhook subscription UUID.",
            "format": "uuid",
            "example": "c7e1a2b3-4d5e-6f70-8192-a3b4c5d6e7f8"
          },
          "url": {
            "type": "string",
            "description": "HTTPS endpoint deliveries are POSTed to.",
            "example": "https://example.com/webhooks/phevnix"
          },
          "events": {
            "type": "string",
            "description": "Subscribed event types as a comma-separated list, or '*' for all events.",
            "example": "charging.session.started,charging.session.stopped"
          },
          "description": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional operator-set label for the subscription.",
            "example": "Billing pipeline"
          },
          "is_active": {
            "type": "boolean",
            "description": "Whether the subscription is currently active (false once auto-disabled by repeated failures).",
            "example": true
          },
          "consecutive_failures": {
            "type": "integer",
            "description": "Count of consecutive failed deliveries; resets to 0 on a success or on re-enable.",
            "format": "int32",
            "example": 0
          },
          "disabled_at": {
            "description": "UTC time the subscription was auto-disabled, or null if active.",
            "format": "date-time",
            "example": "2026-06-19T18:42:07Z"
          },
          "disabled_reason": {
            "type": [
              "null",
              "string"
            ],
            "description": "Why the subscription was disabled, or null if active.",
            "example": "Too many consecutive delivery failures"
          },
          "created_at": {
            "description": "UTC time the subscription was created.",
            "format": "date-time",
            "example": "2026-06-01T12:00:00Z"
          },
          "updated_at": {
            "description": "UTC time the subscription was last updated.",
            "format": "date-time",
            "example": "2026-06-19T18:42:09Z"
          }
        }
      },
      "CpmsObservabilityWebhookListResponse": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CpmsObservabilityWebhook"
            },
            "description": "The operator's webhook subscriptions."
          },
          "success": {
            "type": "boolean",
            "description": "Always true on a 2xx response.",
            "example": true
          },
          "timestamp": {
            "description": "UTC time the response was generated.",
            "format": "date-time",
            "example": "2026-06-19T18:42:09Z"
          }
        }
      },
      "CpmsObservabilityWebhookResponse": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/CpmsObservabilityWebhook"
          },
          "success": {
            "type": "boolean",
            "description": "Always true on a 2xx response.",
            "example": true
          },
          "timestamp": {
            "description": "UTC time the response was generated.",
            "format": "date-time",
            "example": "2026-06-19T18:42:09Z"
          }
        }
      },
      "CpmsObservabilityWebhookTestData": {
        "type": "object",
        "properties": {
          "webhook_id": {
            "type": "string",
            "description": "UUID of the subscription the test event was enqueued for.",
            "format": "uuid",
            "example": "c7e1a2b3-4d5e-6f70-8192-a3b4c5d6e7f8"
          },
          "test_enqueued": {
            "type": "boolean",
            "description": "Always true once the synthetic webhook.test event has been enqueued.",
            "example": true
          }
        }
      },
      "CpmsObservabilityWebhookTestResponse": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/CpmsObservabilityWebhookTestData"
          },
          "success": {
            "type": "boolean",
            "description": "Always true on a 2xx response.",
            "example": true
          },
          "timestamp": {
            "description": "UTC time the response was generated.",
            "format": "date-time",
            "example": "2026-06-19T18:42:09Z"
          }
        }
      },
      "CpmsOcppQueryResponse": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean",
            "description": "Whether the charger accepted/answered the command."
          },
          "chargerId": {
            "type": "string",
            "description": "The charger the command was sent to.",
            "format": "uuid"
          },
          "command": {
            "type": [
              "null",
              "string"
            ],
            "description": "The OCPP action invoked."
          },
          "ocppVersion": {
            "type": [
              "null",
              "string"
            ],
            "description": "The charger's OCPP version."
          },
          "errorCode": {
            "type": [
              "null",
              "string"
            ],
            "description": "Error code if the command failed/was rejected."
          },
          "errorDescription": {
            "type": [
              "null",
              "string"
            ],
            "description": "Human-readable error detail, if any."
          },
          "payload": {
            "type": [
              "null",
              "string"
            ],
            "description": "Raw OCPP response payload (JSON) returned by the charger — the GetChargingProfiles result set."
          },
          "timestamp": {
            "format": "date-time"
          }
        }
      },
      "CpmsOrgAddTeamMemberResponse": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/CpmsOrgAddTeamMemberResult"
          },
          "success": {
            "type": "boolean",
            "description": "Always true on a 2xx response.",
            "example": true
          },
          "timestamp": {
            "description": "UTC time the response was generated.",
            "format": "date-time",
            "example": "2026-06-20T18:42:09Z"
          }
        }
      },
      "CpmsOrgAddTeamMemberResult": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Stable user UUID of the added member.",
            "format": "uuid",
            "example": "11111111-2222-4333-8444-555566667777"
          },
          "email": {
            "type": [
              "null",
              "string"
            ],
            "description": "Added member's email address.",
            "example": "manager@islaverde.example.com"
          },
          "role": {
            "type": "string",
            "description": "Role the member was granted.",
            "example": "Manager"
          },
          "added": {
            "type": "boolean",
            "description": "Always true on success.",
            "example": true
          }
        }
      },
      "CpmsOrgApiKey": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Stable API key UUID. Use it in DELETE /api-keys/{id}.",
            "format": "uuid",
            "example": "9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d"
          },
          "name": {
            "type": "string",
            "description": "Operator-chosen key name.",
            "example": "Reporting agent (read-only)"
          },
          "description": {
            "type": [
              "null",
              "string"
            ],
            "description": "Operator-chosen key description.",
            "example": "Pulls nightly CDR exports."
          },
          "keyType": {
            "type": "string",
            "description": "Key type (e.g. Rest).",
            "example": "Rest"
          },
          "visibility": {
            "type": "string",
            "description": "Key visibility (Private for CPMS server-side keys).",
            "example": "Private"
          },
          "apiFamily": {
            "type": [
              "null",
              "string"
            ],
            "description": "API family the key belongs to (cpms).",
            "example": "cpms"
          },
          "keyClass": {
            "type": [
              "null",
              "string"
            ],
            "description": "Key class (ServerSide for CPMS keys).",
            "example": "ServerSide"
          },
          "keyEnvironment": {
            "type": [
              "null",
              "string"
            ],
            "description": "Key environment (live | test).",
            "example": "live"
          },
          "keyPrefix": {
            "type": "string",
            "description": "Leading characters of the key (safe to display).",
            "example": "pk_cpms_live_"
          },
          "last4": {
            "type": "string",
            "description": "Trailing characters of the key (safe to display).",
            "example": "a1b2"
          },
          "permissions": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The cpms:* scopes granted to this key."
          },
          "expiresAt": {
            "description": "UTC expiry, or null when the key never expires.",
            "format": "date-time",
            "example": "2027-01-01T00:00:00Z"
          },
          "isRevoked": {
            "type": "boolean",
            "description": "True when the key has been revoked.",
            "example": false
          },
          "isExpired": {
            "type": "boolean",
            "description": "True when the key's expiry has passed.",
            "example": false
          },
          "lastUsedAt": {
            "description": "UTC timestamp the key was last used, or null.",
            "format": "date-time",
            "example": "2026-06-19T03:00:00Z"
          },
          "usageCount": {
            "type": "integer",
            "description": "Number of requests served by this key.",
            "format": "int32",
            "example": 14820
          },
          "rateLimitPerHour": {
            "type": [
              "null",
              "integer"
            ],
            "description": "Per-hour rate limit for this key, or null for the default.",
            "format": "int32",
            "example": 5000
          },
          "createdAt": {
            "description": "UTC timestamp the key was created.",
            "format": "date-time",
            "example": "2026-03-12T08:00:00Z"
          }
        }
      },
      "CpmsOrgApiKeyListResponse": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CpmsOrgApiKey"
            },
            "description": "The operator's CPMS API keys (display fragments only)."
          },
          "success": {
            "type": "boolean",
            "description": "Always true on a 2xx response.",
            "example": true
          },
          "timestamp": {
            "description": "UTC time the response was generated.",
            "format": "date-time",
            "example": "2026-06-20T18:42:09Z"
          }
        }
      },
      "CpmsOrgBilling": {
        "type": "object",
        "properties": {
          "vatRate": {
            "type": "number",
            "description": "VAT / tax rate (percent) applied to invoices; defaults to 0.",
            "format": "double",
            "example": 11.5
          },
          "billingAddress": {
            "type": [
              "null",
              "string"
            ],
            "description": "Billing address for invoices, or null.",
            "example": "100 Av. Isla Verde, Carolina, PR 00979"
          },
          "invoicePrefix": {
            "type": "string",
            "description": "Prefix prepended to invoice numbers; defaults to INV.",
            "example": "INV"
          },
          "paymentTermsDays": {
            "type": "integer",
            "description": "Invoice payment terms in days; defaults to 30.",
            "format": "int32",
            "example": 30
          }
        }
      },
      "CpmsOrgBranding": {
        "type": "object",
        "properties": {
          "primaryColor": {
            "type": [
              "null",
              "string"
            ],
            "description": "Primary brand color (hex), falling back to the legacy PrimaryColorHex column.",
            "example": "#E2231A"
          },
          "secondaryColor": {
            "type": [
              "null",
              "string"
            ],
            "description": "Secondary brand color (hex), falling back to the legacy SecondaryColorHex column.",
            "example": "#1A1A1A"
          },
          "logoUrl": {
            "type": [
              "null",
              "string"
            ],
            "description": "URL of the network logo image, or null.",
            "example": "https://cdn.example.com/logo.svg"
          },
          "faviconUrl": {
            "type": [
              "null",
              "string"
            ],
            "description": "URL of the network favicon, or null.",
            "example": "https://cdn.example.com/favicon.ico"
          }
        }
      },
      "CpmsOrgCreatedApiKey": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Stable API key UUID.",
            "format": "uuid",
            "example": "9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d"
          },
          "name": {
            "type": "string",
            "description": "Operator-chosen key name.",
            "example": "Reporting agent (read-only)"
          },
          "visibility": {
            "type": "string",
            "description": "Key visibility (always Private for CPMS keys).",
            "example": "Private"
          },
          "apiFamily": {
            "type": [
              "null",
              "string"
            ],
            "description": "API family (cpms).",
            "example": "cpms"
          },
          "keyClass": {
            "type": [
              "null",
              "string"
            ],
            "description": "Key class (ServerSide).",
            "example": "ServerSide"
          },
          "keyPrefix": {
            "type": "string",
            "description": "Leading characters of the key (safe to display).",
            "example": "pk_cpms_live_"
          },
          "last4": {
            "type": "string",
            "description": "Trailing characters of the key (safe to display).",
            "example": "a1b2"
          },
          "key": {
            "type": [
              "null",
              "string"
            ],
            "description": "The full plaintext secret. Shown ONCE and never retrievable again — store it now.",
            "example": "pk_cpms_live_3f9a2c8e7b1d4f60a5c3e2d1b0a9f8e7"
          },
          "message": {
            "type": "string",
            "description": "Reminder that the secret will not be shown again.",
            "example": "Store this key securely. It will not be shown again."
          }
        }
      },
      "CpmsOrgCreatedApiKeyResponse": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/CpmsOrgCreatedApiKey"
          },
          "success": {
            "type": "boolean",
            "description": "Always true on a 2xx response.",
            "example": true
          },
          "timestamp": {
            "description": "UTC time the response was generated.",
            "format": "date-time",
            "example": "2026-06-20T18:42:09Z"
          }
        }
      },
      "CpmsOrgErrorResponse": {
        "type": "object",
        "properties": {
          "error": {
            "type": "string",
            "description": "Stable machine-readable error code (duplicated as `code`).",
            "example": "not_found"
          },
          "code": {
            "type": "string",
            "description": "Stable machine-readable error code.",
            "example": "not_found"
          },
          "message": {
            "type": "string",
            "description": "Human-readable explanation of the error.",
            "example": "Network 'c0ffee00-1234-4567-89ab-cdef01234567' not found"
          }
        }
      },
      "CpmsOrgRemoveTeamMemberResponse": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/CpmsOrgRemoveTeamMemberResult"
          },
          "success": {
            "type": "boolean",
            "description": "Always true on a 2xx response.",
            "example": true
          },
          "timestamp": {
            "description": "UTC time the response was generated.",
            "format": "date-time",
            "example": "2026-06-20T18:42:09Z"
          }
        }
      },
      "CpmsOrgRemoveTeamMemberResult": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Stable user UUID of the removed member.",
            "format": "uuid",
            "example": "11111111-2222-4333-8444-555566667777"
          },
          "removed": {
            "type": "boolean",
            "description": "Always true on success.",
            "example": true
          }
        }
      },
      "CpmsOrgRevokeApiKeyResponse": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/CpmsOrgRevokeApiKeyResult"
          },
          "success": {
            "type": "boolean",
            "description": "Always true on a 2xx response.",
            "example": true
          },
          "timestamp": {
            "description": "UTC time the response was generated.",
            "format": "date-time",
            "example": "2026-06-20T18:42:09Z"
          }
        }
      },
      "CpmsOrgRevokeApiKeyResult": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Stable API key UUID that was revoked.",
            "format": "uuid",
            "example": "9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d"
          },
          "revoked": {
            "type": "boolean",
            "description": "Always true on success.",
            "example": true
          },
          "deleted": {
            "type": "boolean",
            "description": "Always true on success (the key is soft-deleted).",
            "example": true
          }
        }
      },
      "CpmsOrgSettings": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Stable network UUID.",
            "format": "uuid",
            "example": "c0ffee00-1234-4567-89ab-cdef01234567"
          },
          "name": {
            "type": "string",
            "description": "Network display name.",
            "example": "Isla Verde Charging"
          },
          "description": {
            "type": [
              "null",
              "string"
            ],
            "description": "Network description.",
            "example": "Public charging across the Isla Verde district."
          },
          "contactEmail": {
            "type": [
              "null",
              "string"
            ],
            "description": "Network contact email.",
            "example": "ops@islaverde.example.com"
          },
          "contactPhone": {
            "type": [
              "null",
              "string"
            ],
            "description": "Network contact phone.",
            "example": "+1-787-555-0100"
          },
          "website": {
            "type": [
              "null",
              "string"
            ],
            "description": "Network public website, or null.",
            "example": "https://islaverde.example.com"
          },
          "country": {
            "type": [
              "null",
              "string"
            ],
            "description": "ISO country code for the network.",
            "example": "US"
          },
          "currency": {
            "type": [
              "null",
              "string"
            ],
            "description": "ISO-4217 default currency for the network.",
            "example": "USD"
          },
          "timeZone": {
            "type": "string",
            "description": "IANA time zone; defaults to UTC.",
            "example": "America/Puerto_Rico"
          },
          "isActive": {
            "type": "boolean",
            "description": "True when the network is active.",
            "example": true
          },
          "branding": {
            "description": "Branding fields for white-labeling.",
            "$ref": "#/components/schemas/CpmsOrgBranding"
          },
          "billing": {
            "description": "Billing / invoicing fields.",
            "$ref": "#/components/schemas/CpmsOrgBilling"
          }
        }
      },
      "CpmsOrgSettingsResponse": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/CpmsOrgSettings"
          },
          "success": {
            "type": "boolean",
            "description": "Always true on a 2xx response.",
            "example": true
          },
          "timestamp": {
            "description": "UTC time the response was generated.",
            "format": "date-time",
            "example": "2026-06-20T18:42:09Z"
          }
        }
      },
      "CpmsOrgSettingsUpdateResponse": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/CpmsOrgSettingsUpdateResult"
          },
          "success": {
            "type": "boolean",
            "description": "Always true on a 2xx response.",
            "example": true
          },
          "timestamp": {
            "description": "UTC time the response was generated.",
            "format": "date-time",
            "example": "2026-06-20T18:42:09Z"
          }
        }
      },
      "CpmsOrgSettingsUpdateResult": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Stable network UUID that was updated.",
            "format": "uuid",
            "example": "c0ffee00-1234-4567-89ab-cdef01234567"
          },
          "updated": {
            "type": "boolean",
            "description": "Always true on success.",
            "example": true
          }
        }
      },
      "CpmsOrgTeamListResponse": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CpmsOrgTeamMember"
            },
            "description": "The operator's team members."
          },
          "success": {
            "type": "boolean",
            "description": "Always true on a 2xx response.",
            "example": true
          },
          "timestamp": {
            "description": "UTC time the response was generated.",
            "format": "date-time",
            "example": "2026-06-20T18:42:09Z"
          }
        }
      },
      "CpmsOrgTeamMember": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Stable user UUID. Use it in PUT/DELETE /team/{id}.",
            "format": "uuid",
            "example": "11111111-2222-4333-8444-555566667777"
          },
          "email": {
            "type": "string",
            "description": "Member's email address.",
            "example": "manager@islaverde.example.com"
          },
          "firstName": {
            "type": "string",
            "description": "Member's first name.",
            "example": "Maria"
          },
          "lastName": {
            "type": "string",
            "description": "Member's last name.",
            "example": "Rivera"
          },
          "role": {
            "type": "string",
            "description": "Member's role on this network (Admin, Manager, TechSupport, Viewer).",
            "example": "Manager"
          },
          "joinedAt": {
            "description": "UTC timestamp the member joined the network.",
            "format": "date-time",
            "example": "2026-03-12T08:00:00Z"
          },
          "lastActiveAt": {
            "description": "UTC timestamp of the member's last login, or null.",
            "format": "date-time",
            "example": "2026-06-19T17:55:00Z"
          }
        }
      },
      "CpmsOrgUpdateTeamMemberResponse": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/CpmsOrgUpdateTeamMemberResult"
          },
          "success": {
            "type": "boolean",
            "description": "Always true on a 2xx response.",
            "example": true
          },
          "timestamp": {
            "description": "UTC time the response was generated.",
            "format": "date-time",
            "example": "2026-06-20T18:42:09Z"
          }
        }
      },
      "CpmsOrgUpdateTeamMemberResult": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Stable user UUID of the updated member.",
            "format": "uuid",
            "example": "11111111-2222-4333-8444-555566667777"
          },
          "role": {
            "type": "string",
            "description": "The role now assigned.",
            "example": "Admin"
          },
          "updated": {
            "type": "boolean",
            "description": "Always true on success.",
            "example": true
          }
        }
      },
      "CpmsPagination": {
        "type": "object",
        "properties": {
          "page": {
            "type": "integer",
            "description": "1-based page index of this result set.",
            "format": "int32",
            "example": 1
          },
          "pageSize": {
            "type": "integer",
            "description": "Items requested per page (1–100; defaults to 50).",
            "format": "int32",
            "example": 50
          },
          "total": {
            "type": "integer",
            "description": "Total number of items across all pages.",
            "format": "int32",
            "example": 137
          },
          "totalPages": {
            "type": "integer",
            "description": "Total number of pages at the current pageSize.",
            "format": "int32",
            "example": 3
          }
        }
      },
      "CpmsProvisioningLimitsDto": {
        "type": "object",
        "properties": {
          "planCode": {
            "type": "string",
            "description": "The plan code driving the tier ceilings (free | pro | enterprise | unmanaged).",
            "example": "pro"
          },
          "chargers": {
            "description": "Charger-count cap dimension.",
            "$ref": "#/components/schemas/CpmsLimitDimensionDto"
          },
          "connectors": {
            "description": "Billable-connector cap dimension — the per-connector-billed dimension, so the meaningful spend guard.",
            "$ref": "#/components/schemas/CpmsLimitDimensionDto"
          }
        }
      },
      "CpmsProvisioningLimitsResponse": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/CpmsProvisioningLimitsDto"
          },
          "success": {
            "type": "boolean"
          },
          "timestamp": {
            "format": "date-time"
          }
        }
      },
      "CpmsRebootRequest": {
        "type": "object",
        "properties": {
          "resetType": {
            "type": "string"
          }
        }
      },
      "CpmsRefundRequest": {
        "type": "object",
        "properties": {
          "amount": {
            "type": [
              "null",
              "number"
            ],
            "format": "double"
          },
          "reason": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "CpmsRegisterChargerRequest": {
        "required": [
          "serial"
        ],
        "type": "object",
        "properties": {
          "serial": {
            "type": "string"
          },
          "networkUuid": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "locationUuid": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "modelUuid": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "status": {
            "type": [
              "null",
              "string"
            ]
          },
          "firmwareVersion": {
            "type": [
              "null",
              "string"
            ]
          },
          "ocppVersion": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "CpmsRemoteControlRebootData": {
        "type": "object",
        "properties": {
          "chargerId": {
            "type": "string",
            "description": "Stable charger UUID the reset command was sent to.",
            "format": "uuid",
            "example": "4b2e9c10-7d8a-4a6e-9b1f-2c3d4e5f6a7b"
          },
          "resetType": {
            "type": "string",
            "description": "Reset kind requested: 'Soft' (graceful restart) or 'Hard' (power-cycle).",
            "example": "Soft"
          },
          "accepted": {
            "type": "boolean",
            "description": "True when the station accepted the Reset command.",
            "example": true
          },
          "message": {
            "type": "string",
            "description": "Human-readable confirmation of the dispatched reset.",
            "example": "Soft reset command sent successfully"
          }
        }
      },
      "CpmsRemoteControlRebootResponse": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/CpmsRemoteControlRebootData"
          },
          "success": {
            "type": "boolean",
            "description": "Always true on a 2xx response.",
            "example": true
          },
          "timestamp": {
            "description": "UTC time the response was generated.",
            "format": "date-time",
            "example": "2026-06-19T18:42:09Z"
          }
        }
      },
      "CpmsRemoteControlStartData": {
        "type": "object",
        "properties": {
          "chargerId": {
            "type": "string",
            "description": "Stable charger UUID the start command was sent to.",
            "format": "uuid",
            "example": "4b2e9c10-7d8a-4a6e-9b1f-2c3d4e5f6a7b"
          },
          "connectorNumber": {
            "type": "integer",
            "description": "Connector number (1-based) the session was started on.",
            "format": "int32",
            "example": 1
          },
          "idTag": {
            "type": "string",
            "description": "Authorization idTag the session was started under.",
            "example": "OPERATOR-START-001"
          },
          "accepted": {
            "type": "boolean",
            "description": "True when the station accepted the RemoteStartTransaction command.",
            "example": true
          },
          "deviceType": {
            "type": "string",
            "description": "Device transport the command was dispatched over (e.g. OCPP, IoT).",
            "example": "OCPP"
          },
          "transactionId": {
            "type": [
              "null",
              "string"
            ],
            "description": "OCPP transaction id when the device returns one immediately, else null (the session row is created on StartTransaction).",
            "example": "80231"
          },
          "message": {
            "type": "string",
            "description": "Human-readable guidance on how to resolve the resulting session.",
            "example": "Start command accepted. The session row is created when the charger confirms StartTransaction; resolve it via GET /api/cpms/v1/sessions?status=ACTIVE."
          }
        }
      },
      "CpmsRemoteControlStartResponse": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/CpmsRemoteControlStartData"
          },
          "success": {
            "type": "boolean",
            "description": "Always true on a 2xx response.",
            "example": true
          },
          "timestamp": {
            "description": "UTC time the response was generated.",
            "format": "date-time",
            "example": "2026-06-19T18:42:09Z"
          }
        }
      },
      "CpmsRemoteControlStopData": {
        "type": "object",
        "properties": {
          "chargerId": {
            "type": "string",
            "description": "Stable charger UUID the stop command was sent to.",
            "format": "uuid",
            "example": "4b2e9c10-7d8a-4a6e-9b1f-2c3d4e5f6a7b"
          },
          "sessionId": {
            "type": "string",
            "description": "UUID of the charging session that is being stopped.",
            "format": "uuid",
            "example": "7c1d2e30-5f6a-4b7c-8d9e-0a1b2c3d4e5f"
          },
          "status": {
            "type": "string",
            "description": "Transitional session status after the stop command was accepted (always 'STOPPING').",
            "example": "STOPPING"
          },
          "accepted": {
            "type": "boolean",
            "description": "True when the station accepted the RemoteStopTransaction command.",
            "example": true
          },
          "deviceType": {
            "type": "string",
            "description": "Device transport the command was dispatched over (e.g. OCPP, IoT).",
            "example": "OCPP"
          },
          "message": {
            "type": "string",
            "description": "Human-readable note that final session data arrives with the charger's StopTransaction.",
            "example": "Stop command accepted. Final session data arrives with the charger's StopTransaction."
          }
        }
      },
      "CpmsRemoteControlStopResponse": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/CpmsRemoteControlStopData"
          },
          "success": {
            "type": "boolean",
            "description": "Always true on a 2xx response.",
            "example": true
          },
          "timestamp": {
            "description": "UTC time the response was generated.",
            "format": "date-time",
            "example": "2026-06-19T18:42:09Z"
          }
        }
      },
      "CpmsRemoteStartRequest": {
        "type": "object",
        "properties": {
          "idTag": {
            "type": "string"
          },
          "connectorNumber": {
            "type": "integer",
            "format": "int32"
          }
        }
      },
      "CpmsRemoteStopRequest": {
        "type": "object",
        "properties": {
          "sessionId": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          }
        }
      },
      "CpmsScopeCatalog": {
        "type": "object",
        "properties": {
          "apiFamily": {
            "type": "string",
            "example": "cpms"
          },
          "reads": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Read scopes. `cpms:read` grants every `cpms:read:*`."
          },
          "writes": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Write scopes — off by default; request only what the integration needs."
          },
          "commands": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "ELEVATED command scopes (remote start/stop/reboot, billing actions). Excluded from the default operator set and only granted to Admin/Owner roles."
          },
          "note": {
            "type": "string"
          }
        }
      },
      "CpmsScopeCatalogResponse": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/CpmsScopeCatalog"
          },
          "success": {
            "type": "boolean",
            "example": true
          },
          "timestamp": {
            "format": "date-time"
          }
        }
      },
      "CpmsSessionDetail": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Stable session UUID.",
            "format": "uuid",
            "example": "7c3d8e21-9a4b-4c5d-8e6f-1a2b3c4d5e6f"
          },
          "status": {
            "type": "string",
            "description": "Session lifecycle state (PENDING, ACTIVE, COMPLETED, FAULTED, …).",
            "example": "ACTIVE"
          },
          "chargerId": {
            "type": "integer",
            "description": "Internal numeric id of the charger this session ran on.",
            "format": "int32",
            "example": 48
          },
          "networkId": {
            "type": "integer",
            "description": "Internal numeric id of the owning network.",
            "format": "int32",
            "example": 3
          },
          "energyKwh": {
            "type": "number",
            "description": "Energy delivered so far, in kWh.",
            "format": "double",
            "example": 18.42
          },
          "currentPowerKw": {
            "type": [
              "null",
              "number"
            ],
            "description": "Instantaneous power draw, in kW, or null when not charging.",
            "format": "double",
            "example": 11
          },
          "total": {
            "type": [
              "null",
              "number"
            ],
            "description": "Total charged so far in the session currency, or null if not yet costed.",
            "format": "double",
            "example": 7.95
          },
          "currency": {
            "type": "string",
            "description": "ISO 4217 currency code the session is billed in.",
            "example": "USD"
          },
          "startedAt": {
            "description": "UTC timestamp the session started.",
            "format": "date-time",
            "example": "2026-06-19T17:05:11Z"
          },
          "endedAt": {
            "description": "UTC timestamp the session ended, or null if still active.",
            "format": "date-time",
            "example": "2026-06-19T18:12:43Z"
          }
        }
      },
      "CpmsSessionEventDto": {
        "type": "object",
        "properties": {
          "eventType": {
            "type": [
              "null",
              "string"
            ],
            "description": "Event type, e.g. \"SessionStarted\", \"MeterValues\", \"SessionStopped\"."
          },
          "details": {
            "type": [
              "null",
              "string"
            ],
            "description": "Free-form event detail payload (string)."
          },
          "occurredAt": {
            "description": "When the event occurred (UTC).",
            "format": "date-time"
          }
        }
      },
      "CpmsSessionEventListResponse": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CpmsSessionEventDto"
            }
          },
          "sessionId": {
            "type": "string",
            "description": "The session these events belong to.",
            "format": "uuid"
          },
          "count": {
            "type": "integer",
            "description": "Number of events returned.",
            "format": "int32"
          },
          "success": {
            "type": "boolean"
          },
          "timestamp": {
            "format": "date-time"
          }
        }
      },
      "CpmsSessionListResponse": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CpmsSessionSummary"
            },
            "description": "The page of sessions."
          },
          "pagination": {
            "$ref": "#/components/schemas/CpmsPagination"
          },
          "success": {
            "type": "boolean",
            "description": "Always true on a 2xx response.",
            "example": true
          },
          "timestamp": {
            "description": "UTC time the response was generated.",
            "format": "date-time",
            "example": "2026-06-19T18:42:09Z"
          }
        }
      },
      "CpmsSessionMeterValuesResponse": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PublicApiMeterValueDto"
            },
            "description": "Meter-value samples for the session, oldest first (charging-curve order)."
          },
          "count": {
            "type": "integer",
            "description": "Number of samples returned in this response.",
            "format": "int32",
            "example": 96
          },
          "truncated": {
            "type": "boolean",
            "description": "True when the session has more samples than the requested limit and the curve was cut off.",
            "example": false
          },
          "success": {
            "type": "boolean",
            "description": "Always true on a 2xx response.",
            "example": true
          },
          "timestamp": {
            "description": "UTC time the response was generated.",
            "format": "date-time",
            "example": "2026-06-19T18:42:09Z"
          }
        }
      },
      "CpmsSessionResponse": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/CpmsSessionDetail"
          },
          "success": {
            "type": "boolean",
            "description": "Always true on a 2xx response.",
            "example": true
          },
          "timestamp": {
            "description": "UTC time the response was generated.",
            "format": "date-time",
            "example": "2026-06-19T18:42:09Z"
          }
        }
      },
      "CpmsSessionSummary": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Stable session UUID. Use it in GET /sessions/{id}.",
            "format": "uuid",
            "example": "7c3d8e21-9a4b-4c5d-8e6f-1a2b3c4d5e6f"
          },
          "status": {
            "type": "string",
            "description": "Session lifecycle state (PENDING, ACTIVE, COMPLETED, FAULTED, …).",
            "example": "COMPLETED"
          },
          "chargerId": {
            "type": "integer",
            "description": "Internal numeric id of the charger this session ran on. Prefer chargerUuid as the public handle.",
            "format": "int32",
            "example": 48
          },
          "chargerUuid": {
            "type": [
              "null",
              "string"
            ],
            "description": "Public UUID of the charger this session ran on — use it in GET /chargers/{uuid}. Null if the charger was since hard-removed.",
            "format": "uuid",
            "example": "4b2e9c10-7d8a-4a6e-9b1f-2c3d4e5f6a7b"
          },
          "chargerUid": {
            "type": [
              "null",
              "string"
            ],
            "description": "OCPP charge-point identity (chargePointId) of the charger — the human-readable label shown in operator UIs.",
            "example": "CP-IslaVerde-01"
          },
          "energyKwh": {
            "type": "number",
            "description": "Energy delivered over the session, in kWh.",
            "format": "double",
            "example": 18.42
          },
          "total": {
            "type": [
              "null",
              "number"
            ],
            "description": "Total charged for the session in the session currency, or null if not yet costed.",
            "format": "double",
            "example": 7.95
          },
          "currency": {
            "type": "string",
            "description": "ISO 4217 currency code the session was billed in.",
            "example": "USD"
          },
          "startedAt": {
            "description": "UTC timestamp the session started.",
            "format": "date-time",
            "example": "2026-06-19T17:05:11Z"
          },
          "endedAt": {
            "description": "UTC timestamp the session ended, or null if still active.",
            "format": "date-time",
            "example": "2026-06-19T18:12:43Z"
          }
        }
      },
      "CpmsSetDisplayMessageRequest": {
        "required": [
          "id",
          "message"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "description": "Operator-chosen message id (used later to clear it).",
            "format": "int32"
          },
          "message": {
            "description": "The message content.",
            "$ref": "#/components/schemas/CpmsDisplayMessageContent"
          },
          "priority": {
            "type": [
              "null",
              "string"
            ],
            "description": "When to show it: AlwaysFront, InFront, NormalCycle (default), Idle, Charging, Faulted."
          },
          "state": {
            "type": [
              "null",
              "string"
            ],
            "description": "Charger state the message applies to (e.g. Charging, Idle); null = any."
          },
          "startDateTime": {},
          "endDateTime": {}
        }
      },
      "CpmsSetLimitsRequest": {
        "type": "object",
        "properties": {
          "maxChargers": {
            "type": [
              "null",
              "integer"
            ],
            "description": "Self-imposed maximum number of chargers. null clears the cap (tier ceiling applies). Must be 0..tierLimit.",
            "format": "int32",
            "example": 10
          },
          "maxConnectors": {
            "type": [
              "null",
              "integer"
            ],
            "description": "Self-imposed maximum number of billable connectors. null clears the cap. Must be 0..tierLimit.",
            "format": "int32",
            "example": 20
          }
        }
      },
      "CpmsSetVariableMonitoringRequest": {
        "required": [
          "setMonitoringData"
        ],
        "type": "object",
        "properties": {
          "setMonitoringData": {
            "type": "array",
            "items": {
              "type": "object"
            },
            "description": "OCPP SetMonitoringData entries — each describes a monitor (component, variable, value, type: UpperThreshold/LowerThreshold/Delta/Periodic, severity 0-9). Passed through to the charger."
          }
        }
      },
      "CpmsSetVariablesRequest": {
        "type": "object",
        "properties": {
          "variables": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CpmsVariableSet"
            }
          }
        }
      },
      "CpmsSmartChargingLimitRequest": {
        "type": "object",
        "properties": {
          "connectorNumber": {
            "type": "integer",
            "format": "int32"
          },
          "unit": {
            "type": "string"
          },
          "limit": {
            "type": "number",
            "format": "double"
          }
        }
      },
      "CpmsTariffDetail": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Stable tariff UUID.",
            "format": "uuid",
            "example": "5e6f1a2b-3c4d-4e5f-8a9b-0c1d2e3f4a5b"
          },
          "name": {
            "type": "string",
            "description": "Human-readable tariff name.",
            "example": "Standard AC"
          },
          "type": {
            "type": "string",
            "description": "Tariff type/category (e.g. AD_HOC_PAYMENT, REGULAR).",
            "example": "REGULAR"
          },
          "currency": {
            "type": "string",
            "description": "ISO 4217 currency code the rates are quoted in.",
            "example": "USD"
          },
          "energyRate": {
            "type": [
              "null",
              "number"
            ],
            "description": "Price per kWh of energy delivered, or null if energy is not billed.",
            "format": "double",
            "example": 0.35
          },
          "timeRate": {
            "type": [
              "null",
              "number"
            ],
            "description": "Price per hour of charging time, or null if time is not billed.",
            "format": "double",
            "example": 2
          },
          "idleRate": {
            "type": "number",
            "description": "Idle/overstay fee per hour once charging completes.",
            "format": "double",
            "example": 0.5
          },
          "sessionFee": {
            "type": [
              "null",
              "number"
            ],
            "description": "Flat fee charged per session, or null if there is no session fee.",
            "format": "double",
            "example": 1
          },
          "idleGracePeriodMinutes": {
            "type": "integer",
            "description": "Minutes after charging completes before the idle/overstay fee begins to accrue.",
            "format": "int32",
            "example": 15
          },
          "idleFeeEnabled": {
            "type": "boolean",
            "description": "Whether the idle/overstay fee is charged at all.",
            "example": true
          },
          "idleFeeMaximum": {
            "type": [
              "null",
              "number"
            ],
            "description": "Per-session cap on accrued idle fees, or null for no cap.",
            "format": "double",
            "example": 20
          },
          "taxRate": {
            "type": [
              "null",
              "number"
            ],
            "description": "Tax percentage applied to the subtotal (0–100), or null if untaxed.",
            "format": "double",
            "example": 11.5
          },
          "peakHoursStart": {
            "type": [
              "null",
              "string"
            ],
            "description": "Local start of the daily peak window as \"HH:mm\", or null when no peak window is set.",
            "example": "17:00"
          },
          "peakHoursEnd": {
            "type": [
              "null",
              "string"
            ],
            "description": "Local end of the daily peak window as \"HH:mm\" (exclusive), or null.",
            "example": "21:00"
          },
          "peakMultiplier": {
            "type": [
              "null",
              "number"
            ],
            "description": "Rate multiplier applied to energy + time when a session starts within the peak window (e.g. 1.5 = +50%). Null = no peak surcharge.",
            "format": "double",
            "example": 1.5
          },
          "weekendMultiplier": {
            "type": [
              "null",
              "number"
            ],
            "description": "Rate multiplier applied to energy + time for sessions starting on Sat/Sun; takes precedence over the peak multiplier. Null = no weekend adjustment.",
            "format": "double",
            "example": 0.8
          },
          "isFree": {
            "type": "boolean",
            "description": "True if this tariff carries no charge to the driver.",
            "example": false
          }
        }
      },
      "CpmsTariffListResponse": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CpmsTariffSummary"
            },
            "description": "The page of tariffs."
          },
          "pagination": {
            "$ref": "#/components/schemas/CpmsPagination"
          },
          "success": {
            "type": "boolean",
            "description": "Always true on a 2xx response.",
            "example": true
          },
          "timestamp": {
            "description": "UTC time the response was generated.",
            "format": "date-time",
            "example": "2026-06-19T18:42:09Z"
          }
        }
      },
      "CpmsTariffResponse": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/CpmsTariffDetail"
          },
          "success": {
            "type": "boolean",
            "description": "Always true on a 2xx response.",
            "example": true
          },
          "timestamp": {
            "description": "UTC time the response was generated.",
            "format": "date-time",
            "example": "2026-06-19T18:42:09Z"
          }
        }
      },
      "CpmsTariffSummary": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Stable tariff UUID. Use it in GET /tariffs/{id}.",
            "format": "uuid",
            "example": "5e6f1a2b-3c4d-4e5f-8a9b-0c1d2e3f4a5b"
          },
          "name": {
            "type": "string",
            "description": "Human-readable tariff name.",
            "example": "Standard AC"
          },
          "type": {
            "type": "string",
            "description": "Tariff type/category (e.g. AD_HOC_PAYMENT, REGULAR).",
            "example": "REGULAR"
          },
          "currency": {
            "type": "string",
            "description": "ISO 4217 currency code the rates are quoted in.",
            "example": "USD"
          },
          "energyRate": {
            "type": [
              "null",
              "number"
            ],
            "description": "Price per kWh of energy delivered, or null if energy is not billed.",
            "format": "double",
            "example": 0.35
          },
          "timeRate": {
            "type": [
              "null",
              "number"
            ],
            "description": "Price per hour of charging time, or null if time is not billed.",
            "format": "double",
            "example": 2
          },
          "idleRate": {
            "type": "number",
            "description": "Idle/overstay fee per hour once charging completes.",
            "format": "double",
            "example": 0.5
          },
          "isFree": {
            "type": "boolean",
            "description": "True if this tariff carries no charge to the driver.",
            "example": false
          }
        }
      },
      "CpmsTariffWriteCreateResponse": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/CpmsTariffWriteCreateResult"
          },
          "success": {
            "type": "boolean",
            "description": "Always true on a 2xx response.",
            "example": true
          },
          "timestamp": {
            "description": "UTC time the response was generated.",
            "format": "date-time",
            "example": "2026-06-20T18:42:09Z"
          }
        }
      },
      "CpmsTariffWriteCreateResult": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Stable UUID of the newly-created tariff.",
            "format": "uuid",
            "example": "d4e5f6a7-b8c9-4012-8345-6789abcdef01"
          },
          "name": {
            "type": "string",
            "description": "Tariff name.",
            "example": "Standard AC"
          },
          "currency": {
            "type": "string",
            "description": "ISO-4217 currency of the tariff (defaults to the network currency when omitted).",
            "example": "USD"
          },
          "networkId": {
            "type": "string",
            "description": "UUID of the network the tariff was created on.",
            "format": "uuid",
            "example": "c0ffee00-1234-4567-89ab-cdef01234567"
          },
          "created": {
            "type": "boolean",
            "description": "Always true on success.",
            "example": true
          }
        }
      },
      "CpmsTariffWriteDeleteResponse": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/CpmsTariffWriteDeleteResult"
          },
          "success": {
            "type": "boolean",
            "description": "Always true on a 2xx response.",
            "example": true
          },
          "timestamp": {
            "description": "UTC time the response was generated.",
            "format": "date-time",
            "example": "2026-06-20T18:42:09Z"
          }
        }
      },
      "CpmsTariffWriteDeleteResult": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Stable UUID of the soft-deleted tariff.",
            "format": "uuid",
            "example": "d4e5f6a7-b8c9-4012-8345-6789abcdef01"
          },
          "deleted": {
            "type": "boolean",
            "description": "Always true on success.",
            "example": true
          },
          "deactivatedAssignments": {
            "type": "integer",
            "description": "How many active tariff assignments were cascade-deactivated by the delete.",
            "format": "int32",
            "example": 3
          }
        }
      },
      "CpmsTariffWriteErrorResponse": {
        "type": "object",
        "properties": {
          "error": {
            "type": "string",
            "description": "Stable machine-readable error category.",
            "example": "not_found"
          },
          "message": {
            "type": "string",
            "description": "Human-readable explanation of the error.",
            "example": "Tariff not found"
          },
          "code": {
            "type": [
              "null",
              "string"
            ],
            "description": "Stable machine-readable error code an agent branches on.",
            "example": "tariff_not_found"
          },
          "timestamp": {
            "description": "UTC time the error was generated.",
            "format": "date-time",
            "example": "2026-06-20T18:42:09Z"
          }
        }
      },
      "CpmsTariffWriteUpdateResponse": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/CpmsTariffWriteUpdateResult"
          },
          "success": {
            "type": "boolean",
            "description": "Always true on a 2xx response.",
            "example": true
          },
          "timestamp": {
            "description": "UTC time the response was generated.",
            "format": "date-time",
            "example": "2026-06-20T18:42:09Z"
          }
        }
      },
      "CpmsTariffWriteUpdateResult": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Stable UUID of the updated tariff.",
            "format": "uuid",
            "example": "d4e5f6a7-b8c9-4012-8345-6789abcdef01"
          },
          "updated": {
            "type": "boolean",
            "description": "Always true on success.",
            "example": true
          }
        }
      },
      "CpmsTriggerMessageRequest": {
        "type": "object",
        "properties": {
          "requestedMessage": {
            "type": "string"
          },
          "connectorNumber": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int32"
          }
        }
      },
      "CpmsUnlockConnectorRequest": {
        "type": "object",
        "properties": {
          "connectorNumber": {
            "type": "integer",
            "format": "int32"
          }
        }
      },
      "CpmsUpdateChargerRequest": {
        "type": "object",
        "properties": {
          "status": {
            "type": [
              "null",
              "string"
            ]
          },
          "physicalReference": {
            "type": [
              "null",
              "string"
            ]
          },
          "floorLevel": {
            "type": [
              "null",
              "string"
            ]
          },
          "locationUuid": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          }
        }
      },
      "CpmsUpdateFirmwareRequest": {
        "type": "object",
        "properties": {
          "firmwareVersionId": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "location": {
            "type": [
              "null",
              "string"
            ]
          },
          "retrieveDate": {
            "type": [
              "null",
              "string"
            ]
          },
          "retries": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int32"
          },
          "retryInterval": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int32"
          }
        }
      },
      "CpmsUpdateLocationRequest": {
        "type": "object",
        "properties": {
          "name": {
            "type": [
              "null",
              "string"
            ]
          },
          "address": {
            "type": [
              "null",
              "string"
            ]
          },
          "city": {
            "type": [
              "null",
              "string"
            ]
          },
          "state": {
            "type": [
              "null",
              "string"
            ]
          },
          "country": {
            "type": [
              "null",
              "string"
            ]
          },
          "postalCode": {
            "type": [
              "null",
              "string"
            ]
          },
          "contactPhone": {
            "type": [
              "null",
              "string"
            ]
          },
          "timezone": {
            "type": [
              "null",
              "string"
            ]
          },
          "latitude": {
            "type": "object",
            "anyOf": [
              {
                "type": "number"
              },
              {
                "enum": [
                  "NaN",
                  "Infinity",
                  "-Infinity"
                ]
              }
            ],
            "format": "double"
          },
          "longitude": {
            "type": "object",
            "anyOf": [
              {
                "type": "number"
              },
              {
                "enum": [
                  "NaN",
                  "Infinity",
                  "-Infinity"
                ]
              }
            ],
            "format": "double"
          }
        }
      },
      "CpmsUpdateSettingsRequest": {
        "type": "object",
        "properties": {
          "name": {
            "type": [
              "null",
              "string"
            ]
          },
          "description": {
            "type": [
              "null",
              "string"
            ]
          },
          "contactEmail": {
            "type": [
              "null",
              "string"
            ]
          },
          "contactPhone": {
            "type": [
              "null",
              "string"
            ]
          },
          "website": {
            "type": [
              "null",
              "string"
            ]
          },
          "timeZone": {
            "type": [
              "null",
              "string"
            ]
          },
          "currency": {
            "type": [
              "null",
              "string"
            ]
          },
          "branding": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/CpmsBrandingRequest"
              }
            ]
          },
          "billing": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/CpmsBillingRequest"
              }
            ]
          }
        }
      },
      "CpmsUpdateTariffRequest": {
        "type": "object",
        "properties": {
          "name": {
            "type": [
              "null",
              "string"
            ]
          },
          "description": {
            "type": [
              "null",
              "string"
            ]
          },
          "energyRate": {
            "type": [
              "null",
              "number"
            ],
            "format": "double"
          },
          "timeRate": {
            "type": [
              "null",
              "number"
            ],
            "format": "double"
          },
          "sessionFee": {
            "type": [
              "null",
              "number"
            ],
            "format": "double"
          },
          "idleRate": {
            "type": [
              "null",
              "number"
            ],
            "format": "double"
          },
          "idleGracePeriodMinutes": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int32"
          },
          "idleFeeEnabled": {
            "type": [
              "null",
              "boolean"
            ]
          },
          "idleFeeMaximum": {
            "type": [
              "null",
              "number"
            ],
            "format": "double"
          },
          "taxRate": {
            "type": [
              "null",
              "number"
            ],
            "format": "double"
          },
          "peakHoursStart": {
            "type": [
              "null",
              "string"
            ]
          },
          "peakHoursEnd": {
            "type": [
              "null",
              "string"
            ]
          },
          "peakMultiplier": {
            "type": [
              "null",
              "number"
            ],
            "format": "double"
          },
          "weekendMultiplier": {
            "type": [
              "null",
              "number"
            ],
            "format": "double"
          },
          "isFree": {
            "type": [
              "null",
              "boolean"
            ]
          }
        }
      },
      "CpmsUpdateTeamMemberRequest": {
        "type": "object",
        "properties": {
          "role": {
            "type": "string"
          }
        }
      },
      "CpmsUpdateWebhookRequest": {
        "required": [
          "url",
          "events",
          "description",
          "isActive"
        ],
        "type": "object",
        "properties": {
          "url": {
            "type": [
              "null",
              "string"
            ]
          },
          "events": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "type": "string"
            }
          },
          "description": {
            "type": [
              "null",
              "string"
            ]
          },
          "isActive": {
            "type": [
              "null",
              "boolean"
            ]
          }
        }
      },
      "CpmsUsageDay": {
        "type": "object",
        "properties": {
          "date": {
            "description": "UTC date (midnight) the counts apply to.",
            "format": "date-time",
            "example": "2026-06-19T00:00:00Z"
          },
          "family": {
            "type": "string",
            "description": "API family the usage was on (cpms or emsp).",
            "example": "cpms"
          },
          "env": {
            "type": "string",
            "description": "Environment the usage was on (live or test).",
            "example": "live"
          },
          "requests": {
            "type": "integer",
            "description": "Number of API requests counted that day.",
            "format": "int64",
            "example": 1842
          },
          "units": {
            "type": "integer",
            "description": "Metered billing units consumed that day.",
            "format": "int64",
            "example": 1842
          }
        }
      },
      "CpmsUsageResponse": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/CpmsUsageSummary"
          },
          "success": {
            "type": "boolean",
            "description": "Always true on a 2xx response.",
            "example": true
          },
          "timestamp": {
            "description": "UTC time the response was generated.",
            "format": "date-time",
            "example": "2026-06-19T18:42:09Z"
          }
        }
      },
      "CpmsUsageSummary": {
        "type": "object",
        "properties": {
          "totalRequests": {
            "type": "integer",
            "description": "Sum of requests across every returned day.",
            "format": "int64",
            "example": 54210
          },
          "totalUnits": {
            "type": "integer",
            "description": "Sum of metered units across every returned day.",
            "format": "int64",
            "example": 54210
          },
          "sinceUtc": {
            "description": "Start of the rollup window (UTC, inclusive).",
            "format": "date-time",
            "example": "2026-05-20T00:00:00Z"
          },
          "daily": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CpmsUsageDay"
            },
            "description": "Per-day consumption rows, newest first."
          }
        }
      },
      "CpmsVariableRef": {
        "type": "object",
        "properties": {
          "component": {
            "type": [
              "null",
              "string"
            ]
          },
          "variable": {
            "type": "string"
          }
        }
      },
      "CpmsVariableSet": {
        "type": "object",
        "properties": {
          "component": {
            "type": [
              "null",
              "string"
            ]
          },
          "variable": {
            "type": "string"
          },
          "value": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "CpmsWaiveIdleFeeRequest": {
        "type": "object",
        "properties": {
          "amount": {
            "type": [
              "null",
              "number"
            ],
            "format": "double"
          },
          "reason": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "CpmsWebhookWriteCreateResponse": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/CpmsWebhookWriteCreateResult"
          },
          "success": {
            "type": "boolean",
            "description": "Always true on a 2xx response.",
            "example": true
          },
          "timestamp": {
            "description": "UTC time the response was generated.",
            "format": "date-time",
            "example": "2026-06-20T18:42:09Z"
          }
        }
      },
      "CpmsWebhookWriteCreateResult": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Stable UUID of the new webhook subscription. Use it in DELETE /webhooks/{webhookId}.",
            "format": "uuid",
            "example": "e1d2c3b4-a596-4877-8c9d-0e1f2a3b4c5d"
          },
          "url": {
            "type": "string",
            "description": "The HTTPS endpoint events will be POSTed to.",
            "example": "https://hooks.example.com/phevnix"
          },
          "events": {
            "type": "string",
            "description": "Comma-separated event types subscribed to, or '*' for all events.",
            "example": "charging.session.started,charging.session.stopped"
          },
          "description": {
            "type": "string",
            "description": "Operator-chosen description of the subscription.",
            "example": "Billing reconciliation hook"
          },
          "hmac_secret": {
            "type": "string",
            "description": "The HMAC signing secret for verifying delivery signatures. Returned ONCE on create — store it now.",
            "example": "whsec_3f9a2c8e7b1d4f60a5c3e2d1b0a9f8e7"
          },
          "is_active": {
            "type": "boolean",
            "description": "True when the subscription is active and will receive deliveries.",
            "example": true
          },
          "created_at": {
            "description": "UTC timestamp the subscription was created.",
            "format": "date-time",
            "example": "2026-06-20T18:42:09Z"
          }
        }
      },
      "CpmsWebhookWriteDeleteResponse": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/CpmsWebhookWriteDeleteResult"
          },
          "success": {
            "type": "boolean",
            "description": "Always true on a 2xx response.",
            "example": true
          },
          "timestamp": {
            "description": "UTC time the response was generated.",
            "format": "date-time",
            "example": "2026-06-20T18:42:09Z"
          }
        }
      },
      "CpmsWebhookWriteDeleteResult": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Stable UUID of the deleted webhook subscription.",
            "format": "uuid",
            "example": "e1d2c3b4-a596-4877-8c9d-0e1f2a3b4c5d"
          },
          "deleted": {
            "type": "boolean",
            "description": "Always true on success.",
            "example": true
          }
        }
      },
      "CpmsWebhookWriteErrorResponse": {
        "type": "object",
        "properties": {
          "error": {
            "type": "string",
            "description": "Stable machine-readable error category.",
            "example": "invalid_url"
          },
          "message": {
            "type": "string",
            "description": "Human-readable explanation of the error.",
            "example": "A valid HTTPS URL is required"
          },
          "code": {
            "type": [
              "null",
              "string"
            ],
            "description": "Stable machine-readable error code an agent branches on.",
            "example": "invalid_url"
          },
          "timestamp": {
            "description": "UTC time the error was generated.",
            "format": "date-time",
            "example": "2026-06-20T18:42:09Z"
          }
        }
      },
      "OcppCommandResponse": {
        "type": "object",
        "properties": {
          "isSuccess": {
            "type": "boolean"
          },
          "errorCode": {
            "type": [
              "null",
              "string"
            ]
          },
          "errorDescription": {
            "type": [
              "null",
              "string"
            ]
          },
          "retryable": {
            "type": "boolean"
          },
          "payloadJson": {
            "type": [
              "null",
              "string"
            ]
          },
          "messageId": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "PublicApiErrorResponse": {
        "type": "object",
        "properties": {
          "error": {
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "code": {
            "type": [
              "null",
              "string"
            ]
          },
          "timestamp": {
            "format": "date-time"
          },
          "details": {
            "type": [
              "null",
              "object"
            ],
            "additionalProperties": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          }
        }
      },
      "PublicApiMeterValueDto": {
        "type": "object",
        "properties": {
          "timestamp": {
            "description": "UTC time the charger captured this sample.",
            "format": "date-time",
            "example": "2026-06-19T18:21:30Z"
          },
          "meterValue": {
            "type": "number",
            "description": "Cumulative active-energy register at this sample (the raw OCPP Energy.Active.Import.Register value, kWh). Subtract consecutive readings for interval consumption.",
            "format": "double",
            "example": 14.382
          },
          "powerKw": {
            "type": [
              "null",
              "number"
            ],
            "description": "Instantaneous active power draw at this sample, in kW.",
            "format": "double",
            "example": 7.2
          },
          "energyWh": {
            "type": [
              "null",
              "number"
            ],
            "description": "Interval energy delivered since the previous sample, in Wh (when the charger reports it).",
            "format": "double",
            "example": 120
          },
          "currentA": {
            "type": [
              "null",
              "number"
            ],
            "description": "Phase L1 current, in amperes.",
            "format": "double",
            "example": 31.5
          },
          "currentB": {
            "type": [
              "null",
              "number"
            ],
            "description": "Phase L2 current, in amperes (3-phase chargers only).",
            "format": "double"
          },
          "currentC": {
            "type": [
              "null",
              "number"
            ],
            "description": "Phase L3 current, in amperes (3-phase chargers only).",
            "format": "double"
          },
          "voltageA": {
            "type": [
              "null",
              "number"
            ],
            "description": "Phase L1 voltage, in volts.",
            "format": "double",
            "example": 230.1
          },
          "voltageB": {
            "type": [
              "null",
              "number"
            ],
            "description": "Phase L2 voltage, in volts (3-phase chargers only).",
            "format": "double"
          },
          "voltageC": {
            "type": [
              "null",
              "number"
            ],
            "description": "Phase L3 voltage, in volts (3-phase chargers only).",
            "format": "double"
          },
          "stateOfCharge": {
            "type": [
              "null",
              "integer"
            ],
            "description": "Vehicle battery state of charge at this sample, 0–100 (when the EV reports it over OCPP).",
            "format": "int32",
            "example": 64
          },
          "temperature": {
            "type": [
              "null",
              "number"
            ],
            "description": "Connector/charger temperature at this sample, in °C (when reported).",
            "format": "double"
          }
        }
      },
      "UpdateCpmsConnectorRequest": {
        "type": "object",
        "properties": {
          "standard": {
            "type": [
              "null",
              "string"
            ]
          },
          "format": {
            "type": [
              "null",
              "string"
            ]
          },
          "powerType": {
            "type": [
              "null",
              "string"
            ]
          },
          "maxVoltage": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int32"
          },
          "maxAmperage": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int32"
          },
          "maxPower": {
            "type": [
              "null",
              "number"
            ],
            "format": "double"
          },
          "status": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "WalletCreditRequest": {
        "required": [
          "driverId",
          "amount"
        ],
        "type": "object",
        "properties": {
          "driverId": {
            "type": "string",
            "format": "uuid"
          },
          "amount": {
            "type": "number",
            "format": "double"
          },
          "currency": {
            "type": [
              "null",
              "string"
            ]
          },
          "networkUuid": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "reason": {
            "type": [
              "null",
              "string"
            ]
          },
          "idempotencyKey": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      }
    },
    "securitySchemes": {
      "ApiKey": {
        "type": "apiKey",
        "description": "ProRanked public API key. Send it in the X-API-Key header on every request to the eMSP (/emsp/v1) and CPMS (/cpms/v1) APIs.",
        "name": "X-API-Key",
        "in": "header"
      },
      "Bearer": {
        "type": "http",
        "description": "Driver access token (JWT) obtained from /emsp/v1/auth/driver/login. Required IN ADDITION to the X-API-Key on eMSP write operations that act on a driver's own resources.",
        "scheme": "bearer",
        "bearerFormat": "JWT"
      },
      "CpmsOperatorOAuth": {
        "type": "http",
        "description": "Operator OAuth (ProRanked Connect \"Shape 2\") — for backend-less CPMS SPAs. Sign the operator in at id.proranked.com (authorization_code + PKCE), then send the resulting role-scoped token as 'Authorization: Bearer <token>' (or 'DPoP <token>' if sender-constrained) on /cpms/v1 requests. An alternative to X-API-Key — no server-held secret required. See the OAuth guide for the full flow.",
        "scheme": "bearer",
        "bearerFormat": "JWT"
      },
      "OCPIToken": {
        "type": "apiKey",
        "description": "OCPI Token Authorization header. Enter the token WITH the 'Token ' prefix.\r\nExample: Token test-token-1234567890abcdef1234567890abcdef1234567890abcdef1234567890\r\n\r\nTest tokens from seed data:\r\n- US Test EMSP: Token test-token-1234567890abcdef1234567890abcdef1234567890abcdef1234567890\r\n- EU EMSP: Token emsp-token-abcdef1234567890abcdef1234567890abcdef1234567890abcdef123456",
        "name": "Authorization",
        "in": "header"
      }
    }
  },
  "tags": [
    {
      "name": "Account"
    },
    {
      "name": ".Well Known"
    },
    {
      "name": "Analytics"
    },
    {
      "name": "API Keys"
    },
    {
      "name": "Audit Log"
    },
    {
      "name": "Charger Models"
    },
    {
      "name": "Chargers"
    },
    {
      "name": "Connectors"
    },
    {
      "name": "Diagnostic Files"
    },
    {
      "name": "Events"
    },
    {
      "name": "Firmware"
    },
    {
      "name": "Fraud"
    },
    {
      "name": "Limits"
    },
    {
      "name": "Load Balancing"
    },
    {
      "name": "Locations"
    },
    {
      "name": "Manufacturers"
    },
    {
      "name": "Me Key"
    },
    {
      "name": "Networks"
    },
    {
      "name": "Reports"
    },
    {
      "name": "Sessions"
    },
    {
      "name": "Settings"
    },
    {
      "name": "Smart Charging"
    },
    {
      "name": "Tariffs"
    },
    {
      "name": "Team"
    },
    {
      "name": "Transactions"
    },
    {
      "name": "Usage"
    },
    {
      "name": "Wallets"
    },
    {
      "name": "Webhooks"
    }
  ]
}
