Cost Updated
The CSMS sends CostUpdatedRequest to push the current running total cost of an ongoing transaction to the Charging Station. The CS uses this value to update its display for the EV driver.
Source: OCPP 2.0.1 Part 2 — Specification (Edition 2, 2022-12-15) — Section 1.11 (Messages); Use Case I02 — Show EV Driver Running Total Cost During Charging (Functional Block
I. TariffAndCost)
Overview
The CSMS sends CostUpdatedRequest to push the current running total cost of an ongoing transaction to the Charging Station. The CS uses this value to update its display for the EV driver.
Sequence diagram
CSMS ──── CostUpdatedRequest ────▶ Charging Station
(totalCost, transactionId)
CSMS ◀─── CostUpdatedResponse ──── Charging StationInitiator
CSMS → Charging Station
Fields
| Field Name | Field Type | Card. | Description |
|---|---|---|---|
| totalCost | decimal | 1..1 | Required. Current total cost (incl. taxes), in the currency configured via the Currency Variable. |
| transactionId | identifierString [0..36] | 1..1 | Required. Transaction Id this cost update refers to. |
Examples
{
"totalCost": 7.42,
"transactionId": "tx-1234"
}Schema
Source:
schemas/CostUpdatedRequest.json,schemas/CostUpdatedResponse.json(OCPP 2.0.1 FINAL)