.. _everest_api_session_cost_API: ################## session\_cost\_API ################## .. container:: everest-api overview .. raw:: html
.. container:: lead EVerest API definition for session cost API for EVerest API clients implementing session cost. .. raw:: htmlSpecification: session_cost_API.yaml · pionix:de:everest:session_cost_API
default mqtt
default local MQTT
localhost:1883everest_api/1/session_cost/{module_id}{module_id}The ID of the module as defined in the EVerest config file.
everest_api/1/session_cost/{module_id}/m2e/tariff_messageapplication/jsonMessage send_tariff_message
The tariff message
Payload
Example
{
"messages": [
{
"content": "string"
}
]
}
everest_api/1/session_cost/{module_id}/m2e/session_costapplication/jsonMessage send_session_cost
The session cost record
Payload
Session cost object containing the total cost of the session and a list of chunks
Example
{
"session_id": "string",
"currency": {
"code": "AED",
"decimals": 0
},
"status": "Running"
}
everest_api/1/session_cost/{module_id}/m2e/communication_checkapplication/jsonMessage 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
true
everest_api/1/session_cost/{module_id}/e2m/heartbeatapplication/jsonMessage receive_heartbeat
Heartbeat produced by EVerest as configured via cfg_heartbeat_interval_ms in the EVerest configuration
Payload
64bit unsigned integer. The id of every heartbeat increases by 1 and overflows when the maximum representable value is reached
Example
42
Charging price for a category
Additional properties allowed.
Cost category
EnergyTimeFlatFeeOtherCurrency in 3 alphabetical characters according to ISO 4217.
AEDAFNALLAMDANGAOAARSAUDAWGAZNBAMBBDBDTBGNBHDBIFBMDBNDBOBBOVBRLBSDBTNBWPBYNBZDCADCDFCHECHFCHWCLFCLPCNYCOPCOUCRCCUCCUPCVECZKDJFDKKDOPDZDEGPERNETBEURFJDFKPGBPGELGHSGIPGMDGNFGTQGYDHKDHNLHTGHUFIDRILSINRIQDIRRISKJMDJODJPYKESKGSKHRKMFKPWKRWKWDKYDKZTLAKLBPLKRLRDLSLLYDMADMDLMGAMKDMMKMNTMOPMRUMURMVRMWKMXNMXVMYRMZNNADNGNNIONOKNPRNZDOMRPABPENPGKPHPPKRPLNPYGQARRONRSDRUBRWFSARSBDSCRSDGSEKSGDSHPSLESLLSOSSRDSSPSTNSVCSYPSZLTHBTJSTMTTNDTOPTRYTTDTWDTZSUAHUGXUSDUSNUYIUYUUYWUZSVEDVESVNDVUVWSTXAFXCDXDRXOFXPFXSUXUAYERZARZMWZWLCurrency object containing the currency code and the accuracy of the minor unit according to ISO 4217.
Additional properties allowed.
Currency code.
AEDAFNALLAMDANGAOAARSAUDAWGAZNBAMBBDBDTBGNBHDBIFBMDBNDBOBBOVBRLBSDBTNBWPBYNBZDCADCDFCHECHFCHWCLFCLPCNYCOPCOUCRCCUCCUPCVECZKDJFDKKDOPDZDEGPERNETBEURFJDFKPGBPGELGHSGIPGMDGNFGTQGYDHKDHNLHTGHUFIDRILSINRIQDIRRISKJMDJODJPYKESKGSKHRKMFKPWKRWKWDKYDKZTLAKLBPLKRLRDLSLLYDMADMDLMGAMKDMMKMNTMOPMRUMURMVRMWKMXNMXVMYRMZNNADNGNNIONOKNPRNZDOMRPABPENPGKPHPPKRPLNPYGQARRONRSDRUBRWFSARSBDSCRSDGSEKSGDSHPSLESLLSOSSRDSSPSTNSVCSYPSZLTHBTJSTMTTNDTOPTRYTTDTWDTZSUAHUGXUSDUSNUYIUYUUYWUZSVEDVESVNDVUVWSTXAFXCDXDRXOFXPFXSUXUAYERZARZMWZWLThe 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).
Price components when idle
Additional properties allowed.
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".
'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.
The amount of minor units of the currency.
Pricing for the next period
Additional properties allowed.
Time when these prices become active, in RFC3339 format.
Price components while charging
Charging price for a category
Price components while idle. Optional if no idle fee charged.
Price object containing the currency and the value of money.
Additional properties allowed.
Session cost object containing the total cost of the session and a list of chunks
Additional properties allowed.
The session id
Currency of the session cost. It applies to all chunks.
List of cost chunks. The total cost of the session is the sum of all chunks.
Charging prices.
Charging prices for the next period, starting from the given date/time
Session status. Session can be running or finished. Costs of the running session are not final and can change. Only after the session is finished, the session cost can be committed to bank and/or backend.
RunningIdleFinishedMessage to show to the user containing information about the price
Message with pricing information in a specific language
QR Code with more information. For example when the charging is finished, to download the invoice from
A chunk of the session cost. The total cost of the session is the sum of all chunks.
Additional properties allowed.
Absolute timestamp for the start of this chunk in RFC3339 format
Absolute timestamp for the end of this chunk in RFC3339 format
Metervalue (energy Wh import) for the start of this chunk
Metervalue (energy Wh import) for the end of this chunk
Cost of the energy (or other things like time, base price, ...) consumed during this chunk in the currency specified in the session price
Cost category. Typically this is energy, time or a flat fee.
EnergyTimeFlatFeeOtherSession status enum. Session can be running or finished. Costs of the running session are not final and can change.
RunningIdleFinishedMessage containing cost information
Additional properties allowed.
Transaction id of ocpp.
To which token this message is bound.
The type of 'identifier_id'. If omitted, type will be session id.
IdTokenSessionIdTransactionIdMessage with session price information to show the user.
Message with pricing information in a specific language
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.
64bit unsigned integer. The id of every heartbeat increases by 1 and overflows when the maximum representable value is reached
Contains the certificate information
Additional properties allowed.
Used algorithms for the hashes provided
SHA256SHA384SHA512Hashed value of the Issuer Distinguished Name
Hashed value of the issuers public key
The serial number of the certificate
This contains the responder URL
Type for a custom id token with a free-form type
Additional properties allowed.
Arbitrary value of the IdToken
Custom type of the token
Type for an id token
Additional properties allowed.
Arbitrary value of the IdToken: This has to be printable case insensitive ascii
Type of the token
CentraleMAIDMacAddressISO14443ISO15693KeyCodeLocalNoAuthorizationA list of additional custom id tokens than can be used for providing additional information for validation
Type for a custom id token with a free-form type
Type for IdToken provided by auth token providers. Contains additional information about the IdToken like the source and purpose
Additional properties allowed.
Id of the authorization request of this token. Could be used to put remoteStartId of OCPP2.0.1
Authorization type of the token.
OCPPRFIDAutochargePlugAndChargeBankCardA list of connector ids to which the authorization can be assigned
Indicates that the id token is already validated by the provider
The X.509 certificated presented by EV and encoded in PEM format
Contains the information needed to verify the EV Contract Certificate via OCSP
An array of contract certificate infos
Contains message details
Additional properties allowed.