OCPI 2.2.1 Integration

Developer Documentation

Seamlessly integrate your e-Mobility Service Provider (eMSP) platform with our CPO infrastructure.

Receiver

1. Version Information

Retrieve supported OCPI versions and details. This is the entry point for the connection.

Public endpoint for version discovery.

Get Versions

To discover available versions and the URL for the version details.

GET/versions
AuthorizationPublic
Response
JSON
{
  "data": [
    {
      "version": "2.2.1",
      "url": "https://cms.dev.savekar.com/api/ocpi/cpo/2.2.1/details"
    }
  ],
  "status_code": 1000,
  "status_message": "Success",
  "timestamp": "2023-10-27T10:00:00Z"
}

Get Version Details

To find specific URLs for Credentials, Locations, Tariffs, Sessions, CDRs, and Commands.

GET/2.2.1/details
AuthorizationToken <TOKEN>
Response
JSON
{
  "data": {
    "version": "2.2.1",
    "endpoints": [
      { "identifier": "credentials", "role": "RECEIVER", "url": "..." },
      { "identifier": "locations", "role": "SENDER", "url": "..." },
      { "identifier": "tariffs", "role": "SENDER", "url": "..." },
      { "identifier": "sessions", "role": "SENDER", "url": "..." },
      { "identifier": "cdrs", "role": "SENDER", "url": "..." }
    ]
  },
  "status_code": 1000,
  "status_message": "Success",
  "timestamp": "..."
}