Skip to content
Documentation Menu

Types

1.1 CiString type

Case Insensitive String. Only printable ASCII allowed.

1.2 DateTime type

All timestamps are formatted as string(25) using the combined date and time format from the ISO 8601 standard. All timestamps SHALL be in UTC. The absence of the timezone designator implies a UTC timestamp.

Example:

2015-06-29T20:39:09Z 2015-06-29T20:39:09 2016-12-29T17:45:09Z 2016-12-29T17:45:09

Note: +00:00 is not the same as UTC.

1.3 DisplayText class

<div><!-- ---------------------------------------------------------------------------- --></div>

PropertyTypeCard.Description
languagestring(2)1Language Code ISO 639-1
textstring(512)1Text to be displayed to a end user. No markup, html etc. allowed.
<div><!-- ---------------------------------------------------------------------------- --></div>

Example:

{ "language": "en", "text": "Standard Tariff" }

1.4 number type

Numbers in OCPI are formatted as JSON numbers. Unless mentioned otherwise, numbers use 4 decimals and a sufficiently large amount of digits.

1.5 string type

Case Sensitive String. Only printable ASCII allowed. All strings in messages and enumerations are case sensitive, unless explicitly stated otherwise.

1.6 URL type

An URL a string(255) type following the w3.org spec.