OCPI Party IDs: How One Hub Connection Carries Many Charging Operators
By YoHub11 min read
OCPI Party IDs: How One Hub Connection Carries Many Operators
💡 OCPI Party ID: Key Highlights
- Every OCPI party is identified by a country_code (2 chars, ISO 3166-1) + party_id (3 chars, ISO 15118) — this five-character pair flows through credentials, locations, sessions and CDRs
- One platform, many operators: the CredentialsRole array lets a single connection carry multiple party IDs, enabling white-label and aggregator models
- Hubs report reachable parties via the Hub Client Info module — each connected party gets a ClientInfo object with party_id, role and connection status
- Party IDs in CDRs and Sessions are what make per-operator invoicing and reconciliation possible — without correct mapping, billing attribution breaks
- OCPI 2.3.0 changes hub behaviour: hubs now include reachable parties in the roles list at credential time, not only via Hub Client Info
Every CPO and eMSP on an OCPI network is identified by a two-part key: a two-character country code and a three-character OCPI party ID. This pair appears in every credential exchange, every location record, every session object and every charge detail record that flows between platforms. When a hub sits in the middle, the same pair is what lets an eMSP see, authorise and settle with each operator individually — even though all traffic travels over a single connection.
This post explains how the OCPI party ID system works, from the credentials handshake defined in the OCPI 2.2.1 specification through to invoicing, and what goes wrong when identifiers are mapped incorrectly.
What Is an OCPI Party ID
Every CPO and eMSP registers a country_code (ISO 3166-1 alpha-2, two characters) and a party_id (three characters, following ISO 15118) during the OCPI credentials handshake. The OCPI 2.2.1 specification states that “the distinction between objects from different CPOs/eMSPs is made based on a country_code and party_id.” Together, the five characters form the globally unique identifier for that party on the network.
The country code is typically the country where the party is incorporated or primarily operates. The specification notes that “a party operating in multiple countries can always use the home country of the company for all connections” — EVSE IDs can be pushed under the country and provider identification of a company even if the EVSEs are physically located in a different country.
The party_id is a three-character, case-insensitive string (CiString(3) in OCPI terms) that identifies the operator or provider. It is not auto-assigned by the protocol. National registries issue party IDs in some countries: in the Netherlands, Belgium and Luxembourg, the eViolin foundation maintains the registry; in Germany, the BDEW organisation keeps the registry through its general code number service. In countries without a formal registry, the issuing practice varies, and parties typically coordinate directly or through the hub they connect to.
How Party IDs Are Declared During the Credentials Handshake
When two platforms connect over OCPI, they exchange credentials that include a roles array. Each entry in this array is a CredentialsRole object containing four fields:
| Field | Type | Description |
|---|---|---|
role | Role | CPO, EMSP, HUB or other role type |
business_details | BusinessDetails | Company name, logo and website |
party_id | CiString(3) | Three-character operator or provider ID (ISO 15118) |
country_code | CiString(2) | ISO 3166-1 alpha-2 country code |
A single platform can register more than one CredentialsRole. The OCPI 2.2.1 specification notes that “a platform may have the same role more than once, each with its own unique party_id and country_code, for example when a CPO provides ‘white-label’ services for ‘virtual’ CPOs.” This is exactly the mechanism that lets one technical connection carry traffic for many operators. The constraint is that “every role needs a unique combination of: role, party_id and country_code.”
The credential token exchanged during this handshake “must uniquely identify the requesting party.” Every subsequent OCPI request carries this token in the Authorization header, so the receiving platform can link any request to the correct party’s account.
The Hub Role and the Hub Client Info Module
A hub is a special platform role in OCPI. Under OCPI 2.2.1, the specification is explicit: “a Hub SHALL only report itself as role: Hub” during the credentials handshake. “A Hub SHALL NOT report all the other connected parties as a role on the platform.” Instead, the hub reports connected parties through a separate module: Hub Client Info.
The Hub Client Info module exists specifically for this purpose. Unlike standard OCPI modules that operate between an eMSP and a CPO, “this module is between eMSP/CPO and Hub instead of between eMSP and CPO.” It answers the question: which parties are reachable through this hub, and what is their current connection status?
Each entry is a ClientInfo object with five fields:
| Field | Meaning |
|---|---|
party_id | The CPO or eMSP’s three-character identifier |
country_code | ISO 3166-1 alpha-2 code of that party |
role | CPO, eMSP or other role |
status | ConnectionStatus: CONNECTED, OFFLINE, PLANNED or SUSPENDED |
last_updated | When this record was last modified |
The hub pushes changes to connected parties by calling PUT on their Hub Client Info endpoint. When a new CPO joins the hub, every connected eMSP receives a ClientInfo push with that CPO’s party_id, country_code, role and a CONNECTED status. When a party disconnects, the hub pushes an OFFLINE or SUSPENDED update. Parties can also pull the full list on demand using GET.
This is what enables an eMSP connected to a hub to see each CPO as a distinct operator, to decide which operators to list in its app, and to attribute every session and CDR to the correct counterparty — all over a single OCPI 2.2.1 integration.
How Party IDs Flow Into Locations, Sessions and CDRs
The OCPI party ID is not only an identifier for the credentials handshake. It flows into every data object that moves between platforms, and it appears in the URL path of every request involving a client-owned object: {base-url}/{endpoint}/{country_code}/{party_id}/{object_id}.
Locations. Each Location object carries a country_code and party_id that identify the CPO who owns that location data. Locations are “Client Owned Objects,” meaning the party_id in the URL and the object determines who controls the record. The Location also has optional BusinessDetails fields for the operator (the company running the station), the owner (the entity that owns the infrastructure) and the suboperator (a third party managing operations). These carry display names for the eMSP’s driver-facing app, but the party_id is the authoritative identifier for routing, billing and attribution.
Sessions. The country_code and party_id identify “the CPO that ‘owns’ this Session.” The session endpoint URL includes these as path segments: sessions/{country_code}/{party_id}/{session_id}. This is how an eMSP’s platform knows which operator is running a session in real time.
CDRs. The same pattern holds. The CDR specification states that country_code is “the ISO-3166 alpha-2 country code of the CPO that ‘owns’ this CDR” and party_id is “the ID of the CPO that ‘owns’ this CDR.” CDRs are created by the CPO and pushed to the eMSP that needs to pay the bill. The CDR’s id must be unique per country_code/party_id combination.
This chain of identification — from credentials through locations, sessions and finally CDRs — is what makes per-operator billing and CDR reconciliation possible. Each CDR can be attributed to a specific operator, matched against the correct tariff, and settled through the correct invoice line, whether the settlement flows through a hub or is handled peer to peer.
What Breaks When Party IDs Are Mapped Wrong
Party ID mapping problems are among the most common integration issues in multi-operator roaming. Here are the failure patterns that surface repeatedly.
Many CPOs under one party ID
When an aggregator or white-label platform uses a single party_id for stations from several independent operators, the eMSP cannot distinguish between them. All locations appear as one network. If one operator’s chargers have poor uptime, the eMSP cannot selectively delist that operator without blocking all stations under the shared ID. Per-operator invoicing and dispute resolution become impossible.
Operator name vs party ID mismatch
The Location object’s operator field (BusinessDetails) may show one company name, while the party_id in the same record belongs to a different entity — the aggregator platform. eMSPs that build their mapping from BusinessDetails alone will have a different operator list from those that map by party_id. When a reconciliation dispute arises, the two sides may refer to different operator identities.
Party ID reused after a platform migration
If Operator A leaves Platform X and joins Platform Y, but Platform X continues to push locations under A’s old party_id, the eMSP’s records split. Historical CDRs under that party_id on the old connection need to be reconciled separately from new CDRs on the new connection. If the party_id is reassigned to a different operator on the old platform, attribution breaks completely.
Token whitelisting keyed to party ID while the hub routes by role
The Hub Client Info module reports each party’s role and status, but token whitelisting decisions at the eMSP may be keyed to party_id alone. If a hub routes a token authorisation request based on the CredentialsRole rather than the party_id the eMSP expects, the authorisation may fail or reach the wrong operator.
OCPI 2.3.0: Changes to Hub Party Reporting
OCPI 2.3.0, the latest release from the EVRoaming Foundation, introduces a structural change to how hubs report party information during the credentials handshake. Under 2.2.1, a hub must only list itself (role: HUB) in the roles array and must report connected parties through the Hub Client Info module. Under 2.3.0, “Roaming Hubs’ platforms are expected to include the parties that are reachable through the Roaming Hub in the list in roles.”
This change makes the network topology explicit at credential exchange time rather than requiring a separate module query afterward. The Hub Client Info module continues to exist for ongoing status updates (a party going offline, a new CPO joining). For eMSPs and CPOs planning their integration roadmap, the practical impact is that client code connecting to a 2.3.0 hub needs to parse the roles list for all reachable parties, not just the hub’s own identity.
Where Party IDs Come From
OCPI does not itself run a central registry of party IDs. The specification references ISO 15118 for the identifier format and notes that “in several standards, an issuing authority is mentioned that will keep a central registry of known Providers and Operators.” In practice, registries vary by country:
- Netherlands, Belgium, Luxembourg: the eViolin foundation maintains the registry of operator and provider IDs.
- Germany: the BDEW organisation keeps the registry through its general code number service.
- Other countries: the issuing practice varies. Some parties obtain identifiers through the hub or roaming network they join; others coordinate bilaterally with their partners.
The EVRoaming Foundation publishes guidance on Contract and EVSE IDs, including the relationship between party IDs and the broader eMI3 identifier scheme. Regardless of how the ID is obtained, the constraint remains the same everywhere: within any OCPI network, the combination of country_code, party_id and role must be unique.
For operators connecting through a hub, the hub’s onboarding process typically includes verifying that the party’s country_code and party_id do not collide with any existing party on the network, and registering the CredentialsRole accordingly. YoHub connects 70+ CPO networks and 40+ eMSPs as of October 2026 across its regional hubs, making 75,000+ stations reachable worldwide.
Frequently Asked Questions
Sources: OCPI 2.2.1 Credentials Module — EVRoaming Foundation | OCPI 2.2.1 Hub Client Info Module | OCPI 2.2.1 Transport and Format | OCPI 2.2.1 Locations Module | OCPI 2.2.1 CDRs Module | OCPI 2.3.0 Credentials Module
Researched and drafted with AI assistance; facts checked against the sources linked above and reviewed by the YoHub team.


