EVerest API definition for session cost consumer 1.0.0

API for EVerest API clients that consume session cost and tariff information from the session_cost interface. See the Integrate Tariff and Cost how-to guide for OCPP-specific configuration and message flow details.

  • #EVerest
  • #SessionCost

Servers

  • mqtt://localhost:1883/everest_api/1/session_cost_consumer/{module_id}mqttdefault

    default local MQTT

    object
    module_id
    required
    string

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

Operations

  • RECEIVE e2m/default_price

    Published once on startup and again whenever the applicable default price changes (e.g. after a connectivity state change or a configuration update). Contains human-readable price text in one or more languages. Absent if no default price is configured.

    Operation IDreceive_default_price

    Available only on servers:

    Accepts the following message:

    Receive default pricedefault_price

    Currently applicable default pricing text for this charger

    Message IDdefault_price
    object

    The currently applicable default pricing text for this charger, independent of any active session. Contains human-readable text only — no computed cost amounts are included. Published once on startup and again whenever the applicable price changes (e.g. after a connectivity state change or a configuration update).

    Examples

  • RECEIVE e2m/tariff_message

    Published at authorization time and whenever the CSMS sends updated pricing during a session. Contains human-readable price text in one or more languages.

    Operation IDreceive_tariff_message

    Available only on servers:

    Accepts the following message:

    Receive tariff messagetariff_message

    Tariff and pricing information for a charging session

    Message IDtariff_message
    object

    Message containing cost information

    Examples

  • RECEIVE e2m/session_cost

    Published periodically during a session and once when it ends. Contains session cost broken down into chunks, current and upcoming pricing, and optional display messages.

    Operation IDreceive_session_cost

    Available only on servers:

    Accepts the following message:

    Receive session costsession_cost

    Running or final cost of a charging session

    Message IDsession_cost
    object

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

    Examples

  • REQUEST m2e/default_price/get

    Request the most recently published (latched) Default Price. The reply will be sent to the replyTo address specified in the message headers. If no latched value is available yet, a null payload will be sent.

    Operation IDsend_request_get_default_price

    Available only on servers:

    Accepts the following message:

    Request current Default Pricesend_request_get_default_price

    Request the most recently published (latched) Default Price.

    Message IDsend_request_get_default_price
    object

    Examples

    REPLY INFORMATION

    REPLY CHANNEL INFORMATION

    Reply will be directed to the address specified at this location: $message.header#/replyTo

    REPLY address information

    REPLY will be sent to the address provided in:$message.header#/replyTo
  • RECEIVE

    Operation IDreceive_reply_get_default_price

    Available only on servers:

    Accepts the following message:

    Reply to get Default Price requestreceive_reply_get_default_price

    The most recently published Default Price.

    Message IDreceive_reply_get_default_price
    oneOf

    Examples

  • REQUEST m2e/tariff_message/get

    Request the most recently published (latched) Tariff Message. The reply will be sent to the replyTo address specified in the message headers. If no latched value is available yet, a null payload will be sent.

    Operation IDsend_request_get_tariff_message

    Available only on servers:

    Accepts the following message:

    Request current Tariff Messagesend_request_get_tariff_message

    Request the most recently published (latched) Tariff Message.

    Message IDsend_request_get_tariff_message
    object

    Examples

    REPLY INFORMATION

    REPLY CHANNEL INFORMATION

    Reply will be directed to the address specified at this location: $message.header#/replyTo

    REPLY address information

    REPLY will be sent to the address provided in:$message.header#/replyTo
  • RECEIVE

    Operation IDreceive_reply_get_tariff_message

    Available only on servers:

    Accepts the following message:

    Reply to get Tariff Message requestreceive_reply_get_tariff_message

    The most recently published Tariff Message.

    Message IDreceive_reply_get_tariff_message
    oneOf

    Examples

  • REQUEST m2e/session_cost/get

    Request the most recently published (latched) Session Cost. The reply will be sent to the replyTo address specified in the message headers. If no latched value is available yet, a null payload will be sent.

    Operation IDsend_request_get_session_cost

    Available only on servers:

    Accepts the following message:

    Request current Session Costsend_request_get_session_cost

    Request the most recently published (latched) Session Cost.

    Message IDsend_request_get_session_cost
    object

    Examples

    REPLY INFORMATION

    REPLY CHANNEL INFORMATION

    Reply will be directed to the address specified at this location: $message.header#/replyTo

    REPLY address information

    REPLY will be sent to the address provided in:$message.header#/replyTo
  • RECEIVE

    Operation IDreceive_reply_get_session_cost

    Available only on servers:

    Accepts the following message:

    Reply to get Session Cost requestreceive_reply_get_session_cost

    The most recently published Session Cost.

    Message IDreceive_reply_get_session_cost
    oneOf

    Examples

  • RECEIVE e2m/heartbeat

    Operation IDreceive_heartbeat

    Available only on servers:

    Accepts the following message:

    Receive heartbeatreceive_heartbeat

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

    Message IDreceive_heartbeat
    Payload
    integer

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

    Examples

  • SEND m2e/communication_check

    Operation IDsend_communication_check

    Available only on servers:

    Accepts the following message:

    Send communication checksend_communication_check

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

    Message IDsend_communication_check
    Payload
    boolean

    Send 'true' at least every 'cfg_communication_check_to_s' seconds to signal module is alive. Send 'false' to stop communication check'

    Examples

