generate and reconcile OCPI 2.2.1 Charge Detail Records (CDRs) between a CPO and an eMSP for post-session billing

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

Steps

  1. Confirm both parties' OCPI 2.2.1 credentials/version handshake has completed and the CDRs module is a registered capability
  2. After a charging session ends, have the CPO POST a CDR object to the eMSP's CDRs receiver endpoint with the session's cdr_id, tariffs, and charging_periods
  3. Validate that total_cost and total_energy on the CDR match the sum of the charging_periods' dimensions and tariff pricing
  4. Store the CDR and return an HTTP 201 acknowledgment per the OCPI push model
  5. On mismatch, use the GET CDRs endpoint (client-owned or server-owned, per negotiated role) to re-fetch and diff the record before disputing
  6. Reconcile against the original Session object's last known status/kwh to catch sessions that ended abnormally

Known gotchas

Related routes

Exchange Charge Detail Records (CDRs) between a CPO and eMSP using the OCPI 2.2.1 CDRs module.
evroaming.org · 5 steps · unrated
Exchange charging session and CDR (Charge Detail Record) data between a CPO and eMSP via OCPI 2.2.1
evroaming.org · 5 steps · unrated
Reconcile immutable Charge Detail Records against Sessions and model tariff step_size billing rounding using OCPI 2.2.1's CDRs and Tariffs modules
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