{"info":{"_postman_id":"e6d947af-0f26-4a52-a53c-4bebd8e02ec4","name":"Kazam Platform","description":"<html><head></head><body><p><strong>Kazam Platform APIs</strong> provide an easy interface to interact programmatically with Kazam EV Charging Stations as well as OCPP Charging Stations running on Kazam CMS/Backend. The simplicity yet versatility of our APIs lead to endless possibilities of what you can create with them.</p>\n<p><strong>The following APIs fall into two categories -</strong></p>\n<ol>\n<li>Database Only Endpoints</li>\n<li>Device Trigger Endpoints</li>\n</ol>\n<h4 id=\"1-database-only-endpoints\">1. Database Only Endpoints</h4>\n<p>Database Only Endpoints only interact with the database to fetch/modify pre-stored/pre-cached data from the database. They provide extremely fast response times, usually within <strong>100ms</strong>*. So, they can be run in a polling model in the background tasks to provide consistent updates to the data on UI.</p>\n<p>*Subject to client network conditions</p>\n<p><strong>Database Only Endpoints are -</strong></p>\n<ul>\n<li>Get Transactions</li>\n<li>Get Latest Transaction</li>\n<li>Get Transaction Details</li>\n<li>Get Device State</li>\n<li>Get Tariff Details</li>\n<li>Create Booking</li>\n<li>Get Bookings</li>\n<li>Cancel Booking</li>\n<li>Config Device (for configuring <code>device_group</code> &amp; <code>location</code>)</li>\n</ul>\n<h4 id=\"2-device-trigger-endpoints\">2. Device Trigger Endpoints</h4>\n<p>Device Trigger Endpoints actually talk to the device being triggered, identified by <code>device_id</code> (provided the device is online) and fetch a response from the device itself. All Device Trigger Endpoints <strong>MUST</strong> complete execution within <strong>15 seconds</strong>; hence, if an appropriate response is not received from the device within 15 seconds, the API will return the following response -</p>\n<p><code>{ \"message\": \"device_timeout\" }</code></p>\n<p>...with a <code>Status Code</code> of <code>500</code></p>\n<p><strong>Device Trigger Endpoints are -</strong></p>\n<p>* Enable Device<br>* Disable Device<br>* Start Transaction<br>* Stop Transaction<br>* Config Device (for configuring <code>host_id</code>, <code>rate</code> &amp; <code>theft_state</code>)</p>\n<h3 id=\"happy-coding⌨️\"><code>Happy Coding!⌨️</code></h3>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"15805402","collectionId":"e6d947af-0f26-4a52-a53c-4bebd8e02ec4","publishedId":"TzY3DGwy","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"e00e07"},"publishDate":"2021-06-03T14:45:26.000Z"},"item":[{"name":"Get Transactions","event":[{"listen":"prerequest","script":{"id":"ca493855-1c2e-4234-a0d6-42b985a1a06f","exec":[""],"type":"text/javascript"}}],"id":"2f40b84a-24dc-4f58-a152-8bc21ed4bac8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"device_id\": [\r\n\"3654e5\",\r\n\"3pt6d3\",\r\n\"4rnhvu\",\r\n\"2kdpzr\",\r\n\"73df56\",\r\n\"vee9hn\",\r\n\"ggw52e\"\r\n    ],\r\n    \"start_time\":1707631357,\r\n    \"end_time\":1710136957\r\n}","options":{"raw":{"language":"json"}}},"url":"https://platform.kazam.in/getTransactions","description":"<p>Get Transactions for a certain period between <code>start_time</code> and <code>end_time</code> by the one of the following parameters -</p>\n<p>* Host ID<br />* Device ID<br />* User ID</p>\n<p>Check examples for implementation of each of them.</p>\n<p>Note - By default, <code>/getTransactions</code> will return both private and public transactions performed on the device. This behaviour can be modified simply by adding the <code>private</code> flag to the request body and setting it to a boolean <code>true</code> or <code>false</code>. Check \"Private Transactions Excluded\" example for detailed implementation guide.</p>\n","urlObject":{"protocol":"https","path":["getTransactions"],"host":["platform","kazam","in"],"query":[],"variable":[]}},"response":[{"id":"0d90d384-a234-44ce-95ac-5d328338e619","name":"Get Transactions by Host ID","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer <API Access Token>","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"host_id\":\"{{host_id}}\",\r\n    \"start_time\":{{start_time}},\r\n    \"end_time\":{{end_time}}\r\n}","options":{"raw":{"language":"json"}}},"url":"https://platform.kazam.in/getTransactions"},"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""},{"id":"5a7aa6a0-4f7d-4c69-bdec-0dc51e541d5e","name":"Get Transactions by Device ID","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer <API Access Token>","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"device_id\":\"{{device_id}}\",\r\n    \"start_time\":{{start_time}},\r\n    \"end_time\":{{end_time}}\r\n}","options":{"raw":{"language":"json"}}},"url":"https://platform.kazam.in/getTransactions"},"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":""},{"id":"92a95f94-d6b7-4e53-a684-ccdf029200a9","name":"Get Transactions by User ID","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer <API Access Token>","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"user_id\":\"{{user_id}}\",\r\n    \"start_time\":{{start_time}},\r\n    \"end_time\":{{end_time}}\r\n}","options":{"raw":{"language":"json"}}},"url":"https://platform.kazam.in/getTransactions"},"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":""},{"id":"aed0025f-b2d5-4bef-a4a0-5f020e4a57cc","name":"Pagination Example","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"start_time\": {{start_time}},\r\n    \"end_time\": {{end_time}},\r\n    \"device_id\": \"{{device_id}}\",\r\n    \"limit\": {{limit}},\r\n    \"offset\": {{offset}}\r\n}","options":{"raw":{"language":"json"}}},"url":"https://platform.kazam.in/getTransactions"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"count\": {\n        \"start\": {{offset}}, \n        \"end\": {{limit}}, \n        \"total\": {{total_txns}}\n    },\n    \"transactions\": []\n}"},{"id":"ca81de5a-7310-4770-91f1-30cbeada8360","name":"Private Transactions Excluded","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"start_time\": {{start_time}},\r\n    \"end_time\": {{end_time}},\r\n    \"device_id\": \"{{device_id}}\",\r\n    \"private\": false\r\n}","options":{"raw":{"language":"json"}}},"url":"https://platform.kazam.in/getTransactions"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n  \"count\": {\n    \"start\": 0,\n    \"end\": 25,\n    \"total\": 100\n  },\n  \"transactions\": [\n    {\n      \"txn_id\": \"{{txn_id}}\",\n      \"ack\": true,\n      \"connector_id\": 0,\n      \"device_id\": \"{{device_id}}\",\n      \"device_org\": \"{{org}}\",\n      \"initiated_from\": \"{{org}}\",\n      \"segment\": \"fleet\",\n      \"subsegment\": \"customer_hub\",\n      \"user_id\": \"{{user_id}}\",\n      \"device_network_type\": 0\n    }]\n}"},{"id":"8a90debb-3339-4697-962e-173a3a2839f7","name":"Get Transactions","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"device_id\": \"{{device_id}}\",\r\n    \"start_time\":\"{{start_time}}\",\r\n    \"end_time\":\"{{end_time}}\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://platform.kazam.in/getTransactions"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 19 Sep 2022 20:15:26 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"10035"},{"key":"Connection","value":"keep-alive"},{"key":"apigw-requestid","value":"YuUa0hw2hcwEJ9A="},{"key":"X-Powered-By","value":"Express"},{"key":"etag","value":"W/\"2733-50In8HAGIed6E4hDTiQdXpRZ+K8\""}],"cookie":[],"responseTime":null,"body":"{\n    \"count\": {\n        \"start\": 0,\n        \"end\": 25,\n        \"total\": 7\n    },\n    \"transactions\": [\n        {\n            \"txn_id\": \"{{txn_id}}\",\n            \"connector_id\": 0,\n            \"device_id\": \"{{device-id}}\",\n            \"device_org\": \"kazam\",\n            \"initiated_from\": \"kazam\",\n            \"segment\": \"workplace\",\n            \"subsegment\": \"corporate_office\",\n            \"user_id\": \"{{user_id}}\",\n            \"device_network_type\": 1,\n            \"end_time\": 1663615742,\n            \"power\": 19,\n            \"start_time\": 1663595937,\n            \"total_usage\": 0.04,\n            \"tx_status\": 0,\n            \"usage_limit\": 1000000,\n            \"voltage\": 226.15,\n            \"end_reason\": \"test_reason\",\n            \"payment_initialised\": false\n        },\n        {\n            \"txn_id\": \"{{txn_id}}\",\n            \"connector_id\": {{connector_id}},\n            \"device_id\": \"{{device-id}}\",\n            \"device_org\": \"{{org}}\",\n            \"initiated_from\": \"{{org}}\",\n            \"segment\": \"workplace\",\n            \"subsegment\": \"corporate_office\",\n            \"user_id\": \"{{user_id}}\",\n            \"device_network_type\": 1,\n            \"end_time\": 1663615318,\n            \"power\": 19,\n            \"start_time\": 1663595510,\n            \"total_usage\": 0.05,\n            \"tx_status\": 0,\n            \"usage_limit\": 1000000,\n            \"voltage\": 223.64,\n            \"end_reason\": \"cmd_stop\",\n            \"payment_initialised\": false\n        },\n        {\n            \"txn_id\": \"{{txn_id}}\",\n            \"connector_id\": 0,\n            \"device_id\": \"{{device-id}}\",\n            \"device_org\": \"{{org}}\",\n            \"initiated_from\": \"{{org}}\",\n            \"segment\": \"workplace\",\n            \"subsegment\": \"corporate_office\",\n            \"user_id\": \"{{user_id}}\",\n            \"device_network_type\": 1,\n            \"end_time\": 1663614985,\n            \"power\": 687,\n            \"start_time\": 1663594369,\n            \"total_usage\": 150.02,\n            \"tx_status\": 0,\n            \"usage_limit\": 150,\n            \"voltage\": 0,\n            \"end_reason\": \"limit_reached\",\n            \"payment_initialised\": false\n        }\n    ]\n}"}],"_postman_id":"2f40b84a-24dc-4f58-a152-8bc21ed4bac8"},{"name":"Get Latest Transaction","event":[{"listen":"prerequest","script":{"id":"166dbf43-c5d4-48b1-99e1-b9c5866ab64d","exec":["pm.variables.set(\"device_id\",\"l5coqi\")"],"type":"text/javascript"}}],"id":"7955efff-d431-4360-a705-6c2952d5adb3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{orgToken}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"device_id\":\"{{device_id}}\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://platform.kazam.in/getLatestTransaction","description":"<p>Get Latest Transaction of a device by <code>device_id</code></p>\n","urlObject":{"protocol":"https","path":["getLatestTransaction"],"host":["platform","kazam","in"],"query":[],"variable":[]}},"response":[{"id":"f24aa427-8a35-43d6-bf89-400781edc6e8","name":"Get Latest Transaction","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"device_id\":\"{{device_id}}\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://platform.kazam.in/getLatestTransaction"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 19 Sep 2022 20:26:16 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"412"},{"key":"Connection","value":"keep-alive"},{"key":"apigw-requestid","value":"YuWAWhv9hcwEM4A="},{"key":"X-Powered-By","value":"Express"},{"key":"etag","value":"W/\"19c-0+ZUpTYH/zrUmYBoKalHJHu9CDE\""}],"cookie":[],"responseTime":null,"body":"{\n    \"txn_id\": \"{{txn_id}}\",\n    \"connector_id\": {{connector_id}},\n    \"device_id\": \"{{device_id}}\",\n    \"device_org\": \"{{org}}\",\n    \"initiated_from\": \"{{initiated_org}}\",\n    \"segment\": \"{{segment}}\",\n    \"subsegment\": \"{{subsegment}}\",\n    \"user_id\": \"{{user_id}}\",\n    \"device_network_type\": 1,\n    \"end_time\": 1663626764,\n    \"power\": 0,\n    \"start_time\": 1663597278,\n    \"total_usage\": 1943.64,\n    \"tx_status\": 0,\n    \"usage_limit\": 12735,\n    \"voltage\": 236.5,\n    \"end_reason\": \"plug_disconnected\",\n    \"payment_initialised\": true\n}"}],"_postman_id":"7955efff-d431-4360-a705-6c2952d5adb3"},{"name":"Get Transaction Details","event":[{"listen":"prerequest","script":{"id":"65abdfe0-a72b-48bf-87f5-82669fa1634e","exec":["pm.variables.set(\"txn_id\",\"64423654\");"],"type":"text/javascript"}}],"id":"04e41757-6499-47b4-b88d-dc0d9edc2c2b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{orgToken}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"txn_id\":\"{{txn_id}}\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://platform.kazam.in/getTransactionDetails","description":"<p>Get Details of a particular transaction by <code>txn_id</code></p>\n","urlObject":{"protocol":"https","path":["getTransactionDetails"],"host":["platform","kazam","in"],"query":[],"variable":[]}},"response":[{"id":"bc9cfbbc-502f-40ea-b6aa-81bbd26a31ab","name":"Get Transaction Details","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"txn_id\":\"{{txn_id}}\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://platform.kazam.in/getTransactionDetails"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 19 Sep 2022 20:28:05 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"412"},{"key":"Connection","value":"keep-alive"},{"key":"apigw-requestid","value":"YuWRXjomBcwEMqA="},{"key":"X-Powered-By","value":"Express"},{"key":"etag","value":"W/\"19c-0+ZUpTYH/zrUmYBoKalHJHu9CDE\""}],"cookie":[],"responseTime":null,"body":"{\n    \"txn_id\": \"{{txn_id}}\",\n    \"connector_id\": {{connector_id}},\n    \"device_id\": \"{{device_id}}\",\n    \"device_org\": \"{{device_org}}\",\n    \"initiated_from\": \"{{initiated_org}}\",\n    \"segment\": \"{{segment}}\",\n    \"subsegment\": \"{{subsegment}}\",\n    \"user_id\": \"{{user_id}}\",\n    \"device_network_type\": 1,\n    \"end_time\": 1663626764,\n    \"power\": 0,\n    \"start_time\": 1663597278,\n    \"total_usage\": 1943.64,\n    \"tx_status\": 0,\n    \"usage_limit\": 12735,\n    \"voltage\": 236.5,\n    \"end_reason\": \"plug_disconnected\",\n    \"payment_initialised\": true\n}"}],"_postman_id":"04e41757-6499-47b4-b88d-dc0d9edc2c2b"},{"name":"Get Device State","event":[{"listen":"prerequest","script":{"id":"eb19d497-eed8-42e3-b820-58fe76c1412e","exec":["pm.variables.set(\"device_id\",\"l5coqi\")"],"type":"text/javascript"}}],"id":"84d9e3d8-b093-4c5c-8ea6-cf682e029c36","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{orgToken}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"device_id\": \"{{device_id}}\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://platform.kazam.in/getDeviceState","description":"<p>Get Device State (Details) by <code>device_id</code></p>\n<p>Pass in <code>\\\\\\\\*</code> as <code>device_id</code> to retrieve information of all devices at once, returns a <code>JSONArray</code></p>\n<h4 id=\"kazam-device-states\"><b>Kazam Device States</b></h4>\n<ol>\n<li>Device_Idle = 0</li>\n<li>Device_Disable = 1,</li>\n<li>Device_Busy =2,</li>\n<li>Device_Tampered =3,</li>\n<li>Device_Bootup =5,</li>\n<li>Device_Paused =6,</li>\n<li>Device_error(earth fault) =8,</li>\n<li>Device_Ota =10,</li>\n<li>Device_Emergency_switch =11,</li>\n<li>Device_Nomains = 12</li>\n</ol>\n<p><strong>Single Connector</strong></p>\n<ol>\n<li>When device is Online &amp; Idle (0) - show Available (in Green)</li>\n<li>When device is Online &amp; Charging (2) - show Busy (in Red)</li>\n<li>When device is Online &amp; Error (1,3,5,6,8,10,11,12) for Ocpp/Kazam Protocol - show Not Available (in Red)</li>\n<li>When device is Offline &amp; Idle (0) - show Available via Bluetooth (Last Online at 21 Aug 2:30pm)</li>\n<li>When device is Offline &amp; Charging (2) - show Busy (in Red)</li>\n<li>When device is Offline &amp; Error (1,3,5,6,8,10,11,12) for Ocpp Protocol - show Not Available (in Red)</li>\n</ol>\n<p>For checking if the device is connected use - <code>network:true/false</code></p>\n<p>For Kazam chargers you can also get how the device is connected - <code>network_type: 0=Wifi, 1=Sim, 2=BLE</code></p>\n<p><b>OCPP Devices</b></p>\n<ol>\n<li>Available (0)</li>\n<li>Preparing (9)</li>\n<li>Charging (2)</li>\n<li>SuspendedEV</li>\n<li>SuspendedEVSE</li>\n<li>Finishing (13)</li>\n<li>Reserved (4)</li>\n<li>Unavailable (1)</li>\n<li>Faulted (3)</li>\n</ol>\n<p><strong>Single Connector</strong></p>\n<ol>\n<li>When device is Online &amp; Available - show Available (in Green)</li>\n<li>When device is Online &amp; Charging, Preparing, SuspendedEV, SuspendedEVSE, Finishing - show Busy (in Red)</li>\n<li>When device is Online &amp; Unavailable, Faulted - show Not Available (in Red)</li>\n<li>When device is Offline (since there is no BT mode) - show Not Available (Last Online at 21 Aug 2:30pm) (in Red)</li>\n</ol>\n<p><strong>Multiple Connector</strong></p>\n<ol>\n<li>When even one connector is Online &amp; Available - show Available (in Green) and show the connector icon that is available. Show the other connector as busy/not available as per logic above.</li>\n<li>When ALL connectors are Online &amp; Charging, Preparing, SuspendedEV, SuspendedEVSE, Finishing (2)- show Busy (in Red)</li>\n<li>When ALL connectors are Online &amp; Unavailable, Faulted - show Not Available (in Red)</li>\n<li>For offline, it will be the same as device level.</li>\n</ol>\n<p>If there is a booking on any device, show Busy (between 18th Aug 3pm &amp; 4pm)</p>\n<p>For checking if the device is connected use - <code>network:true/false</code></p>\n","urlObject":{"protocol":"https","path":["getDeviceState"],"host":["platform","kazam","in"],"query":[],"variable":[]}},"response":[{"id":"fe584718-8767-4321-aaf7-f664cf5b7b90","name":"Get Device State","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"device_id\": \"*\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://platform.kazam.in/getDeviceState"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null},{"id":"285ff121-7682-469b-9448-3d4a27b77b44","name":"Get Device State","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"device_id\": \"{{device_id}}\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://platform.kazam.in/getDeviceState"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 19 Sep 2022 20:29:44 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"685"},{"key":"Connection","value":"keep-alive"},{"key":"apigw-requestid","value":"YuWg1gh3BcwEJ3w="},{"key":"X-Powered-By","value":"Express"},{"key":"etag","value":"W/\"2ad-DaIPBDEC3qBqRNO06twiq+BjQZ0\""}],"cookie":[],"responseTime":null,"body":"{\n    \"device_id\": \"l5coqi\",\n    \"device_group\": \"lite_ble\",\n    \"location\": [\n        28.440870621795558,\n        77.29739761987686\n    ],\n    \"charge_state\": 0,\n    \"host_id\": \"3x2H6l0vsuXCqEN9rjMNiZPMku62\",\n    \"network\": true,\n    \"network_type\": 1,\n    \"rate\": 10,\n    \"theft_state\": false,\n    \"timestamp\": 1663639172,\n    \"firmware_version\": \"24.2.3\",\n    \"boot\": 1663586270,\n    \"org\": \"kazam\",\n    \"protocol\": \"kazam\",\n    \"rssi\": 6,\n    \"region_id\": 1,\n    \"user_type\": \"destination\",\n    \"num_connectors\": 1,\n    \"geo_state\": \"Karnataka\",\n    \"network_info\": {\n        \"op\": \"Hutch-Kamataka\",\n        \"imsi\": \"404864462125054\"\n    },\n    \"imei\": \"862095052366371\",\n    \"config\": {\n        \"p_thresh\": 25,\n        \"v_thresh\": 300,\n        \"em_stat\": 1,\n        \"plugd_set\": 1,\n        \"plugd_t\": 180000,\n        \"tamp_set\": false,\n        \"resume_set\": true,\n        \"contact\": \"+919958943092\"\n    },\n    \"zone\": \"Tyagitesting\",\n    \"tariff\": \"EOCMi4\"\n}"}],"_postman_id":"84d9e3d8-b093-4c5c-8ea6-cf682e029c36"},{"name":"Get Device Details","id":"9f3f5cbb-1cd0-48b1-99cf-f02a0c912416","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"https://platform.kazam.in/getDeviceDetails","description":"<p>Takes in these URL query params, which are -</p>\n<ul>\n<li><strong>Location</strong> (<code>loc</code>) - The location of the user as an array of latitude &amp; longitude <code>[lat, long]</code>, around which charge points are to be located.</li>\n<li><strong>Distance</strong> (<code>dist</code>) - The radius of the sphere in kilometres from the with <code>loc</code> as the center, in range of which Charge Points are to be located. (Default is 5km)</li>\n<li><strong>Full Address</strong> (<code>fullAddress</code>) - When set to true, returns the human-readable version of the address of the Charger, along with location coordinates.</li>\n<li><strong>Connector Types</strong> (<code>socket</code>) - The supported connectors that connect to the charge points amongst [<code>\"three_pin\"</code>, <code>\"iec_60309\"</code>, \"<code>type_2\"</code>, \"<code>type_1\"</code>, <code>\"ccs\"</code>, <code>\"gbt\"</code>, <code>\"chademo\"</code> ]</li>\n<li><strong>Parking Types</strong> (<code>parking</code>) - The supported parking availability for the charge points amongst [<code>\"2W</code>\", <code>\"3W</code>\", <code>\"4W\"</code>]</li>\n</ul>\n<p><strong>Charger Details are returned as an array of objects, with each object containing the following fields -</strong></p>\n<ul>\n<li>Charger Name (<code>name</code>)</li>\n<li>Charger Model (<code>model</code>)</li>\n<li>Rate of Charging in Rupees (<code>rate</code>)</li>\n<li>Charger Image URL (<code>image</code>)</li>\n<li>Timings (<code>timings</code>)</li>\n<li>Output Types (<code>sockets</code>)</li>\n<li>Supported Vehicles Types (<code>vehicle_types</code>)</li>\n<li>Address (<code>address</code>)</li>\n</ul>\n<p>Charger <strong>Output Types</strong> will be an array of strings (<code>string[]</code>), containing any or all of the following socket types -</p>\n<ul>\n<li><code>three_pin</code> (<a href=\"https://en.wikipedia.org/wiki/AC_power_plugs_and_sockets#BS_546_and_related_types_.28Type_D_and_M.29\">Wiki</a>)</li>\n<li><code>iec_60309</code> (<a href=\"https://en.wikipedia.org/wiki/IEC_60309\">Wiki</a>)</li>\n<li><code>type_2</code> (<a href=\"https://en.wikipedia.org/wiki/Type_2_connector\">Wiki</a>)</li>\n<li><code>type_1</code> (<a href=\"https://en.wikipedia.org/wiki/SAE_J1772\">Wiki</a>)</li>\n<li><code>ccs</code> (<a href=\"https://en.wikipedia.org/wiki/Combined_Charging_System\">Wiki</a>)</li>\n<li><code>gbt</code> (<a href=\"https://en.wikipedia.org/wiki/Type_2_connector\">Wiki</a>)</li>\n<li><code>chademo</code> (<a href=\"https://en.wikipedia.org/wiki/CHAdeMO\">Wiki</a>)</li>\n<li><code>industrial_three_pin</code></li>\n<li><code>type_7</code></li>\n<li><code>type_6</code></li>\n<li><code>chagori</code></li>\n</ul>\n<p>Charger <strong>Address</strong> (if <code>fullAddress</code> param is set to <code>true</code>) will return an <code>array</code> directly from Google <a href=\"https://developers.google.com/maps/documentation/geocoding/requests-reverse-geocoding\">Reverse geocoding</a> API.</p>\n<p><strong>Amenities will be in the following format</strong></p>\n<p><code>\"amenities\" :</code> </p>\n<p><code>[ {</code></p>\n<p><code>\"amenity\" : \"cafe\",</code></p>\n<p><code>\"distance\" : 1</code></p>\n<p><code>} ]</code></p>\n<p><strong>The charger timings will be in the following format :</strong></p>\n<p><code>\"timings\" : \"10:00 - 23:59\"</code></p>\n<p>This is in 24/7 format, the time before the \"-\" is opening time and  the other is closing time. So in the above example, the charging station opens at 10 AM in the morning and closes at 11:59 PM.</p>\n<p>Please go through the provided examples for more details on implementation.</p>\n","urlObject":{"protocol":"https","path":["getDeviceDetails"],"host":["platform","kazam","in"],"query":[{"disabled":true,"key":"loc","value":"[<latitude>,<longitude>]"},{"disabled":true,"key":"dist","value":"<radius-in-km>"},{"disabled":true,"key":"fullAddress","value":"<bool>"}],"variable":[]}},"response":[{"id":"d2558b85-eccc-4472-a8cd-46c1d7500fd7","name":"With Location","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://platform.kazam.in/getDeviceDetails?loc=[<latitude>,<longitude>]","protocol":"https","host":["platform","kazam","in"],"path":["getDeviceDetails"],"query":[{"key":"loc","value":"[<latitude>,<longitude>]"},{"key":"dist","value":"<radius-in-km>","disabled":true},{"key":"fullAddress","value":"<bool>","disabled":true}]}},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null},{"id":"dadbfa67-bc8a-4209-a9a9-abb1343638eb","name":"With Location & Distance","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://platform.kazam.in/getDeviceDetails?loc=[<latitude>,<longitude>]&dist=<radius-in-km>","protocol":"https","host":["platform","kazam","in"],"path":["getDeviceDetails"],"query":[{"key":"loc","value":"[<latitude>,<longitude>]"},{"key":"dist","value":"<radius-in-km>"},{"key":"fullAddress","value":"<bool>","disabled":true}]}},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null},{"id":"48534b56-5977-46f3-9d70-8a0ea7a4662a","name":"Full Address","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://platform.kazam.in/getDeviceDetails?fullAddress=true","protocol":"https","host":["platform","kazam","in"],"path":["getDeviceDetails"],"query":[{"key":"loc","value":"[<latitude>,<longitude>]","disabled":true},{"key":"dist","value":"<radius-in-km>","disabled":true},{"key":"fullAddress","value":"true"}]}},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"9f3f5cbb-1cd0-48b1-99cf-f02a0c912416"},{"name":"Enable Device","event":[{"listen":"prerequest","script":{"id":"bec6fd3e-deb0-4805-931c-8978638ea5dd","exec":["pm.variables.set(\"device_id\",\"l5coqi\");"],"type":"text/javascript"}}],"id":"bdaa2fd4-89f5-4103-9b51-f245953bbb04","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{orgToken}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"device_id\": \"{{device_id}}\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://platform.kazam.in/enableDevice","description":"<p>Enable a device by <code>device_id</code></p>\n","urlObject":{"protocol":"https","path":["enableDevice"],"host":["platform","kazam","in"],"query":[],"variable":[]}},"response":[{"id":"08920958-2b76-420d-b318-23ff5b8496d1","name":"Enable Device","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"device_id\": \"{{device_id}}\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://platform.kazam.in/enableDevice"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 19 Sep 2022 20:34:07 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"22"},{"key":"Connection","value":"keep-alive"},{"key":"apigw-requestid","value":"YuXJjgxrhcwEPmA="},{"key":"X-Powered-By","value":"Express"},{"key":"etag","value":"W/\"16-wW8qpZPMPujN3WbshLj6BLw98OA\""}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"denabled\"\n}"}],"_postman_id":"bdaa2fd4-89f5-4103-9b51-f245953bbb04"},{"name":"Disable Device","event":[{"listen":"prerequest","script":{"id":"10ff6089-beee-44f9-b482-849b4849e635","exec":["pm.variables.set(\"device_id\",\"l5coqi\");"],"type":"text/javascript"}}],"id":"152b732f-1422-49e2-bb52-cf499d732e6f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{orgToken}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"device_id\": \"{{device_id}}\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://platform.kazam.in/disableDevice","description":"<p>Disable a device by <code>device_id</code></p>\n","urlObject":{"protocol":"https","path":["disableDevice"],"host":["platform","kazam","in"],"query":[],"variable":[]}},"response":[{"id":"aca2aa91-ec9c-4479-81ef-3ddaa78588c0","name":"Disable Device","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"device_id\": \"{{device_id}}\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://platform.kazam.in/disableDevice"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 19 Sep 2022 20:33:48 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"23"},{"key":"Connection","value":"keep-alive"},{"key":"apigw-requestid","value":"YuXG1haDhcwEPqw="},{"key":"X-Powered-By","value":"Express"},{"key":"etag","value":"W/\"17-uIoT1YTJr5ZYqDFZxI64NVAtXzs\""}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"ddisabled\"\n}"}],"_postman_id":"152b732f-1422-49e2-bb52-cf499d732e6f"},{"name":"Start Transaction","event":[{"listen":"prerequest","script":{"id":"db9a786e-97bf-4aee-845b-d653fb054859","exec":["pm.variables.set(\"start_time\", Math.floor(Date.now()/1000));\r","pm.variables.set(\"end_time\", Math.floor(Date.now()/1000) + (60 * 60));"],"type":"text/javascript"}}],"id":"fc9a6e89-2155-412d-91b4-f7c00143e901","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"device_id\":\"{{device_id}}\",\r\n    \"txn_id\":\"{{txn_id}}\",\r\n    \"connector_id\":{{connector_id}},\r\n    \"start_time\":{{start_time}},\r\n    \"duration\":{{duration}},\r\n    \"user_id\":\"{{user_id}}\",\r\n    \"usage_limit\":{{usage_limit}}\r\n}","options":{"raw":{"language":"json"}}},"url":"https://platform.kazam.in/startTransaction","description":"<p>Start Charging a device by the following parameters -</p>\n<p><strong>Time-based Charging</strong></p>\n<p><em>Start charging for a fixed duration of time</em></p>\n<ul>\n<li><p><code>device_id</code> - (Mandatory) The device on which charging is to be started</p>\n</li>\n<li><p><code>txn_id</code> - (Mandatory) The transaction id for the said charging transaction. Its a 8 digit for OCPP chargers and upto 10 digits for Kazam chargers.</p>\n</li>\n<li><p><code>connector_id</code> - (Optional) In case of <a href=\"https://www.deltaww.com/en-US/products/EV-Charging/DC-Wallbox\">multi-connector EVSE</a>, specify the connector (socket) number. For single connector device, send connector id as 0. For multi connector devices, send connector id as the element of the array starting from 0. E.g. if a device has 4 connectors, you will get them in an array [connector1, connector2, connector3, connector4]. If you want to start the 3rd connector, send connector id as 2. </p>\n</li>\n<li><p><code>start_time</code> - (Mandatory) When the charging is to started in epoch seconds</p>\n</li>\n<li><p><code>user_id</code> - (Mandatory) User ID of the user requesting the transaction. Usually its the mobile number of the user.</p>\n</li>\n<li><p><code>duration</code> - (Mandatory) The charging duration of the said transaction in secs.</p>\n</li>\n<li><p><code>usage_limit</code> (Optional) Usage limit in Wh based on user wallet balance and <code>rate</code> of device. Omit this param in case of free charging.</p>\n</li>\n</ul>\n<p><strong>Usage-based Charging</strong></p>\n<p><em>Start charging based on usage in wH (Can be calulated using charging amount and</em> <code>_rate_</code> <em>of device. Like we traditionally do for Petrol Pumps.)</em></p>\n<ul>\n<li><p><code>device_id</code> - (Mandatory) The device on which charging is to be started</p>\n</li>\n<li><p><code>txn_id</code> - (Mandatory) The transaction id for the said charging transaction. Its a 8 digit for OCPP chargers and upto 10 digits for Kazam chargers.</p>\n</li>\n<li><p><code>connector_id</code> - (Optional) In case of <a href=\"https://www.deltaww.com/en-US/products/EV-Charging/DC-Wallbox\">multi-connector EVSE</a>, specify the connector (socket) number. For single connector device, send connector id as 0. For multi connector devices, send connector id as the element of the array starting from 0. E.g. if a device has 4 connectors, you will get them in an array [connector1, connector2, connector3, connector4]. If you want to start the 3rd connector, send connector id as 2. </p>\n</li>\n<li><p><code>start_time</code> - (Mandatory) When the charging is to started in epoch seconds</p>\n</li>\n<li><p><code>user_id</code> - (Mandatory) User ID of the user requesting the transaction. Usually its the mobile number of the user.</p>\n</li>\n<li><p><code>usage_limit</code> (Mandatory) Usage limit in Wh</p>\n</li>\n</ul>\n<p><strong>Full Charge</strong></p>\n<p><em>Keep the charger on as long as the vehicle is drawing current from the socket.</em></p>\n<ul>\n<li><p><code>device_id</code> - (Mandatory) The device on which charging is to be started</p>\n</li>\n<li><p><code>txn_id</code> - (Mandatory) The transaction id for the said charging transaction. Its a 8 digit for OCPP chargers and upto 10 digits for Kazam chargers.</p>\n</li>\n<li><p><code>connector_id</code> - (Optional) In case of <a href=\"https://www.deltaww.com/en-US/products/EV-Charging/DC-Wallbox\">multi-connector EVSE</a>, specify the connector (socket) number. For single connector device, send connector id as 0. For multi connector devices, send connector id as the element of the array starting from 0. E.g. if a device has 4 connectors, you will get them in an array [connector1, connector2, connector3, connector4]. If you want to start the 3rd connector, send connector id as 2. </p>\n</li>\n<li><p><code>start_time</code> - (Mandatory) When the charging is to started in epoch seconds</p>\n</li>\n<li><p><code>user_id</code> - (Mandatory) User ID of the user requesting the transaction. Usually its the mobile number of the user.</p>\n</li>\n<li><p><code>usage_limit</code> (Optional) Usage limit in Wh based on user wallet balance and <code>rate</code> of device. Omit this parameter in case of free charging.</p>\n</li>\n</ul>\n","urlObject":{"protocol":"https","path":["startTransaction"],"host":["platform","kazam","in"],"query":[],"variable":[]}},"response":[{"id":"240f1612-4a01-4ddf-b60e-6637e7d93704","name":"Start Transaction","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"device_id\":\"{{device_id}}\",\r\n    \"txn_id\":\"{{txn_id}}\",\r\n    \"connector_id\":{{connector_id}},\r\n    \"start_time\":{{start_time}},\r\n    \"duration\":{{duration}},\r\n    \"user_id\":\"{{user_id}}\",\r\n    \"usage_limit\":{{usage_limit}}\r\n}","options":{"raw":{"language":"json"}}},"url":"https://platform.kazam.in/startTransaction"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"charge_started\"\n}"}],"_postman_id":"fc9a6e89-2155-412d-91b4-f7c00143e901"},{"name":"Stop Transaction","id":"455435a7-7845-460f-9fbf-53fcf8a200ec","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"device_id\": \"{{device_id}}\",\r\n    \"connector_id\": {{connector_id}}\r\n}","options":{"raw":{"language":"json"}}},"url":"https://platform.kazam.in/stopTransaction","description":"<p>Stop charging by <code>device_id</code> (and, <code>connector_id</code> in case of a <a href=\"https://www.deltaww.com/en-US/products/EV-Charging/DC-Wallbox\">multi-connector EVSE</a>)</p>\n","urlObject":{"protocol":"https","path":["stopTransaction"],"host":["platform","kazam","in"],"query":[],"variable":[]}},"response":[{"id":"08503264-ccad-49b9-b6ac-7f8876b3996c","name":"Stop Transaction","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"device_id\": \"{{device_id}}\",\r\n    \"connector_id\": {{connector_id}}\r\n}","options":{"raw":{"language":"json"}}},"url":"https://platform.kazam.in/stopTransaction"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"charge_stop\"\n}"}],"_postman_id":"455435a7-7845-460f-9fbf-53fcf8a200ec"},{"name":"Config Device","event":[{"listen":"prerequest","script":{"id":"521af4d0-404b-4390-9188-5b14adcc5d14","exec":["pm.variables.set(\"device_id\",\"l5coqi\");\r","pm.variables.set(\"vthresh\",270);"],"type":"text/javascript"}}],"id":"6f736988-e584-482e-9fcf-b45c513c2806","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{orgToken}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"device_id\":\"{{device_id}}\",\r\n    \"host_id\":\"{{new_host_id}}\",\r\n    \"location\":\"{{new_location}}\",\r\n    \"rate\":{{new_rate}},\r\n    \"theft_state\":{{new_theft_state}}\r\n}","options":{"raw":{"language":"json"}}},"url":"https://platform.kazam.in/configDevice","description":"<p>Re-configures certain parameters of a particular device by <code>device_id</code> after device has been added.</p>\n<p>Parameters - </p>\n<ul>\n<li><code>device_id</code> : (Mandatory) Device ID of the device to  be re-configured</li>\n</ul>\n<p>Re-configurable Device Parameters - </p>\n<ul>\n<li><code>host_id</code>: (Optional) New Host ID</li>\n<li><code>device_group</code>: (Optional) New Device Group</li>\n<li><code>location</code>: (Optional) New Location</li>\n<li><code>rate</code>: (Optional) New Rate</li>\n<li><code>theft_state</code>: (Optional) New Theft State</li>\n</ul>\n","urlObject":{"protocol":"https","path":["configDevice"],"host":["platform","kazam","in"],"query":[],"variable":[]}},"response":[],"_postman_id":"6f736988-e584-482e-9fcf-b45c513c2806"},{"name":"Config Device Thresholds","event":[{"listen":"prerequest","script":{"id":"521af4d0-404b-4390-9188-5b14adcc5d14","exec":["pm.variables.set(\"device_id\",\"l5coqi\");\r","pm.variables.set(\"vthresh\",270);"],"type":"text/javascript"}}],"id":"2525f44d-28c2-4591-be55-bc997e60ea11","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{orgToken}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"device_id\":\"{{device_id}}\",\r\n    \"cp_cmd\":3,\r\n    \"vthresh\":{{vthresh}}\r\n}","options":{"raw":{"language":"json"}}},"url":"https://platform.kazam.in/raw","description":"<p>Re-configures certain parameters of a particular device by <code>device_id</code> after device has been added.</p>\n<p>Parameters - </p>\n<ul>\n<li><code>device_id</code> : (Mandatory) Device ID of the device to  be re-configured</li>\n</ul>\n<p>Re-configurable Device Parameters - </p>\n<ul>\n<li><code>host_id</code>: (Optional) New Host ID</li>\n<li><code>device_group</code>: (Optional) New Device Group</li>\n<li><code>location</code>: (Optional) New Location</li>\n<li><code>rate</code>: (Optional) New Rate</li>\n<li><code>theft_state</code>: (Optional) New Theft State</li>\n</ul>\n","urlObject":{"protocol":"https","path":["raw"],"host":["platform","kazam","in"],"query":[],"variable":[]}},"response":[{"id":"33b40618-af15-42a4-be13-ebff514aa8a1","name":"Config Device Thresholds","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"device_id\":\"{{device_id}}\",\r\n    \"cp_cmd\":3,\r\n    \"vthresh\":{{vthresh}}\r\n}","options":{"raw":{"language":"json"}}},"url":"https://platform.kazam.in/raw"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 19 Sep 2022 20:42:38 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"24"},{"key":"Connection","value":"keep-alive"},{"key":"apigw-requestid","value":"YuYZAgzghcwEMVw="},{"key":"X-Powered-By","value":"Express"},{"key":"etag","value":"W/\"18-IC3GNI7Qb8reNQHMUns8YOIW/KA\""}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"config_set\"\n}"}],"_postman_id":"2525f44d-28c2-4591-be55-bc997e60ea11"},{"name":"Get Tariff Details","id":"4ff60288-1a15-4ccb-8c43-e470c0a37a2c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"tariff_id\" : \"{{tariff_id}}\" \n}","options":{"raw":{"language":"json"}}},"url":"https://platform.kazam.in/getTariffDetails","description":"<p>Tariffs are composite pricing structures that comprise elements of both fixed pricing and variable pricing (hourly, usage-wise, etc.). Tariffs for Charging Stations can be set from <a href=\"https://cms.kazam.in\">Kazam CMS</a>. Once a tariff has been set for a device from the CMS, the <code>tariff_id</code> can be found in the Device Details response received from the <code>/getDeviceState</code> endpoint. The intended use of this endpoint is to obtain the detailed pricing breakup of a particular tariff using the <code>tariff_id</code>.</p>\n","urlObject":{"protocol":"https","path":["getTariffDetails"],"host":["platform","kazam","in"],"query":[],"variable":[]}},"response":[],"_postman_id":"4ff60288-1a15-4ccb-8c43-e470c0a37a2c"},{"name":"Create Booking","id":"a0479866-c150-48f1-ae82-13fd6c2582f9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"device_id\": {{device_id}},\n    \"connector_id\": {{connector_id}},\n    \"user_id\": \"{{user_id}}\",\n    \"start_time\": {{start_time}},\n    \"duration\": {{duration}}\n}","options":{"raw":{"language":"json"}}},"url":"https://platform.kazam.in/booking/createBooking","description":"<p><strong>Create a new booking using the following parameters -</strong></p>\n<ul>\n<li><code>device_id</code> - (Mandatory) The device on which booking is to be done</li>\n<li><code>connector_id</code> - (Optional) In case of <a href=\"https://www.deltaww.com/en-US/products/EV-Charging/DC-Wallbox\">multi-connector EVSE</a>, specify the connector (socket) number</li>\n<li><code>user_id</code> - (Mandatory) User ID of the user creating the booking, must match the one which will be used to start transaction against this booking</li>\n<li><code>start_time</code> - (Mandatory) Start of booking time</li>\n<li><code>duration</code> - (Mandatory) Duration for which the booking is to be made</li>\n</ul>\n<p><strong>Note:</strong> The booking shall be created only if there are no existing bookings for that particular device_id/connector_id combination for the given time (i.e. <code>start_time</code> + <code>duration</code>)</p>\n","urlObject":{"protocol":"https","path":["booking","createBooking"],"host":["platform","kazam","in"],"query":[],"variable":[]}},"response":[],"_postman_id":"a0479866-c150-48f1-ae82-13fd6c2582f9"},{"name":"Get Bookings","id":"8ebb04bc-87f1-472b-80cb-d4d1b6758e16","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"device_id\": \"{{device_id}}\",\n    \"connector_id\": {{connector_id}},\n    \"user_id\": \"{{user_id}}\",\n    \"start_time\": {{start_time}},\n    \"duration\": {{duration}}\n}","options":{"raw":{"language":"json"}}},"url":"https://platform.kazam.in/booking/getBookings","description":"<p><strong>Check for existing bookings using the following parameters -</strong></p>\n<ul>\n<li><code>device_id</code> - (Mandatory) The device on which bookings are to be checked</li>\n<li><code>connector_id</code> - (Optional) In case of <a href=\"https://www.deltaww.com/en-US/products/EV-Charging/DC-Wallbox\">multi-connector EVSE</a>, specify the connector (socket) number</li>\n<li><code>user_id</code> - (Optional) For checking bookings of a particular user</li>\n<li><code>start_time</code> - (Mandatory) Start of period for which bookings are to be checked</li>\n<li><code>duration</code> - (Mandatory) Duration for which bookings are to be checked</li>\n</ul>\n","urlObject":{"protocol":"https","path":["booking","getBookings"],"host":["platform","kazam","in"],"query":[],"variable":[]}},"response":[],"_postman_id":"8ebb04bc-87f1-472b-80cb-d4d1b6758e16"},{"name":"Cancel Booking","id":"a56e4783-f7c4-4f75-a111-064a3990a7fd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"booking_id\": \"{{booking_id}}\"\n}","options":{"raw":{"language":"json"}}},"url":"https://platform.kazam.in/booking/cancelBooking","description":"<p>Cancel a particular booking by its <code>booking_id</code></p>\n","urlObject":{"protocol":"https","path":["booking","cancelBooking"],"host":["platform","kazam","in"],"query":[],"variable":[]}},"response":[],"_postman_id":"a56e4783-f7c4-4f75-a111-064a3990a7fd"},{"name":"Get Device Uptime","id":"59e9832f-0e8e-4828-bb74-f8c132d2da23","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{orgToken}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"device_id\": [\n        \"3654e5\",\n        \"3pt6d3\",\n        \"4rnhvu\",\n        \"2kdpzr\",\n        \"73df56\",\n        \"vee9hn\",\n        \"ggw52e\"\n    ],\n    \"start_time\": 1711909800,\n    \"end_time\": 1713870907\n}","options":{"raw":{"language":"json"}}},"url":"https://platform.kazam.in/getDeviceUptime","description":"<p>This endpoint makes an HTTP POST request to retrieve the device uptime from the Kazam platform. The request payload is sent in raw JSON format with the keys \"device_id\", \"start_time\", and \"end_time\". The \"device_id\" is an array containing the device ids, while \"start_time\" and \"end_time\" represent the start and end timestamps for the uptime query where the <strong>\"start_time\" should be the 12am IST timestamp</strong>.</p>\n<h3 id=\"response\">Response</h3>\n<p>The response of this request is documented as a JSON schema:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"{{device_id}}\":\"{{uptime}}\"\n}\n\n</code></pre>\n","urlObject":{"protocol":"https","path":["getDeviceUptime"],"host":["platform","kazam","in"],"query":[],"variable":[]}},"response":[],"_postman_id":"59e9832f-0e8e-4828-bb74-f8c132d2da23"}],"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]}},"event":[{"listen":"prerequest","script":{"id":"dc556be8-d5ae-4ab5-8c72-584c81b5f7ab","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"4feb8c1a-6ff7-4d1b-a30b-f50ce94fbe94","type":"text/javascript","exec":[""]}}]}