ChargeIndia Hub defines a small set of India-specific business error codes so every CPO and eMSP can handle the same rejects the same way. These codes extend OCPI 2.2.1 CommandResponse / CommandResult. They do not replace result or the OCPI status_code.
Protocol vs business
A business reject is HTTP 200, OCPI status_code: 1000, and data.result: REJECTED. Use status_code for Hub and protocol failures (2000, 2001, 2003, 4002, ...). See Rate Limits & Errors. For AutoStop client errors (status_code: 2000), see AutoStop.
Wire format
Add one message entry with language: "x-cih" and text set to the code. Optionally add an en entry for human-readable text.
{
"status_code": 1000,
"status_message": "Success",
"timestamp": "2026-12-01T09:30:00Z",
"data": {
"result": "REJECTED",
"timeout": 0,
"message": [
{ "language": "x-cih", "text": "INSUFFICIENT_PARTNER_BALANCE" },
{ "language": "en", "text": "Partner wallet balance is too low to start the session" }
]
}
}
Parse rule: the entry with language === "x-cih" is the code. All other entries are display text. Unknown codes: treat the command as rejected using result only.
Non-standard language tag
OCPI 2.2.1 defines DisplayText.language as a 2-letter ISO 639-1 code. x-cih is a ChargeIndia extension and may fail strict schema validation in some clients. eMSPs can opt out.
Codes
All codes below are returned on the synchronous command response (HTTP 200, data.result: REJECTED). No async callback is used for them. The CPO emits every code; Hub only forwards them and does not evaluate wallets, reservations, or similar eligibility.
| Code | result | Emitted by | Meaning | Retry |
|---|---|---|---|---|
INSUFFICIENT_PARTNER_BALANCE | REJECTED | CPO | The eMSP's partner wallet held with the CPO has insufficient balance. | After the partner wallet is topped up |
INSUFFICIENT_FLEET_WALLET_BALANCE | REJECTED | CPO | The fleet user's wallet has insufficient balance. | After the fleet user recharges |
DUPLICATE_SESSION_REQUEST | REJECTED | CPO | The authorization_reference was already used for an existing session within the CPO's duplicate window (default 24 hours). | Only with a new authorization_reference |
GUN_RESERVED | REJECTED | CPO | The connector is reserved by a CPO user (for example in the CPO app or on-site). | After the reservation expires, or use another connector |
REMOTE_START_IN_PROGRESS | REJECTED | CPO | Another OCPI/remote start or booking is already pending or active on the connector. | After the existing remote start ends or times out |
Examples
DUPLICATE_SESSION_REQUEST:
{
"status_code": 1000,
"status_message": "Success",
"timestamp": "2026-12-01T09:30:00Z",
"data": {
"result": "REJECTED",
"timeout": 0,
"message": [
{ "language": "x-cih", "text": "DUPLICATE_SESSION_REQUEST" },
{ "language": "en", "text": "This authorization reference was already used for a session recently" }
]
}
}
GUN_RESERVED:
{
"status_code": 1000,
"status_message": "Success",
"timestamp": "2026-12-01T09:30:00Z",
"data": {
"result": "REJECTED",
"timeout": 0,
"message": [
{ "language": "x-cih", "text": "GUN_RESERVED" },
{ "language": "en", "text": "Connector is reserved; try again after the reservation expires" }
]
}
}
Duplicate window
DUPLICATE_SESSION_REQUEST is enforced by the CPO. The default window is 24 hours for the same authorization_reference. Each CPO may publish a different window during onboarding. Hub does not track authorization_reference reuse for this purpose.
Opting out (eMSP)
x-cih entries are sent to all eMSPs by default. If your platform cannot accept them, notify your ChargeIndia account team. Hub will stop including x-cih entries in command responses and callbacks sent to you. Instead you receive a single en fallback line (for example Partner wallet balance is too low to start the session) and the normal OCPI result.
Disclaimer
If you opt out, you will not receive the standard business error codes. Your platform will not be able to detect or handle these business errors efficiently, and you must rely only on data.result and the English fallback text. ChargeIndia does not guarantee support outcomes that depend on these codes for opted-out eMSPs. You can opt back in at any time through your account team.
Opt-outs are applied and audited by ChargeIndia administrators. CPOs must always emit the codes; Hub removes them only on delivery to opted-out eMSPs.
Responsibilities
- CPO: return a synchronous
REJECTEDwith the matchingx-cihcode. Emit exactly one code per reject path above. Always send the code, even if the eMSP has opted out (Hub handles the downgrade). - eMSP: branch UX and retry behaviour on the code, not on free text, or formally opt out and accept the disclaimer above.
- Hub: routes and forwards messages. It does not evaluate wallets or reservations.
Certification
- [ ] CPO emits one
x-cihcode per reject path in the table above - [ ] eMSP parses
language: "x-cih"and maps each code to UX and retry behaviour, or has formally opted out