When you push locations, tariffs, and sessions to ChargeIndia Hub, URL paths and object bodies use your CPO identity. Hub authenticates with the Hub token, then forwards the same CPO {country_code}/{party_id} to routed eMSPs.
For the shared model (auth = Hub, path = owning CPO), see Hub Receiver Identity.
Requirements
When pushing data to Hub:
- Use your own CPO
country_codeandparty_idin URL paths and object bodies. - Hub forwards the same identifiers to routed eMSPs. Do not use Hub (
CIH) in path or body owner fields. - Include
cdr_tokenwith the eMSP's party on every session so Hub can route async delivery. Do not setcdr_tokento Hub (CIH).
Copy token.country_code and token.party_id from the inbound START_SESSION command (or the authorize token) into session cdr_token. That identity is the eMSP that started the session, not your Hub credentials peer.
While your party is in active COMPATIBILITY grace, Hub may still deliver sessions/CDRs if cdr_token is Hub (CIH) by resolving the eMSP from a matching START_SESSION (authorization_reference, else token uid). This does not change OCPI path/auth semantics and is not available after you are marked COMPLIANT (or grace expires). Always send the real eMSP identity before exiting COMPATIBILITY.
Location forward example
You send:
PATCH /ocpi/2.2.1/locations/IN/CPO/LOC1/EVSE1
Authorization: Token {cpo-token}
Content-Type: application/json
{ "status": "CHARGING", "uid": "EVSE1" }
Hub forwards the same path and body to eMSP receivers. The path uses your identifiers, not Hub (IN / CIH).
Checklist
- [ ] Location/tariff/session pushes to Hub use your CPO
{country_code}/{party_id}in path and body - [ ] Session
cdr_tokenidentifies the correct eMSP on every update (never HubCIH) - [ ]
cdr_tokenis copied from START_SESSION / authorizetoken, not from Hub credentials
Troubleshooting
| Symptom | Likely cause | Fix |
|---|---|---|
| Location push succeeds on Hub but eMSP never updates | eMSP receiver rejecting path party | Ask the eMSP to follow eMSP Hub Receiver Identity |
| Session not delivered to eMSP | Missing cdr_token on session push | Set eMSP identity on every session update |
Session not delivered; cdr_token is Hub (CIH) | Wrong identity; COMPLIANT (or expired COMPATIBILITY) or no matching START_SESSION for rewrite | Re-PUT/PATCH with eMSP country_code/party_id from START_SESSION token. During active COMPATIBILITY, Hub may rewrite via START_SESSION when authorization_reference or token uid matches |