MTechZilla

How a UK Charge Point Operator Added Two-Way Roaming to Its Portal Without a Rebuild

Our OCPI integration connected a UK charge point operator’s portal to ENAPI, an OCPI roaming platform, in both directions. Drivers from partner networks now charge at its 1,000+ chargers, and its own drivers charge on partner networks. Every CDR comes from the same session record as the operator’s own billing.

OCPI integration for a UK charge point operator: a charging portal connected through ENAPI to partner networks in both directions

About the client

The client is a UK charge point operator running more than 1,000 public chargers. We built its charging portal in an earlier engagement, covering sessions, its own drivers, and billing.

The portal worked, but it stopped at the network edge. Drivers from other networks couldn’t charge without signing up to the operator’s app. Its own drivers couldn’t charge anywhere else with the account they already had.

The operator wanted roaming in both directions without replacing what worked. It set four rules. The portal stays as it is. Its session record stays the single source of truth. Every CDR matches what the charger and app showed the driver. And each partner sees only its own drivers and sessions.

The team that built the portal built the integration. Because we knew its session record inside and out, we could map it to OCPI without guessing.

Project details

Scope
OCPI 2.3.0 integration as both CPO and eMSP, CDR generation, token management, ENAPI connection
Team
Three people

Results

  • Two-way roaming through one OCPI connection
  • 1,000+ chargers open to partner networks
  • Every CDR built from the operator’s own session record

The challenge

What each group worked around before roaming

The network worked well for drivers already inside it. Anyone crossing its edge, in either direction, hit a wall.

What each group worked around before roaming
GroupHow they workedWhat it cost them
01 / 04Drivers from other networksHad to download the operator’s app and register before chargingMany drove on to a charger their own app already supported
02 / 04The operator’s own driversCould charge only on the operator’s network with their accountEvery trip beyond it meant another app and another account
03 / 04The operator’s commercial teamFaced a separate contract and integration for every partner networkRoaming grew one partner at a time, if at all
04 / 04The operator’s billing teamBilled only the operator’s own drivers, with no partner settlement processEach new partner would have added another manual reconciliation

Roaming fails in the gaps between systems.

A CDR price that differs from the charger screen, a token a partner rejects, or a session that never becomes a CDR. Each one turns into a dispute that someone settles by hand.

In the UK, roaming is now a legal requirement as well as a commercial one. The Public Charge Point Regulations 2023 require payment roaming and open charge point data under OCPI (UK Government, 2023). Operators that can’t roam face compliance risk in addition to lost sessions.

Build vs. buy

Why the operator joined a roaming platform instead of signing partners one by one

The operator bought the network and had us build the connection. ENAPI already linked a large set of charge point operators and eMSPs, so one integration could reach all of them.

  1. Ruled out

    Peer-to-peer links with each partner

    Each partner would need its own contract, OCPI connection, and settlement process.

  2. Ruled out

    A new roaming-ready CSMS

    It would replace a portal that already worked and move every driver, session, and billing rule to a new system.

  3. Ruled out

    Manual CDR exports

    Spreadsheets of sessions sent to each partner would turn every pricing difference into a dispute settled by email.

One connection to a roaming platform kept the portal as it was and moved partner agreements and clearing to ENAPI. If your network works but stops at its own edge, you’re where this operator started.

Our approach

How we built roaming around a portal we already knew

The roaming layer sits beside the portal and reads its session record; it never replaces it. Everything sent to partners is built from that record and checked before it leaves.

  1. 01

    From session record to CDR

    One layer converts the portal's OCPP session data into OCPI CDRs. It prices each session using a real-time tariff lookup, applying the same tariff the charger showed the driver.

  2. 02

    Outbound, as a charge point operator

    The operator publishes its locations, tariffs, sessions, and CDRs over OCPI 2.3.0. Drivers on partner networks find its chargers and start sessions with their own app or card.

  3. 03

    Inbound, as an eMSP

    The operator’s own driver tokens go out to the network, so partners accept them. CDRs from partner chargers come back and land on the right driver’s account.

  4. 04

    Per-partner credentials and token allowlists

    Each partner connection has its own credentials and allowlist settings. A partner sees only its own drivers and sessions.

  5. 05

    A reconciliation check before anything leaves

    Every CDR is compared with the session record and the charger’s meter reading before it goes out. A CDR that doesn’t match stops for review instead of reaching a partner.

  6. 06

    One connection to ENAPI

    The operator connects once. ENAPI translates between OCPI versions, holds the partner agreements, and clears CDRs between both sides.

The trade-off:

Routing roaming through one platform makes ENAPI a dependency, and the operator gave up building direct links first. In return, it reached a large set of partners through one integration, with agreements and clearing handled for it. We’d choose this again: direct links can still be added later for a few high-volume partners.

What we’d do first on the next roaming integration

Treat the CDR as a copy of the receipt the driver already saw. Every dispute we’ve seen started where the two disagreed. Building the CDR from the same session record and tariff as the receipt removes that gap at the source.

Engineering

How we solved the four hardest engineering problems

