Socket activations

POST /abs/frontend/socketActivation

Activates a socket (start a charging session). Returns a charging session object.

Role:

admin

Query Parameters:
 
  • socketId – The id of the socket one wants to activate.
  • tokenString – The token for which the session should be activated.
  • vehicleId? – (optional) The id of the vehicle to be charged.
  • requestedkWh? – (optional) The amount of energy (kWh) to charge.
  • requestedDurationSeconds? – (optional) The requested duration (seconds) of the session.
Status Codes:
  • 202 – Unknown socket.
  • 207 – Unknown EV driver.
  • 317 – The socket operation cannot be completed as the socket is already in use.

Example response

{ "statusCode": "100",
  "chargingSession": { ...chargingSession object... } }
DELETE /abs/frontend/socketActivation

Stop a charging session. Returns the charging session object.

Note that stopping a charging session can take several seconds, and this request will not block until the operation is completed.

Role:

admin

Query Parameters:
 
  • socketId – The id of the socket one wants to deactivate.
Status Codes:
  • 202 – Unknown socket.
  • 319 – No charging session found for EV driver.