Stop session
POST/v1/sessions/stop
Allows to stop a session for a consumer of an external system using a ServiceAccount. The body carries sessionId. The station is read from that session. An accepted stop returns success true. A business failure returns code, message, and the fields of that result.
Request
Responses
- 201
- 400
- 403
- 404
- 409
- 422
- 500
Stop accepted.
UNEXPECTED_ERROR. Fields: sessionId.
ACCOUNT_NOT_AUTHORIZED. Fields: accountId.
SESSION_NOT_FOUND (sessionId), STATION_NOT_FOUND (sessionId, stationId), or TRANSACTION_NOT_FOUND (sessionId, stationId, cpoId).
SESSION_CONCURRENT_COMMAND_DETECTED. Fields: sessionId.
SESSION_NOT_CHARGING (sessionId, stationId, connectorId, consumerId, cpoId, emspId), STATION_ID_IS_NOT_FROM_SESSION (sessionId, stationId), or REMOTE_STOP_TRANSACTION_ERROR (the SESSION_NOT_CHARGING fields plus reason). reason is the upstream explanation.
EMPTY_UPSTREAM_RESPONSE. The session was not stopped.