Resolve which OCPI 2.2.1 tariff dimension and Tariff Element wins when multiple price components can apply to the same session

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

Steps

  1. Enumerate every Tariff Element on the applicable Tariff object and, for each of the four PriceComponent dimensions (ENERGY, TIME, PARKING_TIME, FLAT), find the first Tariff Element in list order whose TariffRestrictions match the moment being billed.
  2. Apply at most one PriceComponent per dimension at any instant, but allow different dimensions to be simultaneously active (e.g. ENERGY and PARKING_TIME billing concurrently after charging completes).
  3. For ENERGY, TIME and PARKING_TIME, multiply the matched step_size by its fixed unit (1 Wh for ENERGY, 1 second for TIME/PARKING_TIME) and round usage up to the next whole step before applying price.
  4. Recompute which Tariff Element matches whenever a restriction boundary is crossed mid-session (e.g. crossing from off-peak to peak, or exceeding a duration threshold) rather than locking in the first match for the whole session.
  5. Cross-check the computed charge against the CDR's own total_cost and per-period breakdown once the session ends via the CDRs module, since that's the authoritative billed amount.

Known gotchas

Related routes

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
Exchange EV charging location and tariff data between parties using OCPI 2.2
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