Skip to content
Documentation Menu

Cost Updated

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 Station

Initiator

CSMS → Charging Station

Fields

Field NameField TypeCard.Description
totalCostdecimal1..1Required. Current total cost (incl. taxes), in the currency configured via the Currency Variable.
transactionIdidentifierString [0..36]1..1Required. 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)

Request schema (JSON Schema)
Response schema (JSON Schema)