GET | Get CDRs by user id |
This API can be used to search the CDRs by driver user_id (which is auth_id used in driver whitelist APIs).
Retrive list of charging data records for a particular user identified by user id
Parameters
Name | user_id |
Data Type | String (2) |
Variable Type | required |
Description | Unique ID to identify an EV Driver |
Sample Request and Response
GET https://api-gateway-evnnovator.com/api/ocpi/api/v1/cdrs/demo-driver-1/search
Response Json
{ "content": [ { "id": "3f0f12467217f4c727cc18f03284d0a6", "created_date": "2022-03-23T05:16:33.718+00:00", "last_modified_date": "2022-03-23T05:16:33.718+00:00", "party_id": "TCZ", "cpoId": "59371e3bef3cb74f510fed1e102b6737", "country_code": "IN", "cdr_id": "20796751", "start_date_time": "2022-03-23T05:12:22.000+00:00", "stop_date_time": "2022-03-23T05:16:25.000+00:00", "auth_id": "demo-driver-1", "auth_method": "COMMAND", "location": { "id": "D5F5E912-CD27-49D5-8586-FB93CA65A134", "name": "GJ | Vadodara | Charge+Zone Office2", "address": "401, Benison Complex, Opp. Shiv Mahal Palace, Old Padra Rd, Vadodara, Gujarat 390007", "city": "Vadodara", "postal_code": "390027", "country": "IND", "charging_when_closed": false, "evses": [ { "uid": "f17195c3-7028-446a-b51d-b114fcaa7416", "evse_id": "IPEC2S", "connectors": [ { "id": "7aa1ddef-52db-4c16-b04c-950c394d193c", "standard": "IEC_60309_2_three_16", "format": "CABLE", "power_type": "AC_3_PHASE", "voltage": 0, "amperage": 0 } ] } ] }, "currency": "INR", "tariffs": [ { "id": "30119", "currency": "INR", "elements": [ { "price_components": [ { "type": "ENERGY", "price": "18.00", "step_size": 1 } ] } ] } ], "charging_periods": [ { "start_date_time": "2022-02-09T11:50:09.867" } ], "total_cost": 2.88, "total_cost_incl_vat": 3.3983999999999996, "total_energy": 160.0, "total_time": 4.0 } ], "pageable": { "sort": [ { "direction": "DESC", "property": "lastModifiedDate", "ignoreCase": false, "nullHandling": "NATIVE", "ascending": false, "descending": true } ], "pageNumber": 0, "pageSize": 10, "offset": 0, "unpaged": false, "paged": true }, "totalElements": 1, "totalPages": 1, "last": true, "first": true, "sort": [ { "direction": "DESC", "property": "lastModifiedDate", "ignoreCase": false, "nullHandling": "NATIVE", "ascending": false, "descending": true } ], "numberOfElements": 1, "size": 10, "number": 0, "empty": false }
Response
Code | Description |
200 | OK |
401 | Unauthorized |
403 | Forbidden |
404 | Not Found |