Process OCPI 2.2.1 Sessions module real-time updates for an in-progress charging session

domain: evroaming.org · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. As the receiving party (typically the eMSP), expose the Sessions module's PATCH/PUT endpoint so the CPO can push updates for a session identified by its session_id as it progresses.
  2. Distinguish a full PUT (complete Session object replacement, typically sent at session creation) from a PATCH (partial update carrying only changed fields, sent as the session evolves) and apply each accordingly rather than assuming every update is a full object.
  3. Accumulate charging_periods from successive updates to build the session's running energy/time/cost breakdown, since each update may append new periods rather than resend the whole history.
  4. Track the session's status field (e.g. ACTIVE, COMPLETED, INVALID) transitions to know when to stop expecting further PATCH updates and instead wait for the corresponding CDR via the CDRs module.
  5. Reconcile the session's final state against its CDR once issued, since the CDR — not the last Session PATCH — is the authoritative billing record for the completed charge.

Known gotchas

Related routes

Implement the OCPP 2.0.1 TransactionEvent lifecycle for charge-point-to-CSMS session and metering reporting
openchargealliance.org · 5 steps · unrated
Publish and synchronize charge point location and connector status data via the OCPI 2.2.1 locations module
evroaming.org · 5 steps · unrated
Implement the OCPI 2.2.1 ChargingProfiles module to exchange smart-charging commands between an eMSP and CPO
evroaming.org · 5 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans