Getting Started

Prerequisites, environments, and first steps for integrating with ChargeIndia Hub.

Before you integrate, ensure your organization has a commercial agreement with ChargeIndia and has been assigned OCPI credentials.

Prerequisites

Commercial

  1. Contact your ChargeIndia account team to register as a CPO or eMSP.
  2. Receive your assigned country_code and party_id (e.g. IN + ABC).
  3. Confirm which partner networks you will roam with (routing rules are configured per eMSP↔CPO pair).

Technical

  • OCPI 2.2.1 compliance on your platform
  • HTTPS with a valid TLS certificate on your OCPI endpoints
  • Ability to implement both sender and receiver interfaces as required by your role
  • Persistent logging with correlation IDs for support

Environments

EnvironmentBase URL
Productionhttps://hub.chargeindia.com
Sandboxhttps://sandbox-hub.chargeindia.com

Use Sandbox for integration and UAT. Use Production for live roaming traffic. Your account team issues tokens and credentials for each environment.

Your account team will provide:

  • Hub base URL for your target environment (see table above)
  • Initial Hub-issued token for credentials exchange
  • Credentials exchange URL (POST /ocpi/2.2.1/credentials)

Integration checklist

All partners

  • [ ] Complete credentials exchange
  • [ ] Implement authentication on all Hub calls
  • [ ] Expose GET /ocpi/versions for Hub health monitoring
  • [ ] Register receiver module URLs with your account team
  • [ ] Verify routing rules cover your target partners

CPO partners

  • [ ] Push locations and tariffs to Hub
  • [ ] Implement token authorization receiver
  • [ ] Implement command receiver (START_SESSION, STOP_SESSION, etc.)
  • [ ] Push sessions and CDRs to Hub

eMSP partners

  • [ ] Implement token authorization caller
  • [ ] Implement command sender
  • [ ] Implement session and CDR receivers (async push from Hub)
  • [ ] Pull locations and tariffs from Hub

Coordinated testing

Run integration tests against Sandbox (https://sandbox-hub.chargeindia.com) with your ChargeIndia account team using a coordinated test matrix.

Prerequisites

  1. Commercial onboarding complete with assigned country_code, party_id, and Hub token
  2. Credentials exchange finished - see Onboarding
  3. Receiver URLs registered and routing enabled for your test partner pair
  4. Both parties available for a scheduled test window

Suggested test matrix

Run these steps in order with your account team observing Hub logs:

StepActorActionVerify
1BothGET /ocpi/versions and GET /ocpi/2.2.1OCPI 2.2.1 listed; modules present
2BothGET /ocpi/2.2.1/hubclientinfoCounterparty shows CONNECTED
3eMSPToken authorize via HubCPO returns ALLOWED
4eMSPSTART_SESSION commandCPO accepts; async result on response_url
5CPOPush active session with valid cdr_tokeneMSP receives async session update
6eMSPSTOP_SESSION commandCPO completes session
7CPOPOST CDReMSP receives async CDR

See Session Lifecycle and Certification for detailed sign-off criteria.

If a step fails, start with Troubleshooting before contacting support.

Continue to your path

After completing the shared checklist above, follow your role-specific integration path:

Verify connectivity

After credentials exchange, call:

GET /ocpi/versions
Authorization: Token {your-hub-token}

You should receive OCPI version 2.2.1 with a URL to version details. Then call version details to confirm module endpoints:

GET /ocpi/2.2.1
Authorization: Token {your-hub-token}