session_cost_API

version 1.0.0AsyncAPI 3.0.0 content type application/jsonlicense Apache-2.0EVerestSessionCost

EVerest API definition for session cost

API for EVerest API clients implementing session cost.

Specification: session_cost_API.yaml · pionix:de:everest:session_cost_API

send the client publishes, EVerest consumes (3) receive EVerest publishes, the client consumes (1)

Servers

default mqtt

default local MQTT

Host
localhost:1883
Topic prefix
everest_api/1/session_cost/{module_id}
{module_id}

The ID of the module as defined in the EVerest config file.

Operations

Client to EVerest

send_tariff_message

send Send tariff message
Topic
everest_api/1/session_cost/{module_id}/m2e/tariff_message

Direction: Module to EVerest

Message Send tariff message application/json

Message send_tariff_message

The tariff message

Payload

object TariffMessage

Message containing cost information

Definition of TariffMessage

Example

Minimal payload generated from the schema generated
{
  "messages": [
    {
      "content": "string"
    }
  ]
}

send_session_cost

send Send session cost
Topic
everest_api/1/session_cost/{module_id}/m2e/session_cost

Direction: Module to EVerest

Message Send session cost application/json

Message send_session_cost

The session cost record

Payload

object SessionCost

Session cost object containing the total cost of the session and a list of chunks

Definition of SessionCost

Example

Minimal payload generated from the schema generated
{
  "session_id": "string",
  "currency": {
    "code": "AED",
    "decimals": 0
  },
  "status": "Running"
}

send_communication_check

send Send communication check
Topic
everest_api/1/session_cost/{module_id}/m2e/communication_check
Message Send communication check application/json

Message send_communication_check

Signal to EVerest that communication is good or check shall be stopped

Payload

Send true at least every cfg_communication_check_to_s seconds to signal that the client is alive, otherwise EVerest raises a CommunicationFault, which the next message clears. Send false to stop the check until the module restarts.

Example

CommunicationCheck
true

EVerest to client

receive_heartbeat

receive Receive heartbeat
Topic
everest_api/1/session_cost/{module_id}/e2m/heartbeat
Message Receive heartbeat application/json

Message receive_heartbeat

Heartbeat produced by EVerest as configured via cfg_heartbeat_interval_ms in the EVerest configuration

Payload

integer HeartBeatId

64bit unsigned integer. The id of every heartbeat increases by 1 and overflows when the maximum representable value is reached

Example

Heartbeat
42

Messages

MessageSummaryUsed by
send_tariff_message
Send tariff message

The tariff message

send_tariff_message
send_session_cost
Send session cost

The session cost record

send_session_cost
receive_heartbeat
Receive heartbeat

Heartbeat produced by EVerest as configured via cfg_heartbeat_interval_ms in the EVerest configuration

receive_heartbeat
send_communication_check
Send communication check

Signal to EVerest that communication is good or check shall be stopped

send_communication_check

Schemas

ChargingPriceComponent object
object

Charging price for a category

Additional properties allowed.

CostCategory string
string

Cost category

enumEnergyTimeFlatFeeOther
CurrencyCode string
string

Currency in 3 alphabetical characters according to ISO 4217.

enumAEDAFNALLAMDANGAOAARSAUDAWGAZNBAMBBDBDTBGNBHDBIFBMDBNDBOBBOVBRLBSDBTNBWPBYNBZDCADCDFCHECHFCHWCLFCLPCNYCOPCOUCRCCUCCUPCVECZKDJFDKKDOPDZDEGPERNETBEURFJDFKPGBPGELGHSGIPGMDGNFGTQGYDHKDHNLHTGHUFIDRILSINRIQDIRRISKJMDJODJPYKESKGSKHRKMFKPWKRWKWDKYDKZTLAKLBPLKRLRDLSLLYDMADMDLMGAMKDMMKMNTMOPMRUMURMVRMWKMXNMXVMYRMZNNADNGNNIONOKNPRNZDOMRPABPENPGKPHPPKRPLNPYGQARRONRSDRUBRWFSARSBDSCRSDGSEKSGDSHPSLESLLSOSSRDSSPSTNSVCSYPSZLTHBTJSTMTTNDTOPTRYTTDTWDTZSUAHUGXUSDUSNUYIUYUUYWUZSVEDVESVNDVUVWSTXAFXCDXDRXOFXPFXSUXUAYERZARZMWZWL
min length 3max length 3
Currency object
object

Currency object containing the currency code and the accuracy of the minor unit according to ISO 4217.

Additional properties allowed.

  • codestring CurrencyCode

    Currency code.

    enumAEDAFNALLAMDANGAOAARSAUDAWGAZNBAMBBDBDTBGNBHDBIFBMDBNDBOBBOVBRLBSDBTNBWPBYNBZDCADCDFCHECHFCHWCLFCLPCNYCOPCOUCRCCUCCUPCVECZKDJFDKKDOPDZDEGPERNETBEURFJDFKPGBPGELGHSGIPGMDGNFGTQGYDHKDHNLHTGHUFIDRILSINRIQDIRRISKJMDJODJPYKESKGSKHRKMFKPWKRWKWDKYDKZTLAKLBPLKRLRDLSLLYDMADMDLMGAMKDMMKMNTMOPMRUMURMVRMWKMXNMXVMYRMZNNADNGNNIONOKNPRNZDOMRPABPENPGKPHPPKRPLNPYGQARRONRSDRUBRWFSARSBDSCRSDGSEKSGDSHPSLESLLSOSSRDSSPSTNSVCSYPSZLTHBTJSTMTTNDTOPTRYTTDTWDTZSUAHUGXUSDUSNUYIUYUUYWUZSVEDVESVNDVUVWSTXAFXCDXDRXOFXPFXSUXUAYERZARZMWZWL
    min length 3max length 3
  • decimalsinteger

    The number of digits after the decimal separator, that are expressed by the minor units of the currency. For example for Euro, Euro cents express 2 digits after the decimal separator. In other words, the price in the main currency units would be the value * 10^(-decimals).

    min 0
