Explore the OCPI messages

By Abhishek Uniyal · Updated

Step 4 of 5

An OCPI message has a sender, a receiver and an endpoint. Inspect the request and read the HTTP status separately from the response body.

What changes in OCPI 2.1.1
Modules in OCPI 2.1.1
Sessions
CDRs
Locations
Tariffs
Tokens
Commands
Credentials
Versions
No advertised interface-role field

Endpoint descriptions name the module and URL without an interface-role field.

The header carries the token value

The request header carries the shared credentials token value.

Session ID uses case-sensitive text

The Session ID uses text whose letter case matters.

What should I inspect in a message?

Read the protocol result in this response excerpt. It does not prove what a billing system did.

Teaching example · OCPI 2.1.1 response body excerpt

{
  "status_code": 1000
}

The OCPI response field status_code describes the protocol result; 1000 is generic success. Use Protocol details on a guided step to open its payload excerpt and the source clauses. An excerpt may omit required fields.

Sources (2)
"Response code, as listed in Status Codes, indicates how the request was handled. To avoid confusion with HTTP codes, at least four digits are used."OCPI 2.1.1 Transport and format chapter · #response-format1000: Generic success codeOCPI 2.1.1 Status codes chapter · #1xxx-success
Read the new Session request