{"id":37,"date":"2022-04-09T10:21:00","date_gmt":"2022-04-09T10:21:00","guid":{"rendered":"https:\/\/evnnovator.in\/APIHome\/?post_type=docs&#038;p=37"},"modified":"2022-04-10T23:53:05","modified_gmt":"2022-04-10T23:53:05","password":"","slug":"get-session-by-session-id","status":"publish","type":"docs","link":"https:\/\/evnnovator.in\/APIHome\/docs\/get-session-by-session-id\/","title":{"rendered":"Get session by session id"},"content":{"rendered":"\n<figure class=\"wp-block-table\"><table><tbody><tr><td>GET<\/td><td>Get session by session id<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Retrive charging session details by session id<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>URL<\/td><td><a href=\"https:\/\/api-gateway-evnnovator.com\/api\/v1\/sessions\/{sessions_id}\">https:\/\/api-gateway-evnnovator.com\/api\/v1\/sessions\/{sessions_id}<\/a><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Parameters<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>Name<\/td><td>countryCode<\/td><\/tr><tr><td>Data Type<\/td><td>String (2)<\/td><\/tr><tr><td>Variable Type<\/td><td>required<\/td><\/tr><tr><td>Description<\/td><td>Unique ID to identify charging session<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Sample Request and Response<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">GET <a href=\"https:\/\/api-gateway-evnnovator.com\/api\/ocpi\/api\/v1\/sessions\/a5db858f68a59d25df755847db01324\">https:\/\/api-gateway-evnnovator.com\/api\/ocpi\/api\/v1\/sessions\/a5db858f68a59d25df755847db01324<\/a>4<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Response Json :<\/p>\n\n\n<pre class=\"pre-code\">{\n    \"status_code\": 1000,\n    \"status_message\": \"Success\",\n    \"timestamp\": \"2022-04-04T06:48:08.577\",\n    \"data\": {\n        \"evseId\": \"AMP03*1\",\n        \"connectorId\": \"IN*111*EAMP03*1\",\n        \"id\": \"a5db858f68a59d25df755847db013244\",\n        \"created_date\": \"2022-03-14T12:35:47.492+00:00\",\n        \"last_modified_date\": \"2022-03-14T12:45:11.579+00:00\",\n        \"party_id\": \"111\",\n        \"country_code\": \"IN\",\n        \"location_id\": \"620bb06abeaaa76c1e7657e1\",\n        \"session_id\": \"724615825\",\n        \"cpoId\": \"5134ef394bac9a74c46948529abc150f\",\n        \"start_datetime\": \"2022-03-14T12:35:44.000+00:00\",\n        \"end_datetime\": \"2022-03-14T12:45:08.000+00:00\",\n        \"kwh\": 0.11429,\n        \"auth_id\": \"de4248351c54e55cd97c0000ed9ceb06\",\n        \"auth_method\": \"AUTH_REQUEST\",\n        \"location\": {\n            \"coordinates\": {\n                \"latitude\": 12.87667,\n                \"longitude\": 77.67912\n            },\n            \"evses\": [\n                {\n                    \"id\": \"9c97a7b656f4c1a217fda8c8262c330d\",\n                    \"uid\": \"AMP03*1\",\n                    \"evse_id\": \"IN*111*EAMP03*1\",\n                    \"status\": \"AVAILABLE\",\n                    \"capabilities\": [\n                        \"REMOTE_START_STOP_CAPABLE\",\n                        \"RFID_READER\"\n                    ],\n                    \"connectors\": [\n                        {\n                            \"id\": \"3fff37bfc17e66bc519c25fcfa65eaea\",\n                            \"standard\": \"DOMESTIC_E\",\n                            \"format\": \"SOCKET\",\n                            \"power_type\": \"AC_1_PHASE\",\n                            \"voltage\": 230,\n                            \"amperage\": 14,\n                            \"tariff_id\": \"Default\"\n                        }\n                    ],\n                    \"coordinates\": {\n                        \"latitude\": \"12.87667\",\n                        \"longitude\": \"77.67912\"\n                    }\n                }\n            ],\n            \"id\": \"0928aa98a2703e688fba8fbccf9f1782\",\n            \"created_date\": \"2022-03-05T09:37:57.382+00:00\",\n            \"last_modified_date\": \"2022-04-04T06:13:30.317+00:00\",\n            \"location_id\": \"620bb06abeaaa76c1e7657e1\",\n            \"cpo_id\": \"1a85027042ecb57d09f192a20cf4811c\",\n            \"cpo_resource_id\": \"5134ef394bac9a74c46948529abc150f\",\n            \"type\": \"UNKNOWN\",\n            \"name\": \"EVnnovator Lab\",\n            \"address\": \"Radiant Heritage \",\n            \"city\": \"Bangalore\",\n            \"postal_code\": \"560099\",\n            \"operator\": {\n                \"name\": \"CERO\",\n                \"website\": \"http:\/\/slf.ceromobility.com\/\"\n            },\n            \"opening_times\": {\n                \"twentyfourseven\": true,\n                \"regular_hours\": null,\n                \"exceptional_openings\": null,\n                \"exceptional_closings\": null\n            },\n            \"charging_when_closed\": false,\n            \"last_modified_by\": \"admin\",\n            \"rating\": 0.0,\n            \"country_code\": \"IN\",\n            \"party_id\": \"111\",\n            \"publish\": false\n        },\n        \"currency\": \"INR\",\n        \"charging_periods\": [\n            {\n                \"start_date_time\": \"2022-03-14T12:35:57.000Z\",\n                \"dimensions\": [\n                    {\n                        \"type\": \"ENERGY\",\n                        \"volume\": \"0.001\"\n                    }\n                ]\n            },\n            {\n                \"start_date_time\": \"2022-03-14T12:36:27.000Z\",\n                \"dimensions\": [\n                    {\n                        \"type\": \"ENERGY\",\n                        \"volume\": \"0.006\"\n                    }\n                ]\n            },\n            {\n                \"start_date_time\": \"2022-03-14T12:36:57.000Z\",\n                \"dimensions\": [\n                    {\n                        \"type\": \"ENERGY\",\n                        \"volume\": \"0.006\"\n                    }\n                ]\n            },\n            {\n                \"start_date_time\": \"2022-03-14T12:37:27.000Z\",\n                \"dimensions\": [\n                    {\n                        \"type\": \"ENERGY\",\n                        \"volume\": \"0.006\"\n                    }\n                ]\n            },\n            {\n                \"start_date_time\": \"2022-03-14T12:37:57.000Z\",\n                \"dimensions\": [\n                    {\n                        \"type\": \"ENERGY\",\n                        \"volume\": \"0.006\"\n                    }\n                ]\n            },\n            {\n                \"start_date_time\": \"2022-03-14T12:38:27.000Z\",\n                \"dimensions\": [\n                    {\n                        \"type\": \"ENERGY\",\n                        \"volume\": \"0.006\"\n                    }\n                ]\n            },\n            {\n                \"start_date_time\": \"2022-03-14T12:38:57.000Z\",\n                \"dimensions\": [\n                    {\n                        \"type\": \"ENERGY\",\n                        \"volume\": \"0.006\"\n                    }\n                ]\n            },\n            {\n                \"start_date_time\": \"2022-03-14T12:39:27.000Z\",\n                \"dimensions\": [\n                    {\n                        \"type\": \"ENERGY\",\n                        \"volume\": \"0.006\"\n                    }\n                ]\n            },\n            {\n                \"start_date_time\": \"2022-03-14T12:39:57.000Z\",\n                \"dimensions\": [\n                    {\n                        \"type\": \"ENERGY\",\n                        \"volume\": \"0.006\"\n                    }\n                ]\n            },\n            {\n                \"start_date_time\": \"2022-03-14T12:40:27.000Z\",\n                \"dimensions\": [\n                    {\n                        \"type\": \"ENERGY\",\n                        \"volume\": \"0.006\"\n                    }\n                ]\n            },\n            {\n                \"start_date_time\": \"2022-03-14T12:40:57.000Z\",\n                \"dimensions\": [\n                    {\n                        \"type\": \"ENERGY\",\n                        \"volume\": \"0.006\"\n                    }\n                ]\n            },\n            {\n                \"start_date_time\": \"2022-03-14T12:41:27.000Z\",\n                \"dimensions\": [\n                    {\n                        \"type\": \"ENERGY\",\n                        \"volume\": \"0.006\"\n                    }\n                ]\n            },\n            {\n                \"start_date_time\": \"2022-03-14T12:41:57.000Z\",\n                \"dimensions\": [\n                    {\n                        \"type\": \"ENERGY\",\n                        \"volume\": \"0.006\"\n                    }\n                ]\n            },\n            {\n                \"start_date_time\": \"2022-03-14T12:42:27.000Z\",\n                \"dimensions\": [\n                    {\n                        \"type\": \"ENERGY\",\n                        \"volume\": \"0.006\"\n                    }\n                ]\n            },\n            {\n                \"start_date_time\": \"2022-03-14T12:43:00.000Z\",\n                \"dimensions\": [\n                    {\n                        \"type\": \"ENERGY\",\n                        \"volume\": \"0.006\"\n                    }\n                ]\n            },\n            {\n                \"start_date_time\": \"2022-03-14T12:43:30.000Z\",\n                \"dimensions\": [\n                    {\n                        \"type\": \"ENERGY\",\n                        \"volume\": \"0.006\"\n                    }\n                ]\n            },\n            {\n                \"start_date_time\": \"2022-03-14T12:44:00.000Z\",\n                \"dimensions\": [\n                    {\n                        \"type\": \"ENERGY\",\n                        \"volume\": \"0.006\"\n                    }\n                ]\n            },\n            {\n                \"start_date_time\": \"2022-03-14T12:44:30.000Z\",\n                \"dimensions\": [\n                    {\n                        \"type\": \"ENERGY\",\n                        \"volume\": \"0.006\"\n                    }\n                ]\n            },\n            {\n                \"start_date_time\": \"2022-03-14T12:45:00.000Z\",\n                \"dimensions\": [\n                    {\n                        \"type\": \"ENERGY\",\n                        \"volume\": \"0.006\"\n                    }\n                ]\n            },\n            {\n                \"start_date_time\": \"2022-03-14T12:45:08.000Z\",\n                \"dimensions\": [\n                    {\n                        \"type\": \"PARKING_TIME\",\n                        \"volume\": \"0.002\"\n                    }\n                ]\n            }\n        ],\n        \"total_cost\": 1.71,\n        \"status\": \"COMPLETED\",\n        \"last_updated\": \"2022-03-14T12:45:08.000+00:00\"\n    }\n}<\/pre>\n\n\n<p class=\"wp-block-paragraph\">Response<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>Code<\/td><td>Description<\/td><\/tr><tr><td>200<\/td><td>OK<\/td><\/tr><tr><td>401<\/td><td>Unauthorized<\/td><\/tr><tr><td>403<\/td><td>Forbidden<\/td><\/tr><tr><td>404<\/td><td>Not Found<\/td><\/tr><\/tbody><\/table><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>GET Get session by session id Retrive charging session details by session id URL https:\/\/api-gateway-evnnovator.com\/api\/v1\/sessions\/{sessions_id} Parameters Name countryCode Data Type String (2) Variable Type required Description Unique ID to identify charging session Sample Request and Response GET https:\/\/api-gateway-evnnovator.com\/api\/ocpi\/api\/v1\/sessions\/a5db858f68a59d25df755847db013244 Response Json : { &#8220;status_code&#8221;: 1000, &#8220;status_message&#8221;: &#8220;Success&#8221;, &#8220;timestamp&#8221;: &#8220;2022-04-04T06:48:08.577&#8221;, &#8220;data&#8221;: { &#8220;evseId&#8221;: &#8220;AMP03*1&#8221;, &#8220;connectorId&#8221;: &#8220;IN*111*EAMP03*1&#8221;, &#8220;id&#8221;: [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"footnotes":""},"doc_category":[4],"doc_tag":[],"class_list":["post-37","docs","type-docs","status-publish","hentry","doc_category-sessions"],"year_month":"2026-06","word_count":521,"total_views":0,"reactions":{"happy":0,"normal":0,"sad":0},"author_info":{"name":"cloudasc_WP0UC2Admin","author_nicename":"cloudasc_wp0uc2admin","author_url":"https:\/\/evnnovator.in\/APIHome\/author\/cloudasc_wp0uc2admin\/"},"doc_category_info":[{"term_name":"Sessions","term_url":"https:\/\/evnnovator.in\/APIHome\/docs-category\/sessions\/"}],"doc_tag_info":[],"_links":{"self":[{"href":"https:\/\/evnnovator.in\/APIHome\/wp-json\/wp\/v2\/docs\/37","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/evnnovator.in\/APIHome\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/evnnovator.in\/APIHome\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/evnnovator.in\/APIHome\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/evnnovator.in\/APIHome\/wp-json\/wp\/v2\/comments?post=37"}],"version-history":[{"count":5,"href":"https:\/\/evnnovator.in\/APIHome\/wp-json\/wp\/v2\/docs\/37\/revisions"}],"predecessor-version":[{"id":163,"href":"https:\/\/evnnovator.in\/APIHome\/wp-json\/wp\/v2\/docs\/37\/revisions\/163"}],"wp:attachment":[{"href":"https:\/\/evnnovator.in\/APIHome\/wp-json\/wp\/v2\/media?parent=37"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/evnnovator.in\/APIHome\/wp-json\/wp\/v2\/doc_category?post=37"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/evnnovator.in\/APIHome\/wp-json\/wp\/v2\/doc_tag?post=37"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}