Learn OCPI

OCPI Charging Session Lifecycle

Step-by-step guide to EV charging session lifecycle in OCPI. From authorization to CDR generation, understand every state transition.

Interactive learning experience loading

This is a shareable preview of a Learn OCPI article. The interactive learning experience runs in your browser.

If you are implementing or debugging OCPI roaming, these guides focus on practical terminology, message flows, and real integration pitfalls.

Topics covered

  • OCPI charging session
  • EV charging lifecycle
  • OCPI sessions
  • CDR generation
  • EVSE states
  • session authorization

OCPI (Open Charge Point Interface) is the roaming protocol used by CPOs and eMSPs to exchange data such as locations, tokens, sessions, tariffs, and charge detail records. A clear mental model of the protocol reduces integration mistakes and speeds up debugging.

This guide is written to be practical: read the explanation, then validate your understanding with message-flow diagrams and hands-on simulations.

For a smooth learning progression, start with fundamentals, then move to terminology and message flows, and finally practice with the interactive simulator.