OCPI charging session lifecycle

By Abhishek Uniyal · Updated

An OCPI Session is the charging record shared between a charging network operator and a driver's service provider. Follow its authorization, updates and completion, then read the charge detail record used for billing.

Labs and branches

Follow the charging session messages

Follow the lesson one message at a time. Each step names the parties, explains the exchange and links to the governing source. The outline lets you jump to the part you are investigating.

The lab lets you inspect authored exchanges before choosing an explicit sandbox run. Its observed response and captured evidence appear separately from the example. An endpoint handoff opens the matching test setup and waits for you to start it.

Where to go next

Common questions

How can I inspect a missing Session update?

Open the relevant message step, read its explanation and Sources, then compare the authored exchange with the lab evidence. A missing update and a CDR are separate things to inspect; the lesson does not infer a billing outcome from a missing message.

How can I investigate a rejected CDR?

Use the CDR step and its source-backed example to locate the field or check in question. To inspect your endpoint, follow Test this flow, choose the target in the test setup and explicitly start the run.

What changes in OCPI 2.1.1
Modules in OCPI 2.1.1
Sessions
CDRs
Locations
Tariffs
Tokens
Commands
Credentials
Versions
No advertised interface-role field

Endpoint descriptions name the module and URL without an interface-role field.

The header carries the token value

The request header carries the shared credentials token value.

Session ID uses case-sensitive text

The Session ID uses text whose letter case matters.