Learning Hub/Explorer
Back

Sessions

OCPI 2.2.1
Overview

The Sessions module tracks active and completed charging sessions. When a driver plugs in and starts charging, the CPO creates a session record and pushes updates to connected EMSPs.

Who sends

CPO (Charge Point Operator)

Who receives

eMSP (e-mobility service provider)

Key Fields
FieldTypeDescription

id

CiString(36)

Unique session identifier

status

SessionStatus

ACTIVE, COMPLETED, INVALID, or PENDING

kwh

number

Energy delivered in kWh

auth_id

CiString(36)

Token used for authorization

location_id

CiString(36)

Location where charging occurs

Endpoints
GET
/ocpi/2.2.1/sessions/
PUT
/ocpi/2.2.1/sessions/{country_code}/{party_id}/{session_id}
PATCH
/ocpi/2.2.1/sessions/{country_code}/{party_id}/{session_id}
Live Endpoint Tester

Send requests directly to the local backend and see the response.