Get transactions

GET {{baseUrl}}/transactions?chargerId=<string>&connectorId=<integer>&page=1&limit=100&orderBy=<string>&order=<string>&from=<dateTime>&to=<dateTime>&vehicleId=<string>&filterBy=InsertedAt

Request Params

KeyDatatypeRequiredDescription
chargerIdstringSelects a specific charger for which all the transactions should be retrieved
connectorIdstringSelects a specific connector for which all the transactions should be retrieved
pagenumberSpecifies the requested page index. Default is 1
limitnumberSpecifies the number of elements in a page. Default is 100
orderBystringThe type of ordering that we need. Exists 3 possibilities, TransactionID, StartAt and EndAt. Defaults to TransactionID
orderstringThe pretended order, desc or asc. Defaults to desc.
fromstringStart point in time from where transactions should be retrieved and from value should be urlencoded
tostringEnd point in time till where transactions should be retrieved and to value should be urlencoded
vehicleIdstringSelects a vehicle id for which all the transactions should be retrieved
filterBystringThis parameter is used to set the type of filter for the <b><i>from</i></b> and <b><i>to</b></i> timerange. There are four options available as follows:<br> *StartAt - transactions will be retrieved based on the Transaction StartTime<br> *EndAt - transactions will be retrieved based on the Transaction EndTime<br> *InsertedAt - transactions will be retrieved based on when the Transaction record was inserted in the database<br> *Overlapping - transactions will be retrieved based on the both Transaction StartTime and EndTime<br>

HEADERS

KeyDatatypeRequiredDescription
Acceptstring

RESPONSES

status: OK

[{&quot;TransactionID&quot;:123456,&quot;ChargerID&quot;:&quot;XYZ&quot;,&quot;ConnectorID&quot;:1,&quot;StartAt&quot;:&quot;2019-12-20T10:44:30.390Z&quot;,&quot;EndAt&quot;:&quot;2019-12-20T11:44:30.390Z&quot;,&quot;InitialSoC&quot;:10,&quot;EndSoC&quot;:95,&quot;EnergyDelivered&quot;:1500,&quot;EndResult&quot;:&quot;Local&quot;,&quot;Initiator&quot;:&quot;ABC123&quot;,&quot;VehicleID&quot;:&quot;ABC123&quot;,&quot;ExtraInfo&quot;:{&quot;Initiator&quot;:null,&quot;ReservationID&quot;:&quot;sed ut velit&quot;},&quot;SessionStartTime&quot;:&quot;2019-12-20T10:44:30.390Z&quot;,&quot;SessionEndTime&quot;:&quot;2019-12-20T10:44:30.390Z&quot;,&quot;InsertedAt&quot;:&quot;2022-12-01T11:44:30.390Z&quot;},{&quot;TransactionID&quot;:123456,&quot;ChargerID&quot;:&quot;XYZ&quot;,&quot;ConnectorID&quot;:1,&quot;StartAt&quot;:&quot;2019-12-20T10:44:30.390Z&quot;,&quot;EndAt&quot;:&quot;2019-12-20T11:44:30.390Z&quot;,&quot;InitialSoC&quot;:10,&quot;EndSoC&quot;:95,&quot;EnergyDelivered&quot;:1500,&quot;EndResult&quot;:&quot;Local&quot;,&quot;Initiator&quot;:&quot;ABC123&quot;,&quot;VehicleID&quot;:&quot;ABC123&quot;,&quot;ExtraInfo&quot;:{&quot;Initiator&quot;:null,&quot;ReservationID&quot;:&quot;sint Lorem&quot;},&quot;SessionStartTime&quot;:&quot;2019-12-20T10:44:30.390Z&quot;,&quot;SessionEndTime&quot;:&quot;2019-12-20T10:44:30.390Z&quot;,&quot;InsertedAt&quot;:&quot;2022-12-01T11:44:30.390Z&quot;}]