Skip to main content
Use these files to test a charge point operator (CPO) or e-mobility service provider (eMSP) endpoint. Start with remote start and stop if you need to check your CPO’s Commands and Sessions interfaces. Register your test endpoint, then select it in Charging journeys. For each file, choose Import scenario, then choose Use selected endpoint on Configure. Choose Preview the plan to check the steps. Choose Run journey and Open in Runs to inspect each exchange under Journey evidence.

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.
Preview shows a Locations GET, START and its result wait, a Sessions GET, STOP and its result wait, a second Sessions GET and a CDRs GET. The second Sessions GET reads the status available at 200 seconds. Schedule the CDRs GET late enough for your CPO to publish the CDR. In this OCPI 2.2.1 charging example, open the second Sessions GET in Journey evidence. Find its Session ID in 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.
Preview shows a Session PUT, a Session PATCH, a final Session PUT and a CDR POST. The PATCH sends 1 kWh. The final PUT closes the same Session. With no later energy override, the final Session and CDR both use 1 kWh. In the report, S01 checks acceptance of the Session PUT. S10 and S11 check the Session update and PATCH. N16 checks the OCPI response envelope on the close. B01 checks that the eMSP accepts the CDR and returns the new CDR’s URL in the HTTP 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 the RESERVABLE capability. See command names and checks.
Preview shows six steps. The Locations GET finds an EVSE before RESERVE. ChargerDojo waits for the result of each command. The Sessions GET and CANCEL both use 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.