API Reference

Overview of ChargeIndia Hub OCPI 2.2.1 API modules.

All endpoints are under https://{hub-domain}/ocpi/2.2.1/ unless noted. Authenticate with Authorization: Token {token}.

Base paths

PathDescription
/ocpi/versionsList supported OCPI versions
/ocpi/2.2.1Version details and module URLs
/ocpi/2.2.1/{module}Module-specific endpoints

Module index

ModuleHub interfacesPrimary callers
VersionsSENDERAll partners
CredentialsRECEIVERAll partners
HubClientInfoSENDERAll partners
LocationsSENDER + RECEIVERCPO push; eMSP pull
TariffsSENDER + RECEIVERCPO push; eMSP pull
TokensRECEIVEReMSP authorize
CommandsRECEIVEReMSP send; CPO callback
SessionsRECEIVER + SENDERCPO push; eMSP receives async
CDRsRECEIVER + SENDERCPO push; eMSP receives async

Response format

All responses use the OCPI envelope:

{
  "status_code": 1000,
  "status_message": "Success",
  "timestamp": "2025-06-23T10:00:00.000Z",
  "data": { }
}

Payload specifications

Request and response body shapes follow the OCPI 2.2.1 specification. These reference pages document Hub-specific behavior, roles, and paths.

Hub identity in version details

{
  "version": "2.2.1",
  "endpoints": [
    { "identifier": "credentials", "role": "RECEIVER", "url": "..." },
    { "identifier": "locations", "role": "RECEIVER", "url": "..." },
    { "identifier": "locations", "role": "SENDER", "url": "..." }
  ]
}

Related docs