Charge and update the Session

OCPI 2.2.1

Compare this step across versions

In the simulation energy flows and the CPO sends Session updates with the latest meter values.

Simulated copies · no peer is connected

CPO

Session ACTIVE, 0.00 kWh delivered.

eMSP

Session ACTIVE, 0.00 kWh from the CPO's latest update.

What's Happening?

OCPI message

PATCH
/sessions/{country_code}/{party_id}/{session_id}

The CPO sends periodic updates to the eMSP with the latest meter values.

What OCPI 2.2.1 defines for this lesson
Modules in this version
Locations
Sessions
CDRs
Tariffs
Tokens
Commands
Credentials
Hub Client Info
Charging Profiles
Payments
Bookings
Advertised sender and receiver interfaces

An endpoint declares how another platform can pull or push data. Credentials uses the same interface for both roles.

The header token is encoded

The request header carries an encoded token; the Credentials body still carries the raw token.

Billing records name the Token owner

A charge record names the country and company that own the driver's Token.