Knowledge check

By Abhishek Uniyal · Updated

Two field puzzles, then 7 questions on who sends what and the failures that read backwards. A puzzle shows its answer and source when you check a field. A question shows its answer as soon as you pick an option. Nothing is saved as a score.

Sender finding · authored example, no peer is connected

In OCPI 2.2.1, which field is missing from this Sessions PATCH?

PATCH/emsp/sessions/NL/FPN/SESSION-101

Request

{
  "kwh": 2.4,
  "status": "ACTIVE"
}
Select the missing field
Show the answer and its source

last_updated is missing.

This PATCH is missing last_updated. Every Sessions PATCH request has to carry it; a receiver may answer 2001, but the finding is about the sender.

Sources (2)
"Any request to the PATCH method SHALL contain the `last_updated` field."OCPI 2.2.1 Sessions module · #mod_sessions_patch_method2000: Generic client error 2001: Invalid or missing parameters , for example: missing `last_updated` field in a PATCH request. 2002: Not enough information, for example: Authorization request with too little information. 2003: Unknown Location, for example: Command: START_SESSION with unknown location. 2004: Unknown Token, for example: 'real-time' authorization of an unknown Token. 29xx: Reserved range for custom client error status codes (2900-2999).OCPI 2.2.1 Status codes chapter · #status_codes_2xxx_client_errors

Response finding · authored example, no peer is connected

In OCPI 2.2.1, which required field is missing from this Session?

GET/emsp/sessions/NL/FPN/SESSION-101

Response data

{
  "country_code": "NL",
  "party_id": "FPN",
  "start_date_time": "2026-10-09T09:00:00Z",
  "kwh": 2.4,
  "cdr_token": {
    "country_code": "NL",
    "party_id": "GCH",
    "uid": "NLGCH00001234",
    "type": "RFID",
    "contract_id": "NL-GCH-C00001234-K"
  },
  "auth_method": "WHITELIST",
  "location_id": "NORTHBANK",
  "evse_uid": "EVSE-01",
  "connector_id": "1",
  "currency": "EUR",
  "status": "ACTIVE",
  "last_updated": "2026-10-09T09:05:00Z"
}
Select the missing field
Show the answer and its source

id is missing.

This Session has no id. The Session object requires it, cardinality 1: it identifies the Session in the CPO platform. end_date_time and total_cost are optional.

Sources (2)
id · CiString(36) · cardinality 1: The unique id that identifies the charging session in the CPO platform.OCPI 2.2.1 Sessions module · #mod_sessions_session_objectcountry_code · CiString(2) · cardinality 1: ISO-3166 alpha-2 country code of the CPO that 'owns' this Session. party_id · CiString(3) · cardinality 1: ID of the CPO that 'owns' this Session (following the ISO-15118 standard). id · CiString(36) · cardinality 1: The unique id that identifies the charging session in the CPO platform. start_date_time · DateTime · cardinality 1: The timestamp when the session became ACTIVE in the Charge Point. When the session is still PENDING, this field SHALL be set to the time the Session was created at the Charge Point. When a Session goes from PENDING to ACTIVE, this field SHALL be updated to the moment the Session went to ACTIVE in the Charge Point. end_date_time · DateTime · cardinality ?: The timestamp when the session was completed/finished, charging might have finished before the session ends, for example: EV is full, but parking cost also has to be paid. kwh · number · cardinality 1: How many kWh were charged. cdr_token · CdrToken · cardinality 1: Token used to start this charging session, including all the relevant information to identify the unique token. auth_method · AuthMethod · cardinality 1: Method used for authentication. This might change during a session, for example when the session was started with a reservation: ReserveNow: `COMMAND`. When the driver arrives and starts charging using a Token that is whitelisted: `WHITELIST`. authorization_reference · CiString(36) · cardinality ?: Reference to the authorization given by the eMSP. When the eMSP provided an `authorization_reference` in either: real-time authorization, StartSession or ReserveNow this field SHALL contain the same value. When different `authorization_reference` values have been given by the eMSP that are relevant to this Session, the last given value SHALL be used here. location_id · CiString(36) · cardinality 1: Location.id of the Location object of this CPO, on which the charging session is/was happening. evse_uid · CiString(36) · cardinality 1: EVSE.uid of the EVSE of this Location on which the charging session is/was happening. Allowed to be set to: `#NA` when this session is created for a reservation, but no EVSE yet assigned to the driver. connector_id · CiString(36) · cardinality 1: Connector.id of the Connector of this Location where the charging session is/was happening. Allowed to be set to: `#NA` when this session is created for a reservation, but no connector yet assigned to the driver. meter_id · string(255) · cardinality ?: Optional identification of the kWh meter. currency · string(3) · cardinality 1: ISO 4217 code of the currency used for this session. charging_periods · ChargingPeriod · cardinality *: An optional list of Charging Periods that can be used to calculate and verify the total cost. total_cost · Price · cardinality ?: The total cost of the session in the specified currency. This is the price that the eMSP will have to pay to the CPO. A total_cost of 0.00 means free of charge. When omitted, i.e. no price information is given in the Session object, it does not imply the session is/was free of charge. status · SessionStatus · cardinality 1: The status of the session. last_updated · DateTime · cardinality 1: Timestamp when this Session was last updated (or created).OCPI 2.2.1 Sessions module · #mod_sessions_session_object
Question 1 of 7

