SendLocalList OCPP 2.1
Der Simulator beantwortet diese Anfrage des Backends.
Auch in: OCPP 1.6, OCPP 2.0.1
Request
| Feld | Typ | Einschränkungen / Beschreibung | |
|---|---|---|---|
localAuthorizationList | array<object> | minItems 1 | |
localAuthorizationList[].idToken | object | Pflicht | Contains a case insensitive identifier to use for the authorization and the type of authorization to support multiple forms of identifiers. |
localAuthorizationList[].idToken.additionalInfo | array<object> | minItems 1 | |
localAuthorizationList[].idToken.additionalInfo[].additionalIdToken | string | Pflicht | maxLength 255 *(2.1)* This field specifies the additional IdToken. |
localAuthorizationList[].idToken.additionalInfo[].type | string | Pflicht | maxLength 50 _additionalInfo_ can be used to send extra information to CSMS in addition to the regular authorization with _IdToken_. _AdditionalInfo_ contains one or more custom _types_, which need to be agreed upon by all parties involved. When the _type_ is not supported, the CSMS/Charging Station MAY ignore the _additionalInfo_. |
localAuthorizationList[].idToken.idToken | string | Pflicht | maxLength 255 *(2.1)* IdToken is case insensitive. Might hold the hidden id of an RFID tag, but can for example also contain a UUID. |
localAuthorizationList[].idToken.type | string | Pflicht | maxLength 20 *(2.1)* Enumeration of possible idToken types. Values defined in Appendix as IdTokenEnumStringType. |
localAuthorizationList[].idTokenInfo | object | Contains status information about an identifier. It is advised to not stop charging for a token that expires during charging, as ExpiryDate is only used for caching purposes. If ExpiryDate is not given, the status has no end date. | |
localAuthorizationList[].idTokenInfo.status | string | Pflicht | enum: Accepted, Blocked, ConcurrentTx, Expired, Invalid, NoCredit, NotAllowedTypeEVSE, NotAtThisLocation, NotAtThisTime, Unknown Current status of the ID Token. |
localAuthorizationList[].idTokenInfo.cacheExpiryDateTime | string | format date-time Date and Time after which the token must be considered invalid. | |
localAuthorizationList[].idTokenInfo.chargingPriority | integer | Priority from a business point of view. Default priority is 0, The range is from -9 to 9. Higher values indicate a higher priority. The chargingPriority in <<transactioneventresponse,TransactionEventResponse>> overrules this one. | |
localAuthorizationList[].idTokenInfo.groupIdToken | object | Contains a case insensitive identifier to use for the authorization and the type of authorization to support multiple forms of identifiers. | |
localAuthorizationList[].idTokenInfo.groupIdToken.additionalInfo | array<object> | minItems 1 | |
localAuthorizationList[].idTokenInfo.groupIdToken.additionalInfo[].additionalIdToken | string | Pflicht | maxLength 255 *(2.1)* This field specifies the additional IdToken. |
localAuthorizationList[].idTokenInfo.groupIdToken.additionalInfo[].type | string | Pflicht | maxLength 50 _additionalInfo_ can be used to send extra information to CSMS in addition to the regular authorization with _IdToken_. _AdditionalInfo_ contains one or more custom _types_, which need to be agreed upon by all parties involved. When the _type_ is not supported, the CSMS/Charging Station MAY ignore the _additionalInfo_. |
localAuthorizationList[].idTokenInfo.groupIdToken.idToken | string | Pflicht | maxLength 255 *(2.1)* IdToken is case insensitive. Might hold the hidden id of an RFID tag, but can for example also contain a UUID. |
localAuthorizationList[].idTokenInfo.groupIdToken.type | string | Pflicht | maxLength 20 *(2.1)* Enumeration of possible idToken types. Values defined in Appendix as IdTokenEnumStringType. |
localAuthorizationList[].idTokenInfo.language1 | string | maxLength 8 Preferred user interface language of identifier user. Contains a language code as defined in <<ref-RFC5646,[RFC5646]>>. | |
localAuthorizationList[].idTokenInfo.language2 | string | maxLength 8 Second preferred user interface language of identifier user. Don’t use when language1 is omitted, has to be different from language1. Contains a language code as defined in <<ref-RFC5646,[RFC5646]>>. | |
localAuthorizationList[].idTokenInfo.evseId | array<integer> | minimum 0.0; minItems 1 Only used when the IdToken is only valid for one or more specific EVSEs, not for the entire Charging Station. | |
localAuthorizationList[].idTokenInfo.personalMessage | object | Contains message details, for a message to be displayed on a Charging Station. | |
localAuthorizationList[].idTokenInfo.personalMessage.format | string | Pflicht | enum: ASCII, HTML, URI, UTF8, QRCODE Format of the message. |
localAuthorizationList[].idTokenInfo.personalMessage.language | string | maxLength 8 Message language identifier. Contains a language code as defined in <<ref-RFC5646,[RFC5646]>>. | |
localAuthorizationList[].idTokenInfo.personalMessage.content | string | Pflicht | maxLength 1024 *(2.1)* Required. Message contents. + Maximum length supported by Charging Station is given in OCPPCommCtrlr.FieldLength["MessageContentType.content"]. Maximum length defaults to 1024. |
versionNumber | integer | Pflicht | In case of a full update this is the version number of the full list. In case of a differential update it is the version number of the list after the update has been applied. |
updateType | string | Pflicht | enum: Differential, Full This contains the type of update (full or differential) of this request. |
JSON-Schema (Request)
{
"$schema": "http://json-schema.org/draft-06/schema#",
"$id": "urn:OCPP:Cp:2:2025:1:SendLocalListRequest",
"comment": "OCPP 2.1 Edition 1 (c) OCA, Creative Commons Attribution-NoDerivatives 4.0 International Public License",
"definitions": {
"AuthorizationStatusEnumType": {
"description": "Current status of the ID Token.\r\n",
"javaType": "AuthorizationStatusEnum",
"type": "string",
"additionalProperties": false,
"enum": [
"Accepted",
"Blocked",
"ConcurrentTx",
"Expired",
"Invalid",
"NoCredit",
"NotAllowedTypeEVSE",
"NotAtThisLocation",
"NotAtThisTime",
"Unknown"
]
},
"MessageFormatEnumType": {
"description": "Format of the message.\r\n",
"javaType": "MessageFormatEnum",
"type": "string",
"additionalProperties": false,
"enum": [
"ASCII",
"HTML",
"URI",
"UTF8",
"QRCODE"
]
},
"UpdateEnumType": {
"description": "This contains the type of update (full or differential) of this request.\r\n",
"javaType": "UpdateEnum",
"type": "string",
"additionalProperties": false,
"enum": [
"Differential",
"Full"
]
},
"AdditionalInfoType": {
"description": "Contains a case insensitive identifier to use for the authorization and the type of authorization to support multiple forms of identifiers.\r\n",
"javaType": "AdditionalInfo",
"type": "object",
"additionalProperties": false,
"properties": {
"additionalIdToken": {
"description": "*(2.1)* This field specifies the additional IdToken.\r\n",
"type": "string",
"maxLength": 255
},
"type": {
"description": "_additionalInfo_ can be used to send extra information to CSMS in addition to the regular authorization with _IdToken_. _AdditionalInfo_ contains one or more custom _types_, which need to be agreed upon by all parties involved. When the _type_ is not supported, the CSMS/Charging Station MAY ignore the _additionalInfo_.\r\n\r\n",
"type": "string",
"maxLength": 50
},
"customData": {
"$ref": "#/definitions/CustomDataType"
}
},
"required": [
"additionalIdToken",
"type"
]
},
"AuthorizationData": {
"description": "Contains the identifier to use for authorization.\r\n",
"javaType": "AuthorizationData",
"type": "object",
"additionalProperties": false,
"properties": {
"idToken": {
"$ref": "#/definitions/IdTokenType"
},
"idTokenInfo": {
"$ref": "#/definitions/IdTokenInfoType"
},
"customData": {
"$ref": "#/definitions/CustomDataType"
}
},
"required": [
"idToken"
]
},
"IdTokenInfoType": {
"description": "Contains status information about an identifier.\r\nIt is advised to not stop charging for a token that expires during charging, as ExpiryDate is only used for caching purposes. If ExpiryDate is not given, the status has no end date.\r\n",
"javaType": "IdTokenInfo",
"type": "object",
"additionalProperties": false,
"properties": {
"status": {
"$ref": "#/definitions/AuthorizationStatusEnumType"
},
"cacheExpiryDateTime": {
"description": "Date and Time after which the token must be considered invalid.\r\n",
"type": "string",
"format": "date-time"
},
"chargingPriority": {
"description": "Priority from a business point of view. Default priority is 0, The range is from -9 to 9. Higher values indicate a higher priority. The chargingPriority in <<transactioneventresponse,TransactionEventResponse>> overrules this one. \r\n",
"type": "integer"
},
"groupIdToken": {
"$ref": "#/definitions/IdTokenType"
},
"language1": {
"description": "Preferred user interface language of identifier user. Contains a language code as defined in <<ref-RFC5646,[RFC5646]>>.\r\n\r\n",
"type": "string",
"maxLength": 8
},
"language2": {
"description": "Second preferred user interface language of identifier user. Don’t use when language1 is omitted, has to be different from language1. Contains a language code as defined in <<ref-RFC5646,[RFC5646]>>.\r\n",
"type": "string",
"maxLength": 8
},
"evseId": {
"description": "Only used when the IdToken is only valid for one or more specific EVSEs, not for the entire Charging Station.\r\n\r\n",
"type": "array",
"additionalItems": false,
"items": {
"type": "integer",
"minimum": 0.0
},
"minItems": 1
},
"personalMessage": {
"$ref": "#/definitions/MessageContentType"
},
"customData": {
"$ref": "#/definitions/CustomDataType"
}
},
"required": [
"status"
]
},
"IdTokenType": {
"description": "Contains a case insensitive identifier to use for the authorization and the type of authorization to support multiple forms of identifiers.\r\n",
"javaType": "IdToken",
"type": "object",
"additionalProperties": false,
"properties": {
"additionalInfo": {
"type": "array",
"additionalItems": false,
"items": {
"$ref": "#/definitions/AdditionalInfoType"
},
"minItems": 1
},
"idToken": {
"description": "*(2.1)* IdToken is case insensitive. Might hold the hidden id of an RFID tag, but can for example also contain a UUID.\r\n",
"type": "string",
"maxLength": 255
},
"type": {
"description": "*(2.1)* Enumeration of possible idToken types. Values defined in Appendix as IdTokenEnumStringType.\r\n",
"type": "string",
"maxLength": 20
},
"customData": {
"$ref": "#/definitions/CustomDataType"
}
},
"required": [
"idToken",
"type"
]
},
"MessageContentType": {
"description": "Contains message details, for a message to be displayed on a Charging Station.\r\n\r\n",
"javaType": "MessageContent",
"type": "object",
"additionalProperties": false,
"properties": {
"format": {
"$ref": "#/definitions/MessageFormatEnumType"
},
"language": {
"description": "Message language identifier. Contains a language code as defined in <<ref-RFC5646,[RFC5646]>>.\r\n",
"type": "string",
"maxLength": 8
},
"content": {
"description": "*(2.1)* Required. Message contents. +\r\nMaximum length supported by Charging Station is given in OCPPCommCtrlr.FieldLength[\"MessageContentType.content\"].\r\n Maximum length defaults to 1024.\r\n\r\n",
"type": "string",
"maxLength": 1024
},
"customData": {
"$ref": "#/definitions/CustomDataType"
}
},
"required": [
"format",
"content"
]
},
"CustomDataType": {
"description": "This class does not get 'AdditionalProperties = false' in the schema generation, so it can be extended with arbitrary JSON properties to allow adding custom data.",
"javaType": "CustomData",
"type": "object",
"properties": {
"vendorId": {
"type": "string",
"maxLength": 255
}
},
"required": [
"vendorId"
]
}
},
"type": "object",
"additionalProperties": false,
"properties": {
"localAuthorizationList": {
"type": "array",
"additionalItems": false,
"items": {
"$ref": "#/definitions/AuthorizationData"
},
"minItems": 1
},
"versionNumber": {
"description": "In case of a full update this is the version number of the full list. In case of a differential update it is the version number of the list after the update has been applied.\r\n",
"type": "integer"
},
"updateType": {
"$ref": "#/definitions/UpdateEnumType"
},
"customData": {
"$ref": "#/definitions/CustomDataType"
}
},
"required": [
"versionNumber",
"updateType"
]
}Response
| Feld | Typ | Einschränkungen / Beschreibung | |
|---|---|---|---|
status | string | Pflicht | enum: Accepted, Failed, VersionMismatch This indicates whether the Charging Station has successfully received and applied the update of the Local Authorization List. |
statusInfo | object | Element providing more information about the status. | |
statusInfo.reasonCode | string | Pflicht | maxLength 20 A predefined code for the reason why the status is returned in this response. The string is case-insensitive. |
statusInfo.additionalInfo | string | maxLength 1024 Additional text to provide detailed information. |
JSON-Schema (Response)
{
"$schema": "http://json-schema.org/draft-06/schema#",
"$id": "urn:OCPP:Cp:2:2025:1:SendLocalListResponse",
"comment": "OCPP 2.1 Edition 1 (c) OCA, Creative Commons Attribution-NoDerivatives 4.0 International Public License",
"definitions": {
"SendLocalListStatusEnumType": {
"description": "This indicates whether the Charging Station has successfully received and applied the update of the Local Authorization List.\r\n",
"javaType": "SendLocalListStatusEnum",
"type": "string",
"additionalProperties": false,
"enum": [
"Accepted",
"Failed",
"VersionMismatch"
]
},
"StatusInfoType": {
"description": "Element providing more information about the status.\r\n",
"javaType": "StatusInfo",
"type": "object",
"additionalProperties": false,
"properties": {
"reasonCode": {
"description": "A predefined code for the reason why the status is returned in this response. The string is case-insensitive.\r\n",
"type": "string",
"maxLength": 20
},
"additionalInfo": {
"description": "Additional text to provide detailed information.\r\n",
"type": "string",
"maxLength": 1024
},
"customData": {
"$ref": "#/definitions/CustomDataType"
}
},
"required": [
"reasonCode"
]
},
"CustomDataType": {
"description": "This class does not get 'AdditionalProperties = false' in the schema generation, so it can be extended with arbitrary JSON properties to allow adding custom data.",
"javaType": "CustomData",
"type": "object",
"properties": {
"vendorId": {
"type": "string",
"maxLength": 255
}
},
"required": [
"vendorId"
]
}
},
"type": "object",
"additionalProperties": false,
"properties": {
"status": {
"$ref": "#/definitions/SendLocalListStatusEnumType"
},
"statusInfo": {
"$ref": "#/definitions/StatusInfoType"
},
"customData": {
"$ref": "#/definitions/CustomDataType"
}
},
"required": [
"status"
]
}Quelle: Open Charge Alliance, OCPP 2.1 – JSON-Schemas, unverändert wiedergegeben. © Open Charge Alliance. Lizenz: CC BY-ND 4.0. Die vollständige Spezifikation gibt es bei der Open Charge Alliance. ocpp-sim ist nicht mit der OCA verbunden.