.. _everest_api_session_cost_API: ################## session\_cost\_API ################## .. container:: everest-api overview .. raw:: html
version 1.0.0AsyncAPI 3.0.0 content type application/jsonlicense Apache-2.0EVerestSessionCost
.. container:: lead EVerest API definition for session cost API for EVerest API clients implementing session cost. .. raw:: html

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 ======= .. container:: everest-api .. raw:: html

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 ========== .. container:: everest-api .. raw:: html
Client to EVerest ----------------- .. _everest_api_session_cost_API_op_send_tariff_message: send\_tariff\_message ~~~~~~~~~~~~~~~~~~~~~ .. container:: everest-api op send .. raw:: html
send Send tariff message
Topic
everest_api/1/session_cost/{module_id}/m2e/tariff_message
Direction: Module to EVerest .. raw:: html
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"
          }
        ]
      }
.. _everest_api_session_cost_API_op_send_session_cost: send\_session\_cost ~~~~~~~~~~~~~~~~~~~ .. container:: everest-api op send .. raw:: html
send Send session cost
Topic
everest_api/1/session_cost/{module_id}/m2e/session_cost
Direction: Module to EVerest .. raw:: html
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"
      }
.. _everest_api_session_cost_API_op_send_communication_check: send\_communication\_check ~~~~~~~~~~~~~~~~~~~~~~~~~~ .. container:: everest-api op send .. raw:: html
send Send communication check
Topic
everest_api/1/session_cost/{module_id}/m2e/communication_check
.. raw:: html
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 ----------------- .. _everest_api_session_cost_API_op_receive_heartbeat: receive\_heartbeat ~~~~~~~~~~~~~~~~~~ .. container:: everest-api op receive .. raw:: html
receive Receive heartbeat
Topic
everest_api/1/session_cost/{module_id}/e2m/heartbeat
.. raw:: html
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 ======== .. container:: everest-api .. raw:: html
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 ======= .. container:: everest-api .. raw:: html
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.

IdlePrice object
object

Price components when idle

Additional properties allowed.

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.

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.

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.

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 ----------------------- .. container:: everest-api .. raw:: html
CertificateHashDataInfo object defined in auth_consumer_API.yaml ↗
object

Contains the certificate information

Additional properties allowed.

CustomIdToken object defined in auth_consumer_API.yaml ↗
object

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

Additional properties allowed.

IdToken object defined in auth_consumer_API.yaml ↗
object

Type for an id token

Additional properties allowed.

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.

MessageContent object defined in display_message_API.yaml ↗
object

Contains message details

Additional properties allowed.