OCPI 2.1.1
Compare this step across versionsThe OCPI messages of one charging session, in the order the CPO sends them to the eMSP.
0 / 5 completed
The OCPI messages of one charging session, in order
What You'll Learn:
- The order of the OCPI messages in one charging session
- Which messages the CPO sends to the eMSP and when
The Players in This Lesson:
CPO
CPOeMSP
EMSPMessage Flow:
Step 0 of 5
CPO
POST /tokens/{token_uid}/authorize
eMSP
Message: Real-time authorization
Details: When the eMSP has its Tokens authorized in real time, the CPO asks the eMSP whether a Token may charge, optionally at a given Location. The eMSP answers with an AuthorizationInfo object, and ALLOWED means the Token may charge.
"An eMSP might want their Tokens to be authorizated 'real-time', not white-listed. For this the eMSP has to implement the POST Authorize request and set the Token.whitelist field to `NEVER` for Tokens they want to have authorized 'real-time'."OCPI 2.1.1 Tokens module · #13-real-time-authorization"Do a 'real-time' authorization request to the eMSP system, validating if a Token might be used (at the optionally given Location)."OCPI 2.1.1 Tokens module · #222-post-method"The endpoint response contains a AuthorizationInfo object."OCPI 2.1.1 Tokens module · #222-post-method"|ALLOWED |This Token is allowed to charge at this location."OCPI 2.1.1 Tokens module · #41-allowed-enum"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-format"|1000 |Generic success code"OCPI 2.1.1 Status codes chapter · #1xxx-success
What OCPI 2.1.1 defines for this lesson
Modules in this version
Locations
Sessions
CDRs
Tariffs
Tokens
Commands
Credentials
Hub Client Info
Charging Profiles
Payments
Bookings
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.