Stop 06 of 08 · OCPI modules

How does a CDR settle a session?

About 6 min · 3 questions ·

Thursday
The situation

One minute after unplugging, the operator's backend has built the record of the session: start, end, energy, time, tariff, total.

The provider will invoice the driver from it at the end of the month.

The questionHow does the record travel, and what if it turns out to be wrong?

From session to invoiceOne record, two invoices
01
Step 01Session ends

Charging stopped at 4:15 PM; when the cable comes out twelve minutes later, the charger reports the end of the transaction with its final meter reading over OCPP.

Select each step to see what happens.

Never deleted, only credited

A is used for billing and can be seen as a kind of invoice, so does not allow it to be deleted. If a CDR turns out to be wrong, the operator sends a for it, and then a new, corrected CDR. Both sides keep the full history.

Push or pull

  • Push: the operator sends each CDR to the provider as soon as it is ready.
  • Pull: the provider asks the operator for new CDRs, for example once an hour.

Since version 2.2, a CDR can carry for measuring law, so the driver's invoice can be traced back to the charger's meter.

Check your understanding

3 questions. Answer all of them to complete this stop. Each answer explains itself.

01Question 1 of 3

What does an operator do when a CDR it already sent is wrong?

02Question 2 of 3

Who creates the charge detail record of a roaming session?

03Question 3 of 3

What is the pull model for CDRs?

  1. EVRoaming Foundation: OCPI 2.3.0, CDRs module: credit CDRs, push and pull model. https://github.com/ocpi/ocpi/blob/2.3.0/release/core/mod_cdrs.asciidoc. Checked 09 Oct 2026.
  2. EVRoaming Foundation: OCPI 2.3.0, CDRs module: credit CDRs, push and pull model. https://github.com/ocpi/ocpi/blob/2.3.0/release/core/mod_cdrs.asciidoc. Checked 09 Oct 2026.
  3. EVRoaming Foundation: OCPI 2.3.0, CDRs module: credit CDRs, push and pull model. https://github.com/ocpi/ocpi/blob/2.3.0/release/core/mod_cdrs.asciidoc. Checked 09 Oct 2026.
  4. EVRoaming Foundation: OCPI 2.3.0, introduction and background. https://github.com/ocpi/ocpi/blob/2.3.0/release/core/introduction.asciidoc. Checked 09 Oct 2026.
Was this helpful?