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.
How do I follow one charge?
Open the guided charge and move through each exchange with Previous and Next. Compare what each party holds before moving on. For a simulated network, start EV Simulator and inspect the message history as it runs.
- Read whether the Token may charge
- Inspect the new Session
- Compare the changed fields
- Find the final Session status
- Follow the billing record
Sources (13)
"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-methodALLOWED: 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-format1000: Generic success codeOCPI 2.1.1 Status codes chapter · #1xxx-success"When the CPO creates a Session object they push it to the eMSPs by calling PUT on the eMSPs Sessions endpoint with the newly created Session object."OCPI 2.1.1 Sessions module · #11-push-model"Any changes to a Session in the CPO system are sent to the eMSP system by calling PATCH on the eMSPs Sessions endpoint with the updated Session object."OCPI 2.1.1 Sessions module · #11-push-model"Same as the PUT method, but only the fields/objects that have to be updated have to be present, other fields/objects that are not specified are considered unchanged."OCPI 2.1.1 Sessions module · #223-patch-method"Sessions cannot be deleted, final status of a session is: `COMPLETED`."OCPI 2.1.1 Sessions module · #11-push-model"When the CPO creates CDR(s) they push them to the relevant eMSP by calling POST on the eMSPs CDRs endpoint with the newly created CDR(s)."OCPI 2.1.1 CDRs module · #11-push-model"The response should contain the URL to the just created CDR object in the eMSP system."OCPI 2.1.1 CDRs module · #222-post-method"CDRs are created by the CPO. They probably only will be sent to the eMSP that will be paying the bill of a charging session. Because a CDR is for billing purposes, it cannot be changed/replaced, once sent to the eMSP, changes are not allowed in a CDR."OCPI 2.1.1 CDRs module · #1-flow-and-lifecycle