VatNumberValidation OCPP 2.1
Der Simulator antwortet mit NotSupported, prüft die Nachricht aber gegen das Schema.
Request
| Feld | Typ | Einschränkungen / Beschreibung | |
|---|---|---|---|
vatNumber | string | Pflicht | maxLength 20 VAT number to check. |
evseId | integer | minimum 0.0 EVSE id for which check is done |
JSON-Schema (Request)
{
"$schema": "http://json-schema.org/draft-06/schema#",
"$id": "urn:OCPP:Cp:2:2025:1:VatNumberValidationRequest",
"comment": "OCPP 2.1 Edition 1 (c) OCA, Creative Commons Attribution-NoDerivatives 4.0 International Public License",
"definitions": {
"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": {
"vatNumber": {
"description": "VAT number to check.\r\n\r\n",
"type": "string",
"maxLength": 20
},
"evseId": {
"description": "EVSE id for which check is done\r\n\r\n",
"type": "integer",
"minimum": 0.0
},
"customData": {
"$ref": "#/definitions/CustomDataType"
}
},
"required": [
"vatNumber"
]
}Response
| Feld | Typ | Einschränkungen / Beschreibung | |
|---|---|---|---|
company | object | *(2.1)* A generic address format. | |
company.name | string | Pflicht | maxLength 50 Name of person/company |
company.address1 | string | Pflicht | maxLength 100 Address line 1 |
company.address2 | string | maxLength 100 Address line 2 | |
company.city | string | Pflicht | maxLength 100 City |
company.postalCode | string | maxLength 20 Postal code | |
company.country | string | Pflicht | maxLength 50 Country name |
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. | |
vatNumber | string | Pflicht | maxLength 20 VAT number that was requested. |
evseId | integer | minimum 0.0 EVSE id for which check was requested. | |
status | string | Pflicht | enum: Accepted, Rejected Result of operation. |
JSON-Schema (Response)
{
"$schema": "http://json-schema.org/draft-06/schema#",
"$id": "urn:OCPP:Cp:2:2025:1:VatNumberValidationResponse",
"comment": "OCPP 2.1 Edition 1 (c) OCA, Creative Commons Attribution-NoDerivatives 4.0 International Public License",
"definitions": {
"GenericStatusEnumType": {
"description": "Result of operation.\r\n",
"javaType": "GenericStatusEnum",
"type": "string",
"additionalProperties": false,
"enum": [
"Accepted",
"Rejected"
]
},
"AddressType": {
"description": "*(2.1)* A generic address format.\r\n",
"javaType": "Address",
"type": "object",
"additionalProperties": false,
"properties": {
"name": {
"description": "Name of person/company\r\n",
"type": "string",
"maxLength": 50
},
"address1": {
"description": "Address line 1\r\n",
"type": "string",
"maxLength": 100
},
"address2": {
"description": "Address line 2\r\n",
"type": "string",
"maxLength": 100
},
"city": {
"description": "City\r\n",
"type": "string",
"maxLength": 100
},
"postalCode": {
"description": "Postal code\r\n",
"type": "string",
"maxLength": 20
},
"country": {
"description": "Country name\r\n",
"type": "string",
"maxLength": 50
},
"customData": {
"$ref": "#/definitions/CustomDataType"
}
},
"required": [
"name",
"address1",
"city",
"country"
]
},
"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": {
"company": {
"$ref": "#/definitions/AddressType"
},
"statusInfo": {
"$ref": "#/definitions/StatusInfoType"
},
"vatNumber": {
"description": "VAT number that was requested.\r\n\r\n",
"type": "string",
"maxLength": 20
},
"evseId": {
"description": "EVSE id for which check was requested. \r\n\r\n",
"type": "integer",
"minimum": 0.0
},
"status": {
"$ref": "#/definitions/GenericStatusEnumType"
},
"customData": {
"$ref": "#/definitions/CustomDataType"
}
},
"required": [
"vatNumber",
"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.