Read a Session and CDR from a CPO
Use an OCPI 2.2.1 CPO endpoint with a Commands Receiver and Locations, Sessions and CDRs Sender interfaces. ChargerDojo plays the eMSP and reads the Session and charge detail record (CDR) from your CPO.session_id on a record returned by the CDRs GET. Compare the
Session’s kwh with the CDR’s total_energy. N16 checks the response envelope on each read.
OCPI 2.1.1 CDRs carry the Token reference in auth_id and have no session_id field.
OCPI 2.2.1 allows a CDR to omit session_id if the CPO does not implement Sessions or
the CDR is for a reservation that never became a charging Session.
Deliver a Session and CDR to an eMSP
Use an OCPI 2.2.1 eMSP endpoint that advertises Sessions and CDRs Receivers. ChargerDojo plays the CPO and sends a Session and charge detail record (CDR) to that eMSP. Select the Sandbox eMSP if you want to try this without a partner.Location header. Compare the Session ID and energy
in the final Session and CDR request bodies.
Reserve, read the reserved Session, then cancel
Use an OCPI 2.2.1 CPO endpoint with a Commands Receiver and Locations and Sessions Sender interfaces. The test Location needs an eligible EVSE with theRESERVABLE capability. See command names and checks.
reservation: 1 because RESERVE is the first entry in actions.
In the report, C13 covers the reservation command exchanges and checks that
an accepted RESERVE creates a Session that carries the RESERVE request’s
authorization_reference and has status RESERVATION. The
OCPI 2.2.1 SessionStatus enum
defines RESERVATION as “The session is started due to a reservation, charging has not yet started.”
ChargerDojo also accepts RESERVED, the spelling in the Reservation section.
The Session object
requires the same reference when RESERVE supplies it.
Open the CANCEL request and compare its reservation ID with the one sent by
RESERVE. The CANCEL result shows whether the CPO cancelled it.
See the manifest field reference for file settings
and the command values
for other command forms.