Transactions
Transaction
Every charging event is recorded within eDRV as a transaction. Transactions include the token that was used to authorize and start the charging event along with various metrics that you may use to inform the driver.
{
"metrics": {
"timeSpentCharging": 16.907,
"chargingStart": "2020-08-04T13:35:46.935Z",
"wattHoursConsumed": 1346,
"wattHours": 0
},
"_id": "5f29643237bf042568ed7593",
"organization": "5e7e6c058a6deccfefdf4223",
"ocppId": "1596548146",
"status": "Ended",
"evse": "5f10222e86e98e20dfce2f70",
"connector": "5f10222e86e98e20dfce2f71",
"chargestation": "5f10222e86e98e20dfce2f6f",
"reservationId": null,
"createdAt": "2020-08-04T13:35:46.937Z",
"updatedAt": "2020-08-05T12:41:58.698Z",
"token": "5e7e6b758a6deccfefdf4222",
"driver": "5e7e727a28b1ac52051b2ef0"
}
Attributes
metrics object
timeSpentCharging float Time in seconds
chargingStart: datetime Transaction Start
wattHoursConsumed float Energy delivered to the EV
wattHours: float Last reported value of the meter on the CS
_id string
The Id of this transaction
organization string
The Organization Id that this chargestation is part of
Also see Organization
ocppId string
The OCPP Id for this transaction as reported by the CS
status string
The live current transaction status
Expected values are ['Started', 'Ended']
connector string
The Id of the connector where this charging transaction took place
connector string
The Id of the connector where this charging transaction took place
chargestation string
The Id of the chargestation where this charging transaction took place
reservationId string
Id of reservation if this transaction resulted from an an existing reservation
createdAt datetime
Creation time of this CS record
updatedAt datetime
Last update time of this CS record
token string
Token Id used to authorize this transaction
driver string
The Id of the EV driver
Updated over 3 years ago