Each problem sat in a gap between the operator’s system and a partner’s. We closed all four before the first partner went live.

  1. 01 / 04

    A CDR price that didn’t match the charger screen

    A session that crossed from peak to off-peak was first priced at the end-of-session tariff. The partner’s driver had seen a different total on the charger, and the partner flagged it. We now price each charging period at the tariff in force at that time, exactly as the receipt does.

  2. 02 / 04

    Tokens every partner accepts

    Partner networks validate driver tokens in slightly different ways. Each token is issued with per-partner allowlist settings and is first checked against the OCPI format. The operator’s driver tokens work on partner chargers without manual fixes.

  3. 03 / 04

    Sessions that never became CDRs

    A weak connection can deliver a session’s stop before its start, and a naive CDR builder drops it. We reused the session reconciliation we built for a Swiss charging network, so every session becomes exactly one CDR.

  4. 04 / 04

    Partners on different OCPI versions

    Partners run different OCPI versions. We built to OCPI 2.3.0 once, and ENAPI translates for each partner, so a partner on an older version needs no special handling on our side.

Roaming stuck at partner number one?

Tell us how your platform records sessions and who you want to roam with. Our EV charging software development team will show you what an OCPI connection on your existing system would take.

Kickoff in 7–14 days · You own 100% of the code · 5.0 ★ on Clutch

Technology

Technology we chose for this project

We added the roaming layer to the platform we had already built, so the stack stayed the same. The new pieces are the protocol, the roaming platform, and the checks between them.

Technology we chose for this project
LayerTechnologyWhy we chose it
01 / 06Roaming protocolOCPI 2.3.0 (Locations, Tariffs, Sessions, CDRs, Tokens)The latest version, used once for both the CPO and eMSP sides
02 / 06Roaming platformENAPIOne connection to many partners, with version translation and CDR clearing
03 / 06Charger protocolOCPP (existing)Session data comes from the chargers the portal already manages
04 / 06CDR pricingReal-time tariff lookup per charging periodEach CDR matches the price the driver saw
05 / 06Access controlPer-partner credentials, token allowlistsEach partner sees only its own drivers and sessions
06 / 06Roaming servicesNode.js, TypeScript on AWS (Amazon ECS for the OCPI endpoints, Amazon SQS for CDR jobs)Runs beside the existing portal without changing it

Process

How the engagement ran, from session record to first partner

We started from the session record, built each side of roaming in turn, and opened the connection partner by partner. The portal kept running untouched throughout.

  1. 01

    Map the session record

    We mapped every field the portal stores for a session to its OCPI equivalent, and marked where a tariff or token rule needed new logic.

  2. 02

    Build the CPO side

    We published locations and tariffs first, then sessions and CDRs, with the reconciliation check in front of every CDR.

  3. 03

    Build the eMSP side

    We published the operator’s driver tokens with per-partner allowlists and routed incoming CDRs to the right driver accounts.

  4. 04

    Test and go live partner by partner

    We tested each direction in ENAPI’s test environment, then switched partners one at a time while monitoring CDRs on both sides.

Results

Roaming became one connection, not one project per partner

The operator’s 1,000+ chargers opened to partner networks through a single OCPI connection, and its drivers gained access to partner chargers the same way. Roaming sessions now make up about 15% of all sessions on its network.

Roaming became one connection, not one project per partner
GroupBeforeAfter
01 / 04Drivers from other networksHad to download the operator’s app to chargeStart a session with the app or card they already use
02 / 04The operator’s own driversCharged only on the operator’s networkCharge on partner networks with the same account
03 / 04The operator’s commercial teamA contract and integration per partnerNew partners added through ENAPI, with no new integration
04 / 04The operator’s billing teamNo process for partner settlementCDRs cleared through ENAPI, built from the operator’s own session record

How the next partner joins

A new partner needs an agreement on ENAPI and an allowlist setting on our side, not new code. Its drivers start roaming at the operator’s chargers, and the operator’s drivers at its chargers, through the same connection.

Adding roaming partners?

Tell us how your network records sessions today and which partners you want to reach. We’ll show you how to roam both ways without replacing what already works.

Kickoff in 7–14 days · You own 100% of the code · 5.0 ★ on Clutch

FAQs

Questions charge point operators ask us

Book a discovery call

Do we need to replace our CSMS to add roaming?

No. An OCPI layer can sit beside the system you run today and read its session record, as it did here.

Which OCPI version should we build to?

The latest, OCPI 2.3.0, released in February 2025. A roaming platform like ENAPI translates for partners on older versions, so you build once.

Should we use a roaming platform or connect peer-to-peer?

Start with a platform for reach, then add direct links later for the few partners with the most sessions. Both can run on the same OCPI layer.

Does roaming help with the UK Public Charge Point Regulations?

It covers the payment roaming part, and the same OCPI data supports the open data requirement. Your compliance team still confirms the full set of obligations.

Can roaming data feed AI tools or automated invoices?

Yes. Roaming sessions live in the same session record, so they can reach assistants through an MCP server or feed automated invoice capture, as we built for a Swiss network.