11.3.18. session_cost

Types to provide the session price

SessionCostChunk:object
A chunk of the session cost. The total cost of the session is the sum of all chunks.
properties:
timestamp_from:string
Absolute timestamp for the start of this chunk in RFC3339 UTC format
format:
timestamp_to:string
Absolute timestamp for the end of this chunk in RFC3339 UTC format
format:
cost:object (money-MoneyAmount)
Cost of the energy (or other things like time, base price, …) consumed during this chunk in the currency specified in the session price
There is an extended definition for this object here.
category:string
Cost category. Typically this is energy or time.
enum: Energy, Time, Other
SessionStatus:string
Session status enum. Session can be running or finished. Costs of the running session are not final and can change.
enum: Running, Finished
SessionCost:object
Session cost object containing the total cost of the session and a list of chunks
required: id_tag, currency, status
properties:
The id tag assigned to this transaction
There is an extended definition for this object here.
currency:object (money-Currency)
Currency of the session cost. It applies to all chunks.
There is an extended definition for this object here.
cost_chunks:array
default: []
List of cost chunks. The total cost of the session is the sum of all chunks.
items:
description:
type:
$ref:
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.
There is an extended definition for this object here.