Implementing OCPI on the Hubject Intercharge hub
Step-by-step guidance for CPOs and EMPs connecting over OCPI 2.2 or 2.2.1, from the first onboarding form to go-live.
1. Apply → 2. Connect → 3. Integrate → 4. Test → 5. Go live
Quick facts: Protocol OCPI 2.2 OCPI 2.2.1 Hub identity DE*ICE Roles CPO EMP (one role per connection) Questions? onboarding@hubject.com
Contents
1. Getting started
1.1 Onboarding steps
1 Submit forms → 2 Receive Portal access and Token A → 3 Set up the Portal → 4 Credentials exchange → 5 Verify connection
- Submit the onboarding form and the business and technical questionnaires, including your OCPI version, token encoding,
party_id/country_codeand static backend IPs. - Hubject creates your account on QA and sends you your Portal admin credentials and your Token A for the credentials exchange.
- Check your master data and technical contact in the Portal, create additional users and configure sub-partners if needed. As a CPO, also create your first Service Offers: without one, no OCPI data can be pushed.
- Complete the credentials exchange using that Token A (see 1.4).
- Verify the connection via the Versions endpoint (see 1.6).
Contact: onboarding@hubject.com
Note: Choose OCPI 2.2 or 2.2.1 – one version per connection, which cannot be changed afterwards. The Hub translates between the two versions, so you can work with partners on either.
Note: Partners acting as both CPO and EMP need two separate connections, each with its own account, token and credentials handshake. The same party_id can be used for both.
Tip: QA and Production are separate accounts. Once QA is signed off, the same steps run again on Production with a new Token A – a Token C from QA does not work on Production.
1.2 Implementation path by role
Once your account exists, work through the steps for your role in this order. Each step links to the section with the details.
As a CPO
| Step | What to do | Details |
|---|---|---|
| 1 | Create your Service Offers in the Portal (Offer to all and/or bilateral offers) | 1.3 |
| 2 | Complete the credentials exchange and verify the Versions endpoint | 1.4 |
| 3 | Push your Tariffs: to DE*ICE for your Offer to all, to a named EMP for a bilateral offer | 3.2 |
| 4 | Push your Locations to DE*ICE, with the tariff_ids of all your offers on each connector |
3.1 |
| 5 | Send every Token authorization through the Hub and keep the authorization_reference
|
3.3 |
| 6 | Handle remote START_SESSION / STOP_SESSION and reply to the sending EMP | 3.4 |
| 7 | Push Sessions and CDRs to the EMP, carrying the authorization_reference
|
3.5, 3.6 |
| 8 | Run the test scenarios, then repeat on Production | 4 |
As an EMP
| Step | What to do | Details |
|---|---|---|
| 1 | Complete the credentials exchange and verify the Versions endpoint | 1.4 |
| 2 | Push all your Tokens to DE*ICE | 3.3 |
| 3 | Implement the authorization endpoint if your tokens use ALLOWED_OFFLINE or NEVER
|
3.3 |
| 4 | Subscribe to CPO Service Offers in the Portal (you can review their tariffs first) | 1.3 |
| 5 | After each new subscription, pull that CPO's existing Locations and Tariffs; updates are pushed to you afterwards | 3.1, 3.2 |
| 6 | Send START_SESSION / STOP_SESSION commands and process the CommandResult | 3.4 |
| 7 | Receive Sessions and CDRs | 3.5, 3.6 |
| 8 | Run the test scenarios, then repeat on Production | 4 |
1.3 Portal access
| Environment | URL |
|---|---|
| QA | https://portal-beta-qa.hubject.com |
| Production | https://portal.hubject.com |
The Portal provides:
- Master data management – organization data
- User management – admin users can create additional users
- Sub-partner management – configure sub-partners
- Business contracts – CPOs create and manage Service Offers; EMPs subscribe or cancel
- Financial Services – billing, settlement and invoicing; sign up and configure it in the Portal to activate
- Process Monitor – log views of your OCPI calls (see 2.5)
Service offer types
| Offer type | Flow | How it works |
|---|---|---|
| Bilateral offer | CPO → one named EMP | Between one CPO and one named EMP – create a separate offer per EMP. |
| Offer to all | CPO → DE*ICE → all subscribed EMPs | Any EMP can subscribe. The CPO pushes locations and tariffs once to DE*ICE and every subscriber receives them. |
- Only one Offer to all can be active at a time. To replace it, set a cancellation date on the active one first, then create the new one as a future offer starting after that date.
- An Offer to all has no valid-to date; it runs until either side cancels it, respecting the agreed cancellation period.
- Subscription requests can be auto-approved or approved in two steps – you choose per offer.
- An EMP can have only one active offer with a given CPO at a time.
- OICP EMPs can subscribe to your offers too (see 1.8).
Tariffs linked to a Service Offer can be viewed and downloaded in the Portal on both offer types, even before the EMP subscribes. Prices are shown excluding VAT.
CPO creates the Service Offer → CPO pushes the tariff → EMP reviews it in the Portal → EMP subscribes with the pricing in place
1.4 Credentials exchange (Token A → B → C)
OCPI uses the word “token” for two different things. A credential token (Token A, B or C) authenticates your backend against the API – that is what this section is about. A charging token is what an EV driver presents at the charge point, such as an RFID card; it belongs to the Tokens module (see 3.3).
Token A (from Hubject, used once) → Token B (yours, sent to the Hub) → Token C (from the Hub, used for all calls)
The handshake flow
| Step | Direction | What happens |
|---|---|---|
| 1 | Your platform → Hub | GET the Hub's /versions endpoint using Token A. |
| 2 | Your platform → Hub | GET the version details for your OCPI version and read the Hub's /credentials endpoint URL. |
| 3 | Your platform → Hub | POST your credentials (your Token B, your versions URL and your role) to the Hub's /credentials endpoint, using Token A. |
| 4 | Hub → Your platform | The Hub calls your versions endpoint with Token B to read your endpoints. |
| 5 | Hub → Your platform | The Hub answers your POST with its credentials, containing Token C. Token A is no longer valid. |
From then on, your platform calls the Hub with Token C, and the Hub calls your platform with Token B.
- Your platform always starts the handshake, using the Token A from Hubject.
- The handshake must match the
party_idand country code from your onboarding form for that role. - The
rolesarray in your credentials POST must contain exactly one role object. - The Hub responds with role
HUB– your implementation must accept it, otherwise the handshake cannot complete. - No client-side certificates are required: authentication works entirely through the tokens; server-side certificates are only used for TLS.
Token encoding
OCPI 2.2.1 introduced Base64 encoding for the token in the Authorization header. The Hub supports both representations and stores your choice per connection:
| Setting | Authorization header |
|---|---|
| Base64 | Token Base64-encoded, as introduced in OCPI 2.2.1 |
| Plain | Token sent as-is |
The setting is symmetric: the Hub uses the same representation when calling your endpoints as it expects on the requests you send.
Important: The encoding is set when your account is created. Provide it with your onboarding form and technical questionnaire (see 1.1) and set it to match what your platform actually sends and expects.
1.5 IP addresses
Your backend → Hubject: provide your static backend IPs to the onboarding manager
Hubject → your backend: allow Hubject's outgoing IPs in your firewall
Hubject outgoing static IPs (source IPs of requests sent from the Hub to your backend):
| Environment | Static IP(s) |
|---|---|
| QA | 63.180.214.9 |
| Production |
63.182.83.10, 18.193.230.24
|
Important: Connect only from the static IPs you registered with Hubject.
1.6 Version endpoints
You call the interface of the role you connect to: CPOs call the /emsp/ endpoint, EMPs call the /cpo/ endpoint.
| Environment | Role | Versions endpoint |
|---|---|---|
| QA | CPO | https://gateway.hbs3-qa-env.hubject-qs.com/ocpi/emsp/versions |
| QA | EMP | https://gateway.hbs3-qa-env.hubject-qs.com/ocpi/cpo/versions |
| Production | CPO | https://service.intercharge.hubject.com/ocpi/emsp/versions |
| Production | EMP | https://service.intercharge.hubject.com/ocpi/cpo/versions |
1.7 Sub-partners
Sub-partners operate through a main partner's connection. The main partner owns the OCPI credentials and Service Offers; sub-partners exchange data using their own party_id and country_code.
Main partner DE/ABC – holds credentials, token and Service Offers → Sub-partner DE/XYZ – uses its own identifiers
- Configure sub-partners in the Portal under the main partner. Hubject approves each sub-partner's
country_codeandparty_idbefore it can be used – plan your IDs early. - All API calls are authenticated with the main partner's token.
- FROM headers can use the main partner's or a configured sub-partner's identifiers. With a sub-partner in the FROM headers, the URL path and body must name that same sub-partner.
- Object IDs are unique across the main partner and all its sub-partners (tariffs excepted: the same tariff ID can be used once per target EMP).
- Locations from the main partner and all its sub-partners are broadcast together to every subscribed EMP.
- Sub-partners cannot be addressed in the
OCPI-to-*headers for Locations and Tariffs; in the other modules they can (see 2.2). - Identifiers not registered as the main partner or a configured sub-partner are rejected with error
2001.
Example
PUT /ocpi/emsp/2.2.1/locations/DE/XYZ/LOC001
Authorization: Token <main-partner-token>
OCPI-from-country-code: DE
OCPI-from-party-id: XYZ # Sub-partner (or ABC for main partner)
OCPI-to-country-code: DE
OCPI-to-party-id: ICE
X-Request-ID: 5c8e2b14-7f3a-4d6b-9a21-0e4f6d8c2b37
X-Correlation-ID: 2a7d9f03-6b1e-4c58-8e4a-93f0b6d1c725
{
"country_code": "DE",
"party_id": "XYZ", // Sub-partner
"id": "LOC001",
...
}1.8 Connecting to OICP EMPs (CPO)
OCPI CPOs reach OICP 2.3 EMPs through the Hub without an OICP integration. You keep using OCPI for everything; the Hub translates your data and delivers it to the EMP.
Your CPO platform (OCPI) → Hubject hub (translates OCPI to OICP) → OICP 2.3 EMPs
- Complete OCPI onboarding and the credentials exchange (see 1.4).
- Create a Bilateral Service Offer for each OICP EMP, or one Offer to all that serves both OCPI and OICP EMPs.
- Push Tariffs to
DE*ICEfor your Offer to all, or to the specific EMP for a bilateral offer. - Push Locations to
DE*ICEwith the correspondingtariff_idson the connectors. - The OICP EMP subscribes to your Service Offer.
- Handle authorizations, sessions and CDRs – all via OCPI.
Important: OICP EMPs receive your locations without a subscription, and every location you push reaches all OICP EMPs. Authorization, sessions and CDRs still require an active subscription.
What gets translated
| You send (OCPI) | The EMP receives (OICP) | Things to consider | |
|---|---|---|---|
| Locations | → | EVSEData | Locations are split into EVSEs and require an EVSE ID (uid is not translated) |
| Tariffs | → | Pricing information | Shown to the EMP as a JSON object in the Portal |
| Sessions | → | ChargingNotifications | – |
| CDRs | → | ChargeDetailRecords | No pricing is delivered with the CDR unless Financial Services is used |
| Token Authorization | → | eRoamingAuthorization | Several OICP conditions map to the same OCPI code – read the status_message, not only the code |
1.9 Transitioning from OICP (CPO)
Existing OICP CPOs can switch their Hubject connection to OCPI inside their existing account – your Portal login, historical data and sub-partners carry over. Your Onboarding Manager agrees the plan with you before anything changes.
Important: The switch is effective immediately and cannot be reversed. Validate your readiness before confirming a date.
| Requirement | Detail |
|---|---|
| Current OICP protocol | OICP 2.3, REST API (SOAP integrations cannot be switched) |
| Target OCPI version | OCPI 2.2 or 2.2.1, chosen before the switch |
Steps
- Agree the switch with Hubject: target OCPI version,
party_id/country_codeand a transition end date. - Set a cancellation date on your active OICP Service Offers – ideally the transition end date.
- Submit the onboarding form and technical questionnaire.
- Hubject switches your account to OCPI on QA. Create your OCPI Service Offers and complete the credentials exchange (see 1.4).
- Push all Tariffs and Locations to QA, measure how long a complete push takes, and complete end-to-end testing with the onboarding team.
- Hubject switches Production; push all Locations and Tariffs immediately, then run Production testing.
- Replace every OICP Service Offer with an OCPI one and cancel the OICP offer, before the transition end date.
- Close sessions started over OICP with an OICP CDR. Once all are closed, Hubject revokes your OICP certificate assignment on an agreed date.
Important: On Production, a Location or Tariff is available to EMPs over OCPI only once you have pushed it, so push everything as soon as the switch happens. Your existing OICP Service Offers stay valid during the transition, with their pricing frozen.
- OICP offers are not cancelled automatically – cancel each one yourself once its OCPI replacement is in place.
- OCPI allows only one active Offer to all, sent with the TO header set to
DE*ICE. - After the switch, don't start new sessions over OICP and stop sending OICP Authorization Start, EVSE Data and EVSE Status.
- After the transition, Invoice Management, Intercharge DIRECT and the legacy Portal are no longer available for your account.
2. API requirements
2.1 Platform-specific requirements
The Hubject hub topology differs from peer-to-peer OCPI in a few places. Standard OCPI features work as specified, with one deviation: towards the CPO a token's whitelist is always NEVER, so every authorization passes through Hubject. Towards the EMP, the Hub respects the token's whitelist (see 3.3).
Core integration requirements
| Topic | What this means for you | What you must do | Applies to |
|---|---|---|---|
| Centralized token handling | EMPs push all tokens to Hubject; tokens are never distributed to CPOs. | EMP: push all Tokens to DE*ICE. CPO: send every Token/Authorize request to Hubject. Tokens no EMP has pushed are rejected as unknown. | CPO EMP |
| Authorization reference | The Hub provides a reference for every charge authorization – in the authorize response or passed on from the EMP's remote start. | Include it, unchanged, in every Session and CDR (see 2.3). | CPO |
| Remote start | A RemoteStart is already authorized. | Don't send a Token/Authorize request after a RemoteStart. | CPO |
| Locations are broadcast | All your locations reach every subscribed EMP. | Put the tariff_ids of all your Service Offers on every connector. | CPO |
| EVSE status updates | Status inside a full Location or EVSE PUT is used; a status-only PATCH is a broadcast. | Address status-only PATCHes to DE*ICE, never to individual EMPs. | CPO |
| Service Offer model | API data exchange between two partners requires an active subscription. Tariffs can be reviewed in the Portal before subscribing. | CPO: create offers and push tariffs early. EMP: subscribe to the offers you need. | CPO EMP |
Data & format requirements
| Topic | What this means for you | What you must do | Applies to |
|---|---|---|---|
| EVSE ID (eMI3) | Standardized EVSE IDs are required for interoperability. | The public evse_id follows eMI3 (e.g. DE*ABC*E123456). The evse_uid in URL paths is a separate, URL-safe field. |
CPO |
| Contract ID (eMI3) | Contract identifiers must follow a standardized format. | Use eMI3, with or without hyphens (DEABCC12345678X or DE-ABC-C12345678-X), always including the C and the trailing check character. | EMP |
| URL-safe identifiers | IDs used in URL paths must be URL-safe. | Use only alphanumeric characters, - and _ in evse_uid, location_id, connector_id, session_id, tariff_id and cdr_id. | CPO EMP |
| DateTime (RFC3339) | All datetime fields use UTC. | Use RFC3339 UTC timestamps (e.g. 2026-09-06T18:15:00.123Z), up to 25 characters. | CPO EMP |
2.2 Headers
Include the authorization header in every request:
Authorization: Token <your-token>
Functional modules are routed with the following headers. Versions and Credentials take no routing headers.
| Header | Description | Required |
|---|---|---|
OCPI-from-country-code |
Sender's country code (ISO 3166-1 alpha-2) | Always, except Credentials and Versions |
OCPI-from-party-id |
Sender's party ID (3 alphanumeric characters) | Always, except Credentials and Versions |
OCPI-to-country-code |
Receiver's country code | Per module, see below |
OCPI-to-party-id |
Receiver's party ID | Per module, see below |
- Send each pair complete. A pair with one header missing or empty is rejected with HTTP 400.
- The TO pair never names yourself or one of your own sub-partners (HTTP 400).
- FROM headers must match your token or a configured sub-partner; a mismatch is rejected with HTTP 401 (OCPI 2001).
Header usage per module and role
| Module | Role and call | FROM headers | TO headers | Sub-partner in TO |
|---|---|---|---|---|
| Locations | CPO push (PUT/PATCH) | Main partner or a configured sub-partner | Empty or DE*ICE | ✕ Not allowed |
| Locations | EMP pull (GET) | Own identifiers | The CPO, DE*ICE, or empty to get all | ✕ Not allowed |
| Tariffs | CPO push (PUT) | Main partner or a configured sub-partner | The EMP for bilateral, DE*ICE for Offer to all (empty is rejected) | ✕ Not allowed |
| Tariffs | EMP pull (GET) | Own identifiers | The CPO, DE*ICE, or empty for all CPOs | ✕ Not allowed |
| Tokens | EMP push (PUT/PATCH) | Own identifiers | DE*ICE only | ✓ Supported |
| Tokens | CPO authorize (POST) | Own identifiers | Empty (open routing) – the Hub resolves the EMP. Name the EMP only if you already know it | ✓ Supported |
| Sessions | CPO push (PUT/PATCH) | Main partner or a configured sub-partner | The EMP the authorization resolved to | ✓ Supported |
| Sessions | EMP pull (GET) | Own identifiers | The CPO | ✓ Supported |
| CDRs | CPO push (POST) | Main partner or a configured sub-partner | The EMP the authorization resolved to | ✓ Supported |
| CDRs | EMP pull (GET) | Own identifiers | The CPO | ✓ Supported |
| Commands | EMP sends START_SESSION or STOP_SESSION | Own identifiers | The CPO | ✓ Supported |
| Commands | CPO CommandResponse and CommandResult | Own identifiers | The EMP from the command's OCPI-from-* headers, in both replies | ✓ Supported |
| Credentials, Versions | Both roles | None | None | Not applicable |
Sessions and CDRs are addressed to the EMP, never to DE*ICE.
Tracing headers
Send both on every request and echo them on every response. The Hub returns them too, which lets support trace a call end to end:
| Header | Description |
|---|---|
X-Request-ID |
Unique ID for this single request, generated by the sender |
X-Correlation-ID |
Shared ID for all requests of one transaction (e.g. authorize → session → CDR) |
Routing examples
Broadcast push (CPO: Locations, EVSE status, Offer to all tariffs; EMP: Tokens):
OCPI-to-country-code: DE OCPI-to-party-id: ICE
Bilateral tariff push (to one named EMP):
OCPI-to-country-code: <partner country code> OCPI-to-party-id: <partner party id>
2.3 Authorization reference
Authorize response or START_SESSION provides authorization_reference → Session PUT/PATCH – same reference → CDR – same reference
- Token authorization: the Hub's response to the CPO's authorize request carries it.
-
Remote start: the EMP sets it in
START_SESSION, and the Hub passes it on to the CPO.
The CPO carries that reference, unchanged, in every Session and in the CDR – not in the CommandResponse or CommandResult. A Session or CDR without it is rejected with error 2001.
2.4 Error handling
Every response carries an HTTP status code, an OCPI status code and a status message:
{
"data": null,
"status_code": 2001,
"status_message": "Must be a valid ISO 639-1 alpha-2 code",
"timestamp": "2026-09-08T13:39:26Z"
}Most common errors
| Situation | HTTP | OCPI | What to check |
|---|---|---|---|
| FROM headers don't match the token or a configured sub-partner | 401 | 2001 | Headers and sub-partner configuration (2.2) |
| IDs in URL, headers and body don't match | 200 | 2001 | URL path, FROM headers and body must name the same party (1.7) |
Missing authorization_reference in Session or CDR |
200 | 2001 | Carry the reference unchanged (2.3) |
| Tariff PUT with empty TO headers | 200 | 2001 | Use DE*ICE for Offer to all tariffs |
| CDR ID already exists | 200 | 2001 | Each CDR ID is accepted once |
| Token unknown at authorization | 404 | 2004 | The EMP must push the token to DE*ICE first |
| No active subscription / wrong TO headers | 403 | 4001 | Address the right partner and check the subscription |
| Request body doesn't match the OCPI schema | 200 | 2001 | “Deserialization error” – check required fields, field names, enum values and data types |
2.5 Process Monitor
The Process Monitor in the Portal shows the OCPI calls your platform sends, per module, with diagnostics for failed calls. You can filter, sort and export: lists as CSV, payloads as JSON. The last five days are shown by default – use the date filter for older data.
Note: Credentials calls and calls made by the Hub to your platform are not listed – check those in your own request logs.
3. Module reference
3.1 Locations
| Role | Actions |
|---|---|
| CPO | PUT/PATCH locations to DE*ICE (broadcast) GET own locations by ID |
| EMP | Receives PUT/PATCH automatically GET locations ( OCPI-to-* = the CPO, or DE*ICE for all; paginated) |
- All locations are broadcast to every subscribed EMP, so put the tariff_ids of all your Service Offers on each connector.
- Link every connector to at least one tariff; otherwise the first configured tariff is used.
-
evse_idmust be eMI3 compliant (e.g. DE*ABC*E123456) – mandatory, and required for OICP connectivity. -
evse_uidis a separate, URL-safe field (alphanumeric, -, _; e.g. EVSE-0001), not a copy ofevse_id. - EMP: after a new subscription, pull the CPO's existing Locations. From then on the Hub pushes updates and new Locations to you.
-
Never delete an EVSE to take it out of service. Set its status to
REMOVEDand push it via PUT or PATCH.
3.2 Tariffs
| Role | Actions |
|---|---|
| CPO | PUT tariffs to DE*ICE for your Offer to all PUT tariffs to a named EMP for a bilateral offer GET own tariffs |
| EMP | Receives PUT GET tariffs ( OCPI-to-* = the CPO, or DE*ICE for all; paginated by date range) |
- All prices are handled excluding VAT. Send your tariff prices without VAT.
-
A tariff belongs to the Service Offer you push it to: DE*ICE for your Offer to all, a named EMP for your bilateral offer with that EMP. A tariff PUT with empty TO headers is rejected (
2001). - The offer must exist in the Portal before you push, but doesn't need to be subscribed yet – the EMP can review the tariff in the Portal first.
- On PUT, the Hub delivers the tariff to every EMP subscribed to that offer.
- Offer to all and bilateral tariffs don't mix: an EMP on a bilateral offer never receives your Offer to all tariffs.
-
To change a tariff, PUT an updated version under the same
tariff_id, or PUT a new tariff and update thetariff_idon your connectors. DELETE is not supported. - EMPs can retrieve tariffs over the API only from subscribed offers.
- Dynamic and complex pricing (time-based, energy-based, step pricing) is supported, and tariffs can be updated at any time.
3.3 Tokens
| Role | Actions |
|---|---|
| CPO | POST Token Authorization requests to the Hub (Charging Preferences not supported) |
| EMP | PUT/PATCH tokens to DE*ICE Receive forwarded authorization requests (see below) GET own tokens |
- EMPs push all tokens to the Hub; tokens are not pushed to CPOs.
- CPOs send every Token Authorize request to the Hub. A token no EMP has pushed is rejected as unknown (HTTP 404, OCPI
2004). -
contract_idmust be eMI3 compliant, with or without hyphens; the C and the trailing check character are required. - Plug & Charge (ISO 15118): use token type
OTHERwith the EMAID as UID; handled like RFID tokens.
Online authorization (EMP)
The Hub uses the token's whitelist to decide whether it answers from the token you pushed or asks your endpoint in real time:
| whitelist | How the Hub authorizes | If your endpoint doesn't answer |
|---|---|---|
ALWAYS |
Answers from the pushed token | Not applicable |
ALLOWED |
Answers from the pushed token while valid and unexpired; asks you if valid: false
|
Not applicable |
ALLOWED_OFFLINE |
Always asks you | Answers from the last pushed token: ALLOWED if valid and unexpired, otherwise BLOCKED |
NEVER |
Always asks you | The CPO receives BLOCKED |
- The Hub calls
POST /tokens/{token_uid}/authorize. A 9-second timeout, refused connection, HTTP 5xx or OCPI3000counts as no answer. - If you use
ALLOWED_OFFLINEorNEVER, you must implement this endpoint. - Keep pushed tokens current – PATCH a token as soon as its status changes.
3.4 Commands
| Role | Actions |
|---|---|
| CPO | Receives START_SESSION / STOP_SESSION Sends CommandResponse and CommandResult |
| EMP | Sends START_SESSION / STOP_SESSION (OCPI-to-* = the CPO)Receives the CommandResult |
| Step | Direction | What happens |
|---|---|---|
| 1 | EMP → Hub | START_SESSION or STOP_SESSION |
| 2 | Hub → CPO | Command forwarded with the Hub's response URL |
| 3 | CPO → Hub | CPO posts its CommandResult to that URL |
| 4 | Hub → EMP | The Hub forwards the result to the EMP's response URL |
-
Reply to the EMP that sent the command: use exactly the
country_codeandparty_idfrom the command'sOCPI-from-*headers as theOCPI-to-*headers of both the CommandResponse and the CommandResult. A reply addressed to any other party is rejected. - Carry the
authorization_referencefrom START_SESSION into the resulting Session (see 2.3). - Don't send a Token/Authorize request after a remote start.
3.5 Sessions
| Role | Actions |
|---|---|
| CPO | PUT/PATCH sessions to the EMP GET own sessions by ID |
| EMP | Receives PUT/PATCH automatically GET sessions ( OCPI-to-* = the CPO; by ID or paginated) |
- Every Session PUT/PATCH includes the
authorization_reference. - A session closes when its CDR is received or the timeout is exceeded.
3.6 CDRs
| Role | Actions |
|---|---|
| CPO | POST CDRs to the EMP GET own CDRs by ID |
| EMP | Receives CDRs automatically GET CDRs ( OCPI-to-* = the CPO; by ID or paginated) |
- Every CDR includes the
authorization_reference. - CDRs are immutable (POST only), and each CDR ID is accepted once – check your CDR before sending.
- Credit CDRs are not supported.
- With Financial Services,
total_costmust be present.
4. Testing & go-live
4.1 Preconditions
- ✓ Onboarding completed and Portal access active
- ✓ Static IPs registered with the onboarding manager
- ✓ Credentials exchange (Token A → B → C) successful and Versions endpoint reachable
- ✓ CPO: Service Offers created, Tariffs and Locations pushed
- ✓ EMP: Tokens pushed and subscribed to a test CPO's offer
4.2 Test scenarios
Connection test
Confirm the credentials exchange and that calls succeed in both directions. Check this in your own request logs, as credentials calls and Hub calls are not in the Process Monitor.
CPO validation:
| What | Done when |
|---|---|
| Service Offer | The offer is visible in the Portal and an EMP can subscribe |
| Locations (PUT/PATCH) | The push returns 1000 and the EMP can GET the location |
| Tariffs | The tariff is downloadable on the Service Offer and its tariff_id resolves on the connector |
| Token authorization | The authorize response returns an authorization_reference |
| Sessions (PUT/PATCH) | The session appears at the EMP and closes when the CDR arrives |
| CDRs | The CDR is accepted once; a second push with the same ID is rejected |
| Remote Start/Stop | The command reaches your backend and your CommandResult reaches the EMP |
EMP validation:
| What | Done when |
|---|---|
| Subscription | The subscription is active and the CPO's tariffs are retrievable over the API |
| Locations, Tariffs, Sessions, CDRs | Each arrives without manual intervention and matches what the CPO sent |
| Tokens (PUT/PATCH) | The token is accepted at DE*ICE and authorizes at a charge point |
| Online authorization | A token with ALLOWED_OFFLINE or NEVER reaches your endpoint and your answer decides the session |
| Commands | A remote start produces a session and a remote stop ends it |
Sub-partners (if used):
| What | Done when |
|---|---|
| Configuration | The sub-partner is approved in the Portal |
| Operation | A push with the sub-partner in the FROM headers is accepted; an unregistered ID returns 2001 |
End-to-end scenarios
RFID:
1 RFID authorization via OCPI → 2 OCPP Start/StopTransaction → 3 Session creation and updates → 4 CDR upload → 5 EMP data retrieval
Remote start:
1 EMP remote start → 2 Hub forwards the command to the CPO → 3 Charging start and stop → 4 Session handling → 5 CDR upload and retrieval
4.3 Go-live
- Hubject signs off your QA tests, including both end-to-end scenarios.
- Hubject creates your Production account and sends a new Token A.
- Repeat the credentials exchange against the Production Versions endpoint (see 1.6).
- CPO: create your Production Service Offers and push all Tariffs and Locations. EMP: push all Tokens and subscribe to the CPO offers you need, then pull their Locations and Tariffs.
- Run a first live transaction and check it in the Process Monitor.
5. Support & contact
| Channel | Contact |
|---|---|
| Onboarding | onboarding@hubject.com |
| Support | support@hubject.com |
| Tickets | Zendesk support portal |
5.1 Reporting an issue
Include the following in every ticket so we can trace the call quickly:
| Information | Where to find it |
|---|---|
X-Correlation-ID (and X-Request-ID) |
Your request/response logs or the Process Monitor |
| Timestamp in UTC (RFC3339) | The timestamp field of the response |
| Module and request type | e.g. a CDR POST – see the Process Monitor |
| Your party ID and the counterparty's | The OCPI-from-* / OCPI-to-* headers |
HTTP status, OCPI status_code and status_message
|
The response body (2.4) |
| Expected vs. actual behaviour, steps to reproduce | – |