OCPI

The OCPI service enables you to retrieve data in OCPI format.

You can use this service to integrate SAP E-Mobility CDRs into your applications and services for billing, reimbursement, and usage analysis.

The OCPI service is an implementation of the OCPI protocol.

The service uses REST.

Access Using an API Client

Use an API client of your choice to call this service using the endpoint URL.

The URL consists of the following parts:

<base URL>/<service name>/<market role>/<version>/<endpoint>
The URL parts are as follows:
  • Base URL: The attribute url as shown in the service key.

  • Service Name: The name of the service as specified in this guide.

  • Market Role: This part is only to be used for the OCPI service, where the market role (emsp or cpo) is part of the URL.

  • Version: The OCPI protocol version.

  • Endpoint: You can find the endpoint part of the URL in the operation descriptions in this guide.

In the authorization header of your API call, use the token that you retrieved in the previous step as the bearer token.

Example Header Keys for POST Call

Key

Value

Content-Type

application/json

Authorization

Bearer <token>

(replace <token> with your own token)

Operations

This table lists the operations available.

HTTP Method

Path

Description

GET

/ocpi/cpo/2.2.1/cdrs

Retrieves a collection of CDRs.

Documentation

To access the OCPI implementation documentation, including the search parameters and the returned payload, see SAP E-Mobility APIs on the SAP Business Accelerator HubInformation published on SAP site (only available in English).

For more information about this protocol, see https://evroaming.org/downloads/Information published on non-SAP site.