Guest organisation
OCPI
Learn reference
Guest organisation
OCPI
Learn reference

Dutch CPO asks the German eMSP to authorize

Technical · 5 min

OCPI 2.1.1, 2.2.1 and 2.3.0

Showing OCPI 2.2.1. Physical and billing-system events are authored examples.

Step 2 of 4 · One card, two countries
tokensCPOsendseMSPreceives
tokensDriverActorChargerActorCPOsendseMSPreceives
Legend

The line follows the selected step. Actor dots identify the parties; they show no conformance verdict.

Step 2 of 4 · Paused

Selected step

All 4 actors

Driver · Charger · CPO · eMSP

Selected exchange

The token's whitelist value is NEVER, so the Dutch CPO asks the token's owner, the German eMSP, to authorize it in real time, naming the location. The eMSP answers that the driver may charge here.

CPO → eMSP · tokens

Sources (3)
allowed · AllowedType · cardinality 1: Status of the Token, and whether charging is allowed at the optionally given location. token · Token · cardinality 1: The complete Token object for which this authorization was requested. location · LocationReferences · cardinality ?: Optional reference to the location if it was included in the request, and if the EV driver is allowed to charge at that location. Only the EVSEs the EV driver is allowed to charge at are returned. authorization_reference · CiString(36) · cardinality ?: Reference to the authorization given by the eMSP, when given, this reference will be provided in the relevant Session and/or CDR. info · DisplayText · cardinality ?: Optional display text, additional information to the EV driver.OCPI 2.2.1 Tokens module · #mod_tokens_authorizationinfo_objectcountry_code · CiString(2) · cardinality 1: ISO-3166 alpha-2 country code of the MSP that 'owns' this Token. party_id · CiString(3) · cardinality 1: ID of the eMSP that 'owns' this Token (following the ISO-15118 standard). uid · CiString(36) · cardinality 1: Unique ID by which this Token, combined with the Token type, can be identified. This is the field used by CPO system (RFID reader on the Charge Point) to identify this token. Currently, in most cases: type=RFID, this is the RFID hidden ID as read by the RFID reader, but that is not a requirement. If this is a `APP_USER` or `AD_HOC_USER` Token, it will be a uniquely, by the eMSP, generated ID. This field is named `uid` instead of `id` to prevent confusion with: `contract_id`. type · TokenType · cardinality 1: Type of the token contract_id · CiString(36) · cardinality 1: Uniquely identifies the EV Driver contract token within the eMSP's platform (and suboperator platforms). Recommended to follow the specification for eMA ID from "eMI3 standard version V1.0" (http://emi3group.com/documents-links/[http://emi3group.com/documents-links/]) "Part 2: business objects." visual_number · string(64) · cardinality ?: Visual readable number/identification as printed on the Token (RFID card), might be equal to the contract_id. issuer · string(64) · cardinality 1: Issuing company, most of the times the name of the company printed on the token (RFID card), not necessarily the eMSP. group_id · CiString(36) · cardinality ?: This ID groups a couple of tokens. This can be used to make two or more tokens work as one, so that a session can be started with one token and stopped with another, handy when a card and key-fob are given to the EV-driver. Beware that OCPP 1.5/1.6 only support group_ids (it is called parentId in OCPP 1.5/1.6) with a maximum length of 20. valid · boolean · cardinality 1: Is this Token valid whitelist · WhitelistType · cardinality 1: Indicates what type of white-listing is allowed. language · string(2) · cardinality ?: Language Code ISO 639-1. This optional field indicates the Token owner's preferred interface language. If the language is not provided or not supported then the CPO is free to choose its own language. default_profile_type · ProfileType · cardinality ?: The default Charging Preference. When this is provided, and a charging session is started on an Charge Point that support Preference base Smart Charging and support this ProfileType, the Charge Point can start using this ProfileType, without this having to be set via: Set Charging Preferences. energy_contract · EnergyContract · cardinality ?: When the Charge Point supports using your own energy supplier/contract at a Charge Point, information about the energy supplier/contract is needed so the CPO knows which energy supplier to use. NOTE: In a lot of countries it is currently not allowed/possible to use a drivers own energy supplier/contract at a Charge Point. last_updated · DateTime · cardinality 1: Timestamp when this Token was last updated (or created).OCPI 2.2.1 Tokens module · #mod_tokens_token_objectALWAYS: Token always has to be whitelisted, realtime authorization is not possible/allowed. CPO shall always allow any use of this Token. ALLOWED: It is allowed to whitelist the token, realtime authorization is also allowed. The CPO may choose which version of authorization to use. ALLOWED_OFFLINE: In normal situations realtime authorization shall be used. But when the CPO cannot get a response from the eMSP (communication between CPO and eMSP is offline), the CPO shall allow this Token to be used. NEVER: Whitelisting is forbidden, only realtime authorization is allowed. CPO shall always send a realtime authorization for any use of this Token to the eMSP.OCPI 2.2.1 Tokens module · #mod_tokens_whitelisttype_enum
Why this matters

The Token whitelist policy determines whether real-time authorization or a cached whitelist is used. ALWAYS uses the whitelist; NEVER uses real-time authorization.

Explore the tokens module →

The sandbox sends this exchange in a different flow, so there is nothing to run from this step.