/sessions/abortThis endpoint can be used to abruptly end a session on the provided station and connector.
WARNING! This action is potentially dangerous and irreversible!
chargingStationIdstringrequired
The ID of the charging station
connectorIdintrequired
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}/confirmIf 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!
acceptedbooleanrequired
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"
}
}
}/sessionslimitstringThe maximum number of sessions to return (default 20, maximum 100)
startingAfterstringThe 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"
}
}
]
}
}/sessionsThis 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!
chargingStationIdstringrequired
The ID of the charging station
networkIdstringThe ID of the network associated with the session
connectorIdintrequired
The ID of the connector
rateIdstringrequired
The ID of the rate
tokenIdstringrequired
The ID of the token
startTimestringrequired
The start time of the session in date-time format
meterStartnumberrequired
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!
endTimestringrequired
The end time of the session in date-time format
meterStopnumberrequired
The final meter value at the end of the session
detailedMeterStartnumberThe detailed starting meter value
detailedMeterStopnumberThe detailed final meter value at the end of the session
reasonstringThe reason for ending the session
networkIdstringThe 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-stopThis endpoint is used to remotely stop a session. This will emit event to ocpp to stop the session.
sessionIdstringrequired
ID of the session to be remotely stopped
No content
Empty response
/sessions/{id}/startThis 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!
meterStartintrequired
Meter start value for the session
timestampstringrequired
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
customNotestringCustom note to update for the session
networkIdstringNetwork ID for the session
{
"customNote": "string",
"networkId": "string"
}Successfully updated the session
{}Was this page helpful?