OCPI 2.2.1
Compare this step across versionsThe messages from a card tap to an active Session: the token is authorized, then the CPO pushes the new Session to the eMSP.
Let's see what happens when you start charging!
What You'll Learn:
- How the CPO can ask the eMSP to authorize a Token in real time
- What the eMSP answers
- How the CPO pushes the new Session to the eMSP
The Players in This Lesson:
CPO
CPOeMSP
EMSPMessage Flow:
POST /tokens/{token_uid}/authorize
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.
What OCPI 2.2.1 defines for this lesson
Modules in this version
Advertised sender and receiver interfaces
An endpoint declares how another platform can pull or push data. Credentials uses the same interface for both roles.
The header token is encoded
The request header carries an encoded token; the Credentials body still carries the raw token.
Billing records name the Token owner
A charge record names the country and company that own the driver's Token.