IdlePrice object
object

Price components when idle

Additional properties allowed.

  • grace_minutesinteger

    Grace period in minutes before idle time is charged. Grace minutes start counting from the timestamp of the message in which state changed from "Charging" to "Idle".

  • hour_priceobject Price

    Price per hour while idle

    Definition of Price

MoneyAmount object
object

'Money amount is expressed as an amount of minor units of the currency. Example price of 1.23 EUR is expressed as { value: 123 }'

Additional properties allowed.

  • valueinteger required

    The amount of minor units of the currency.

NextPeriodPrice object
object

Pricing for the next period

Additional properties allowed.

Price object
object

Price object containing the currency and the value of money.

Additional properties allowed.

SessionCost object
object

Session cost object containing the total cost of the session and a list of chunks

Additional properties allowed.

SessionCostChunk object
object

A chunk of the session cost. The total cost of the session is the sum of all chunks.

Additional properties allowed.

  • timestamp_fromstring

    Absolute timestamp for the start of this chunk in RFC3339 format

    format date-time
  • timestamp_tostring

    Absolute timestamp for the end of this chunk in RFC3339 format

    format date-time
  • metervalue_frominteger

    Metervalue (energy Wh import) for the start of this chunk

  • metervalue_tointeger

    Metervalue (energy Wh import) for the end of this chunk

  • costobject MoneyAmount

    Cost of the energy (or other things like time, base price, ...) consumed during this chunk in the currency specified in the session price

    Definition of MoneyAmount

  • categorystring CostCategory

    Cost category. Typically this is energy, time or a flat fee.

    enumEnergyTimeFlatFeeOther
SessionStatus string
string

Session status enum. Session can be running or finished. Costs of the running session are not final and can change.

enumRunningIdleFinished
TariffMessage object
object

Message containing cost information

Additional properties allowed.

  • ocpp_transaction_idstring

    Transaction id of ocpp.

  • identifier_idstring

    To which token this message is bound.

  • identifier_typestring IdentifierType ↗

    The type of 'identifier_id'. If omitted, type will be session id.

    enumIdTokenSessionIdTransactionId
  • messagesarray<object> required

    Message with session price information to show the user.

CommunicationCheck boolean
boolean

Send true at least every cfg_communication_check_to_s seconds to signal that the client is alive, otherwise EVerest raises a CommunicationFault, which the next message clears. Send false to stop the check until the module restarts.

HeartBeatId integer
integer

64bit unsigned integer. The id of every heartbeat increases by 1 and overflows when the maximum representable value is reached

Schemas from other APIs

CertificateHashDataInfo object defined in auth_consumer_API.yaml ↗
object

Contains the certificate information

Additional properties allowed.

  • hashAlgorithmstring required

    Used algorithms for the hashes provided

    enumSHA256SHA384SHA512
  • issuerNameHashstring required

    Hashed value of the Issuer Distinguished Name

    max length 128
  • issuerKeyHashstring required

    Hashed value of the issuers public key

    max length 128
  • serialNumberstring required

    The serial number of the certificate

    max length 40
  • responderURLstring required

    This contains the responder URL

    max length 512
CustomIdToken object defined in auth_consumer_API.yaml ↗
object

Type for a custom id token with a free-form type

Additional properties allowed.

  • valuestring required

    Arbitrary value of the IdToken

    min length 0max length 36
  • typestring required

    Custom type of the token

    min length 0max length 50
IdToken object defined in auth_consumer_API.yaml ↗
object

Type for an id token

Additional properties allowed.

  • valuestring required

    Arbitrary value of the IdToken: This has to be printable case insensitive ascii

    min length 0max length 36
  • typestring requiredIdTokenType ↗

    Type of the token

    enumCentraleMAIDMacAddressISO14443ISO15693KeyCodeLocalNoAuthorization
  • additional_infoarray<object>

    A list of additional custom id tokens than can be used for providing additional information for validation

ProvidedIdToken object defined in auth_consumer_API.yaml ↗
object

Type for IdToken provided by auth token providers. Contains additional information about the IdToken like the source and purpose

Additional properties allowed.

  • request_idinteger

    Id of the authorization request of this token. Could be used to put remoteStartId of OCPP2.0.1

  • id_tokenobject requiredIdToken ↗

    IdToken of the provided token

    Definition of IdToken

  • parent_id_tokenobject IdToken ↗

    Parent IdToken of the provided token

    Definition of IdToken

  • authorization_typestring requiredAuthorizationType ↗

    Authorization type of the token.

    enumOCPPRFIDAutochargePlugAndChargeBankCard
    min length 2max length 32
  • connectorsarray<integer>

    A list of connector ids to which the authorization can be assigned

    • itemsinteger
      min 1
  • prevalidatedboolean

    Indicates that the id token is already validated by the provider

  • certificatestring

    The X.509 certificated presented by EV and encoded in PEM format

    max length 5500
  • iso15118CertificateHashDataarray<object>

    Contains the information needed to verify the EV Contract Certificate via OCSP

    min items 1max items 4
MessageContent object defined in display_message_API.yaml ↗
object

Contains message details

Additional properties allowed.

  • formatstring MessageFormat ↗

    Format of the message to be displayed

    enumASCIIHTMLURIUTF8QRCODE
  • languagestring
  • contentstring required