Messages

  • #1Receive default pricereceive_default_price

    Currently applicable default pricing text for this charger

    Message IDreceive_default_price
    object

    The currently applicable default pricing text for this charger, independent of any active session. Contains human-readable text only — no computed cost amounts are included. Published once on startup and again whenever the applicable price changes (e.g. after a connectivity state change or a configuration update).

  • #2Receive tariff messagereceive_tariff_message

    Tariff and pricing information for a charging session

    Message IDreceive_tariff_message
    object

    Message containing cost information

  • #3Receive session costreceive_session_cost

    Running or final cost of a charging session

    Message IDreceive_session_cost
    object

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

  • #4Request current Default Pricesend_request_get_default_price

    Request the most recently published (latched) Default Price.

    Message IDsend_request_get_default_price
    object
  • #5Reply to get Default Price requestreceive_reply_get_default_price

    The most recently published Default Price.

    Message IDreceive_reply_get_default_price
    oneOf
  • #6Request current Tariff Messagesend_request_get_tariff_message

    Request the most recently published (latched) Tariff Message.

    Message IDsend_request_get_tariff_message
    object
  • #7Reply to get Tariff Message requestreceive_reply_get_tariff_message

    The most recently published Tariff Message.

    Message IDreceive_reply_get_tariff_message
    oneOf
  • #8Request current Session Costsend_request_get_session_cost

    Request the most recently published (latched) Session Cost.

    Message IDsend_request_get_session_cost
    object
  • #9Reply to get Session Cost requestreceive_reply_get_session_cost

    The most recently published Session Cost.

    Message IDreceive_reply_get_session_cost
    oneOf
  • #10Receive heartbeatreceive_heartbeat

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

    Message IDreceive_heartbeat
    Payload
    integer

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

  • #11Send communication checksend_communication_check

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

    Message IDsend_communication_check
    Payload
    boolean

    Send 'true' at least every 'cfg_communication_check_to_s' seconds to signal module is alive. Send 'false' to stop communication check'

Schemas

  • object

    The currently applicable default pricing text for this charger, independent of any active session. Contains human-readable text only — no computed cost amounts are included. Published once on startup and again whenever the applicable price changes (e.g. after a connectivity state change or a configuration update).

  • CommunicationCheck
    boolean

    Send 'true' at least every 'cfg_communication_check_to_s' seconds to signal module is alive. Send 'false' to stop communication check'

  • HeartBeatId
    integer

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