For OCPI 2.2.1 roaming, how does OCPI differ from OCPP 1.6?

Optional · authored trace, nothing is graded

Predict who sends each message of the Charging lab

  1. 01User → Charger · Driver taps an RFID card on the charger

Who sends message 02?

Which answer belongs to this version?

Check a version boundary before applying a rule to another integration. Choose a statement, then try again or ask for the answer and source. You can change your choice.

OCPI 2.1.1: Must a Sessions PATCH request carry last_updated?
Show the answer and its source

A PATCH carries only the fields that changed. The PATCH subsection adds no last_updated requirement.

Source
"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
OCPI 2.1.1: How does the Authorization header carry the credentials token?
Show the answer and its source

The header parameter is printable, non-whitespace ASCII. The request format defines no Base64 step.

Source
"The literal 'Token' indicates that the token based authentication mechanism is used. Its parameter is a string consisting of printable, non-whitespace ASCII characters."OCPI 2.1.1 Transport and format chapter · #request-format
OCPI 2.1.1: Does the version define a Payments module, and where?
Show the answer and its source

Payments is unavailable in this core version.

Source
CDRs · cdrs: Commands · commands: Credentials & registration · credentials: Required for all implementations Locations · locations: Sessions · sessions: Tariffs · tariffs: Tokens · tokens:OCPI 2.1.1 Version information endpoint chapter · #moduleid-enum
OCPI 2.1.1: Which fields advertise a module endpoint?
Show the answer and its source

Endpoint has identifier and url, with no role field.

Source
identifier · ModuleID · cardinality 1: Endpoint identifier. url · URL · cardinality 1: URL to the endpoint.OCPI 2.1.1 Version information endpoint chapter · #endpoint-class
OCPI 2.1.1: How does a CDR identify the Token used for charging?
Show the answer and its source

The CDR carries auth_id, a reference to the Token.

