/sessions/abort
This endpoint can be used to abruptly end a session on the provided station and connector.
WARNING! This action is potentially dangerous and irreversible!
chargingStationId
string
required
The ID of the charging station
connectorId
int
required
The ID of the connector
{
"chargingStationId": "string",
"connectorId": 123
}
Session successfully aborted.
{
"data": {
"idempotencyId": "string",
"id": "string",
"networkId": "string",
"status": "string",
"chargingStation": {
"id": "string",
"networkId": "string",
"timezone": "string",
"powerType": "AC_1_PHASE",
"currentSessionIds": [
"string"
],
"connectors": [
{
"id": 123.0,
"maxVoltage": 123.0,
"maxAmperage": 123.0
}
]
},
"connectorId": 123.0,
"rateId": "string",
"tokenId": "string",
"startTime": "2023-06-07T17:32:28Z",
"meterStart": 123.0,
"chargingStartTime": "2023-06-07T17:32:28Z",
"endTime": "2023-06-07T17:32:28Z",
"meterStop": 123.0,
"detailedMeterStart": 123.0,
"detailedMeterStop": 123.0,
"reason": "string",
"cost": 123.0,
"connectorStatus": [
{
"timestamp": "2023-06-07T17:32:28Z",
"errorCode": "ConnectorLockFailure",
"status": "Available"
}
],
"correctedConnectorStatus": [
{
"timestamp": "2023-06-07T17:32:28Z",
"errorCode": "ConnectorLockFailure",
"status": "Available"
}
],
"costDetails": {
"costs": {
"energy": 123.0,
"idle": 123.0,
"flat": 123.0,
"time": 123.0
},
"usages": {
"energy": 123.0,
"time": 123.0,
"idle": 123.0
}
},
"detailedPricingElements": [
{
"costs": {
"energy": 123.0,
"idle": 123.0,
"flat": 123.0,
"time": 123.0
},
"usages": {
"energy": 123.0,
"time": 123.0,
"idle": 123.0
},
"components": [
{
"value": 123.0,
"taxRate": 123.0,
"billableQuantity": 123.0,
"type": "ENERGY"
}
],
"restrictions": {
"start_time": "string",
"end_time": "string",
"start_date": "string",
"end_date": "string",
"min_kwh": 123.0,
"max_kwh": 123.0,
"min_current": 123.0,
"max_current": 123.0,
"min_power": 123.0,
"max_power": 123.0,
"min_duration": 123.0,
"max_duration": 123.0,
"day_of_week": [
"MONDAY"
]
}
}
],
"customNote": "string",
"autoStart": true,
"deniedBreakdown": {
"reason": "TIME_OUT"
}
}
}
/sessions/{id}/confirm
If a session was created with autoStart set to false, this endpoint can be used to start the session.
WARNING! This action is potentially dangerous and irreversible!
accepted
boolean
required
Determines whether the session is accepted (true) or rejected (false)
{
"accepted": true
}
A session has been confirmed successfully
{
"data": {
"idempotencyId": "string",
"id": "string",
"networkId": "string",
"status": "string",
"chargingStation": {
"id": "string",
"networkId": "string",
"timezone": "string",
"powerType": "AC_1_PHASE",
"currentSessionIds": [
"string"
],
"connectors": [
{
"id": 123.0,
"maxVoltage": 123.0,
"maxAmperage": 123.0
}
]
},
"connectorId": 123.0,
"rateId": "string",
"tokenId": "string",
"startTime": "2023-06-07T17:32:28Z",
"meterStart": 123.0,
"chargingStartTime": "2023-06-07T17:32:28Z",
"endTime": "2023-06-07T17:32:28Z",
"meterStop": 123.0,
"detailedMeterStart": 123.0,
"detailedMeterStop": 123.0,
"reason": "string",
"cost": 123.0,
"connectorStatus": [
{
"timestamp": "2023-06-07T17:32:28Z",
"errorCode": "ConnectorLockFailure",
"status": "Available"
}
],
"correctedConnectorStatus": [
{
"timestamp": "2023-06-07T17:32:28Z",
"errorCode": "ConnectorLockFailure",
"status": "Available"
}
],
"costDetails": {
"costs": {
"energy": 123.0,
"idle": 123.0,
"flat": 123.0,
"time": 123.0
},
"usages": {
"energy": 123.0,
"time": 123.0,
"idle": 123.0
}
},
"detailedPricingElements": [
{
"costs": {
"energy": 123.0,
"idle": 123.0,
"flat": 123.0,
"time": 123.0
},
"usages": {
"energy": 123.0,
"time": 123.0,
"idle": 123.0
},
"components": [
{
"value": 123.0,
"taxRate": 123.0,
"billableQuantity": 123.0,
"type": "ENERGY"
}
],
"restrictions": {
"start_time": "string",
"end_time": "string",
"start_date": "string",
"end_date": "string",
"min_kwh": 123.0,
"max_kwh": 123.0,
"min_current": 123.0,
"max_current": 123.0,
"min_power": 123.0,
"max_power": 123.0,
"min_duration": 123.0,
"max_duration": 123.0,
"day_of_week": [
"MONDAY"
]
}
}
],
"customNote": "string",
"autoStart": true,
"deniedBreakdown": {
"reason": "TIME_OUT"
}
}
}
/sessions
limit
string
The maximum number of sessions to return (default 20, maximum 100)
startingAfter
string
The ID of the last session in the previous page of results. Results will start after this session
A list of sessions
{
"data": {
"hasMore": true,
"items": [
{
"idempotencyId": "string",
"id": "string",
"networkId": "string",
"status": "string",
"chargingStation": {
"id": "string",
"networkId": "string",
"timezone": "string",
"powerType": "AC_1_PHASE",
"currentSessionIds": [
"string"
],
"connectors": [
{
"id": 123.0,
"maxVoltage": 123.0,
"maxAmperage": 123.0
}
]
},
"connectorId": 123.0,
"rateId": "string",
"tokenId": "string",
"startTime": "2023-06-07T17:32:28Z",
"meterStart": 123.0,
"chargingStartTime": "2023-06-07T17:32:28Z",
"endTime": "2023-06-07T17:32:28Z",
"meterStop": 123.0,
"detailedMeterStart": 123.0,
"detailedMeterStop": 123.0,
"reason": "string",
"cost": 123.0,
"connectorStatus": [
{
"timestamp": "2023-06-07T17:32:28Z",
"errorCode": "ConnectorLockFailure",
"status": "Available"
}
],
"correctedConnectorStatus": [
{
"timestamp": "2023-06-07T17:32:28Z",
"errorCode": "ConnectorLockFailure",
"status": "Available"
}
],
"costDetails": {
"costs": {
"energy": 123.0,
"idle": 123.0,
"flat": 123.0,
"time": 123.0
},
"usages": {
"energy": 123.0,
"time": 123.0,
"idle": 123.0
}
},
"detailedPricingElements": [
{
"costs": {
"energy": 123.0,
"idle": 123.0,
"flat": 123.0,
"time": 123.0
},
"usages": {
"energy": 123.0,
"time": 123.0,
"idle": 123.0
},
"components": [
{
"value": 123.0,
"taxRate": 123.0,
"billableQuantity": 123.0,
"type": "ENERGY"
}
],
"restrictions": {
"start_time": "string",
"end_time": "string",
"start_date": "string",
"end_date": "string",
"min_kwh": 123.0,
"max_kwh": 123.0,
"min_current": 123.0,
"max_current": 123.0,
"min_power": 123.0,
"max_power": 123.0,
"min_duration": 123.0,
"max_duration": 123.0,
"day_of_week": [
"MONDAY"
]
}
}
],
"customNote": "string",
"autoStart": true,
"deniedBreakdown": {
"reason": "TIME_OUT"
}
}
]
}
}
/sessions
This endpoint is used to request the start of a new session on a given station or to record a session that has already started. Given a duplicate
request with the same charging station, connector, token, and start time, the endpoint will return the same session.
If a session is already in progress on the given connector and charging station, the endpoint will not create the new session and will return an error.
WARNING! This action is potentially dangerous and irreversible!
chargingStationId
string
required
The ID of the charging station
networkId
string
The ID of the network associated with the session
connectorId
int
required
The ID of the connector
rateId
string
required
The ID of the rate
tokenId
string
required
The ID of the token
startTime
string
required
The start time of the session in date-time format
meterStart
number
required
The starting meter value
{
"chargingStationId": "string",
"networkId": "string",
"connectorId": 123,
"rateId": "string",
"tokenId": "string",
"startTime": "2023-06-07T17:32:28Z",
"meterStart": 123.0
}
A new session has been created.
{
"data": {
"idempotencyId": "string",
"id": "string",
"networkId": "string",
"status": "string",
"chargingStation": {
"id": "string",
"networkId": "string",
"timezone": "string",
"powerType": "AC_1_PHASE",
"currentSessionIds": [
"string"
],
"connectors": [
{
"id": 123.0,
"maxVoltage": 123.0,
"maxAmperage": 123.0
}
]
},
"connectorId": 123.0,
"rateId": "string",
"tokenId": "string",
"startTime": "2023-06-07T17:32:28Z",
"meterStart": 123.0,
"chargingStartTime": "2023-06-07T17:32:28Z",
"endTime": "2023-06-07T17:32:28Z",
"meterStop": 123.0,
"detailedMeterStart": 123.0,
"detailedMeterStop": 123.0,
"reason": "string",
"cost": 123.0,
"connectorStatus": [
{
"timestamp": "2023-06-07T17:32:28Z",
"errorCode": "ConnectorLockFailure",
"status": "Available"
}
],
"correctedConnectorStatus": [
{
"timestamp": "2023-06-07T17:32:28Z",
"errorCode": "ConnectorLockFailure",
"status": "Available"
}
],
"costDetails": {
"costs": {
"energy": 123.0,
"idle": 123.0,
"flat": 123.0,
"time": 123.0
},
"usages": {
"energy": 123.0,
"time": 123.0,
"idle": 123.0
}
},
"detailedPricingElements": [
{
"costs": {
"energy": 123.0,
"idle": 123.0,
"flat": 123.0,
"time": 123.0
},
"usages": {
"energy": 123.0,
"time": 123.0,
"idle": 123.0
},
"components": [
{
"value": 123.0,
"taxRate": 123.0,
"billableQuantity": 123.0,
"type": "ENERGY"
}
],
"restrictions": {
"start_time": "string",
"end_time": "string",
"start_date": "string",
"end_date": "string",
"min_kwh": 123.0,
"max_kwh": 123.0,
"min_current": 123.0,
"max_current": 123.0,
"min_power": 123.0,
"max_power": 123.0,
"min_duration": 123.0,
"max_duration": 123.0,
"day_of_week": [
"MONDAY"
]
}
}
],
"customNote": "string",
"autoStart": true,
"deniedBreakdown": {
"reason": "TIME_OUT"
}
}
}
sessions/{sessionId}
This endpoint ends an active session by marking it as processing.
WARNING! This action is potentially dangerous and irreversible!
endTime
string
required
The end time of the session in date-time format
meterStop
number
required
The final meter value at the end of the session
detailedMeterStart
number
The detailed starting meter value
detailedMeterStop
number
The detailed final meter value at the end of the session
reason
string
The reason for ending the session
networkId
string
The ID of the network associated with the session
{
"endTime": "2023-06-07T17:32:28Z",
"meterStop": 123.0,
"detailedMeterStart": 123.0,
"detailedMeterStop": 123.0,
"reason": "string",
"networkId": "string"
}
The session has been ended
{}
/sessions/{sessionId}/remote-stop
This endpoint is used to remotely stop a session. This will emit event to ocpp to stop the session.
sessionId
string
required
ID of the session to be remotely stopped
No content
Empty response
/sessions/{id}/start
This endpoint is used to start a session on a given station and connector for sessions initiated with autoStart set to false. The session will be marked as ACTIVE and acknowledged as an ongoing transaction.
If a session is already in progress on the given charging station and connector, the endpoint will not create the new session and will return an error.
WARNING! This action is potentially dangerous and irreversible!
meterStart
int
required
Meter start value for the session
timestamp
string
required
Timestamp for starting the session
{
"meterStart": 123,
"timestamp": "2023-06-07T17:32:28Z"
}
Session started successfully
{
"idempotencyId": "string",
"id": "string",
"networkId": "string",
"status": "string",
"chargingStation": {
"id": "string",
"networkId": "string",
"timezone": "string",
"powerType": "AC_1_PHASE",
"currentSessionIds": [
"string"
],
"connectors": [
{
"id": 123.0,
"maxVoltage": 123.0,
"maxAmperage": 123.0
}
]
},
"connectorId": 123.0,
"rateId": "string",
"tokenId": "string",
"startTime": "2023-06-07T17:32:28Z",
"meterStart": 123.0,
"chargingStartTime": "2023-06-07T17:32:28Z",
"endTime": "2023-06-07T17:32:28Z",
"meterStop": 123.0,
"detailedMeterStart": 123.0,
"detailedMeterStop": 123.0,
"reason": "string",
"cost": 123.0,
"connectorStatus": [
{
"timestamp": "2023-06-07T17:32:28Z",
"errorCode": "ConnectorLockFailure",
"status": "Available"
}
],
"correctedConnectorStatus": [
{
"timestamp": "2023-06-07T17:32:28Z",
"errorCode": "ConnectorLockFailure",
"status": "Available"
}
],
"costDetails": {
"costs": {
"energy": 123.0,
"idle": 123.0,
"flat": 123.0,
"time": 123.0
},
"usages": {
"energy": 123.0,
"time": 123.0,
"idle": 123.0
}
},
"detailedPricingElements": [
{
"costs": {
"energy": 123.0,
"idle": 123.0,
"flat": 123.0,
"time": 123.0
},
"usages": {
"energy": 123.0,
"time": 123.0,
"idle": 123.0
},
"components": [
{
"value": 123.0,
"taxRate": 123.0,
"billableQuantity": 123.0,
"type": "ENERGY"
}
],
"restrictions": {
"start_time": "string",
"end_time": "string",
"start_date": "string",
"end_date": "string",
"min_kwh": 123.0,
"max_kwh": 123.0,
"min_current": 123.0,
"max_current": 123.0,
"min_power": 123.0,
"max_power": 123.0,
"min_duration": 123.0,
"max_duration": 123.0,
"day_of_week": [
"MONDAY"
]
}
}
],
"customNote": "string",
"autoStart": true,
"deniedBreakdown": {
"reason": "TIME_OUT"
}
}
/sessions/{sessionId}
Updates the custom note for a specific session based on the provided session ID
customNote
string
Custom note to update for the session
networkId
string
Network ID for the session
{
"customNote": "string",
"networkId": "string"
}
Successfully updated the session
{}
Was this page helpful?