Get CDR by session id

GETGet CDR by session id

Retrive charging data records by a unique session id

URLhttps://api-gateway-evnnovator.com/api/v1/sessions/{sessions_id}

Parameters

Namesessions_id
Data TypeString
Variable Typerequired
DescriptionUnique ID to idetify a charging session

Sample Request and Response

GET https://api-gateway-evnnovator.com/api/ocpi/api/v1/cdrs/session/20796751

Response Json :

{
    "status_code": 1000,
    "status_message": "Success",
    "timestamp": "2022-03-26T14:53:22.104",
    "data": {
        "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": {
            "lastModifiedDate": "2022-03-25T10:00:39.081+00:00",
            "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": "123458",
            "country": "IND",
            "coordinates": {},
            "time_zone": "IST",
            "charging_when_closed": false,
            "type": "PARKING_TOP",
            "evses": [
                {
                    "uid": "F17195C3-7028-446A-B51D-B114FCAA7416",
                    "evse_id": "IN*TCZ*2",
                    "status": "AVAILABLE",
                    "connectors": [
                        {
                            "id": "7AA1DDEF-52DB-4C16-B04C-950C394D193C",
                            "standard": "IEC_60309_2_three_16",
                            "format": "CABLE",
                            "power_type": "AC_3_PHASE",
                            "voltage": 230,
                            "amperage": 16,
                            "tariff_id": "30119"
                        }
                    ],
                    "floor_level": "ONE"
                }
            ]
        },
        "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
    }
}

Response

CodeDescription
200OK
401Unauthorized
403Forbidden
404Not Found

Powered by BetterDocs