Source
id · CiString(36) · cardinality 1: Uniquely identifies the CDR within the CPOs platform (and suboperator platforms). start_date_time · DateTime · cardinality 1: Start timestamp of the charging session. stop_date_time · DateTime · cardinality 1: Stop timestamp of the charging session. auth_id · string(36) · cardinality 1: Reference to a token, identified by the auth_id field of the Token. auth_method · AuthMethod · cardinality 1: Method used for authentication. location · Location · cardinality 1: Location where the charging session took place, including only the relevant EVSE and Connector. meter_id · string(255) · cardinality ?: Identification of the Meter inside the Charge Point. currency · string(3) · cardinality 1: Currency of the CDR in ISO 4217 Code. tariffs · Tariff · cardinality *: List of relevant tariff elements, see: Tariffs. When relevant, a "Free of Charge" tariff should also be in this list, and point to a defined "Free of Charge" tariff. charging_periods · ChargingPeriod · cardinality +: List of charging periods that make up this charging session. A session consists of 1 or more periods, where each period has a different relevant Tariff. total_cost · number · cardinality 1: Total cost (excluding VAT) of this transaction. total_energy · number · cardinality 1: Total energy charged, in kWh. total_time · number · cardinality 1: total duration of this session (including the duration of charging and not charging), in hours. total_parking_time · number · cardinality ?: Total duration during this session that the EV is not being charged (no energy being transfered between EVSE and EV), in hours. remark · string(255) · cardinality ?: Optional remark, can be used to provide addition human readable information to the CDR, for example: reason why a transaction was stopped. last_updated · DateTime · cardinality 1: Timestamp when this CDR was last updated (or created).OCPI 2.1.1 CDRs module · #31-cdr-object
OCPI 2.1.1: How is total_cost represented in a CDR?
Show the answer and its source

total_cost is a number, excluding VAT.

Source
id · CiString(36) · cardinality 1: Uniquely identifies the CDR within the CPOs platform (and suboperator platforms). start_date_time · DateTime · cardinality 1: Start timestamp of the charging session. stop_date_time · DateTime · cardinality 1: Stop timestamp of the charging session. auth_id · string(36) · cardinality 1: Reference to a token, identified by the auth_id field of the Token. auth_method · AuthMethod · cardinality 1: Method used for authentication. location · Location · cardinality 1: Location where the charging session took place, including only the relevant EVSE and Connector. meter_id · string(255) · cardinality ?: Identification of the Meter inside the Charge Point. currency · string(3) · cardinality 1: Currency of the CDR in ISO 4217 Code. tariffs · Tariff · cardinality *: List of relevant tariff elements, see: Tariffs. When relevant, a "Free of Charge" tariff should also be in this list, and point to a defined "Free of Charge" tariff. charging_periods · ChargingPeriod · cardinality +: List of charging periods that make up this charging session. A session consists of 1 or more periods, where each period has a different relevant Tariff. total_cost · number · cardinality 1: Total cost (excluding VAT) of this transaction. total_energy · number · cardinality 1: Total energy charged, in kWh. total_time · number · cardinality 1: total duration of this session (including the duration of charging and not charging), in hours. total_parking_time · number · cardinality ?: Total duration during this session that the EV is not being charged (no energy being transfered between EVSE and EV), in hours. remark · string(255) · cardinality ?: Optional remark, can be used to provide addition human readable information to the CDR, for example: reason why a transaction was stopped. last_updated · DateTime · cardinality 1: Timestamp when this CDR was last updated (or created).OCPI 2.1.1 CDRs module · #31-cdr-object

Review an assumption with its source

Use the field puzzles and questions to check an assumption while its explanation is close by. Field puzzles reveal Sources when you check a field. The final review includes Sources for missed questions.

An incorrect answer is a prompt to revisit the topic using the lesson links below. At the end, Review what you missed puts the missed questions, correct answers and Sources together. No score is saved.

Where to go next

Common questions

Is this an endpoint test?

No. The questions and field puzzles are authored learning exercises. Checking a field puzzle reveals its explanation and Sources. The final missed-question review includes Sources too. It does not send a request to your endpoint.

What should I do with an answer I missed?

Use the explanation to revisit that topic, or follow the lesson links below. At the end, Review what you missed shows the missed questions with their correct answers and Sources.

Are my answers saved as a score?

No score is saved. You can retry the questions in this visit. Completing the knowledge check marks the lesson complete through the existing learning progress system.