{
  "openapi": "3.1.1",
  "info": {
    "title": "ProRanked OCPI Roaming",
    "version": "ocpi"
  },
  "servers": [
    {
      "url": "https://api.proranked.com"
    }
  ],
  "paths": {
    "/ocpi/versions": {
      "get": {
        "tags": [
          "Versions"
        ],
        "description": "Get all supported OCPI versions",
        "operationId": "GetOCPIVersions",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OCPIResponseOfListOfVersionDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OCPIError"
                }
              }
            }
          }
        },
        "security": [
          {}
        ]
      }
    },
    "/ocpi/{version}": {
      "get": {
        "tags": [
          "{Version}"
        ],
        "description": "Get details for a specific OCPI version including available endpoints",
        "operationId": "GetOCPIVersionDetails",
        "parameters": [
          {
            "name": "version",
            "in": "path",
            "description": "OCPI version identifier, e.g. 2.2.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OCPIResponseOfVersionDetailsDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OCPIError"
                }
              }
            }
          }
        },
        "security": [
          {}
        ]
      }
    },
    "/ocpi/{version}/credentials": {
      "get": {
        "tags": [
          "{Version}"
        ],
        "description": "Get credentials for this CPO",
        "operationId": "GetOCPICredentials",
        "parameters": [
          {
            "name": "version",
            "in": "path",
            "description": "OCPI version identifier, e.g. 2.2.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OCPIResponseOfCredentialsDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OCPIError"
                }
              }
            }
          }
        },
        "security": [
          {}
        ]
      },
      "post": {
        "tags": [
          "{Version}"
        ],
        "description": "Register new partner credentials",
        "operationId": "RegisterOCPICredentials",
        "parameters": [
          {
            "name": "version",
            "in": "path",
            "description": "OCPI version identifier, e.g. 2.2.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OCPIResponseOfCredentialsDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OCPIError"
                }
              }
            }
          }
        },
        "security": [
          {}
        ]
      },
      "put": {
        "tags": [
          "{Version}"
        ],
        "description": "Update existing partner credentials",
        "operationId": "UpdateOCPICredentials",
        "parameters": [
          {
            "name": "version",
            "in": "path",
            "description": "OCPI version identifier, e.g. 2.2.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CredentialsDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OCPIResponseOfCredentialsDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OCPIError"
                }
              }
            }
          }
        },
        "security": [
          {}
        ]
      }
    },
    "/ocpi/{version}/credentials/{country_code}/{party_id}": {
      "delete": {
        "tags": [
          "{Version}"
        ],
        "description": "Delete partner credentials",
        "operationId": "DeleteOCPICredentials",
        "parameters": [
          {
            "name": "version",
            "in": "path",
            "description": "OCPI version identifier, e.g. 2.2.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "country_code",
            "in": "path",
            "description": "OCPI party country code, ISO 3166-1 alpha-2.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "party_id",
            "in": "path",
            "description": "OCPI party identifier, three characters.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OCPIResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OCPIError"
                }
              }
            }
          }
        },
        "security": [
          {}
        ]
      }
    },
    "/ocpi/cpo/2.2/locations": {
      "get": {
        "tags": [
          "Cpo"
        ],
        "description": "Get all locations with optional filtering",
        "operationId": "GetOCPILocations",
        "parameters": [
          {
            "name": "date_from",
            "in": "query",
            "description": "Return only objects last updated at or after this time. ISO-8601.",
            "schema": {
              "format": "date-time"
            }
          },
          {
            "name": "date_to",
            "in": "query",
            "description": "Return only objects last updated before this time. ISO-8601.",
            "schema": {
              "format": "date-time"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "description": "Number of items to skip before returning results.",
            "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/OCPIResponseOfListOfLocationDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OCPIError"
                }
              }
            }
          }
        },
        "security": [
          {}
        ]
      }
    },
    "/ocpi/cpo/2.2/locations/{location_id}": {
      "get": {
        "tags": [
          "Cpo"
        ],
        "description": "Get a specific location by ID",
        "operationId": "GetOCPILocationById",
        "parameters": [
          {
            "name": "location_id",
            "in": "path",
            "description": "OCPI location identifier, unique within the party.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OCPIResponseOfLocationDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OCPIError"
                }
              }
            }
          }
        },
        "security": [
          {}
        ]
      },
      "put": {
        "tags": [
          "Cpo"
        ],
        "description": "Create or replace a location",
        "operationId": "PutOCPILocation",
        "parameters": [
          {
            "name": "location_id",
            "in": "path",
            "description": "OCPI location identifier, unique within the party.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LocationDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OCPIResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OCPIError"
                }
              }
            }
          }
        },
        "security": [
          {}
        ]
      },
      "patch": {
        "tags": [
          "Cpo"
        ],
        "description": "Partially update a location",
        "operationId": "PatchOCPILocation",
        "parameters": [
          {
            "name": "location_id",
            "in": "path",
            "description": "OCPI location identifier, unique within the party.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OCPIResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OCPIError"
                }
              }
            }
          }
        },
        "security": [
          {}
        ]
      }
    },
    "/ocpi/cpo/2.2/locations/evse/{evse_uid}": {
      "get": {
        "tags": [
          "Cpo"
        ],
        "description": "Get a specific EVSE by its UID only",
        "operationId": "GetOCPIEvseById",
        "parameters": [
          {
            "name": "evse_uid",
            "in": "path",
            "description": "OCPI EVSE identifier, unique within its location.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OCPIResponseOfEvseDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OCPIError"
                }
              }
            }
          }
        },
        "security": [
          {}
        ]
      }
    },
    "/ocpi/cpo/2.2/locations/{location_id}/{evse_uid}": {
      "get": {
        "tags": [
          "Cpo"
        ],
        "description": "Get a specific EVSE at a location",
        "operationId": "GetOCPIEvse",
        "parameters": [
          {
            "name": "location_id",
            "in": "path",
            "description": "OCPI location identifier, unique within the party.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "evse_uid",
            "in": "path",
            "description": "OCPI EVSE identifier, unique within its location.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OCPIResponseOfEvseDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OCPIError"
                }
              }
            }
          }
        },
        "security": [
          {}
        ]
      },
      "put": {
        "tags": [
          "Cpo"
        ],
        "description": "Create or replace an EVSE",
        "operationId": "PutOCPIEvse",
        "parameters": [
          {
            "name": "location_id",
            "in": "path",
            "description": "OCPI location identifier, unique within the party.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "evse_uid",
            "in": "path",
            "description": "OCPI EVSE identifier, unique within its location.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EvseDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OCPIResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OCPIError"
                }
              }
            }
          }
        },
        "security": [
          {}
        ]
      },
      "patch": {
        "tags": [
          "Cpo"
        ],
        "description": "Partially update an EVSE",
        "operationId": "PatchOCPIEvse",
        "parameters": [
          {
            "name": "location_id",
            "in": "path",
            "description": "OCPI location identifier, unique within the party.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "evse_uid",
            "in": "path",
            "description": "OCPI EVSE identifier, unique within its location.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OCPIResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OCPIError"
                }
              }
            }
          }
        },
        "security": [
          {}
        ]
      }
    },
    "/ocpi/cpo/2.2/locations/{location_id}/{evse_uid}/{connector_id}": {
      "get": {
        "tags": [
          "Cpo"
        ],
        "description": "Get a specific connector at an EVSE",
        "operationId": "GetOCPIConnector",
        "parameters": [
          {
            "name": "location_id",
            "in": "path",
            "description": "OCPI location identifier, unique within the party.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "evse_uid",
            "in": "path",
            "description": "OCPI EVSE identifier, unique within its location.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "connector_id",
            "in": "path",
            "description": "OCPI connector identifier, unique within its EVSE.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OCPIResponseOfConnectorDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OCPIError"
                }
              }
            }
          }
        },
        "security": [
          {}
        ]
      },
      "put": {
        "tags": [
          "Cpo"
        ],
        "description": "Create or replace a connector",
        "operationId": "PutOCPIConnector",
        "parameters": [
          {
            "name": "location_id",
            "in": "path",
            "description": "OCPI location identifier, unique within the party.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "evse_uid",
            "in": "path",
            "description": "OCPI EVSE identifier, unique within its location.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "connector_id",
            "in": "path",
            "description": "OCPI connector identifier, unique within its EVSE.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ConnectorDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OCPIResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OCPIError"
                }
              }
            }
          }
        },
        "security": [
          {}
        ]
      },
      "patch": {
        "tags": [
          "Cpo"
        ],
        "description": "Partially update a connector",
        "operationId": "PatchOCPIConnector",
        "parameters": [
          {
            "name": "location_id",
            "in": "path",
            "description": "OCPI location identifier, unique within the party.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "evse_uid",
            "in": "path",
            "description": "OCPI EVSE identifier, unique within its location.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "connector_id",
            "in": "path",
            "description": "OCPI connector identifier, unique within its EVSE.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OCPIResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OCPIError"
                }
              }
            }
          }
        },
        "security": [
          {}
        ]
      }
    },
    "/ocpi/cpo/2.2/sessions": {
      "get": {
        "tags": [
          "Cpo"
        ],
        "operationId": "GetOCPISessions",
        "parameters": [
          {
            "name": "date_from",
            "in": "query",
            "description": "Return only objects last updated at or after this time. ISO-8601.",
            "schema": {
              "format": "date-time"
            }
          },
          {
            "name": "date_to",
            "in": "query",
            "description": "Return only objects last updated before this time. ISO-8601.",
            "schema": {
              "format": "date-time"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "description": "Number of items to skip before returning results.",
            "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/OCPIPaginatedResponseOfSessionDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OCPIError"
                }
              }
            }
          }
        },
        "security": [
          {}
        ]
      }
    },
    "/ocpi/cpo/2.2/sessions/{country_code}/{party_id}/{session_id}": {
      "get": {
        "tags": [
          "Cpo"
        ],
        "operationId": "GetOCPISessionById",
        "parameters": [
          {
            "name": "country_code",
            "in": "path",
            "description": "OCPI party country code, ISO 3166-1 alpha-2.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "party_id",
            "in": "path",
            "description": "OCPI party identifier, three characters.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "session_id",
            "in": "path",
            "description": "OCPI session identifier, unique within the party.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OCPIResponseOfSessionDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OCPIError"
                }
              }
            }
          }
        },
        "security": [
          {}
        ]
      },
      "patch": {
        "tags": [
          "Cpo"
        ],
        "operationId": "UpdateOCPISession",
        "parameters": [
          {
            "name": "country_code",
            "in": "path",
            "description": "OCPI party country code, ISO 3166-1 alpha-2.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "party_id",
            "in": "path",
            "description": "OCPI party identifier, three characters.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "session_id",
            "in": "path",
            "description": "OCPI session identifier, unique within the party.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SessionUpdateDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OCPIResponseOfSessionDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OCPIError"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OCPIError"
                }
              }
            }
          }
        },
        "security": [
          {}
        ]
      }
    },
    "/ocpi/cpo/2.2/cdrs": {
      "get": {
        "tags": [
          "Cpo"
        ],
        "operationId": "GetOCPICDRs",
        "parameters": [
          {
            "name": "offset",
            "in": "query",
            "description": "Number of items to skip before returning results.",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum number of items to return.",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "date_from",
            "in": "query",
            "description": "Return only objects last updated at or after this time. ISO-8601.",
            "schema": {
              "format": "date-time"
            }
          },
          {
            "name": "date_to",
            "in": "query",
            "description": "Return only objects last updated before this time. ISO-8601.",
            "schema": {
              "format": "date-time"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "security": [
          {}
        ]
      }
    },
    "/ocpi/cpo/2.2/cdrs/{country_code}/{party_id}/{cdr_id}": {
      "get": {
        "tags": [
          "Cpo"
        ],
        "operationId": "GetOCPICDRById",
        "parameters": [
          {
            "name": "country_code",
            "in": "path",
            "description": "OCPI party country code, ISO 3166-1 alpha-2.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "party_id",
            "in": "path",
            "description": "OCPI party identifier, three characters.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "cdr_id",
            "in": "path",
            "description": "OCPI CDR identifier, unique within the party.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          },
          "404": {
            "description": "Not Found"
          }
        },
        "security": [
          {}
        ]
      }
    },
    "/ocpi/cpo/2.2/tokens": {
      "get": {
        "tags": [
          "Cpo"
        ],
        "operationId": "GetOCPITokens",
        "parameters": [
          {
            "name": "offset",
            "in": "query",
            "description": "Number of items to skip before returning results.",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum number of items to return.",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "date_from",
            "in": "query",
            "description": "Return only objects last updated at or after this time. ISO-8601.",
            "schema": {
              "format": "date-time"
            }
          },
          {
            "name": "date_to",
            "in": "query",
            "description": "Return only objects last updated before this time. ISO-8601.",
            "schema": {
              "format": "date-time"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "security": [
          {}
        ]
      }
    },
    "/ocpi/cpo/2.2/tokens/{token_uid}": {
      "get": {
        "tags": [
          "Cpo"
        ],
        "operationId": "GetOCPITokenByUid",
        "parameters": [
          {
            "name": "token_uid",
            "in": "path",
            "description": "OCPI token identifier, unique within the party.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "security": [
          {}
        ]
      }
    },
    "/ocpi/cpo/2.2/tokens/{country_code}/{party_id}/{token_uid}": {
      "put": {
        "tags": [
          "Cpo"
        ],
        "operationId": "UpdateOCPIToken",
        "parameters": [
          {
            "name": "country_code",
            "in": "path",
            "description": "OCPI party country code, ISO 3166-1 alpha-2.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "party_id",
            "in": "path",
            "description": "OCPI party identifier, three characters.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "token_uid",
            "in": "path",
            "description": "OCPI token identifier, unique within the party.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "security": [
          {}
        ]
      }
    },
    "/ocpi/cpo/2.2/commands/{command}/{command_id}": {
      "post": {
        "tags": [
          "Cpo"
        ],
        "operationId": "ReceiveOCPICommand",
        "parameters": [
          {
            "name": "command",
            "in": "path",
            "description": "OCPI command name, e.g. START_SESSION or STOP_SESSION.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "command_id",
            "in": "path",
            "description": "Identifier correlating the asynchronous command result with this request.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "security": [
          {}
        ]
      }
    },
    "/ocpi/cpo/2.2/commands/{command_id}": {
      "get": {
        "tags": [
          "Cpo"
        ],
        "operationId": "GetOCPICommandResult",
        "parameters": [
          {
            "name": "command_id",
            "in": "path",
            "description": "Identifier correlating the asynchronous command result with this request.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "security": [
          {}
        ]
      }
    },
    "/ocpi/cpo/2.2/tariffs": {
      "get": {
        "tags": [
          "Cpo"
        ],
        "operationId": "GetOCPITariffs_v0",
        "parameters": [
          {
            "name": "offset",
            "in": "query",
            "description": "Number of items to skip before returning results.",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum number of items to return.",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "date_from",
            "in": "query",
            "description": "Return only objects last updated at or after this time. ISO-8601.",
            "schema": {
              "format": "date-time"
            }
          },
          {
            "name": "date_to",
            "in": "query",
            "description": "Return only objects last updated before this time. ISO-8601.",
            "schema": {
              "format": "date-time"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "security": [
          {}
        ]
      }
    },
    "/ocpi/cpo/2.2/tariffs/{tariff_id}": {
      "get": {
        "tags": [
          "Cpo"
        ],
        "operationId": "GetOCPITariffById_v0",
        "parameters": [
          {
            "name": "tariff_id",
            "in": "path",
            "description": "OCPI tariff identifier, unique within the party.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "security": [
          {}
        ]
      }
    },
    "/ocpi/2.2.1/tariffs": {
      "get": {
        "tags": [
          "2.2.1"
        ],
        "operationId": "GetOCPITariffs_v1",
        "parameters": [
          {
            "name": "offset",
            "in": "query",
            "description": "Number of items to skip before returning results.",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum number of items to return.",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "date_from",
            "in": "query",
            "description": "Return only objects last updated at or after this time. ISO-8601.",
            "schema": {
              "format": "date-time"
            }
          },
          {
            "name": "date_to",
            "in": "query",
            "description": "Return only objects last updated before this time. ISO-8601.",
            "schema": {
              "format": "date-time"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "security": [
          {}
        ]
      }
    },
    "/ocpi/2.2.1/tariffs/{tariff_id}": {
      "get": {
        "tags": [
          "2.2.1"
        ],
        "operationId": "GetOCPITariffById_v1",
        "parameters": [
          {
            "name": "tariff_id",
            "in": "path",
            "description": "OCPI tariff identifier, unique within the party.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "security": [
          {}
        ]
      }
    },
    "/ocpi/2.2/tariffs": {
      "get": {
        "tags": [
          "2.2"
        ],
        "operationId": "GetOCPITariffs_v2",
        "parameters": [
          {
            "name": "offset",
            "in": "query",
            "description": "Number of items to skip before returning results.",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum number of items to return.",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "date_from",
            "in": "query",
            "description": "Return only objects last updated at or after this time. ISO-8601.",
            "schema": {
              "format": "date-time"
            }
          },
          {
            "name": "date_to",
            "in": "query",
            "description": "Return only objects last updated before this time. ISO-8601.",
            "schema": {
              "format": "date-time"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "security": [
          {}
        ]
      }
    },
    "/ocpi/2.2/tariffs/{tariff_id}": {
      "get": {
        "tags": [
          "2.2"
        ],
        "operationId": "GetOCPITariffById_v2",
        "parameters": [
          {
            "name": "tariff_id",
            "in": "path",
            "description": "OCPI tariff identifier, unique within the party.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "security": [
          {}
        ]
      }
    },
    "/ocpi/cpo/2.2/chargingprofiles/{session_id}": {
      "get": {
        "tags": [
          "Cpo"
        ],
        "operationId": "GetChargingProfile",
        "parameters": [
          {
            "name": "session_id",
            "in": "path",
            "description": "OCPI session identifier, unique within the party.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "duration",
            "in": "query",
            "description": "Duration of the requested window, in seconds.",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "response_url",
            "in": "query",
            "description": "URL the asynchronous result is POSTed back to.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "security": [
          {}
        ]
      },
      "put": {
        "tags": [
          "Cpo"
        ],
        "operationId": "SetChargingProfile",
        "parameters": [
          {
            "name": "session_id",
            "in": "path",
            "description": "OCPI session identifier, unique within the party.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SetChargingProfileDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "security": [
          {}
        ]
      },
      "delete": {
        "tags": [
          "Cpo"
        ],
        "operationId": "ClearChargingProfile",
        "parameters": [
          {
            "name": "session_id",
            "in": "path",
            "description": "OCPI session identifier, unique within the party.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "response_url",
            "in": "query",
            "description": "URL the asynchronous result is POSTed back to.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "security": [
          {}
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "AdditionalGeoLocationDto": {
        "type": "object",
        "properties": {
          "coordinates": {
            "$ref": "#/components/schemas/GeoLocationDto"
          },
          "name": {
            "$ref": "#/components/schemas/DisplayTextDto"
          }
        }
      },
      "AuthMethod": {
        "enum": [
          "AUTH_REQUEST",
          "COMMAND",
          "WHITELIST"
        ]
      },
      "BusinessDetailsDto": {
        "type": "object",
        "properties": {
          "name": {
            "type": [
              "null",
              "string"
            ]
          },
          "website": {
            "type": [
              "null",
              "string"
            ]
          },
          "logo": {
            "$ref": "#/components/schemas/LogoDto"
          }
        }
      },
      "CdrDimensionDto": {
        "type": "object",
        "properties": {
          "type": {
            "$ref": "#/components/schemas/CdrDimensionType"
          },
          "volume": {
            "type": "number",
            "format": "double"
          }
        }
      },
      "CdrDimensionType": {
        "enum": [
          "CURRENT",
          "ENERGY",
          "ENERGY_EXPORT",
          "ENERGY_IMPORT",
          "MAX_CURRENT",
          "MIN_CURRENT",
          "MAX_POWER",
          "MIN_POWER",
          "PARKING_TIME",
          "POWER",
          "RESERVATION_TIME",
          "STATE_OF_CHARGE",
          "TIME"
        ]
      },
      "CdrTokenDto": {
        "type": "object",
        "properties": {
          "uid": {
            "type": [
              "null",
              "string"
            ]
          },
          "type": {
            "$ref": "#/components/schemas/TokenType"
          },
          "contract_id": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "ChargingPeriodDto": {
        "type": "object",
        "properties": {
          "start_date_time": {
            "format": "date-time"
          },
          "dimensions": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/CdrDimensionDto"
            }
          },
          "tariff_id": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "ChargingProfileDto": {
        "type": "object",
        "properties": {
          "start_date_time": {
            "format": "date-time"
          },
          "duration": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int32"
          },
          "charging_rate_unit": {
            "type": [
              "null",
              "string"
            ]
          },
          "min_charging_rate": {
            "type": [
              "null",
              "number"
            ],
            "format": "double"
          },
          "charging_profile_period": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/ChargingProfilePeriodDto"
            }
          }
        }
      },
      "ChargingProfilePeriodDto": {
        "type": "object",
        "properties": {
          "start_period": {
            "type": "integer",
            "format": "int32"
          },
          "limit": {
            "type": "number",
            "format": "double"
          }
        }
      },
      "ConnectorDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": [
              "null",
              "string"
            ]
          },
          "standard": {
            "type": [
              "null",
              "string"
            ]
          },
          "format": {
            "type": [
              "null",
              "string"
            ]
          },
          "power_type": {
            "type": [
              "null",
              "string"
            ]
          },
          "status": {
            "type": [
              "null",
              "string"
            ]
          },
          "max_voltage": {
            "type": "integer",
            "format": "int32"
          },
          "max_amperage": {
            "type": "integer",
            "format": "int32"
          },
          "max_electric_power": {
            "type": "integer",
            "format": "int32"
          },
          "tariff_ids": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "type": "string"
            }
          },
          "terms_and_conditions": {
            "type": [
              "null",
              "string"
            ]
          },
          "last_updated": {
            "format": "date-time"
          }
        }
      },
      "CredentialRoleDto": {
        "type": "object",
        "properties": {
          "role": {
            "type": [
              "null",
              "string"
            ]
          },
          "businessDetails": {
            "$ref": "#/components/schemas/BusinessDetailsDto"
          },
          "partyId": {
            "type": [
              "null",
              "string"
            ]
          },
          "countryCode": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "CredentialsDto": {
        "type": "object",
        "properties": {
          "token": {
            "type": [
              "null",
              "string"
            ]
          },
          "url": {
            "type": [
              "null",
              "string"
            ]
          },
          "roles": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/CredentialRoleDto"
            }
          }
        }
      },
      "DisplayTextDto": {
        "type": "object",
        "properties": {
          "language": {
            "type": [
              "null",
              "string"
            ]
          },
          "text": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "EndpointDto": {
        "type": "object",
        "properties": {
          "identifier": {
            "type": [
              "null",
              "string"
            ]
          },
          "role": {
            "type": [
              "null",
              "string"
            ]
          },
          "url": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "EnergyMixDto": {
        "type": "object",
        "properties": {
          "isGreenEnergy": {
            "type": "boolean"
          },
          "energySources": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/EnergySourceDto"
            }
          },
          "environmentalImpacts": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/EnvironmentalImpactDto"
            }
          },
          "supplierName": {
            "type": [
              "null",
              "string"
            ]
          },
          "energyProductName": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "EnergySourceDto": {
        "type": "object",
        "properties": {
          "source": {
            "type": [
              "null",
              "string"
            ]
          },
          "percentage": {
            "type": "number",
            "format": "double"
          }
        }
      },
      "EnvironmentalImpactDto": {
        "type": "object",
        "properties": {
          "category": {
            "type": [
              "null",
              "string"
            ]
          },
          "amount": {
            "type": "number",
            "format": "double"
          }
        }
      },
      "EvseDto": {
        "type": "object",
        "properties": {
          "uid": {
            "type": [
              "null",
              "string"
            ]
          },
          "evse_id": {
            "type": [
              "null",
              "string"
            ]
          },
          "location_ocpi_id": {
            "type": [
              "null",
              "string"
            ]
          },
          "status": {
            "type": [
              "null",
              "string"
            ]
          },
          "status_schedule": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/StatusScheduleDto"
            }
          },
          "capabilities": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "type": "string"
            }
          },
          "connectors": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/ConnectorDto"
            }
          },
          "floor_level": {
            "type": [
              "null",
              "string"
            ]
          },
          "coordinates": {
            "$ref": "#/components/schemas/GeoLocationDto"
          },
          "physical_reference": {
            "type": [
              "null",
              "string"
            ]
          },
          "directions": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/DisplayTextDto"
            }
          },
          "parking_restrictions": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/ParkingRestrictionDto"
            }
          },
          "images": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/ImageDto"
            }
          },
          "last_updated": {
            "format": "date-time"
          },
          "last_heartbeat": {
            "format": "date-time"
          }
        }
      },
      "ExceptionalPeriodDto": {
        "type": "object",
        "properties": {
          "periodBegin": {
            "format": "date-time"
          },
          "periodEnd": {
            "format": "date-time"
          }
        }
      },
      "FacilityDto": {
        "type": "object",
        "properties": {
          "value": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "GeoLocationDto": {
        "type": "object",
        "properties": {
          "latitude": {
            "type": [
              "null",
              "string"
            ]
          },
          "longitude": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "HoursDto": {
        "type": "object",
        "properties": {
          "twentyFourSeven": {
            "type": "boolean"
          },
          "regularHours": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/RegularHoursDto"
            }
          },
          "exceptionalOpenings": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/ExceptionalPeriodDto"
            }
          },
          "exceptionalClosings": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/ExceptionalPeriodDto"
            }
          }
        }
      },
      "ImageDto": {
        "type": "object",
        "properties": {
          "url": {
            "type": [
              "null",
              "string"
            ]
          },
          "thumbnail": {
            "type": [
              "null",
              "string"
            ]
          },
          "category": {
            "type": [
              "null",
              "string"
            ]
          },
          "type": {
            "type": [
              "null",
              "string"
            ]
          },
          "width": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int32"
          },
          "height": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int32"
          }
        }
      },
      "LocationDto": {
        "type": "object",
        "properties": {
          "countryCode": {
            "type": [
              "null",
              "string"
            ]
          },
          "partyId": {
            "type": [
              "null",
              "string"
            ]
          },
          "id": {
            "type": [
              "null",
              "string"
            ]
          },
          "publish": {
            "type": "boolean"
          },
          "publishAllowedTo": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/PublishTokenTypeDto"
            }
          },
          "name": {
            "type": [
              "null",
              "string"
            ]
          },
          "address": {
            "type": [
              "null",
              "string"
            ]
          },
          "city": {
            "type": [
              "null",
              "string"
            ]
          },
          "postalCode": {
            "type": [
              "null",
              "string"
            ]
          },
          "state": {
            "type": [
              "null",
              "string"
            ]
          },
          "country": {
            "type": [
              "null",
              "string"
            ]
          },
          "coordinates": {
            "$ref": "#/components/schemas/GeoLocationDto"
          },
          "relatedLocations": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/AdditionalGeoLocationDto"
            }
          },
          "parkingType": {
            "$ref": "#/components/schemas/ParkingTypeDto"
          },
          "evses": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/EvseDto"
            }
          },
          "directions": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/DisplayTextDto"
            }
          },
          "operator": {
            "$ref": "#/components/schemas/BusinessDetailsDto"
          },
          "suboperator": {
            "$ref": "#/components/schemas/BusinessDetailsDto"
          },
          "owner": {
            "$ref": "#/components/schemas/BusinessDetailsDto"
          },
          "facilities": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/FacilityDto"
            }
          },
          "timeZone": {
            "type": [
              "null",
              "string"
            ]
          },
          "openingTimes": {
            "$ref": "#/components/schemas/HoursDto"
          },
          "chargingWhenClosed": {
            "type": [
              "null",
              "boolean"
            ]
          },
          "images": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/ImageDto"
            }
          },
          "energyMix": {
            "$ref": "#/components/schemas/EnergyMixDto"
          },
          "lastUpdated": {
            "format": "date-time"
          }
        }
      },
      "LogoDto": {
        "type": "object",
        "properties": {
          "url": {
            "type": [
              "null",
              "string"
            ]
          },
          "thumbnail": {
            "type": [
              "null",
              "string"
            ]
          },
          "category": {
            "type": [
              "null",
              "string"
            ]
          },
          "type": {
            "type": [
              "null",
              "string"
            ]
          },
          "width": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int32"
          },
          "height": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int32"
          }
        }
      },
      "OCPIError": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "integer",
            "format": "int32"
          },
          "statusMessage": {
            "type": [
              "null",
              "string"
            ]
          },
          "timestamp": {
            "format": "date-time"
          }
        }
      },
      "OCPIPaginatedResponseOfSessionDto": {
        "type": "object",
        "properties": {
          "data": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/SessionDto"
            }
          },
          "status_code": {
            "type": "integer",
            "format": "int32"
          },
          "status_message": {
            "type": [
              "null",
              "string"
            ]
          },
          "timestamp": {
            "format": "date-time"
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "offset": {
            "type": "integer",
            "format": "int32"
          },
          "limit": {
            "type": "integer",
            "format": "int32"
          }
        }
      },
      "OCPIResponse": {
        "type": "object",
        "properties": {
          "status_code": {
            "type": "integer",
            "format": "int32"
          },
          "status_message": {
            "type": [
              "null",
              "string"
            ]
          },
          "timestamp": {
            "format": "date-time"
          }
        }
      },
      "OCPIResponseOfConnectorDto": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/ConnectorDto"
          },
          "status_code": {
            "type": "integer",
            "format": "int32"
          },
          "status_message": {
            "type": [
              "null",
              "string"
            ]
          },
          "timestamp": {
            "format": "date-time"
          }
        }
      },
      "OCPIResponseOfCredentialsDto": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/CredentialsDto"
          },
          "status_code": {
            "type": "integer",
            "format": "int32"
          },
          "status_message": {
            "type": [
              "null",
              "string"
            ]
          },
          "timestamp": {
            "format": "date-time"
          }
        }
      },
      "OCPIResponseOfEvseDto": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/EvseDto"
          },
          "status_code": {
            "type": "integer",
            "format": "int32"
          },
          "status_message": {
            "type": [
              "null",
              "string"
            ]
          },
          "timestamp": {
            "format": "date-time"
          }
        }
      },
      "OCPIResponseOfListOfLocationDto": {
        "type": "object",
        "properties": {
          "data": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/LocationDto"
            }
          },
          "status_code": {
            "type": "integer",
            "format": "int32"
          },
          "status_message": {
            "type": [
              "null",
              "string"
            ]
          },
          "timestamp": {
            "format": "date-time"
          }
        }
      },
      "OCPIResponseOfListOfVersionDto": {
        "type": "object",
        "properties": {
          "data": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/VersionDto"
            }
          },
          "status_code": {
            "type": "integer",
            "format": "int32"
          },
          "status_message": {
            "type": [
              "null",
              "string"
            ]
          },
          "timestamp": {
            "format": "date-time"
          }
        }
      },
      "OCPIResponseOfLocationDto": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/LocationDto"
          },
          "status_code": {
            "type": "integer",
            "format": "int32"
          },
          "status_message": {
            "type": [
              "null",
              "string"
            ]
          },
          "timestamp": {
            "format": "date-time"
          }
        }
      },
      "OCPIResponseOfSessionDto": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/SessionDto"
          },
          "status_code": {
            "type": "integer",
            "format": "int32"
          },
          "status_message": {
            "type": [
              "null",
              "string"
            ]
          },
          "timestamp": {
            "format": "date-time"
          }
        }
      },
      "OCPIResponseOfVersionDetailsDto": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/VersionDetailsDto"
          },
          "status_code": {
            "type": "integer",
            "format": "int32"
          },
          "status_message": {
            "type": [
              "null",
              "string"
            ]
          },
          "timestamp": {
            "format": "date-time"
          }
        }
      },
      "ParkingRestrictionDto": {
        "type": "object",
        "properties": {
          "value": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "ParkingTypeDto": {
        "type": "object",
        "properties": {
          "value": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "PriceDto": {
        "type": "object",
        "properties": {
          "excl_vat": {
            "type": "number",
            "format": "double"
          },
          "incl_vat": {
            "type": [
              "null",
              "number"
            ],
            "format": "double"
          }
        }
      },
      "PublishTokenTypeDto": {
        "type": "object",
        "properties": {
          "uid": {
            "type": [
              "null",
              "string"
            ]
          },
          "type": {
            "type": [
              "null",
              "string"
            ]
          },
          "visualNumber": {
            "type": [
              "null",
              "string"
            ]
          },
          "issuer": {
            "type": [
              "null",
              "string"
            ]
          },
          "groupId": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "RegularHoursDto": {
        "type": "object",
        "properties": {
          "weekday": {
            "type": "integer",
            "format": "int32"
          },
          "periodBegin": {
            "type": [
              "null",
              "string"
            ]
          },
          "periodEnd": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "SessionDto": {
        "type": "object",
        "properties": {
          "country_code": {
            "type": [
              "null",
              "string"
            ]
          },
          "party_id": {
            "type": [
              "null",
              "string"
            ]
          },
          "id": {
            "type": [
              "null",
              "string"
            ]
          },
          "start_date_time": {
            "format": "date-time"
          },
          "end_date_time": {
            "format": "date-time"
          },
          "kwh": {
            "type": "number",
            "format": "double"
          },
          "cdr_token": {
            "$ref": "#/components/schemas/CdrTokenDto"
          },
          "auth_method": {
            "$ref": "#/components/schemas/AuthMethod"
          },
          "authorization_reference": {
            "type": [
              "null",
              "string"
            ]
          },
          "location_id": {
            "type": [
              "null",
              "string"
            ]
          },
          "evse_uid": {
            "type": [
              "null",
              "string"
            ]
          },
          "connector_id": {
            "type": [
              "null",
              "string"
            ]
          },
          "meter_id": {
            "type": [
              "null",
              "string"
            ]
          },
          "currency": {
            "type": [
              "null",
              "string"
            ]
          },
          "charging_periods": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/ChargingPeriodDto"
            }
          },
          "total_cost": {
            "$ref": "#/components/schemas/PriceDto"
          },
          "total_time": {
            "type": [
              "null",
              "number"
            ],
            "format": "double"
          },
          "total_parking_time": {
            "type": [
              "null",
              "number"
            ],
            "format": "double"
          },
          "status": {
            "$ref": "#/components/schemas/SessionStatus"
          },
          "max_cost": {
            "type": [
              "null",
              "number"
            ],
            "format": "double"
          },
          "max_duration": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int32"
          },
          "max_power": {
            "type": [
              "null",
              "number"
            ],
            "format": "double"
          },
          "current_power": {
            "type": [
              "null",
              "number"
            ],
            "format": "double"
          },
          "idle_fees": {
            "type": [
              "null",
              "number"
            ],
            "format": "double"
          },
          "is_in_idle_state": {
            "type": [
              "null",
              "boolean"
            ]
          },
          "idle_start_time_utc": {
            "format": "date-time"
          },
          "grace_period_end_time_utc": {
            "format": "date-time"
          },
          "grace_period_minutes": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int32"
          },
          "idle_rate_per_minute": {
            "type": [
              "null",
              "number"
            ],
            "format": "double"
          },
          "charging_ended_at": {
            "format": "date-time"
          },
          "last_updated": {
            "format": "date-time"
          }
        }
      },
      "SessionStatus": {
        "enum": [
          "ACTIVE",
          "COMPLETED",
          "INVALID",
          "PENDING",
          "RESERVATION"
        ]
      },
      "SessionUpdateDto": {
        "type": "object",
        "properties": {
          "kWh": {
            "type": [
              "null",
              "number"
            ],
            "format": "double"
          },
          "endDateTime": {
            "format": "date-time"
          },
          "authMethod": {
            "type": [
              "null",
              "string"
            ]
          },
          "authorizationReference": {
            "type": [
              "null",
              "string"
            ]
          },
          "meterId": {
            "type": [
              "null",
              "string"
            ]
          },
          "currency": {
            "type": [
              "null",
              "string"
            ]
          },
          "status": {
            "type": [
              "null",
              "string"
            ]
          },
          "lastUpdated": {
            "format": "date-time"
          }
        }
      },
      "SetChargingProfileDto": {
        "type": "object",
        "properties": {
          "charging_profile": {
            "$ref": "#/components/schemas/ChargingProfileDto"
          },
          "response_url": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "StatusScheduleDto": {
        "type": "object",
        "properties": {
          "periodBegin": {
            "format": "date-time"
          },
          "periodEnd": {
            "format": "date-time"
          },
          "status": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "TokenType": {
        "enum": [
          "AD_HOC_USER",
          "APP_USER",
          "OTHER",
          "RFID"
        ]
      },
      "VersionDetailsDto": {
        "type": "object",
        "properties": {
          "version": {
            "type": [
              "null",
              "string"
            ]
          },
          "endpoints": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/EndpointDto"
            }
          }
        }
      },
      "VersionDto": {
        "type": "object",
        "properties": {
          "version": {
            "type": [
              "null",
              "string"
            ]
          },
          "url": {
            "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": "{Version}"
    },
    {
      "name": "2.2"
    },
    {
      "name": "2.2.1"
    },
    {
      "name": "Cpo"
    },
    {
      "name": "Versions"
    }
  ]
}
