{"info":{"_postman_id":"3a11c5c1-79ae-4a83-9b5b-62f89ef6a517","name":"[DEPRICATED] LocoNav Integration APIs and Webhooks","description":"<html><head></head><body><h1 id=\"note-these-apis-are-depricated-and-will-be-disabled-soon-please-use-new-version-apis-here-httpsdevelopersloconavcom\"><strong>Note: These APIs are depricated and will be disabled soon. Please use new version APIs here:</strong> <a href=\"https://developers.loconav.com/\"><b>https://developers.loconav.com/</b></a></h1>\n<hr>\n<p>LocoNav provides a robust set of REST APIs and webhooks to allow you to integrate LocoNav into your platform. These APIs cover all of the LocoNav major focus areas, including telematics, safety, connected driver, and other solutions APIs.</p>\n<p>Partners can track, trace, and manage the details of their assets through the documentation provided below.</p>\n<p><strong>Domain URL for APIs:</strong> <a href=\"https://marketplace.loconav.com\"><b>https://marketplace.loconav.com</b></a></p>\n<p>For NEPAL users, Domain URL for APIs:</p>\n<p><a href=\"https://marketplace.loconav-nepal.com\"><b>https://marketplace.loconav-nepal.com</b></a></p>\n<hr>\n<p><strong>AUTHENTICATION MECHANISM</strong></p>\n<p>To access APIs, there are the following 2 ways:</p>\n<p><strong>If you are a user/fleet manager - Using User Auth</strong></p>\n<p>APIs can be accessed using User Token instead of Admin Token (FP Admin level)</p>\n<ul>\n<li><strong>User-Authentication</strong>: User level auth token assigned to each user in our system</li>\n</ul>\n<p><strong>If you are a franchise partner - Using Admin auth and User Id</strong></p>\n<p>APIs can be accessed using Admin Token (FP Admin level)</p>\n<ul>\n<li><p><strong>Admin-Authentication</strong>: Partner level token assigned to partner once partner onboards with us.</p>\n</li>\n<li><p><strong>User-Id/ External-User-Id</strong> - User-id of fleet manager or user which can be fetched from admin</p>\n</li>\n<li><p><strong>NOTE:</strong></p>\n<ul>\n<li>No user details are required.</li>\n<li>This authentication way is not applicable on APIs which require admin level authentication:<ul>\n<li>User (create user &amp; update user)</li>\n<li>Device (fetch, create, update)</li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n<hr>\n<p><strong>RESPONSE STRUCTURE</strong></p>\n<ul>\n<li>Every API present here will be of the following format<ul>\n<li>status: Boolean</li>\n<li>data: JSON Object</li>\n<li>error: String</li>\n<li>pagination: JSON Object<ul>\n<li>page: 1,2,3....</li>\n<li>per_page: 10,20,30...</li>\n</ul>\n</li>\n</ul>\n</li>\n<li>Filtering, Sorting and Pagination will be applicable on Listing APIs only.</li>\n</ul>\n<hr>\n<p><strong>PAGINATION</strong></p>\n<ul>\n<li>Only listing APIs contain pagination</li>\n<li>In query param, user needs to pass the following<ul>\n<li>page: 1,2,3....</li>\n<li>per_page: 10,20,30....</li>\n</ul>\n</li>\n<li>In response, user will receive<ul>\n<li>total_count: Integer</li>\n<li>per_page: Integer</li>\n<li>current_page: Integer</li>\n</ul>\n</li>\n</ul>\n<p><strong>Please contact LocoNav KAM , CST or Business SPOCs for your account to get the authentication parameters for your account.</strong></p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"Note: These APIs are depricated and will be disabled soon. Please use new version APIs here: https://developers.loconav.com/","slug":"note-these-apis-are-depricated-and-will-be-disabled-soon-please-use-new-version-apis-here-httpsdevelopersloconavcom"}],"owner":"17278093","collectionId":"3a11c5c1-79ae-4a83-9b5b-62f89ef6a517","publishedId":"UVJcmGuX","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"000000","highlight":"008080"},"publishDate":"2022-09-19T12:39:31.000Z"},"item":[{"name":"Device","item":[{"name":"Assign/Unassign","id":"88e1de9e-81a8-41b0-a6b3-a29c32bda7fd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"User-Authentication","value":"{{user_auth}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"vehicles\": [\n        {\n            \"vehicle_number\": \"PARTNER123123\",\n            \"device_id\": \"0PARTNERDEV123123\",\n            \"action\": \"ASSIGN_FORCE\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/api/v1/devices/action","description":"<p>APIs to assign and unassign devices to a vehicle</p>\n<p>The request body is expected to have an array of JSON in the “vehicles” key. JSON should have vehicle_number, device’s serial number(IMEI), and an action i.e. “assign”, \"assign_force\" or “unassign”.</p>\n<p><strong>Actions</strong>:</p>\n<ol>\n<li><strong>ASSIGN</strong> - Requires device_id. This action maps the device to the vehicle and also maps and starts a subscription from the partner's subscriptions.</li>\n<li><strong>UN_ASSIGN</strong> - Doesn't require device_id. This action unmaps the device from the vehicle but the subscription on the vehicle continues.</li>\n<li><strong>ASSIGN_FORCE</strong> - Requires device_id. Same as assign action. Additionally this action perform the following:<ol>\n<li>Vehicle's current device will be removed if present.</li>\n<li>Device's current installation will be removed if present.</li>\n<li>Maps device to vehicle and starts a subscription from the partner's subscriptions.</li>\n</ol>\n</li>\n</ol>\n","urlObject":{"path":["api","v1","devices","action"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[{"id":"e35689d0-6673-4fa4-8dbf-6cdd4c5f3478","name":"Response :200","originalRequest":{"method":"PUT","header":[{"key":"User-Id","value":"{{user_id}}","type":"text","disabled":true},{"key":"Admin-Authentication","value":"{{admin_auth}}","type":"text","disabled":true},{"key":"User-Authentication","value":"{{user_auth}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"vehicles\": [\n        {\n            \"vehicle_number\": \"UP30C1234\",\n            \"device_id\": \"012312312312\",\n            \"action\": \"ASSIGN_FORCE\"\n        },\n        {\n            \"vehicle_number\": \"UP30C6789\",\n            \"action\": \"UN_ASSIGN\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/api/v1/devices/action"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"error\": null\n}"},{"id":"67472676-ef53-4804-8083-d707229854ff","name":"Response :422","originalRequest":{"method":"PUT","header":[{"key":"User-Id","value":"{{user_id}}","type":"text","disabled":true},{"key":"Admin-Authentication","value":"{{admin_auth}}","type":"text","disabled":true},{"key":"User-Authentication","value":"{{user_auth}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"vehicles\": [\n        {\n            \"vehicle_number\": \"UP30C1234\",\n            \"device_id\": \"012312312312\",\n            \"action\": \"ASSIGN\"\n        },\n        {\n            \"vehicle_number\": \"UP30C6789\",\n            \"action\": \"UN_ASSIGN\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/api/v1/devices/action"},"status":"Unprocessable Entity (WebDAV) (RFC 4918)","code":422,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": false,\n    \"error\": \"Unable to process request\"\n}"},{"id":"4ea3578c-cbbe-457f-b5e7-4bea1e8b9aee","name":"Response :401","originalRequest":{"method":"PUT","header":[{"key":"User-Id","value":"{{user_id}}","type":"text","disabled":true},{"key":"Admin-Authentication","value":"{{admin_auth}}","type":"text","disabled":true},{"key":"User-Authentication","value":"{{user_auth}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"vehicles\": [\n        {\n            \"vehicle_number\": \"UP30C1234\",\n            \"device_id\": \"012312312312\",\n            \"action\": \"ASSIGN\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/api/v1/devices/action"},"status":"Unauthorized","code":401,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n   \"status\": false,\n   \"error\": \"User does not have sufficient privileges. Contact your system administrator.\"\n}\n"},{"id":"035a42c5-5440-4aac-8ed4-5095ddecc9cf","name":"Response :403","originalRequest":{"method":"PUT","header":[{"key":"User-Id","value":"{{user_id}}","type":"text","disabled":true},{"key":"Admin-Authentication","value":"{{admin_auth}}","type":"text","disabled":true},{"key":"User-Authentication","value":"{{user_auth}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"vehicles\": [\n        {\n            \"vehicle_number\": \"UP30C1234\",\n            \"device_id\": \"012312312312\",\n            \"action\": \"ASSIGN_FORCE\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/api/v1/devices/action"},"status":"Forbidden","code":403,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n   \"status\": false,\n   \"error\": \"Permission denied. Contact your system administrator.\"\n}\n"}],"_postman_id":"88e1de9e-81a8-41b0-a6b3-a29c32bda7fd"},{"name":"Fetch Device Details","id":"934d1463-a0e9-4967-bc8c-dff75afd5b50","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Admin-Authentication","value":"{{admin_auth}}","type":"text"},{"key":"User-Id","value":"{{user_id}}","type":"text"}],"url":"{{base_url}}/api/v1/devices?active={{active}}&device_type_id={{device_type_id}}&created_on={{created_on}}&page={{page}}&per_page={{per_page}}&serial_number={{serial_number}}","description":"<p><strong>Purpose</strong></p>\n<p>To get the details of devices tagged for a user.</p>\n<p>All query parameters are optional. The list of devices that is fetched is filtered by the query parameters provided.</p>\n<p><strong>Note</strong></p>\n<ul>\n<li>Use the page and per_page parameter to fetch records according to their position in the CRM. Let's assume that the user has to fetch 400 records. The maximum number of records that one can get for an API call is 100. So, for records above the 100th position, they cannot be fetched. By using the page (1, 2, 3 and 4) and per_page (100) parameter, the user can fetch all 400 records using 4 API calls.</li>\n</ul>\n","urlObject":{"path":["api","v1","devices"],"host":["{{base_url}}"],"query":[{"description":{"content":"<p>optional: device status to filter by (type: boolean)</p>\n","type":"text/plain"},"key":"active","value":"{{active}}"},{"description":{"content":"<p>optional: device type id to filter by (type: int)</p>\n","type":"text/plain"},"key":"device_type_id","value":"{{device_type_id}}"},{"description":{"content":"<p>optional: date to filter by (format: dd/MM/yyyy)</p>\n","type":"text/plain"},"key":"created_on","value":"{{created_on}}"},{"description":{"content":"<p>Page index (type: int) (optional, default: 1)</p>\n","type":"text/plain"},"key":"page","value":"{{page}}"},{"description":{"content":"<p>No of items per page (type: int) (optional, default: 10)</p>\n","type":"text/plain"},"key":"per_page","value":"{{per_page}}"},{"description":{"content":"<p>optional: device serial number to filter by (type: string)</p>\n","type":"text/plain"},"key":"serial_number","value":"{{serial_number}}"}],"variable":[]}},"response":[{"id":"e49ef44e-95bf-471c-9ff5-9f00d20167de","name":"Response : 200","originalRequest":{"method":"GET","header":[{"key":"Admin-Authentication","value":"{{admin_auth}}","type":"text"},{"key":"User-Authentication","value":"{{user_auth}}","type":"text","disabled":true},{"key":"User-Id","value":"{{user_id}}","type":"text"}],"url":{"raw":"http://ind-stg-marketplace.loconav.com/api/v1/devices?active=true&device_type_id=122&page=1&per_page=10","protocol":"http","host":["ind-stg-marketplace","loconav","com"],"path":["api","v1","devices"],"query":[{"key":"active","value":"true","description":"Boolean"},{"key":"device_type_id","value":"122","description":"unique_id"},{"key":"created_on","value":null,"description":"filter by date","disabled":true},{"key":"page","value":"1","description":"page index"},{"key":"per_page","value":"10","description":"No of items per page"},{"key":"serial_number","value":null,"type":"text","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"data\": [\n        {\n            \"id\": 12,\n            \"serial_number\": \"0355172100887247\",\n            \"active\": true,\n            \"country_code\": \"AS\",\n            \"device_type\": {\n                \"id\": 122,\n                \"name\": \"CCTR-828\",\n                \"kind\": 10,\n                \"server_port\": 5032,\n                \"server_ip\": \"52.11.69.67\"\n            },\n            \"phone_number\": \"1323735114\"\n        }\n    ],\n    \"pagination\": {\n        \"per_page\": 10,\n        \"count\": 1,\n        \"page\": 1\n    }\n}"},{"id":"df9b479f-a192-4f84-8154-19b8e9228f63","name":"Response : 401","originalRequest":{"method":"GET","header":[{"key":"Admin-Authentication","value":"{{admin_auth}}","type":"text","disabled":true},{"key":"User-Authentication","value":"{{user_auth}}","type":"text"}],"url":{"raw":"{{base_url}}/api/v1/devices?active=true&device_type_id=122&page=1&per_page=10","host":["{{base_url}}"],"path":["api","v1","devices"],"query":[{"key":"active","value":"true","description":"Boolean"},{"key":"device_type_id","value":"122","description":"unique_id"},{"key":"created_on","value":null,"description":"filter by date","disabled":true},{"key":"page","value":"1","description":"page index"},{"key":"per_page","value":"10","description":"No of items per page"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": false,\n    \"error\": \"Partner does not have sufficient privilege to get devices. Contact your system administrator.\"\n}"},{"id":"31a4a5cc-e89b-476b-9ab0-2e0db1f4ae52","name":"Response : 403","originalRequest":{"method":"GET","header":[{"key":"Admin-Authentication","value":"{{admin_auth}}","type":"text","disabled":true},{"key":"User-Authentication","value":"{{user_auth}}","type":"text"}],"url":{"raw":"{{base_url}}/api/v1/devices?active=true&device_type_id=122&page=1&per_page=10","host":["{{base_url}}"],"path":["api","v1","devices"],"query":[{"key":"active","value":"true","description":"Boolean"},{"key":"device_type_id","value":"122","description":"unique_id"},{"key":"created_on","value":null,"description":"filter by date","disabled":true},{"key":"page","value":"1","description":"page index"},{"key":"per_page","value":"10","description":"No of items per page"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": false,\n    \"error\": \"Permission denied to get device details. Contact your system administrator.\"\n}"}],"_postman_id":"934d1463-a0e9-4967-bc8c-dff75afd5b50"},{"name":"Update Devices","id":"de650f82-94ca-4bad-a0c9-e453b0c3e070","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"User-Authentication","value":"{{user_auth}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"devices\": [\n        {\n            \"id\": 1016,\n            \"device_type_id\": 122,\n            \"country_code\": \"IN\",\n            \"notes\": \"\",\n            \"phone_number\": \"9181712125\"\n        },\n        {\n            \"id\": 1017,\n            \"device_type_id\": 122,\n            \"country_code\": \"AS\",\n            \"notes\": \"\",\n            \"phone_number\": \"9181712124\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/api/v1/devices","description":"<p><strong>Purpose</strong></p>\n<p>To update details of devices tagged for a user.</p>\n","urlObject":{"path":["api","v1","devices"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[{"id":"b35f7d95-e8df-4f38-81dd-c00d26b9b428","name":"Response : 200","originalRequest":{"method":"PUT","header":[{"key":"Admin-Authentication","value":"{{admin_auth}}","type":"text","disabled":true},{"key":"User-Authentication","value":"{{user_auth}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"devices\": [\n        {\n            \"id\": 12,\n            \"device_type_id\": 122,\n            \"country_code\": \"+91\",\n            \"notes\": \"\",\n            \"phone_number\": \"9181712121\"\n        },\n        {\n            \"id\": 13,\n            \"device_type_id\": 122,\n            \"country_code\": \"+91\",\n            \"notes\": \"\",\n            \"phone_number\": \"9181712122\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{base_url}}/api/v1/devices","host":["{{base_url}}"],"path":["api","v1","devices"],"query":[{"key":"created_on","value":null,"description":"filter by date","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"data\": [\n        {\n            \"id\": 1016,\n            \"serial_number\": \"SERIAL_NUMBER\"\n        },\n        {\n            \"id\": 1017,\n            \"serial_number\": \"SERIAL_NUMBER\"\n        }\n    ]\n}"},{"id":"2e7d5303-2df0-47e5-928d-f7a154a0e7c0","name":"Response: 422","originalRequest":{"method":"POST","header":[{"key":"Admin-Authentication","value":"{{admin_auth}}","type":"text"},{"key":"User-Authentication","value":"{{user_auth}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"devices\": [\n        {\n            \"id\": 12,\n            \"device_type_id\": 122,\n            \"country_code\": \"+91\",\n            \"notes\": \"\",\n            \"phone_number\": \"9181712121\"\n        },\n        {\n            \"id\": 13,\n            \"device_type_id\": 122,\n            \"country_code\": \"+91\",\n            \"notes\": \"\",\n            \"phone_number\": \"9181712122\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/api/v1/devices"},"status":"Unprocessable Entity (WebDAV) (RFC 4918)","code":422,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": false,\n    \"error\": \"Insufficient body params: device_type_id\"\n}"},{"id":"a637f0e9-3812-497a-ad2f-7f7cbfddcecd","name":"Response : 401","originalRequest":{"method":"PUT","header":[{"key":"Admin-Authentication","value":"{{admin_auth}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"devices\": [\n        {\n            \"id\": 12,\n            \"device_type_id\": 122,\n            \"country_code\": \"+91\",\n            \"notes\": \"\",\n            \"phone_number\": \"9181712121\"\n        },\n        {\n            \"id\": 13,\n            \"device_type_id\": 122,\n            \"country_code\": \"+91\",\n            \"notes\": \"\",\n            \"phone_number\": \"9181712122\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{base_url}}/api/v1/devices?User-Authentication={{user_auth}}","host":["{{base_url}}"],"path":["api","v1","devices"],"query":[{"key":"created_on","value":null,"description":"filter by date","disabled":true},{"key":"User-Authentication","value":"{{user_auth}}","type":"text"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": false,\n    \"error\": \"Partner does not have sufficient privilege to create devices. Contact your system administrator.\"\n}"},{"id":"089ec6b6-5ada-4422-832f-e0bcd08e6a92","name":"Response : 403","originalRequest":{"method":"PUT","header":[{"key":"Admin-Authentication","value":"{{admin_auth}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"devices\": [\n        {\n            \"id\": 12,\n            \"device_type_id\": 122,\n            \"country_code\": \"+91\",\n            \"notes\": \"\",\n            \"phone_number\": \"9181712121\"\n        },\n        {\n            \"id\": 13,\n            \"device_type_id\": 122,\n            \"country_code\": \"+91\",\n            \"notes\": \"\",\n            \"phone_number\": \"9181712122\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{base_url}}/api/v1/devices?User-Authentication={{user_auth}}","host":["{{base_url}}"],"path":["api","v1","devices"],"query":[{"key":"created_on","value":null,"description":"filter by date","disabled":true},{"key":"User-Authentication","value":"{{user_auth}}","type":"text"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": false,\n    \"error\": \"Permission denied to create devices. Contact your system administrator.\"\n}"}],"_postman_id":"de650f82-94ca-4bad-a0c9-e453b0c3e070"},{"name":"Device Lookup","id":"7f0b1c98-0364-4a32-98d6-3166fd7f3614","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Admin-Authentication","value":"{{admin_auth}}","type":"text"}],"url":"{{base_url}}/api/v1/devices/lookup?serial_number={{serial_number}}","description":"<p>Fetch current details of device like location, status, ignition, etc via api.</p>\n","urlObject":{"path":["api","v1","devices","lookup"],"host":["{{base_url}}"],"query":[{"description":{"content":"<p>Device serial number to fetch (type: string) (Required)</p>\n","type":"text/plain"},"key":"serial_number","value":"{{serial_number}}"}],"variable":[]}},"response":[{"id":"3f945836-07df-4884-b448-f66c0575fe7b","name":"Response: 200","originalRequest":{"method":"GET","header":[{"key":"Admin-Authentication","value":"{{admin_auth}}","type":"text","disabled":true},{"key":"User-Authentication","value":"{{user_auth}}","type":"text"}],"url":{"raw":"{{base_url}}/api/v1/devices/lookup?serial_number={{serial_number}}","host":["{{base_url}}"],"path":["api","v1","devices","lookup"],"query":[{"key":"serial_number","value":"{{serial_number}}"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"data\": {\n        \"device_info\" : {\n            \"device_imei\":\"0862798050406848\",\n            \"location_time\":\"01-12-2021 10:28:45\",\n            \"status_time\":\"01-12-2021 10:26:22\",\n            \"battery\" :\"Connected\",\n            \"ignition\":\"ON\",\n            \"lat_long\": \"17.472124,78.346544\",\n            \"address\":\"SVS Height, Madhava Hill Estate, Kondapur, Hyderabad, Telangana. 120 m from Srinivasa Residency pin-500084 (India)\",\n            \"io_state\":\"01000000\",\n            \"speed\":\"0\",\n            \"temperature\": \"-\",\n            \"raw_created_time\":\"2021-12-01 10:28:45 +0530\",\n            \"raw_recieved_time\":\"2021-12-01 10:28:44 +0530\",\n            \"cell\":909374,\n            \"external_power_cut_status\": false,\n            \"immobilizer\":false,\n            \"no_of_satellite\": 6\n        },\n        \"passed\": true // when battery is on, last coordinate withing 2 hrs and last recieved signal within 10 min\n    }\n}"}],"_postman_id":"7f0b1c98-0364-4a32-98d6-3166fd7f3614"}],"id":"738adae1-6e65-440b-96eb-6c0cc583bd50","description":"<p>LocoNav supports almost 2200+ Telematics devices and sensors. Our REST APIs can be used to fetch the device types and sensors assigned to a user.</p>\n<p>A user or partner integrating with LocoNav platform is required to onboard devices on the platform. Once the device is onboarded via the LocoNav Device Onboarding app.</p>\n<p>The app can be used to Onboard devices, configure them to connect to LocoNav platform and even perform configurations as per your business needs.</p>\n<p>The backbone of this app is our integration APIs which can be used to the perform operations on Device level.</p>\n","_postman_id":"738adae1-6e65-440b-96eb-6c0cc583bd50"},{"name":"Vehicle","item":[{"name":"Create New Vehicles","id":"c6c89709-52ad-42e2-b5e9-e05d941ad5ad","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"User-Authentication","value":"{{user_auth}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"vehicles\": [\n        {\n            \"number\": \"DEMOSUB1231\",\n            \"display_number\": \"Demo\",\n            \"chassis_number\": \"test\",\n            \"make\": \"Ford\",\n            \"model\": 2014,\n            \"notes\": \"This is a demo vehicle\",\n            \"primary_fuel_tank\": { //optional\n                \"tank_type\": \"fuel_road\", //optional\n                \"capacity\": 12,\n                \"active\": true,\n                \"fuel_type\": \"petrol\" //optional\n            },\n            \"provider\" : {\n                \"name\": \"test\",\n                \"enabled\": true\n            }\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/api/v1/vehicles","description":"<ul>\n<li>Number is mandatory and should be unique for all vehicles.</li>\n<li>Display_number is optional. If display_number is not provided, display_number == number.</li>\n<li>Chassis_number and notes are optional</li>\n<li>Vehicles created will be mapped to user sent in the header.<br />  Change Log : Added provider details</li>\n</ul>\n","urlObject":{"path":["api","v1","vehicles"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[{"id":"eda4c6ec-7f70-4efb-a616-6c52e19fee42","name":"Response: 200","originalRequest":{"method":"POST","header":[{"key":"User-Id","value":"{{user_id}}","type":"text","disabled":true},{"key":"Admin-Authentication","value":"{{admin_auth}}","type":"text","disabled":true},{"key":"User-Authentication","value":"{{user_auth}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"vehicles\": [\n        {\n            \"number\": \"DEMOSUB1231\",\n            \"display_number\": \"Demo\",\n            \"chassis_number\": \"test\",\n            \"make\": \"Ford\",\n            \"model\": 2014,\n            \"notes\": \"This is a demo vehicle\",\n            \"primary_fuel_tank\": {\n                \"tank_type\": \"fuel_road\",\n                \"capacity\": 12,\n                \"active\": true\n            },\n            \"provider\" : {\n                \"name\": \"test\",\n                \"enabled\": true\n            }\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/api/v1/vehicles"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"data\" : {\n        \"vehicles\" : [\n            {\n                \"id\": 1,\n                \"number\": \"DEMO123\"\n            }\n        ]\n    }\n}"},{"id":"872f72f9-6f64-4e36-a7ee-e48db424d371","name":"Response: 401","originalRequest":{"method":"POST","header":[{"key":"User-Id","value":"{{user_id}}","type":"text","disabled":true},{"key":"Admin-Authentication","value":"{{admin_auth}}","type":"text","disabled":true},{"key":"User-Authentication","value":"{{user_auth}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"vehicles\": [\n        {\n            \"number\": \"DEMOSUB1231\",\n            \"display_number\": \"Demo\",\n            \"chassis_number\": \"test\",\n            \"make\": \"Ford\",\n            \"model\": 2014,\n            \"notes\": \"This is a demo vehicle\",\n            \"primary_fuel_tank\": {\n                \"tank_type\": \"fuel_road\",\n                \"capacity\": 12,\n                \"active\": true\n            },\n            \"provider\" : {\n                \"name\": \"test\",\n                \"enabled\": true\n            }\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/api/v1/vehicles"},"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"status\": false,\n    \"errors\": \"User does not have sufficient privilege to add vehicle. Contact your system administrator.\"\n}"},{"id":"9a5c698e-b0d9-4d8f-b24c-6d607b8ae0f0","name":"Response: 403","originalRequest":{"method":"POST","header":[{"key":"User-Id","value":"{{user_id}}","type":"text","disabled":true},{"key":"Admin-Authentication","value":"{{admin_auth}}","type":"text","disabled":true},{"key":"User-Authentication","value":"{{user_auth}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"vehicles\": [\n        {\n            \"number\": \"DEMOSUB1231\",\n            \"display_number\": \"Demo\",\n            \"chassis_number\": \"test\",\n            \"make\": \"Ford\",\n            \"model\": 2014,\n            \"notes\": \"This is a demo vehicle\",\n            \"primary_fuel_tank\": {\n                \"tank_type\": \"fuel_road\",\n                \"capacity\": 12,\n                \"active\": true\n            },\n            \"provider\" : {\n                \"name\": \"test\",\n                \"enabled\": true\n            }\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/api/v1/vehicles"},"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"status\": false,\n    \"errors\": \"Permission denied to add vehicle. Contact your system administrator.\"\n}"},{"id":"a54ab998-593a-46f0-a53e-25e16664a164","name":"Response: 422","originalRequest":{"method":"POST","header":[{"key":"User-Id","value":"{{user_id}}","type":"text","disabled":true},{"key":"Admin-Authentication","value":"{{admin_auth}}","type":"text","disabled":true},{"key":"User-Authentication","value":"{{user_auth}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"vehicles\": [\n        {\n            \"number\": \"DEMOSUB1231\",\n            \"display_number\": \"Demo\",\n            \"chassis_number\": \"test\",\n            \"make\": \"Ford\",\n            \"model\": 2014,\n            \"notes\": \"This is a demo vehicle\",\n            \"primary_fuel_tank\": {\n                \"tank_type\": \"fuel_road\",\n                \"capacity\": 12,\n                \"active\": true\n            },\n            \"provider\" : {\n                \"name\": \"test\",\n                \"enabled\": true\n            }\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/api/v1/vehicles"},"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"status\": false,\n    \"errors\": \"Insufficient body params: registration_number, display_number, account_id\"\n}"}],"_postman_id":"c6c89709-52ad-42e2-b5e9-e05d941ad5ad"},{"name":"Update Vehicles","id":"422c0b2c-d511-470d-8f06-b52ef093354f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"User-Authentication","value":"{{user_auth}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"vehicles\": [\n        {\n            \"id\": 10,\n            \"number\": \"DEMOSUB1231\",\n            \"display_number\": \"Demo\",\n            \"chassis_number\": \"test\",\n            \"make\": \"Ford\",\n            \"model\": 2014,\n            \"notes\": \"This is a demo vehicle\",\n            \"primary_fuel_tank\": {\n                \"tank_type\": \"fuel_road\",\n                \"capacity\": 12,\n                \"active\": true,\n                \"fuel_type\": \"petrol\" //optional\n            },\n            \"provider\" : {\n                \"name\": \"test\",\n                \"enabled\": true\n            },\n            \"odometer_reading\": 87834 // in km\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/api/v1/vehicles","description":"<p>To update vehicle details, a unique number is mandatory.</p>\n","urlObject":{"path":["api","v1","vehicles"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[{"id":"50424904-8b44-4e07-b066-5d20aa88ec3e","name":"Response: 200","originalRequest":{"method":"PUT","header":[{"key":"User-Id","value":"{{user_id}}","type":"text","disabled":true},{"key":"Admin-Authentication","value":"{{admin_auth}}","type":"text","disabled":true},{"key":"User-Authentication","value":"{{user_auth}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"vehicles\": [\n        {\n            \"id\": 10,\n            \"number\": \"DEMOSUB1231\",\n            \"display_number\": \"Demo\",\n            \"chassis_number\": \"test\",\n            \"make\": \"Ford\",\n            \"model\": 2014,\n            \"notes\": \"This is a demo vehicle\",\n            \"primary_fuel_tank\": {\n                \"tank_type\": \"fuel_rod\",\n                \"capacity\": 12,\n                \"active\": true\n            }\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/api/v1/vehicles"},"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"data\" : {\n        \"vehicles\" : [\n            {\n                \"id\": 1,\n                \"number\": \"DEMO123\"\n            }\n        ]\n    }\n}"},{"id":"605f5615-6a8b-4994-b796-8820ced6625c","name":"Response: 422","originalRequest":{"method":"PUT","header":[{"key":"User-Id","value":"{{user_id}}","type":"text","disabled":true},{"key":"Admin-Authentication","value":"{{admin_auth}}","type":"text","disabled":true},{"key":"User-Authentication","value":"{{user_auth}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"vehicles\": [\n        {\n            \"id\": 10,\n            \"number\": \"DEMOSUB1231\",\n            \"display_number\": \"Demo\",\n            \"chassis_number\": \"test\",\n            \"make\": \"Ford\",\n            \"model\": 2014,\n            \"notes\": \"This is a demo vehicle\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/api/v1/vehicles"},"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"status\": false,\n    \"errors\": \"Insufficient body params: number\"\n}"},{"id":"6b196bdf-bd7c-4d68-911f-ea1c55385f4a","name":"Response: 401","originalRequest":{"method":"PUT","header":[{"key":"User-Id","value":"{{user_id}}","type":"text","disabled":true},{"key":"Admin-Authentication","value":"{{admin_auth}}","type":"text","disabled":true},{"key":"User-Authentication","value":"{{user_auth}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"vehicles\": [\n        {\n            \"id\": 10,\n            \"number\": \"DEMOSUB1231\",\n            \"display_number\": \"Demo\",\n            \"chassis_number\": \"test\",\n            \"make\": \"Ford\",\n            \"model\": 2014,\n            \"notes\": \"This is a demo vehicle\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/api/v1/vehicles"},"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"status\": false,\n    \"errors\": \"User does not have sufficient privilege to update vehicle. Contact your system administrator.\"\n}"},{"id":"a191e728-826d-437e-a136-067d9d69631c","name":"Response: 403","originalRequest":{"method":"PUT","header":[{"key":"User-Id","value":"{{user_id}}","type":"text","disabled":true},{"key":"Admin-Authentication","value":"{{admin_auth}}","type":"text","disabled":true},{"key":"User-Authentication","value":"{{user_auth}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"vehicle\": {\n        \"id\": 10,\n        \"registration_number\": \"DEMOSUB1231\",\n        \"display_number\": \"Demo\",\n        \"chassis_number\": \"test\",\n        \"make\": \"Ford\",\n        \"model\": 2014,\n        \"notes\": \"This is a demo vehicle\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/api/v1/vehicle"},"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"status\": false,\n    \"errors\": \"Permission denied to update vehicle. Contact your system administrator.\"\n}"}],"_postman_id":"422c0b2c-d511-470d-8f06-b52ef093354f"},{"name":"Fetch Vehicle Details","id":"e27a1657-b34b-4ddc-8fad-6eecbed63d5d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"User-Authentication","value":"{{user_auth}}","type":"text","description":"<p>Either use this or above two</p>\n"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://marketplace.loconav.com/api/v1/vehicles","description":"<p>With the vehicle number in the request param, API will send details of that particular vehicle.</p>\n<p>Number is optional here.</p>\n<p>If the number is not present, all vehicles details associated to the user will be present.<br />Paginated</p>\n<p>If this fetch_motion_status is passed in the API then System will provide moment metrics also. See example for more details.</p>\n<p><strong>Update:</strong></p>\n<p>Added a new param fetch_mobilization_details (data type is boolean)</p>\n<p>If this param is passed in the API then System will provide mobilization details of the vehicle. See example for more details.</p>\n","urlObject":{"protocol":"https","path":["api","v1","vehicles"],"host":["marketplace","loconav","com"],"query":[{"disabled":true,"description":{"content":"<p>Page index (type: int) (optional, default: 1)</p>\n","type":"text/plain"},"key":"page","value":"{{page}}"},{"disabled":true,"description":{"content":"<p>No of items per page (type: int) (optional, default: 10)</p>\n","type":"text/plain"},"key":"per_page","value":"{{per_page}}"},{"disabled":true,"description":{"content":"<p>Vehicle Number (type: string) (optional)</p>\n","type":"text/plain"},"key":"number","value":"{{number}}"},{"disabled":true,"description":{"content":"<p>Motion Status (type: boolean) (optional, default: false)</p>\n","type":"text/plain"},"key":"fetch_motion_status","value":"{{boolean}}"},{"disabled":true,"description":{"content":"<p>Odometer Reading (type: boolean) (optional)</p>\n","type":"text/plain"},"key":"fetch_odometer_reading","value":"{{boolean}}"},{"disabled":true,"description":{"content":"<p>Share Link (type: boolean) (optional, default: false)</p>\n","type":"text/plain"},"key":"fetch_share_link","value":"{{boolean}}"},{"disabled":true,"description":{"content":"<p>Mobilization Details (type: boolean) (optional, default: false)</p>\n","type":"text/plain"},"key":"fetch_mobilization_details","value":"{{boolean}}"}],"variable":[]}},"response":[{"id":"23118068-5ec6-41e6-bf6e-57ee5d3d30fb","name":"Response: 200","originalRequest":{"method":"GET","header":[{"key":"User-Id","value":"{{user_id}}","type":"text","disabled":true},{"key":"Admin-Authentication","value":"{{admin_auth}}","type":"text","disabled":true},{"key":"User-Authentication","value":"{{user_auth}}","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":{"raw":"{{base_url}}/api/v1/vehicles?page={{page}}&per_page={{per_page}}&number={{number}}&fetch_motion_status={{boolean}}&fetch_odometer_reading={{boolean}}&fetch_mobilization_details={{boolean}}","host":["{{base_url}}"],"path":["api","v1","vehicles"],"query":[{"key":"page","value":"{{page}}","description":"page index"},{"key":"per_page","value":"{{per_page}}","description":"No of items per page"},{"key":"number","value":"{{number}}","description":"Vehicle Number"},{"key":"fetch_motion_status","value":"{{boolean}}","description":"Fetch Motion Status boolean"},{"key":"fetch_odometer_reading","value":"{{boolean}}","description":"Odometer Reading"},{"key":"fetch_mobilization_details","value":"{{boolean}}","description":"Mobilization Details"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"data\": [\n        {\n            \"id\": 12345,\n            \"number\": \"TEST\",\n            \"notes\": \"\",\n            \"current_temperature\": \"NA\",\n            \"gps_status\": \"Stopped since 03:11 PM\",\n            \"last_located_at\": 1662004691.000000000,\n            \"last_location\": \"Bhawrasla, Indore, Indore, Madhya Pradesh, 453555, India\",\n            \"last_status_received_at\": \"01/09/2022, 03:11PM\",\n            \"status_message\": { // optional\n                \"received_at\": \"2022-09-01T15:23:34.874+05:30\",\n                \"io_state\": \"00000000\",\n                \"gsm_strength\": \"4\",\n                \"voltage\": null,\n                \"alarm\": \"0\"\n            },\n            \"device\": { // optional\n                \"serial_number\": \"0355172105645723\",\n                \"country_code\": \"IN\",\n                \"phone_number\": \"1234567890\",\n                \"device_type\": \"Concox-V5\"\n            },\n            \"additional_attributes\": { // optional - fetch_motion_status=true\n                \"movement_metrics\": {\n                    \"speed\": {\n                        \"value\": 0.0,\n                        \"unit\": \"km/h\"\n                    },\n                    \"location\": {\n                        \"lat\": 23.028635,\n                        \"address\": \"Vikram Nagar, Ahmedabad, Gujarat 380054, India\",\n                        \"received_ts\": 1678940958,\n                        \"long\": 72.498684\n                    },\n                    \"motion_status\": \"stopped\",\n                    \"state_since_ts\": 1662025260,\n                    \"ignition\": \"off\",\n                    \"share_link\": \"https://loconav.com/v2/track-a-day/abcd?locale=en\"\n                }\n            },\n            \"subscription\": { //Optional\n                \"expires_at\": \"2023-09-01T15:18:37.000+05:30\"\n            },\n            \"chassis_number\": \"\",\n            \"display_number\": \"TestVehicle\",\n            \"created_at\": 1648651027,\n            \"updated_at\": 1648651027,\n            \"fuel_type\": \"petrol\",\n            \"current_odometer_reading\": 0.0, // optional (Unit - KM)\n            \"is_mobilized\": true, // optional, if fetch_mobilization_details = true\n            \"last_mobilization_request\": { // optional, if fetch_mobilization_details = true\n                \"id\": 923533,\n                \"vehicle_id\": 12345,\n                \"status\": \"success\",\n                \"message\": \"Restore fuel supply: Success!\",\n                \"mobilize\": true,\n                \"created_at\": 1679988622,\n                \"updated_at\": 1679988650,\n                \"creator_type\": \"User\",\n                \"creator_email\": \"test-user@loconav.com\"\n            }\n        }\n    ],\n    \"pagination\": {\n        \"total_count\": 1,\n        \"per_page\": 10,\n        \"current_page\": 1\n    }\n}"},{"id":"0f699da2-dddb-4fc4-8ede-5e288ecf9060","name":"Response: 401","originalRequest":{"method":"GET","header":[{"key":"User-Id","value":"{{user_id}}","type":"text","disabled":true},{"key":"Admin-Authentication","value":"{{admin_auth}}","type":"text","disabled":true},{"key":"User-Authentication","value":"{{user_auth}}","type":"text"}],"url":{"raw":"{{base_url}}/api/v1/vehicles?page={{page}}&per_page={{per_page}}&number={{number}}&fetch_motion_status={{boolean}}&fetch_odometer_reading={{boolean}}","host":["{{base_url}}"],"path":["api","v1","vehicles"],"query":[{"key":"page","value":"{{page}}","description":"page index"},{"key":"per_page","value":"{{per_page}}","description":"No of items per page"},{"key":"number","value":"{{number}}","description":"Vehicle Number"},{"key":"fetch_motion_status","value":"{{boolean}}","description":"Fetch Motion Status boolean"},{"key":"fetch_odometer_reading","value":"{{boolean}}","description":"Odometer Reading "}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"status\": false,\n    \"errors\": \"User does not have sufficient privilege to get vehicles. Contact your system administrator.\"\n}"},{"id":"f5b0ef80-fb5b-4b7d-95f0-b0aa3192b8c6","name":"Response: 403","originalRequest":{"method":"GET","header":[{"key":"User-Id","value":"{{user_id}}","type":"text","disabled":true},{"key":"Admin-Authentication","value":"{{admin_auth}}","type":"text","disabled":true},{"key":"User-Authentication","value":"{{user_auth}}","type":"text"}],"url":{"raw":"{{base_url}}/api/v1/vehicles?page={{page}}&per_page={{per_page}}&number={{number}}&fetch_motion_status={{boolean}}&fetch_odometer_reading={{boolean}}","host":["{{base_url}}"],"path":["api","v1","vehicles"],"query":[{"key":"page","value":"{{page}}","description":"page index"},{"key":"per_page","value":"{{per_page}}","description":"No of items per page"},{"key":"number","value":"{{number}}","description":"Vehicle Number"},{"key":"fetch_motion_status","value":"{{boolean}}","description":"Fetch Motion Status boolean"},{"key":"fetch_odometer_reading","value":"{{boolean}}","description":"Odometer Reading"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"status\": false,\n    \"errors\": \"Permission denied to get vehicle details. Contact your system administrator.\"\n}"}],"_postman_id":"e27a1657-b34b-4ddc-8fad-6eecbed63d5d"},{"name":"Fetch Distance Travelled","id":"63865fdb-180a-4125-ba34-af77e908628d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"User-Authentication","value":"{{user_auth}}","type":"text"}],"url":"{{base_url}}/api/v1/vehicles/distance_travelled?vehicle_numbers={{vehicle_numbers}}&include_yday={{include_yday}}&page={{page}}&per_page={{per_page}}","description":"<p>All params are optional.</p>\n<p>By default distance travelled for all vehicles is returned. To return distance for selected vehicles, pass list of ids or vehicle_numbers.</p>\n<p>By default only today's distance travelled is returned. To get yesterday's distance as well, pass include_yday as true.</p>\n<p>Default values for page and per_page are 1 and 10.</p>\n","urlObject":{"path":["api","v1","vehicles","distance_travelled"],"host":["{{base_url}}"],"query":[{"description":{"content":"<p>optional: vehicle numbers to filter by (DataType: Set)</p>\n","type":"text/plain"},"key":"vehicle_numbers","value":"{{vehicle_numbers}}"},{"key":"include_yday","value":"{{include_yday}}"},{"description":{"content":"<p>page index (type: int) (optional, default: 1)</p>\n","type":"text/plain"},"key":"page","value":"{{page}}"},{"description":{"content":"<p>No of items per page (type: int) (optional, default: 10)</p>\n","type":"text/plain"},"key":"per_page","value":"{{per_page}}"},{"disabled":true,"description":{"content":"<p>optional: vehicle ids to filter by (DataType: Set)</p>\n","type":"text/plain"},"key":"vehicle_ids","value":"{{vehicle_ids}}"}],"variable":[]}},"response":[{"id":"53b31554-b81f-40ba-a48b-ccb5042e8a5e","name":"Response: 200","originalRequest":{"method":"GET","header":[{"key":"Admin-Authentication","value":"{{admin_auth}}","disabled":true},{"key":"User-Id","value":"{{user_id}}","disabled":true},{"key":"User-Authentication","value":"{{user_auth}}","type":"text"}],"url":{"raw":"{{base_url}}/api/v1/vehicles/distance_travelled?vehicle_ids={{vehicle_ids}}&include_yday={{include_yday}}&page={{page}}&per_page={{per_page}}","host":["{{base_url}}"],"path":["api","v1","vehicles","distance_travelled"],"query":[{"key":"vehicle_ids","value":"{{vehicle_ids}}"},{"key":"include_yday","value":"{{include_yday}}"},{"key":"page","value":"{{page}}"},{"key":"per_page","value":"{{per_page}}"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 03 Jan 2022 05:02:12 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"vary","value":"accept-encoding"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"data\": [\n        {\n            \"id\": 10,\n            \"display_number\": \"34ed4rfe34r3r3\",\n            \"today_distance\": {\n                \"value\": 0,\n                \"unit\": \"km\"\n            },\n            \"yesterday_distance\": {\n                \"value\": 0,\n                \"unit\": \"km\"\n            }\n        },\n        {\n            \"id\": 13,\n            \"display_number\": \"MH06K981\",\n            \"today_distance\": {\n                \"value\": 0,\n                \"unit\": \"km\"\n            },\n            \"yesterday_distance\": {\n                \"value\": 0,\n                \"unit\": \"km\"\n            }\n        },\n        {\n            \"id\": 15,\n            \"display_number\": \"DL9C7101\",\n            \"today_distance\": {\n                \"value\": 0,\n                \"unit\": \"km\"\n            },\n            \"yesterday_distance\": {\n                \"value\": 0,\n                \"unit\": \"km\"\n            }\n        }\n    ],\n    \"pagination\": {\n        \"total_count\": 220,\n        \"per_page\": 5,\n        \"current_page\": 1\n    }\n}"},{"id":"4fcaaa48-0b76-4dba-ad3b-80b505c2f316","name":"Response: 400","originalRequest":{"method":"GET","header":[{"key":"Admin-Authentication","value":"{{admin_auth}}","disabled":true},{"key":"User-Id","value":"{{user_id}}","disabled":true},{"key":"User-Authentication","value":"{{user_auth}}","type":"text"}],"url":{"raw":"{{bas_url}}/api/v1/vehicles/distance_travelled?vehicle_ids={{vehicle_ids}}&include_yday={{include_yday}}&page={{page}}&per_page={{per_page}}","host":["{{bas_url}}"],"path":["api","v1","vehicles","distance_travelled"],"query":[{"key":"vehicle_ids","value":"{{vehicle_ids}}"},{"key":"include_yday","value":"{{include_yday}}"},{"key":"page","value":"{{page}}"},{"key":"per_page","value":"{{per_page}}"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 03 Jan 2022 05:03:28 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"vary","value":"accept-encoding"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"timestamp\": 1641186208132,\n    \"status\": 400,\n    \"error\": \"Bad Request\",\n    \"path\": \"/api/v1/vehicles/distance_travelled\"\n}"},{"id":"c513e416-5d2d-4994-881d-9327b47d7ebe","name":"Response: 401","originalRequest":{"method":"GET","header":[{"key":"Admin-Authentication","value":"{{admin_auth}}","disabled":true},{"key":"User-Id","value":"{{user_id}}","disabled":true},{"key":"User-Authentication","value":"{{user_auth}}","type":"text"}],"url":{"raw":"{{base_url}}/api/v1/vehicles/distance_travelled?vehicle_ids={{vehicle_ids}}&include_yday={{include_yday}}&page={{page}}&per_page={{per_page}}","host":["{{base_url}}"],"path":["api","v1","vehicles","distance_travelled"],"query":[{"key":"vehicle_ids","value":"{{vehicle_ids}}"},{"key":"include_yday","value":"{{include_yday}}"},{"key":"page","value":"{{page}}"},{"key":"per_page","value":"{{per_page}}"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 03 Jan 2022 05:03:08 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"vary","value":"accept-encoding"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": false,\n    \"error\": \"User not authorised!\"\n}"},{"id":"9bc4ac4a-889d-4065-a44a-2e536d6d701a","name":"Response: 403","originalRequest":{"method":"GET","header":[{"key":"Admin-Authentication","value":"{{admin_auth}}","disabled":true},{"key":"User-Id","value":"{{user_id}}","disabled":true},{"key":"User-Authentication","value":"{{user_auth}}","type":"text"}],"url":{"raw":"{{base_url}}/api/v1/vehicles/distance_travelled?vehicle_ids={{vehicle_ids}}&include_yday={{include_yday}}&page={{page}}&per_page={{per_page}}","host":["{{base_url}}"],"path":["api","v1","vehicles","distance_travelled"],"query":[{"key":"vehicle_ids","value":"{{vehicle_ids}}"},{"key":"include_yday","value":"{{include_yday}}"},{"key":"page","value":"{{page}}"},{"key":"per_page","value":"{{per_page}}"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 03 Jan 2022 05:02:37 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"vary","value":"accept-encoding"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": false,\n    \"error\": \"User Forbidden!\"\n}"}],"_postman_id":"63865fdb-180a-4125-ba34-af77e908628d"},{"name":"Duty assign/unassign","id":"c371b75b-6883-4de9-8c4a-780147741159","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"content-type":true}},"request":{"method":"PUT","header":[{"key":"User-Authentication","value":"{{user_auth}}"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"vehicle_id\": 582224,\n    \"company_id\": 1504,\n    \"action\": \"ASSIGN\"\n}"},"url":"https://marketplace.loconav.com/api/v1/vehicles/duty/","description":"<p><strong>Purpose</strong></p>\n<p>Assign/Unassign Duty.</p>\n<ol>\n<li>Action : ASSIGN - Existing duty is unassigned from vehicle if a new duty assign request is created.</li>\n<li>Action : UN_ASSIGN - Existing duty is unassigned.</li>\n</ol>\n<p><strong>Body</strong></p>\n<p>This api expects json object with fields :</p>\n<ol>\n<li>\"vehicle_id\" (DataType : Integer)</li>\n<li>\"company_id\" (DataType : Integer, Optional in case of Un_Assign)</li>\n<li>\"action\" (DataType : Enum - ASSIGN, UN_ASSIGN)</li>\n</ol>\n","urlObject":{"protocol":"https","path":["api","v1","vehicles","duty",""],"host":["marketplace","loconav","com"],"query":[],"variable":[]}},"response":[{"id":"9bbf8a64-fec0-4329-8fc2-b33c6086ac11","name":"Success Assign","originalRequest":{"method":"PUT","header":[{"key":"User-Id","value":"{{user_id}}","disabled":true},{"key":"Admin-Authentication","value":"{{admin_auth}}","disabled":true},{"key":"Content-Type","value":"application/json"},{"key":"Cookie","value":"__profilin=p%3Dt"},{"key":"User-Authentication","value":"{{user_auth}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"vehicle_id\": 1,\n    \"company_id\": 3,\n    \"action\": \"ASSIGN\"\n}"},"url":"{{base_url}}/api/v1/vehicles/duty/"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"data\": {\n        \"vehicle_id\": 1,\n        \"assigner_id\": 2,\n        \"transporter_id\": 2,\n        \"company_id\": 3,\n        \"user_id\": 121\n    }\n}"},{"id":"90d70c2d-b952-4f99-b5d4-64cfdb6ae21f","name":"Success UnAssign","originalRequest":{"method":"PUT","header":[{"key":"User-Id","value":"{{user_id}}","disabled":true},{"key":"Admin-Authentication","value":"{{admin_auth}}","disabled":true},{"key":"Content-Type","value":"application/json"},{"key":"Cookie","value":"__profilin=p%3Dt"},{"key":"User-Authentication","value":"{{user_auth}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"vehicle_id\": 1,\n    \"action\": \"UN_ASSIGN\"\n}"},"url":"{{base_url}}/api/v1/vehicles/duty/"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"data\": {\n        \"vehicle_id\": 1,\n        \"assigner_id\": 2,\n        \"transporter_id\": 2,\n        \"company_id\": 3,\n        \"user_id\": 121\n    }\n}"}],"_postman_id":"c371b75b-6883-4de9-8c4a-780147741159"},{"name":"Assign/UnAssign Vehicle Group","id":"06130a4f-6089-4b48-b800-067a6030ec58","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"User-Authentication","value":"{{user_auth}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"vehicle_ids\": [\n        1,\n        2,\n        3,\n        4\n    ],\n    \"vehicle_group_name\": \"abc\",\n    \"vehicle_numbers\": [\n        \"abc\",\n        \"xyz\"\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/api/v1/vehicles/assign-to-groups","description":"<p><strong>Purpose</strong></p>\n<p>API to assign/unassign vehicle group to vehicles.</p>\n<ol>\n<li>Mandatory Field : vehicle_group_name</li>\n<li>Either vehicle Ids or vehicle numbers should be provided.</li>\n<li>If action is ASSIGN and unassign_other_vehicles is true, it will delete all the vehicles of that vehicle group and will provide new set of vehicles provided in the api.</li>\n<li>If action is ASSIGN and unassign_other_vehicles false, it will add the vehicles provided to the vehicle group in the already present list of vehicles.</li>\n<li>If action is UN_ASSIGN, it will delete the given vehicle from the given vehicle group</li>\n</ol>\n<p><strong>Body</strong></p>\n<p>This api expects json object with following fields :</p>\n<ol>\n<li>\"vehicle_ids\" (DataType : List, Optional if vehicle_numbers is present)</li>\n<li>\"vehicle_group_name\" (DataType : String)</li>\n<li>\"vehicle_numbers\" (DataType : List, Optional if vehicle_ids present)</li>\n<li>\"action\" (DataType : Enum - ASSIGN, UNASSIGN)</li>\n</ol>\n","urlObject":{"path":["api","v1","vehicles","assign-to-groups"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[{"id":"6ad6547d-2d9a-4682-ad83-7bb390773d8a","name":"Response : 200","originalRequest":{"method":"PUT","header":[{"key":"Admin-Authentication","value":"{{admin_auth}}","type":"text","disabled":true},{"key":"User-Id","value":"{{user_id}}","type":"text","disabled":true},{"key":"User-Authentication","value":"{{user_auth}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"vehicle_ids\": [\n        1,\n        2,\n        3,\n        4\n    ],\n    \"vehicle_group_name\": \"abc\",\n    \"vehicle_numbers\": [\n        \"abc\",\n        \"xyz\"\n    ],\n    \"action\": \"ASSIGN\"\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/api/v1/vehicles/assign-to-groups"},"code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\" : true,\n    \"data\": {\n        \"vehicles\" : [1,2,3,4],\n        \"vehicle_group_name\": \"abc\"\n    }\n}"},{"id":"f8482aa4-11a1-4121-8ead-cc95b5b07c0f","name":"Response : 400","originalRequest":{"method":"PUT","header":[{"key":"Admin-Authentication","value":"{{admin_auth}}","type":"text","disabled":true},{"key":"User-Id","value":"{{user_id}}","type":"text","disabled":true},{"key":"User-Authentication","value":"{{user_auth}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"vehicle_ids\": [\n        1,\n        2,\n        3,\n        4\n    ],\n    \"vehicle_group_name\": \"abc\",\n    \"vehicle_numbers\": [\n        \"abc\",\n        \"xyz\"\n    ],\n    \"action\": \"ASSIGN\"\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/api/v1/vehicles/assign-to-groups"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": false,\n    \"errors\": \"Insufficient body params: number\"\n}"},{"id":"a8e0ecd1-ec8f-4b5e-994a-26f7ed837eb0","name":"Response : 401","originalRequest":{"method":"PUT","header":[{"key":"Admin-Authentication","value":"{{admin_auth}}","type":"text","disabled":true},{"key":"User-Id","value":"{{user_id}}","type":"text","disabled":true},{"key":"User-Authentication","value":"{{user_auth}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"vehicle_ids\": [\n        1,\n        2,\n        3,\n        4\n    ],\n    \"vehicle_group_name\": \"abc\",\n    \"vehicle_numbers\": [\n        \"abc\",\n        \"xyz\"\n    ],\n    \"action\": \"UN_ASSIGN\"\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/api/v1/vehicles/assign-to-groups"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": false,\n    \"error\": \"User not authorised!\"\n}"},{"id":"7d330ab4-ac45-4fb3-a1dd-46a41699d632","name":"Response : 403","originalRequest":{"method":"PUT","header":[{"key":"Admin-Authentication","value":"{{admin_auth}}","type":"text","disabled":true},{"key":"User-Id","value":"{{user_id}}","type":"text","disabled":true},{"key":"User-Authentication","value":"{{user_auth}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"vehicle_ids\": [\n        1,\n        2,\n        3,\n        4\n    ],\n    \"vehicle_group_name\": \"abc\",\n    \"vehicle_numbers\": [\n        \"abc\",\n        \"xyz\"\n    ],\n    \"action\": \"UN_ASSIGN\"\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/api/v1/vehicles/assign-to-groups"},"code":403,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": false,\n    \"error\": \"User Forbidden!\"\n}"}],"_postman_id":"06130a4f-6089-4b48-b800-067a6030ec58"},{"name":"Fetch Bulk Distance Travelled","id":"1a452340-aeff-47df-be36-bc303a667261","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"User-Authentication","value":"{{user_auth}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"start_time\": 1669203295,\n    \"end_time\": 1669721697,\n    \"vehicles\": [\n        {\n            \"number\": \"KA05AK7517\",\n            \"start_time\": 1669203295,\n            \"end_time\": 1669721697\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://marketplace.loconav.com/api/v1/vehicles/bulk_distance_travelled","description":"<p>To get Distance travelled in a given time range for multiple (bulk) vehicles.</p>\n<p>In Request you can either pass:</p>\n<ol>\n<li>A global start time and end time in Epoch<ol>\n<li>Global time will be used in case vehicle level time is not present</li>\n</ol>\n</li>\n<li>Start time and End time for particular vehicle in vehicles array in epoch<ol>\n<li>If no time is passed, system will consider current day itself.</li>\n<li>If both global time and vehicle level time is present, system will choose vehicle level time instead of global time</li>\n</ol>\n</li>\n<li>Either vehicle id or number can be passed to get vehicle distance details</li>\n</ol>\n<p>Response Constraints</p>\n<ol>\n<li>Max time range allowed is 1 week.</li>\n</ol>\n","urlObject":{"protocol":"https","path":["api","v1","vehicles","bulk_distance_travelled"],"host":["marketplace","loconav","com"],"query":[],"variable":[]}},"response":[{"id":"1abc362d-70c5-431d-b850-e778a22d7c58","name":"Response: 200","originalRequest":{"method":"POST","header":[{"key":"Admin-Authentication","value":"{{admin_auth}}","type":"text","disabled":true},{"key":"User-Id","value":"{{user_id}}","type":"text","disabled":true},{"key":"User-Authentication","value":"{{user_auth}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"start_time\": 1642420888,\n    \"end_time\": 1642420988,\n    \"vehicles\": [\n        {\n            \"id\": 72,\n            \"number\": \"QWERTY37\",\n            \"start_time\": 1642792500,\n            \"end_time\": 1643447700\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/api/v1/vehicles/bulk_distance_travelled"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"data\": [\n        {\n            \"id\": 72,\n            \"start_time\": 1643826600,\n            \"end_time\": 1643883694,\n            \"process_info\": \"Timerange 2022-01-22 00:45:00 +0530 (Epoch: 1642792500) - 2022-01-29 14:45:00 +0530 (Epoch: 1643447700) overriden with 2022-02-03 00:00:00 +0530 (Epoch: 1643826600) - 2022-02-03 15:51:34 +0530 (Epoch: 1643883694)\",\n            \"number\": \"QWERTY37\",\n            \"distance\": {\n                \"unit\": \"km\",\n                \"value\": 289.68\n            }\n        }\n    ]\n}"},{"id":"95d0fec8-6ab0-418a-b6c0-441bf644821d","name":"Response: 401","originalRequest":{"method":"POST","header":[{"key":"Admin-Authentication","value":"{{admin_auth}}","type":"text","disabled":true},{"key":"User-Id","value":"{{user_id}}","type":"text","disabled":true},{"key":"User-Authentication","value":"{{user_auth}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"start_time\": 1642420888,\n    \"end_time\": 1642420988,\n    \"vehicles\": [\n        {\n            \"id\": 72,\n            \"number\": \"QWERTY37\",\n            \"start_time\": 1642792500,\n            \"end_time\": 1643447700\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/api/v1/vehicles/bulk_distance_travelled"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n  \"status\": false,\n  \"error\": \"User not authorised!\"\n}"},{"id":"10ae5bad-e49d-4c3f-92dd-d543bf2a60ce","name":"Response 403","originalRequest":{"method":"POST","header":[{"key":"Admin-Authentication","value":"{{admin_auth}}","type":"text","disabled":true},{"key":"User-Id","value":"{{user_id}}","type":"text","disabled":true},{"key":"User-Authentication","value":"{{user_auth}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"start_time\": 1642420888,\n    \"end_time\": 1642420988,\n    \"vehicles\": [\n        {\n            \"id\": 72,\n            \"number\": \"QWERTY37\",\n            \"start_time\": 1642792500,\n            \"end_time\": 1643447700\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/api/v1/vehicles/bulk_distance_travelled"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n  \"status\": false,\n  \"error\": \"User Forbidden! User auth validation failed\"\n}"},{"id":"18895e2e-a604-4c93-ad19-6d0de06e666f","name":"Response: 422","originalRequest":{"method":"POST","header":[{"key":"Admin-Authentication","value":"{{admin_auth}}","type":"text","disabled":true},{"key":"User-Id","value":"{{user_id}}","type":"text","disabled":true},{"key":"User-Authentication","value":"{{user_auth}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"start_time\": 1642420888,\n    \"end_time\": 1642420988,\n    \"vehicles\": [\n        {\n            \"id\": 72,\n            \"number\": \"QWERTY37\",\n            \"start_time\": 1642792500,\n            \"end_time\": 1643447700\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/api/v1/vehicles/bulk_distance_travelled"},"status":"Unprocessable Entity (WebDAV) (RFC 4918)","code":422,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n  \"status\": false,\n  \"error\": \"422 Unprocessable Entity: [{\\\"error\\\":\\\"No vehicles found\\\",\\\"success\\\":false}]\"\n}"}],"_postman_id":"1a452340-aeff-47df-be36-bc303a667261"},{"name":"Vehicle Route Details","id":"54b034aa-b8fd-4725-a089-7d2895c68b98","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"User-Authentication","value":"{{user_auth}}","type":"text"}],"url":"{{base_url}}/api/v1/vehicles/routes/details?ids={{route_ids}}&page={{page}}&per_page={{per_page}}","description":"<p>All params are optional.</p>\n<p>By default all vehicle routes for the user matching the user-auth token are returned. To return routes for selected route ids, pass list of route ids to ids.</p>\n<p>The response is paginated. Default values for page and per_page are 1 and 10 respectively.</p>\n","urlObject":{"path":["api","v1","vehicles","routes","details"],"host":["{{base_url}}"],"query":[{"description":{"content":"<p>optional: List of route ids to filter by (type: list)</p>\n","type":"text/plain"},"key":"ids","value":"{{route_ids}}"},{"description":{"content":"<p>page index (type: int) (optional, default: 1)</p>\n","type":"text/plain"},"key":"page","value":"{{page}}"},{"description":{"content":"<p>No of items per page (type: int) (optional, default: 10)</p>\n","type":"text/plain"},"key":"per_page","value":"{{per_page}}"}],"variable":[]}},"response":[{"id":"e40349c0-9ed3-4ca6-a660-6c64b1d212cf","name":"Response: 200","originalRequest":{"method":"GET","header":[{"key":"User-Id","value":"{{user_id}}","type":"text","disabled":true},{"key":"Admin-Authentication","value":"{{admin_auth}}","type":"text","disabled":true},{"key":"User-Authentication","value":"{{user_auth}}","type":"text"}],"url":{"raw":"{{base_url}}/api/v1/vehicles/routes/details?ids={{route_ids}}&page={{page}}&per_page={{per_page}}","host":["{{base_url}}"],"path":["api","v1","vehicles","routes","details"],"query":[{"key":"ids","value":"{{route_ids}}","description":"optional: List of route ids to filter by (type: list<int>)"},{"key":"page","value":"{{page}}","description":"page index (type: int) (optional, default: 1)"},{"key":"per_page","value":"{{per_page}}","description":"No of items per page (type: int) (optional, default: 10)"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"data\": [\n        {\n            \"id\": 1,\n            \"name\": \"test-1\",\n            \"source\": {\n                \"id\": 1,\n                \"polygon_id\": 13,\n                \"address\": \"Polygon 4\",\n                \"name\": \"Polygon 4\",\n                \"coordinates\": \"30.1,20.1\",\n                \"details\": {},\n                \"polygon_details\": {},\n                \"average_eta_in_minutes\": null,\n                \"average_exit_eta_in_minutes\": null,\n                \"position\": 1\n            },\n            \"check_points\": [\n                {\n                    \"id\": 3,\n                    \"polygon_id\": 17,\n                    \"address\": \"Polygon 00\",\n                    \"name\": \"Polygon 00\",\n                    \"coordinates\": \"30.1,20.1\",\n                    \"details\": {},\n                    \"polygon_details\": {},\n                    \"average_eta_in_minutes\": 123,\n                    \"average_exit_eta_in_minutes\": 492,\n                    \"position\": 2\n                }\n            ],\n            \"destination\": {\n                \"id\": 2,\n                \"polygon_id\": 17,\n                \"address\": \"Polygon 00\",\n                \"name\": \"Polygon 00\",\n                \"coordinates\": \"30.1,20.1\",\n                \"details\": {},\n                \"polygon_details\": {},\n                \"average_eta_in_minutes\": 0,\n                \"average_exit_eta_in_minutes\": null,\n                \"position\": 3\n            },\n            \"custom_data\": {},\n            \"polylines\": [],\n            \"tag_list\": [\n                \"asdasd\"\n            ],\n            \"active\": true,\n            \"trip_should_start_at_in_minutes\": 255\n        },\n        {\n            \"id\": 2,\n            \"name\": \"test2\",\n            \"source\": {\n                \"id\": 4,\n                \"polygon_id\": 13,\n                \"address\": \"Polygon 4\",\n                \"name\": \"Polygon 4\",\n                \"coordinates\": \"30.1,20.1\",\n                \"details\": {},\n                \"polygon_details\": {},\n                \"average_eta_in_minutes\": null,\n                \"average_exit_eta_in_minutes\": null,\n                \"position\": 1\n            },\n            \"check_points\": [\n                {\n                    \"id\": 6,\n                    \"polygon_id\": 10,\n                    \"address\": \"Polygon 2\",\n                    \"name\": \"Polygon 2\",\n                    \"coordinates\": \"30.2,20.3\",\n                    \"details\": {},\n                    \"polygon_details\": {},\n                    \"average_eta_in_minutes\": 122,\n                    \"average_exit_eta_in_minutes\": 121,\n                    \"position\": 2\n                }\n            ],\n            \"destination\": {\n                \"id\": 5,\n                \"polygon_id\": 17,\n                \"address\": \"Polygon 00\",\n                \"name\": \"Polygon 00\",\n                \"coordinates\": \"30.1,20.1\",\n                \"details\": {},\n                \"polygon_details\": {},\n                \"average_eta_in_minutes\": 12,\n                \"average_exit_eta_in_minutes\": null,\n                \"position\": 3\n            },\n            \"custom_data\": {},\n            \"polylines\": [],\n            \"tag_list\": [],\n            \"active\": true,\n            \"trip_should_start_at_in_minutes\": 690\n        },\n        {\n            \"id\": 3,\n            \"name\": \"adas\",\n            \"source\": {\n                \"id\": 7,\n                \"polygon_id\": 17,\n                \"address\": \"Polygon 00\",\n                \"name\": \"Polygon 00\",\n                \"coordinates\": \"30.1,20.1\",\n                \"details\": {},\n                \"polygon_details\": {},\n                \"average_eta_in_minutes\": null,\n                \"average_exit_eta_in_minutes\": null,\n                \"position\": 1\n            },\n            \"check_points\": [],\n            \"destination\": {\n                \"id\": 8,\n                \"polygon_id\": 6,\n                \"address\": \"nnnasnn\",\n                \"name\": \"nnnasnn\",\n                \"coordinates\": \"30.21,20.32\",\n                \"details\": {},\n                \"polygon_details\": {},\n                \"average_eta_in_minutes\": null,\n                \"average_exit_eta_in_minutes\": null,\n                \"position\": 2\n            },\n            \"custom_data\": {},\n            \"polylines\": [],\n            \"tag_list\": [],\n            \"active\": true,\n            \"trip_should_start_at_in_minutes\": 690\n        }\n    ],\n    \"pagination\": {\n        \"per_page\": 10,\n        \"total_count\": 3,\n        \"current_page\": 1\n    }\n}"},{"id":"6753e3c8-47de-4c45-8edc-ceb7a0679d49","name":"Response: 401","originalRequest":{"method":"GET","header":[{"key":"User-Id","value":"{{user_id}}","type":"text","disabled":true},{"key":"Admin-Authentication","value":"{{admin_auth}}","type":"text","disabled":true},{"key":"User-Authentication","value":"{{user_auth}}","type":"text"}],"url":{"raw":"{{base_url}}/api/v1/vehicles/routes/details?ids={{route_ids}}&page={{page}}&per_page={{per_page}}","host":["{{base_url}}"],"path":["api","v1","vehicles","routes","details"],"query":[{"key":"ids","value":"{{route_ids}}","description":"optional: List of route ids to filter by (type: list<int>)"},{"key":"page","value":"{{page}}","description":"page index (type: int) (optional, default: 1)"},{"key":"per_page","value":"{{per_page}}","description":"No of items per page (type: int) (optional, default: 10)"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": false,\n    \"error\": \"User not authorised!\"\n}"},{"id":"1e467230-3203-4b4d-a810-e8be2a504ab1","name":"Response: 403","originalRequest":{"method":"GET","header":[{"key":"User-Id","value":"{{user_id}}","type":"text","disabled":true},{"key":"Admin-Authentication","value":"{{admin_auth}}","type":"text","disabled":true},{"key":"User-Authentication","value":"{{user_auth}}","type":"text"}],"url":{"raw":"{{base_url}}/api/v1/vehicles/routes/details?ids={{route_ids}}&page={{page}}&per_page={{per_page}}","host":["{{base_url}}"],"path":["api","v1","vehicles","routes","details"],"query":[{"key":"ids","value":"{{route_ids}}","description":"optional: List of route ids to filter by (type: list<int>)"},{"key":"page","value":"{{page}}","description":"page index (type: int) (optional, default: 1)"},{"key":"per_page","value":"{{per_page}}","description":"No of items per page (type: int) (optional, default: 10)"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": false,\n    \"error\": \"User Forbidden! User auth validation failed\"\n}"}],"_postman_id":"54b034aa-b8fd-4725-a089-7d2895c68b98"},{"name":"Vehicle Route Ids","id":"e960914a-b374-448b-abbc-c39cbf9fa96f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"User-Authentication","value":"{{user_auth}}","type":"text"}],"url":"{{base_url}}/api/v1/vehicles/routes?name={{name}}&page={{page}}&per_page={{per_page}}","description":"<p>All params are optional.</p>\n<p>Get a list of {id, name} pairs of all vehicle routes corresponding to the user matching the user-auth token. Optionally can filter results by name using the query parameter.</p>\n<p>The response is paginated. Default values for page and per_page are 1 and 10 respectively.</p>\n","urlObject":{"path":["api","v1","vehicles","routes"],"host":["{{base_url}}"],"query":[{"description":{"content":"<p>optional: route name to filter by (type: string)</p>\n","type":"text/plain"},"key":"name","value":"{{name}}"},{"description":{"content":"<p>page index (type: int) (optional, default: 1)</p>\n","type":"text/plain"},"key":"page","value":"{{page}}"},{"description":{"content":"<p>No of items per page (type: int) (optional, default: 10)</p>\n","type":"text/plain"},"key":"per_page","value":"{{per_page}}"}],"variable":[]}},"response":[{"id":"8d437bd2-e888-4eb5-9630-fc468f463d49","name":"Response: 200","originalRequest":{"method":"GET","header":[{"key":"User-Id","value":"{{user_id}}","type":"text","disabled":true},{"key":"Admin-Authentication","value":"{{admin_auth}}","type":"text","disabled":true},{"key":"User-Authentication","value":"{{user_auth}}","type":"text"}],"url":{"raw":"{{base_url}}/api/v1/vehicles/routes?name={{name}}&page={{page}}&per_page={{per_page}}","host":["{{base_url}}"],"path":["api","v1","vehicles","routes"],"query":[{"key":"name","value":"{{name}}","description":"optional: route name to filter by (type: string)"},{"key":"page","value":"{{page}}","description":"page index (type: int) (optional, default: 1)"},{"key":"per_page","value":"{{per_page}}","description":"No of items per page (type: int) (optional, default: 10)"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"data\": [\n        {\n            \"id\": 1,\n            \"name\": \"test-1\"\n        },\n        {\n            \"id\": 2,\n            \"name\": \"test2\"\n        }\n    ],\n    \"pagination\": {\n        \"total_count\": 2,\n        \"per_page\": 10,\n        \"current_page\": 1\n    }\n}"},{"id":"14acc812-5fb9-4310-87df-c720025c061d","name":"Response: 401","originalRequest":{"method":"GET","header":[{"key":"User-Id","value":"{{user_id}}","type":"text","disabled":true},{"key":"Admin-Authentication","value":"{{admin_auth}}","type":"text","disabled":true},{"key":"User-Authentication","value":"{{user_auth}}","type":"text"}],"url":{"raw":"{{base_url}}/api/v1/vehicles/routes?name={{name}}&page={{page}}&per_page={{per_page}}","host":["{{base_url}}"],"path":["api","v1","vehicles","routes"],"query":[{"key":"name","value":"{{name}}","description":"optional: route name to filter by (type: string)"},{"key":"page","value":"{{page}}","description":"page index (type: int) (optional, default: 1)"},{"key":"per_page","value":"{{per_page}}","description":"No of items per page (type: int) (optional, default: 10)"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": false,\n    \"error\": \"User not authorised!\"\n}"},{"id":"266f09eb-014f-429e-b43c-2db4a70691e4","name":"Response: 403","originalRequest":{"method":"GET","header":[{"key":"User-Id","value":"{{user_id}}","type":"text","disabled":true},{"key":"Admin-Authentication","value":"{{admin_auth}}","type":"text","disabled":true},{"key":"User-Authentication","value":"{{user_auth}}","type":"text"}],"url":{"raw":"{{base_url}}/api/v1/vehicles/routes?name={{name}}&page={{page}}&per_page={{per_page}}","host":["{{base_url}}"],"path":["api","v1","vehicles","routes"],"query":[{"key":"name","value":"{{name}}","description":"optional: route name to filter by (type: string)"},{"key":"page","value":"{{page}}","description":"page index (type: int) (optional, default: 1)"},{"key":"per_page","value":"{{per_page}}","description":"No of items per page (type: int) (optional, default: 10)"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": false,\n    \"error\": \"User Forbidden! User auth validation failed\"\n}"}],"_postman_id":"e960914a-b374-448b-abbc-c39cbf9fa96f"},{"name":"Create Vehicle Sharable Tokens","id":"628ab16d-4511-4b38-8733-bb5a51455b32","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"User-Authentication","value":"","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"vehicles\": [\r\n        {\r\n            \"vehicle_id\": 15,\r\n            \"vehicle_number\": \"KJKNH8Y98\",\r\n            \"expiry_time\": 1645507021107\r\n        }\r\n    ]\r\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/api/v1/vehicles/sharable_tokens","description":"<p>Create sharable url tokens for vehicles owned by the user given in the header data. Each of the objects in the request body list must satisfy the following:-</p>\n<ul>\n<li>Exactly one of vehicle id (type: int), vehicle number (type: string) must be present</li>\n<li>expiry time is required (type: long, UNIX time in ms)</li>\n<li>expiry time &gt; current time</li>\n</ul>\n<p>Returns a list of created sharable url tokens.</p>\n","urlObject":{"path":["api","v1","vehicles","sharable_tokens"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[{"id":"917b6f60-7c4f-442a-a613-b1ecf950108c","name":"Response: 200","originalRequest":{"method":"POST","header":[{"key":"User-Id","value":"{{user_id}}","type":"text","disabled":true},{"key":"Admin-Authentication","value":"{{admin_auth}}","type":"text","disabled":true},{"key":"User-Authentication","value":"{{user_auth}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"vehicles\": [\r\n        {\r\n            \"vehicle_id\": 15,\r\n            \"vehicle_number\": \"KJKNH8Y98\",\r\n            \"expiry_time\": 1645507021107\r\n        }\r\n    ]\r\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/api/v1/vehicles/sharable_tokens"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"data\": [\n        {\n            \"token_id\": 33,\n            \"vehicle_id\": 15,\n            \"vehicle_number\": \"KJKNH8Y98\",\n            \"token\": \"http://localhost:3000/v2/track-a-day/some_slug?locale=en\",\n            \"slug\": \"some_slug\",\n            \"expires_at\": \"54114-01-16T09:08:27.000+05:30\",\n            \"created_at\": \"2022-02-22T10:47:14.465+05:30\",\n            \"updated_at\": \"2022-02-22T10:47:14.465+05:30\"\n        }\n    ]\n}"},{"id":"632cd72a-a00b-4204-aeb3-24e49a000744","name":"Response: 400","originalRequest":{"method":"POST","header":[{"key":"User-Id","value":"{{user_id}}","type":"text","disabled":true},{"key":"Admin-Authentication","value":"{{admin_auth}}","type":"text","disabled":true},{"key":"User-Authentication","value":"{{user_auth}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"vehicles\": [\r\n        {\r\n            \"vehicle_id\": 15,\r\n            \"vehicle_number\": \"KJKNH8Y98\"\r\n        }\r\n    ]\r\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/api/v1/vehicles/sharable_tokens"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": false,\n    \"message\": \"expiry_time is missing\"\n}"},{"id":"78b3f74d-28f3-4b08-ad13-db5da65580d7","name":"Response: 401","originalRequest":{"method":"POST","header":[{"key":"User-Id","value":"{{user_id}}","type":"text","disabled":true},{"key":"Admin-Authentication","value":"{{admin_auth}}","type":"text","disabled":true},{"key":"User-Authentication","value":"{{user_auth}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"vehicles\": [\r\n        {\r\n            \"vehicle_id\": 15,\r\n            \"vehicle_number\": \"KJKNH8Y98\",\r\n            \"expiry_time\": 1645507021107\r\n        }\r\n    ]\r\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/api/v1/vehicles/sharable_tokens"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": false,\n    \"error\": \"User not authorised!\"\n}"},{"id":"184b797e-0142-4a9c-9853-0b4873b3d2ac","name":"Response: 403","originalRequest":{"method":"POST","header":[{"key":"User-Id","value":"{{user_id}}","type":"text","disabled":true},{"key":"Admin-Authentication","value":"{{admin_auth}}","type":"text","disabled":true},{"key":"User-Authentication","value":"{{user_auth}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"vehicles\": [\r\n        {\r\n            \"vehicle_id\": 15,\r\n            \"vehicle_number\": \"KJKNH8Y98\",\r\n            \"expiry_time\": 1645507021107\r\n        }\r\n    ]\r\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/api/v1/vehicles/sharable_tokens"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": false,\n    \"error\": \"User Forbidden! User auth validation failed\"\n}"}],"_postman_id":"628ab16d-4511-4b38-8733-bb5a51455b32"},{"name":"Send Vehicle Sharable Tokens","id":"8e7c215b-03e8-4878-a7a8-50657c34318a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"User-Authentication","value":"{{user_auth}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"vehicles\": [\n        {\n            \"vehicle_id\": 15,\n            \"vehicle_number\": \"KJKNH8Y98\",\n            \"token_id\": 33,\n            \"recipient\": {\n                \"country_code\": 91,\n                \"phone_number\": \"981234567\",\n                \"email\": \"email@domain.com\"\n            }\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://marketplace.loconav.com/api/v1/vehicles/sharable_tokens/send","description":"<p>Send sharable url tokens for vehicles owned by the user given in the header data to the desired recipient email/phone number. Each of the objects in the request body list must satisfy the following:-</p>\n<ul>\n<li>Exactly one of vehicle id (type: int), vehicle number (type: string) must be present</li>\n<li>\"recipient\" is a required field</li>\n<li>One of email (type: string) or phone_number (type: string) must be present in each recipient object</li>\n<li>Default value for country code (type: int) is 91</li>\n</ul>\n<p>Returns a list of recipients to which the url has been sent to, with corresponding vehicle/token data.</p>\n","urlObject":{"protocol":"https","path":["api","v1","vehicles","sharable_tokens","send"],"host":["marketplace","loconav","com"],"query":[],"variable":[]}},"response":[{"id":"ea50d42d-b635-49ad-8970-d426e65b88fd","name":"Response: 200","originalRequest":{"method":"POST","header":[{"key":"User-Id","value":"{{user_id}}","disabled":true},{"key":"Admin-Authentication","value":"{{admin-auth-token}}","disabled":true},{"key":"User-Authentication","value":"","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"vehicles\": [\n        {\n            \"vehicle_id\": 15,\n            \"vehicle_number\": \"KJKNH8Y98\",\n            \"token_id\": 33,\n            \"recipient\": {\n                \"country_code\": 91,\n                \"phone_number\": \"981234567\",\n                \"email\": \"email@domain.com\"\n            }\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://marketplace.loconav.com/api/v1/vehicles/sharable_tokens/send"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": [\n        {\n            \"vehicle_id\": 15,\n            \"vehicle_number\": \"KJKNH8Y98\",\n            \"token_id\": 33,\n            \"recipient\": {\n                \"country_code\": 91,\n                \"phone_number\": \"981234567\",\n                \"email\": \"email@domain.com\"\n            }\n        }\n    ]\n}"},{"id":"69527d1e-c019-4774-9794-be34ec68333f","name":"Response: 400","originalRequest":{"method":"POST","header":[{"key":"User-Id","value":"{{user_id}}","disabled":true},{"key":"Admin-Authentication","value":"{{admin-auth-token}}","disabled":true},{"key":"User-Authentication","value":"{{user_auth}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"vehicles\": [\n        {\n            \"vehicle_id\": 15,\n            \"vehicle_number\": \"KJKNH8Y98\",\n            \"token_id\": 33\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://marketplace.loconav.com/api/v1/vehicles/sharable_tokens/send"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": false,\n    \"message\": \"recipient is missing\"\n}"},{"id":"a6faf01d-b136-469e-9082-7ae68399d099","name":"Response: 401","originalRequest":{"method":"POST","header":[{"key":"User-Id","value":"{{user_id}}","disabled":true},{"key":"Admin-Authentication","value":"{{admin-auth-token}}","disabled":true},{"key":"User-Authentication","value":"{{user_auth}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"vehicles\": [\n        {\n            \"vehicle_id\": 15,\n            \"vehicle_number\": \"KJKNH8Y98\",\n            \"token_id\": 33,\n            \"recipient\": {\n                \"country_code\": 91,\n                \"phone_number\": \"981234567\",\n                \"email\": \"email@domain.com\"\n            }\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://marketplace.loconav.com/api/v1/vehicles/sharable_tokens/send"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": false,\n    \"error\": \"User not authorised!\"\n}"},{"id":"08c2b93a-99c8-4d63-bfdf-23268f4cd7d8","name":"Response: 403","originalRequest":{"method":"POST","header":[{"key":"User-Id","value":"{{user_id}}","disabled":true},{"key":"Admin-Authentication","value":"{{admin-auth-token}}","disabled":true},{"key":"User-Authentication","value":"{{user_auth}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"vehicles\": [\n        {\n            \"vehicle_id\": 15,\n            \"vehicle_number\": \"KJKNH8Y98\",\n            \"token_id\": 33,\n            \"recipient\": {\n                \"country_code\": 91,\n                \"phone_number\": \"981234567\",\n                \"email\": \"email@domain.com\"\n            }\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://marketplace.loconav.com/api/v1/vehicles/sharable_tokens/send"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": false,\n    \"error\": \"User Forbidden! User auth validation failed\"\n}"}],"_postman_id":"8e7c215b-03e8-4878-a7a8-50657c34318a"},{"name":"Update Vehicle Routes","id":"aa795704-ee21-4a06-9ca9-dbb5c3166eb9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"User-Authentication","value":"{{user_auth}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"id\": 705,\n    \"name\": \"Test_16\",\n    \"active\": true,\n    \"trip_should_start_at_in_minutes\": 0,\n    \"source\": {\n        \"polygon\": {\n            \"id\": 937,\n            \"name\": \"kohara\",\n            \"address\": null,\n            \"coordinate\": \"30.748632,76.90434\"\n        },\n        \"average_eta_in_minutes\": 2\n    },\n    \"check_points\": [\n        {\n            \"polygon\": {\n                \"id\": 935,\n                \"name\": \"Rajgarh\",\n                \"address\": null,\n                \"coordinate\": \"30.6878,76.8593\"\n            },\n            \"average_eta_in_minutes\": 4,\n            \"average_exit_eta_in_minutes\": 5\n        }\n    ],\n    \"destination\": {\n        \"average_eta_in_minutes\": null,\n        \"average_exit_eta_in_minutes\": null,\n        \"polygon\": {\n            \"id\": 936,\n            \"name\": \"Veerpalace\",\n            \"address\": null,\n            \"coordinate\": \"30.66539,76.846554\"\n        }\n    },\n    \"polylines\": [],\n    \"tag_list\": [],\n    \"average_eta_in_minutes_source\": null,\n    \"distance\": 16842,\n    \"duration\": 1678\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/api/v1/vehicles/routes","description":"<p>API to update Vehicle Routes.</p>\n<p>Mandatory fields: id, name, source, destination, distance, duration, trip_should_start_at_in _minutes</p>\n","urlObject":{"path":["api","v1","vehicles","routes"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[{"id":"ed4417d9-32c1-4e04-a22c-3e57103e53c4","name":"Response: 200","originalRequest":{"method":"PUT","header":[{"key":"User-Id","value":"{{user_id}}","type":"text","disabled":true},{"key":"Admin-Authentication","value":"{{admin_auth}}","type":"text","disabled":true},{"key":"User-Authentication","value":"{{user_auth}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"id\": 705,\n    \"name\": \"Test_16\",\n    \"active\": true,\n    \"trip_should_start_at_in_minutes\": 0,\n    \"source\": {\n        \"polygon\": {\n            \"id\": 937,\n            \"name\": \"kohara\",\n            \"address\": null,\n            \"coordinate\": \"30.748632,76.90434\"\n        },\n        \"average_eta_in_minutes\": 2\n    },\n    \"check_points\": [\n        {\n            \"polygon\": {\n                \"id\": 935,\n                \"name\": \"Rajgarh\",\n                \"address\": null,\n                \"coordinate\": \"30.6878,76.8593\"\n            },\n            \"average_eta_in_minutes\": 4,\n            \"average_exit_eta_in_minutes\": 5\n        }\n    ],\n    \"destination\": {\n        \"average_eta_in_minutes\": null,\n        \"average_exit_eta_in_minutes\": null,\n        \"polygon\": {\n            \"id\": 936,\n            \"name\": \"Veerpalace\",\n            \"address\": null,\n            \"coordinate\": \"30.66539,76.846554\"\n        }\n    },\n    \"polylines\": [],\n    \"tag_list\": [],\n    \"average_eta_in_minutes_source\": null,\n    \"distance\": 16842,\n    \"duration\": 1678\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/api/v1/vehicles/routes"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"data\": {\n        \"id\": 705,\n        \"name\": \"Test_16\",\n        \"source\": {\n            \"id\": 1671,\n            \"polygon_id\": 937,\n            \"address\": \"NH 95, Kohara, Punjab 141112, India\",\n            \"name\": \"kohara\",\n            \"coordinates\": \"30.8669,76.0076\",\n            \"details\": {},\n            \"polygon_details\": {},\n            \"average_eta_in_minutes\": 2,\n            \"position\": 1\n        },\n        \"check_points\": [\n            {\n                \"id\": 3238,\n                \"polygon_id\": 935,\n                \"address\": \"Rajgadh fusion., Chandigarh Rd, Ludhiana, India\",\n                \"name\": \"Rajgarh\",\n                \"coordinates\": \"30.8828,75.9479\",\n                \"details\": {},\n                \"polygon_details\": {},\n                \"average_eta_in_minutes\": 4,\n                \"average_exit_eta_in_minutes\": 5,\n                \"position\": 2\n            }\n        ],\n        \"destination\": {\n            \"id\": 1675,\n            \"polygon_id\": 936,\n            \"address\": \"Chandigarh Rd, Urban Estate Phase II, Jamalpur Colony, Ludhiana, Punjab 141010, India\",\n            \"name\": \"Veerpalace\",\n            \"coordinates\": \"30.8961,75.9209\",\n            \"details\": {},\n            \"polygon_details\": {},\n            \"position\": 3\n        },\n        \"custom_data\": {},\n        \"polylines\": [\n            {\n                \"id\": 389,\n                \"name\": \"Route 1\",\n                \"google_polyline\": \"slq{DaeknMPa@rBoFxBcGvCqH|@gCxBkEtCeIbAeCTa@bBeDvFwIv@yAhD_Kp@oBjAuDlAoDbHoSnFkO~AyEjBiFtDyKdBsErEcM~HkUhCeH`AaCJe@Zy@rAeChC}FzKuVtBqEb@gAdBoD|BmFnC{FzC_HzCmGnBqDnB{Dl@wArCuHtBaGRgAPgBFqCX_QFsCToBVoArFaQXy@Fg@JoAIoAKaAg@sFo@gH}@cLg@_LcAaRSyGw@}O]uHAqAFgAJ_Af@mBpCqItBeH?EBQHMNBBD@Bl@?nCFAeC@o@b@Eh@ADA@Q@kDpA@qAA?xAA|AGFi@@c@DAn@@dCoCGKFYBIBCDCFABC@G?GECI@MHS@A^iCr@cGnFqd@zAoMXaCx@eFpCoOpDsSbL_o@`DaQn@}Cr@uCpIaZ`BsFhBcGvDuMrDoMpAsEx@aD^cCVoDPyDbCgi@pC}m@t@mQd@{LDOBGLgARi@F[ZgG\\\\qHViHEiDf@iKRmCFsFCg@Be@p@iObCyl@pA}YZcKNqF?{BH_GFiEJkDJaIRiFT{BToBr@{DhBcLNaAJeA?gAMcBu@gDi@uBQeAIaA@aCCgCG{@P{GHeFZeOHsCu@p@mCrB_DvBmBvAmAhA_@XM@OW?UGk@KQOMa@d@\"\n            },\n            {\n                \"id\": 390,\n                \"name\": \"Route 2\",\n                \"google_polyline\": \"slq{DaeknMPa@|BdAhAj@xAz@zBlA~GtDlBfAjDlBzNhIvBpATg@dAwCbGgOnCiG~GkP`E_J|AiDxIlF~U|NzMjI~HvEOd@u@pBXFV?lG{@xFu@nDu@\\\\Qv@StA]ZY|@mBbCkGVYJCf@HPHXk@rCuFvByETFtH}NdGsLbC_FtCuFtJoRjLeUJ}@LY~AkD|AeDlDwHxEyIzB_E|FwKdBmDhBaE`A}BrCcFpBkDnBwDpE}InA}BvC_GzIiQHKtC}FpB_El@sApCoG~@uBzBmElDyG|@kBqCiBgAq@kAlCjAmCfAp@pChBFMpAsCvA}CjAwBlBsDbEeJz@eB|A}CuFuDqDkCgCoBmAeAwEiDoAgAgCmCy@{@sHkKaDgEaEwEcEyEaBmB_ByBeBqBqDiEq@m@oFkGeI_KaBoBkAmA}@gAsMyOaG}GgCaE}BsEsAmCaB_DgAcBk@}@cDmGm@mAmAeCeEeIoAgC{DmGeCoDc@e@_@Ok@E_C@W??C?qDpAGBK@_C?s@pA@qAA?r@?l@ApACJqAF?pD?Bc@AkBEGDMBYBABCJC@GBGAGK@MDOBE@?`AcHxAmMdFmc@v@sGdBaKvCiPrNqx@jDwRfAmFXmAnBgHxIoZ|@wClBwGnHeWbCyIj@sCRwBTqEjCkk@hCok@t@qQl@yNB]DMLgADSPa@T{C|@kT@qACkB?e@P}DR}DPqB@yAFuDCY@YVcHH_ArBqf@`@gKpA}Yj@uRBkFHiGTkMNaGHyARaBJgAJaAV{Av@yEt@gEn@gEBgACmAIw@WkA{@iDUoAK{@E{@?w@@{BKyBRoI\\\\_QDcCHgCGD}AtAeCbBeFtDkB`BE@I@OW?g@GYKQOMMRSP\"\n            },\n            {\n                \"id\": 391,\n                \"name\": \"Route 3\",\n                \"google_polyline\": \"slq{DaeknMPa@rBoFxBcGvCqH|@gCxBkEtCeIbAeCTa@bBeDvFwIv@yAhD_Kp@oBjAuDlAoDbHoSnFkO~AyEjBiFtDyKdBsErEcMqBwBwDgDqAgAeF_FOOkDeDqHeHwAmAiAmA_D}CeFmEgDiDtAwBHM@QGSyBmAaEyB}@o@IKa@sBgBwFcA_DmCgIgFqOiE_My@qBcC[wFq@wC_@uCa@D]d@qCVoAf@uCTuAs@_Ae@k@sAoBqLkPa@_@_BiAa@_@OOSGFUl@H\\\\B`@OTK`@c@hA}ApLgOxDcFhF}GfBmBbAy@n@]pBq@hAWjAQtAChBFbBXvUxF|QjEpH|AzD`Ar@NnH`BnIlBvP~DnKdCrBj@`ARl@F~@@fKDjE@lCRvKrAl@PpB^DiCFyAXoBb@}ApFyPNy@BQF_AIsASeBg@uFm@iHc@aF]mF_@wIcAwRQsFs@}NUmEM}C@oAFcAN_Aj@wBnCgIlBwG?EBQHKNBBF?@`@AxBFb@@?C?qDfAGLC@yA?m@?s@pA@qAA?r@?l@AxAMBgAF?pD?Bc@AkBEGDMBYBCJCBABC@IAGEAGBQFOBA~@aH`@qDzF_g@xA}LdBaKtBgLfEmVxN}x@`B{HnBgHtHqW`BuFpHkWfDkLfA_EZsAN_ARwBfAgUfCoj@zAu\\\\RwFbA}TNsDDMLgADSPa@Fa@`@wI`@mJHqDCkB?e@P}DR}DPqB@yAFuDCY@YVcHH_An@ePbAkU`@gKpA}Yj@uRBkFPcLLqHNaGHyARaBJgAJaAV{Av@yEnAoHT_BBgACmAIw@WkA{@iDUoAK{@E{@@sDKyBRoIb@cUHgCGD}AtAeCbBeFtDkB`BE@I@OW?g@GYKQOMMRSP\"\n            }\n        ],\n        \"tag_list\": [],\n        \"active\": true,\n        \"trip_should_start_at_in_minutes\": 0\n    }\n}"},{"id":"95b714d8-4c18-4963-9328-66cdeb25b061","name":"Response: 400","originalRequest":{"method":"PUT","header":[{"key":"User-Id","value":"{{user_id}}","type":"text","disabled":true},{"key":"Admin-Authentication","value":"{{admin_auth}}","type":"text","disabled":true},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"User-Authentication","value":"{{user_auth}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"id\": 705,\n    \"name\": \"Test_16\",\n    \"active\": true,\n    \"trip_should_start_at_in_minutes\": 0,\n    \"check_points\": [\n        {\n            \"polygon\": {\n                \"id\": 935,\n                \"name\": \"Rajgarh\",\n                \"address\": null,\n                \"coordinate\": \"30.6878,76.8593\"\n            },\n            \"average_eta_in_minutes\": 4,\n            \"average_exit_eta_in_minutes\": 5\n        }\n    ],\n    \"destination\": {\n        \"average_eta_in_minutes\": null,\n        \"average_exit_eta_in_minutes\": null,\n        \"polygon\": {\n            \"id\": 936,\n            \"name\": \"Veerpalace\",\n            \"address\": null,\n            \"coordinate\": \"30.66539,76.846554\"\n        }\n    },\n    \"polylines\": [],\n    \"tag_list\": [],\n    \"average_eta_in_minutes_source\": null,\n    \"distance\": 16842,\n    \"duration\": 1678\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/api/v1/vehicles/routes"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": false,\n    \"error\": \"400 Bad Request: [{\\\"error\\\":\\\"source is missing, source[polygon] is missing\\\"}]\"\n}"},{"id":"62ae0c32-2a75-44e4-8e33-bf5956a41e25","name":"Response: 401","originalRequest":{"method":"PUT","header":[{"key":"User-Id","value":"{{user_id}}","type":"text","disabled":true},{"key":"Admin-Authentication","value":"{{admin_auth}}","type":"text","disabled":true},{"key":"User-Authentication","value":"{{user_auth}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"id\": 705,\n    \"name\": \"Test_16\",\n    \"active\": true,\n    \"trip_should_start_at_in_minutes\": 0,\n    \"source\": {\n        \"polygon\": {\n            \"id\": 937,\n            \"name\": \"kohara\",\n            \"address\": null,\n            \"coordinate\": \"30.748632,76.90434\"\n        },\n        \"average_eta_in_minutes\": 2\n    },\n    \"check_points\": [\n        {\n            \"polygon\": {\n                \"id\": 935,\n                \"name\": \"Rajgarh\",\n                \"address\": null,\n                \"coordinate\": \"30.6878,76.8593\"\n            },\n            \"average_eta_in_minutes\": 4,\n            \"average_exit_eta_in_minutes\": 5\n        }\n    ],\n    \"destination\": {\n        \"average_eta_in_minutes\": null,\n        \"average_exit_eta_in_minutes\": null,\n        \"polygon\": {\n            \"id\": 936,\n            \"name\": \"Veerpalace\",\n            \"address\": null,\n            \"coordinate\": \"30.66539,76.846554\"\n        }\n    },\n    \"polylines\": [],\n    \"tag_list\": [],\n    \"average_eta_in_minutes_source\": null,\n    \"distance\": 16842,\n    \"duration\": 1678\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/api/v1/vehicles/routes"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": false,\n    \"error\": \"User not authorised!\"\n}"},{"id":"f18a14f1-6603-4c5e-a8c6-8775008a1635","name":"Response: 403","originalRequest":{"method":"PUT","header":[{"key":"User-Id","value":"{{user_id}}","type":"text","disabled":true},{"key":"Admin-Authentication","value":"{{admin_auth}}","type":"text","disabled":true},{"key":"User-Authentication","value":"{{user_auth}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"id\": 705,\n    \"name\": \"Test_16\",\n    \"active\": true,\n    \"trip_should_start_at_in_minutes\": 0,\n    \"check_points\": [\n        {\n            \"polygon\": {\n                \"id\": 935,\n                \"name\": \"Rajgarh\",\n                \"address\": null,\n                \"coordinate\": \"30.6878,76.8593\"\n            },\n            \"average_eta_in_minutes\": 4,\n            \"average_exit_eta_in_minutes\": 5\n        }\n    ],\n    \"destination\": {\n        \"average_eta_in_minutes\": null,\n        \"average_exit_eta_in_minutes\": null,\n        \"polygon\": {\n            \"id\": 936,\n            \"name\": \"Veerpalace\",\n            \"address\": null,\n            \"coordinate\": \"30.66539,76.846554\"\n        }\n    },\n    \"polylines\": [],\n    \"tag_list\": [],\n    \"average_eta_in_minutes_source\": null,\n    \"distance\": 16842,\n    \"duration\": 1678\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/api/v1/vehicles/routes"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": false,\n    \"error\": \"User Forbidden! User auth validation failed\"\n}"},{"id":"758c6160-e56f-4b24-ba4c-53ac0cd1fc7a","name":"Response: 422","originalRequest":{"method":"PUT","header":[{"key":"User-Id","value":"{{user_id}}","type":"text","disabled":true},{"key":"Admin-Authentication","value":"{{admin_auth}}","type":"text","disabled":true},{"key":"User-Authentication","value":"{{user_auth}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"id\": 705,\n    \"name\": \"Test_16\",\n    \"active\": true,\n    \"trip_should_start_at_in_minutes\": 0,\n    \"check_points\": [\n        {\n            \"polygon\": {\n                \"id\": 935,\n                \"name\": \"Rajgarh\",\n                \"address\": null,\n                \"coordinate\": \"30.6878,76.8593\"\n            },\n            \"average_eta_in_minutes\": 4,\n            \"average_exit_eta_in_minutes\": 5\n        }\n    ],\n    \"destination\": {\n        \"average_eta_in_minutes\": null,\n        \"average_exit_eta_in_minutes\": null,\n        \"polygon\": {\n            \"id\": 936,\n            \"name\": \"Veerpalace\",\n            \"address\": null,\n            \"coordinate\": \"30.66539,76.846554\"\n        }\n    },\n    \"polylines\": [],\n    \"tag_list\": [],\n    \"average_eta_in_minutes_source\": null,\n    \"distance\": 16842,\n    \"duration\": 1678\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/api/v1/vehicles/routes"},"status":"Unprocessable Entity (WebDAV) (RFC 4918)","code":422,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": false,\n    \"error\": \"422 Unprocessable Entity: [{\\\"errors\\\":[\\\"Name has already been taken\\\"],\\\"success\\\":false}]\"\n}"}],"_postman_id":"aa795704-ee21-4a06-9ca9-dbb5c3166eb9"},{"name":"Create Vehicle Routes","id":"06350a7b-200c-4a04-aacf-a15af7762cd5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"User-Authentication","value":"{{user_auth}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"name\":\"Max\",\n    \"distance\":100,\n    \"duration\":30,\n    \"trip_should_start_at_in_minutes\":20,\n    \"source\":{\n        \"polygon\":{\n            \"id\":null,\n            \"name\":null,\n            \"address\":\"Delhi\",\n            \"coordinate\":\"28.7041,77.1025\"\n        },\n        \"averageEtaInMinutes\":6,\n        \"averageExitEtaInMinutes\":4\n    },\n    \"destination\":{\n        \"polygon\":{\n            \"id\":null,\n            \"name\":null,\n            \"address\":\"Goa\",\n            \"coordinate\":\"15.2993,74.1240\"\n        },\n        \"averageEtaInMinutes\":6,\n        \"averageExitEtaInMinutes\":4\n    }\n}"},"url":"{{base_url}}/api/v1/vehicles/routes","description":"<p><strong>Purpose</strong></p>\n<p>Create Vehicle Routes.</p>\n<p><strong>Body</strong></p>\n<ul>\n<li>Name (DataType: String, Unique)</li>\n<li>Soft (DataType : Boolean, Optional, Default : False)</li>\n<li>Active (DataType : Boolean, Optional, Default : True)</li>\n<li>Distance (DataType : Integer)</li>\n<li>Duration (DataType : Integer)</li>\n<li>Trip_should_start_at_in _minutes(DataType : Integer)</li>\n<li>Polylines (Optional) List of json objects with fields :<ul>\n<li>google_polyline (DataType: String)</li>\n<li>gis_polyline (DataType: String)</li>\n<li>name (DataType: String)</li>\n<li>active (DataType: Boolean, Default : True)</li>\n</ul>\n</li>\n<li>Source : Json object with following fields :<ul>\n<li>Average_eta_in_minutes (DataType : Integer)</li>\n<li>Average_exit_eta_in_minutes [Integer]</li>\n<li>polygon - Json object with following fields :<ul>\n<li>id (DataType: Integer)</li>\n<li>name (DataType: String)</li>\n<li>address (DataType: String)</li>\n<li>coordinate (DataType: String)</li>\n</ul>\n</li>\n</ul>\n</li>\n<li>Destination : Json object with following fields :<ul>\n<li>Average_eta_in_minutes (DataType : Integer)</li>\n<li>Average_exit_eta_in_minutes [Integer]</li>\n<li>polygon - Json object with following fields :<ul>\n<li>id (DataType: Integer)</li>\n<li>name (DataType: String)</li>\n<li>address (DataType: String)</li>\n<li>coordinate (DataType: String)</li>\n</ul>\n</li>\n</ul>\n</li>\n<li>Check_points (Optional): Json object with following fields :<ul>\n<li>Average_eta_in_minutes (DataType : Integer)</li>\n<li>Average_exit_eta_in_minutes [Integer]</li>\n<li>polygon - Json object with following fields :<ul>\n<li>id (DataType: Integer)</li>\n<li>name (DataType: String)</li>\n<li>address (DataType: String)</li>\n<li>coordinate (DataType: String)</li>\n</ul>\n</li>\n</ul>\n</li>\n<li>Tag_list (DataType : List, Optional)</li>\n</ul>\n","urlObject":{"path":["api","v1","vehicles","routes"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[{"id":"63733fa7-7a16-4954-ac29-20cb6f619e4d","name":"Response: 200","originalRequest":{"method":"POST","header":[{"key":"User-Id","value":"{{user_id}}"},{"key":"Admin-Authentication","value":"{{admin_auth}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"User-Authentication","value":"{{user_auth}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"name\":\"MaxMike\",\n    \"distance\":100,\n    \"duration\":30,\n    \"trip_should_start_at_in_minutes\":20,\n    \"source\":{\n        \"polygon\":{\n            \"id\":null,\n            \"name\":null,\n            \"address\":\"Delhi\",\n            \"coordinate\":\"28.7041,77.1025\"\n        },\n        \"averageEtaInMinutes\":6,\n        \"averageExitEtaInMinutes\":4\n    },\n    \"destination\":{\n        \"polygon\":{\n            \"id\":null,\n            \"name\":null,\n            \"address\":\"Goa\",\n            \"coordinate\":\"15.2993,74.1240\"\n        },\n        \"averageEtaInMinutes\":6,\n        \"averageExitEtaInMinutes\":4\n    }\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/api/v1/vehicles/routes"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"data\": {\n        \"success\": true,\n        \"vehicle_route\": {\n            \"id\": 1426,\n            \"name\": \"MaxMike\",\n            \"source\": {\n                \"id\": 3181,\n                \"polygon_id\": 1204,\n                \"address\": \"Delhi\",\n                \"name\": \"Delhi\",\n                \"coordinates\": \"28.7041,77.1025\",\n                \"details\": {},\n                \"polygon_details\": {},\n                \"position\": 1\n            },\n            \"destination\": {\n                \"id\": 3182,\n                \"polygon_id\": 1205,\n                \"address\": \"Goa\",\n                \"name\": \"Goa\",\n                \"coordinates\": \"15.2993,74.124\",\n                \"details\": {},\n                \"polygon_details\": {},\n                \"position\": 2\n            },\n            \"custom_data\": {},\n            \"polylines\": [],\n            \"tag_list\": [],\n            \"active\": true,\n            \"trip_should_start_at_in_minutes\": 20\n        }\n    }\n}"},{"id":"2a20320b-b049-4153-85c1-c8bb55eddb2d","name":"Response: 400","originalRequest":{"method":"POST","header":[{"key":"User-Id","value":"{{user_id}}","disabled":true},{"key":"Admin-Authentication","value":"{{admin_auth}}","disabled":true},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"User-Authentication","value":"{{user_auth}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"name\":\"MikeMo\",\n    \"distance\":100,\n    \"duration\":30,\n    \"trip_should_start_at_in_minutes\":20,\n    \"source\":{\n        \"averageEtaInMinutes\":6,\n        \"averageExitEtaInMinutes\":4\n    },\n    \"destination\":{\n        \"polygon\":{\n            \"id\":null,\n            \"name\":null,\n            \"address\":\"Goa\",\n            \"coordinate\":\"15.2993,74.1240\"\n        },\n        \"averageEtaInMinutes\":6,\n        \"averageExitEtaInMinutes\":4\n    }\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/api/v1/vehicles/routes"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": false,\n    \"error\": \"400 Bad Request: [{\\\"error\\\":\\\"source[polygon] is missing\\\"}]\"\n}"},{"id":"2c3ceaaa-cdc8-4d99-9255-258caea13bef","name":"Response: 401","originalRequest":{"method":"POST","header":[{"key":"User-Id","value":"{{user_id}}","disabled":true},{"key":"Admin-Authentication","value":"{{admin_auth}}","disabled":true},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"User-Authentication","value":"{{user_auth}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"name\":\"Max\",\n    \"distance\":100,\n    \"duration\":30,\n    \"trip_should_start_at_in_minutes\":20,\n    \"source\":{\n        \"polygon\":{\n            \"id\":null,\n            \"name\":null,\n            \"address\":\"Delhi\",\n            \"coordinate\":\"28.7041,77.1025\"\n        },\n        \"averageEtaInMinutes\":6,\n        \"averageExitEtaInMinutes\":4\n    },\n    \"destination\":{\n        \"polygon\":{\n            \"id\":null,\n            \"name\":null,\n            \"address\":\"Goa\",\n            \"coordinate\":\"15.2993,74.1240\"\n        },\n        \"averageEtaInMinutes\":6,\n        \"averageExitEtaInMinutes\":4\n    }\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/api/v1/vehicles/routes"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": false,\n    \"error\": \"User not authorised!\"\n}"},{"id":"b8fd5abc-6c9a-4dd1-a6d5-c566296024ff","name":"Response: 403","originalRequest":{"method":"POST","header":[{"key":"User-Id","value":"{{user_id}}","disabled":true},{"key":"Admin-Authentication","value":"{{admin_auth}}","disabled":true},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"User-Authentication","value":"{{user_auth}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"name\":\"Max\",\n    \"distance\":100,\n    \"duration\":30,\n    \"trip_should_start_at_in_minutes\":20,\n    \"source\":{\n        \"polygon\":{\n            \"id\":null,\n            \"name\":null,\n            \"address\":\"Delhi\",\n            \"coordinate\":\"28.7041,77.1025\"\n        },\n        \"averageEtaInMinutes\":6,\n        \"averageExitEtaInMinutes\":4\n    },\n    \"destination\":{\n        \"polygon\":{\n            \"id\":null,\n            \"name\":null,\n            \"address\":\"Goa\",\n            \"coordinate\":\"15.2993,74.1240\"\n        },\n        \"averageEtaInMinutes\":6,\n        \"averageExitEtaInMinutes\":4\n    }\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/api/v1/vehicles/routes"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": false,\n    \"error\": \"User Forbidden! User auth validation failed\"\n}"}],"_postman_id":"06350a7b-200c-4a04-aacf-a15af7762cd5"},{"name":"Get Polyline","id":"76fabe57-1471-4c6c-865f-25136a9f9732","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"User-Authentication","value":"{{user_auth}}","type":"text"}],"url":"{{base_url}}/api/v1/vehicles/polyline?start_time={{start_time}}&end_time={{end_time}}&id={{id}}&vehicle_number={{vehicle_number}}","description":"<p>Fetch polyline of the vehicle which is provided through params for the user matching the credentials provided in the header.</p>\n<p>start_time: Start time as epoch timestamp which is mandatory (datatype: Integer). This should be less than the end time.</p>\n<p>end_time: End time as epoch timestamp which is mandatory (datatype: Integer). This should be greater than the start time.</p>\n<p>id: This is the vehicle id</p>\n<p>vehicle_number: This is the vehicle registration number</p>\n<p>One of id and vehicle_number is mandatory to fetch the records.</p>\n<p>Headers can accept User-Authentication also.</p>\n","urlObject":{"path":["api","v1","vehicles","polyline"],"host":["{{base_url}}"],"query":[{"description":{"content":"<p>Starttime as epoch timestamp which is mandatory (datatye: Integer)</p>\n","type":"text/plain"},"key":"start_time","value":"{{start_time}}"},{"description":{"content":"<p>Endtime as epoch timestamp which is mandatory (datatype: Integer)</p>\n","type":"text/plain"},"key":"end_time","value":"{{end_time}}"},{"description":{"content":"<p>Id as Vehicle Id (datatype: Integer)</p>\n","type":"text/plain"},"key":"id","value":"{{id}}"},{"description":{"content":"<p>Vehicle Registration Number (datatype: String)</p>\n","type":"text/plain"},"key":"vehicle_number","value":"{{vehicle_number}}"}],"variable":[]}},"response":[{"id":"245fee99-2000-472c-8147-64e5cb5a60f2","name":"Response: 200","originalRequest":{"method":"GET","header":[{"key":"User-Id","value":"{{user_id}}","type":"text","disabled":true},{"key":"Admin-Authentication","value":"{{admin_auth}}","type":"text","disabled":true},{"key":"User-Authentication","value":"{{user_auth}}","type":"text"}],"url":{"raw":"{{base_url}}/api/v1/vehicles/polyline?start_time={{start_time}}&end_time={{end_time}}&id={{id}}","host":["{{base_url}}"],"path":["api","v1","vehicles","polyline"],"query":[{"key":"start_time","value":"{{start_time}}","description":"Starttime as epoch timestamp which is mandatory (datatye: Integer)"},{"key":"end_time","value":"{{end_time}}","description":"Endtime as epoch timestamp which is mandatory (datatype: Integer)"},{"key":"id","value":"{{id}}","description":"Id as Vehicle Id which is mandatory (datatype: Integer)"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"data\": {\n        \"movements\": [\n            {\n                \"latitude\": 31.64233,\n                \"longitude\": 76.94541,\n                \"orientation\": 66.0,\n                \"speed\": 59.0, // this speed is in km/h\n                \"time\": 1653139321, //this is event time\n                \"speed_with_unit\": {\n                    \"value\": 36.66,\n                    \"unit\": \"mph\"\n                }\n            },\n            {\n                \"latitude\": 31.6424,\n                \"longitude\": 76.9456,\n                \"orientation\": 70.0,\n                \"speed\": 56.0,\n                \"time\": 1653139322,\n                \"speed_with_unit\": {\n                    \"value\": 34.8,\n                    \"unit\": \"mph\"\n                }\n            },\n            {\n                \"latitude\": 31.64243,\n                \"longitude\": 76.9457,\n                \"orientation\": 71.0,\n                \"speed\": 56.0,\n                \"time\": 1653139324,\n                \"speed_with_unit\": {\n                    \"value\": 34.8,\n                    \"unit\": \"mph\"\n                }\n            }\n        ]\n    }\n}\n"},{"id":"e5330e34-4181-4788-930b-db5d282c986e","name":"Response: 404","originalRequest":{"method":"GET","header":[{"key":"User-Id","value":"{{user_id}}","type":"text","disabled":true},{"key":"Admin-Authentication","value":"{{admin_auth}}","type":"text","disabled":true},{"key":"User-Authentication","value":"{{user_auth}}","type":"text"}],"url":{"raw":"{{base_url}}/api/v1/vehicles/polyline?start_time={{start_time}}&end_time={{end_time}}&id={{id}}","host":["{{base_url}}"],"path":["api","v1","vehicles","polyline"],"query":[{"key":"start_time","value":"{{start_time}}","description":"Starttime as epoch timestamp which is mandatory (datatye: Integer)"},{"key":"end_time","value":"{{end_time}}","description":"Endtime as epoch timestamp which is mandatory (datatype: Integer)"},{"key":"id","value":"{{id}}","description":"Id as Vehicle Id which is mandatory (datatype: Integer)"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": false,\n    \"error\": \"404 Not Found: [{\\\"message\\\":\\\"Vehicle not found\\\"}]\"\n}"},{"id":"2c85560a-7f6a-479e-a0aa-9314e9edfe9c","name":"Response: 400","originalRequest":{"method":"GET","header":[{"key":"User-Id","value":"{{user_id}}","type":"text","disabled":true},{"key":"Admin-Authentication","value":"{{admin_auth}}","type":"text","disabled":true},{"key":"User-Authentication","value":"{{user_auth}}","type":"text"}],"url":{"raw":"{{base_url}}/api/v1/vehicles/polyline?start_time={{start_time}}&end_time={{end_time}}&id={{id}}","host":["{{base_url}}"],"path":["api","v1","vehicles","polyline"],"query":[{"key":"start_time","value":"{{start_time}}","description":"Starttime as epoch timestamp which is mandatory (datatye: Integer)"},{"key":"end_time","value":"{{end_time}}","description":"Endtime as epoch timestamp which is mandatory (datatype: Integer)"},{"key":"id","value":"{{id}}","description":"Id as Vehicle Id which is mandatory (datatype: Integer)"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": false,\n    \"error\": \"400 Bad Request: [{\\\"message\\\":\\\"time_range is missing, time_range start time or end time must be present, time_range[start_time] is missing, time_range[end_time] is missing\\\"}]\"\n}"},{"id":"590b90c1-62bd-4b32-8278-00eb3e8d94b1","name":"Response: 401","originalRequest":{"method":"GET","header":[{"key":"User-Id","value":"{{user_id}}","type":"text","disabled":true},{"key":"Admin-Authentication","value":"{{admin_auth}}","type":"text","disabled":true},{"key":"User-Authentication","value":"{{user_auth}}","type":"text"}],"url":{"raw":"{{base_url}}/api/v1/vehicles/polyline?start_time={{start_time}}&end_time={{end_time}}&id={{id}}","host":["{{base_url}}"],"path":["api","v1","vehicles","polyline"],"query":[{"key":"start_time","value":"{{start_time}}","description":"Starttime as epoch timestamp which is mandatory (datatye: Integer)"},{"key":"end_time","value":"{{end_time}}","description":"Endtime as epoch timestamp which is mandatory (datatype: Integer)"},{"key":"id","value":"{{id}}","description":"Id as Vehicle Id which is mandatory (datatype: Integer)"}]}},"code":401,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": false,\n    \"error\": \"401 Unauthorized: [{\\\"message\\\":\\\"401 Unauthorized\\\"}]\"\n}"}],"_postman_id":"76fabe57-1471-4c6c-865f-25136a9f9732"},{"name":"Immobilise Vehicle","id":"2de8c01d-c203-4c7e-a54b-e1c62dff6b45","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"User-Authentication","value":"{{user_auth}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"action\": \"MOBILIZE\",\n    \"vehicle_number\":\"TEST_VEHICLE\"\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/api/v1/vehicles/mobilization","description":"<ul>\n<li>Vehicle Number is mandatory.</li>\n<li>Action has 2 values (MOBILIZE, IMMOBILIZE)</li>\n</ul>\n<p><strong>This is an Async API.</strong></p>\n<p>Vehicle must be enabled for Immobilise Functionlity otherwise this api will not work. Check user dashboard for this.</p>\n<p>If the immobilise request for the vehicle is already in process then you will get error : <strong>\"There is already an active request present\"</strong></p>\n<p>Updates about this Immobilise or Mobilise request will be shared using Webhook or you can call <strong>Fetch Vehicle Details api</strong> with f<strong>etch_mobilization_details=true</strong> flag.</p>\n<p>Sample Status in Webhook:</p>\n<p>{</p>\n<p>\"vehicle_id\":123,</p>\n<p>\"vehicle_number\":\"ABCD123\",</p>\n<p>\"mobilize\": true,</p>\n<p>\"status\":\"success\",</p>\n<p>\"message\":\"Cut off the fuel supply: Success! Speed: 0km/h.\"</p>\n<p>}</p>\n","urlObject":{"path":["api","v1","vehicles","mobilization"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[{"id":"c4540824-795b-4749-bf25-44451e5f9220","name":"Response: 200","originalRequest":{"method":"POST","header":[{"key":"User-Id","value":"{{user_id}}","type":"text","disabled":true},{"key":"Admin-Authentication","value":"{{admin_auth}}","type":"text","disabled":true},{"key":"User-Authentication","value":"{{user_auth}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"action\": \"IMMOBILIZE\",\n    \"vehicle_number\":\"TEST_VEHICLE\"\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/api/v1/vehicles/mobilization"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n   \"status\": true,\n   \"data\": {\n       \"status\": \"submitted\", // Request is received successfully.\n       \"mobilize\": true,\n       \"vehicle_id\": 1234\n   }\n}\n"}],"_postman_id":"2de8c01d-c203-4c7e-a54b-e1c62dff6b45"},{"name":"Vehicle Sensor Data","id":"1cd95e3f-a0c1-4c8c-9f22-4582473647a3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"User-Authentication","value":"{{user_token}}"}],"url":"{{base_url}}/api/v1/vehicles/{{vehicle_id}}/sensor_data","description":"<p>Client can pass Vehicle_id in url</p>\n<p>Sensor values for sensors attached to a vehicle</p>\n<ul>\n<li>Fuel sensor</li>\n<li>Battery sensor for EVs</li>\n<li>Attached Device values</li>\n</ul>\n","urlObject":{"path":["api","v1","vehicles","{{vehicle_id}}","sensor_data"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[{"id":"209bac53-2714-4fcc-989e-cc5a3743e7f5","name":"Response: 200","originalRequest":{"method":"GET","header":[{"key":"User-Authentication","value":"{{user_token}}","type":"text"}],"url":"{{base_url}}/api/v1/vehicles/{{vehicle_id}}/sensor_data"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"data\": {\n        \"bms_soc_value\": {\n            \"display_name\": \"BMS Soc\",\n            \"sensor_type\": \"bms_soc\",\n            \"unit\": \"\",\n            \"value\": \"37.0\",\n            \"description\": \"\"\n        },\n        \"temperature_value\": {\n            \"display_name\": \"Temperature\",\n            \"sensor_type\": \"temperature\",\n            \"unit\": \"\",\n            \"value\": \"N/A\",\n            \"description\": \"It is used check the temperature of vehicle.\"\n        },\n        \"number_of_satellites_value\": {\n            \"display_name\": \"GPS Satellites\",\n            \"sensor_type\": \"\",\n            \"unit\": \"\",\n            \"value\": \"0\",\n            \"description\": \"Shows the total number of gps satellites being used for Location points\"\n        },\n        \"ignition_value\": {\n            \"display_name\": \"Ignition\",\n            \"sensor_type\": \"ignition\",\n            \"unit\": \"\",\n            \"value\": \"OFF\",\n            \"description\": \"It is used to check IGNITION of vehicle is ON/OFF (value is in bool).\"\n        },\n        \"speed_value\": {\n            \"display_name\": \"Speed\",\n            \"sensor_type\": \"speed\",\n            \"unit\": \"km/h\",\n            \"value\": 0,\n            \"description\": \"Display Vehicle Speed\"\n        },\n        \"vehicle_battery_level\": {\n            \"display_name\": \"Vehicle Battery Voltage\",\n            \"sensor_type\": \"vehicle_battery_voltage\",\n            \"unit\": \"V\",\n            \"value\": 53.54,\n            \"description\": \"Vehicle Battery Voltage\"\n        },\n        \"battery_level_value\": {\n            \"display_name\": \"Device Battery %\",\n            \"sensor_type\": \"\",\n            \"unit\": \"%\",\n            \"value\": \"100\",\n            \"description\": \"It shows the device battery level\"\n        },\n        \"orientation_value\": {\n            \"display_name\": \"Orientation Value\",\n            \"sensor_type\": \"\",\n            \"value\": \"0\",\n            \"description\": \"\"\n        },\n        \"hdop_value\": {\n            \"display_name\": \"HDOP Value\",\n            \"sensor_type\": \"\",\n            \"value\": \"0\",\n            \"description\": \"\"\n        },\n        \"movement_value\": {\n            \"display_name\": \"Movement Value\",\n            \"sensor_type\": \"\",\n            \"value\": \"0\",\n            \"description\": \"\"\n        },\n        \"altitude_value\": {\n            \"display_name\": \"Altitude Value\",\n            \"sensor_type\": \"\",\n            \"unit\": \"m\",\n            \"value\": \"0.000\",\n            \"description\": \"\"\n        },\n        \"power_cut_status_value\": {\n            \"display_name\": \"Charging Status\",\n            \"sensor_type\": \"\",\n            \"value\": \"ON\",\n            \"description\": \"\"\n        },\n        \"gsm_strength_value\": {\n            \"display_name\": \"GSM Strength\",\n            \"sensor_type\": \"\",\n            \"unit\": \"%\",\n            \"value\": 75,\n            \"description\": \"\"\n        },\n        \"current_location_value\": {\n            \"display_name\": \"Location\",\n            \"sensor_type\": \"\",\n            \"unit\": \"\",\n            \"value\": \"Subhas Nagar, South Dum Dum, North Twenty Four Parganas District, West Bengal, 700077, India\",\n            \"description\": \"\"\n        },\n        \"bms_discharge_cycles\": {\n            \"display_name\": \"BMS Discharge Cycle\",\n            \"sensor_type\": \"\",\n            \"unit\": \"\",\n            \"value\": 12,\n            \"description\": \"\"\n        },\n        \"bms_full_capacity\": {\n            \"display_name\": \"BMS Full Capacity\",\n            \"sensor_type\": \"\",\n            \"unit\": \"mAh\",\n            \"value\": 86000,\n            \"description\": \"\"\n        },\n        \"bms_protection_marks\": {\n            \"display_name\": \"BMS Protection Marks\",\n            \"sensor_type\": \"\",\n            \"unit\": \"\",\n            \"value\": 0,\n            \"description\": \"\"\n        },\n        \"bms_software_version\": {\n            \"display_name\": \"BMS Software Version\",\n            \"sensor_type\": \"\",\n            \"unit\": \"\",\n            \"value\": 117,\n            \"description\": \"\"\n        },\n        \"bms_production_date\": {\n            \"display_name\": \"BMS Production Date\",\n            \"sensor_type\": \"\",\n            \"unit\": \"\",\n            \"value\": 11978,\n            \"description\": \"\"\n        },\n        \"bms_status_symbol\": {\n            \"display_name\": \"BMS Status Symbol\",\n            \"sensor_type\": \"\",\n            \"unit\": \"\",\n            \"value\": 3,\n            \"description\": \"\"\n        },\n        \"bms_battery_strings\": {\n            \"display_name\": \"BMS Battery Strings\",\n            \"sensor_type\": \"\",\n            \"unit\": \"\",\n            \"value\": 16,\n            \"description\": \"\"\n        },\n        \"bms_ntc_probes\": {\n            \"display_name\": \"BMS NTC Probes\",\n            \"sensor_type\": \"\",\n            \"unit\": \"\",\n            \"value\": 5,\n            \"description\": \"\"\n        },\n        \"bms_soc\": {\n            \"display_name\": \"BMS Soc\",\n            \"sensor_type\": \"\",\n            \"unit\": \"%\",\n            \"value\": 37,\n            \"description\": \"\"\n        },\n        \"bms_discharge_mos_switch_control\": {\n            \"display_name\": \"BMS Discharge MOS Switch Control\",\n            \"sensor_type\": \"\",\n            \"unit\": \"\",\n            \"description\": \"\"\n        },\n        \"bms_discharge_switch_control_backcode\": {\n            \"display_name\": \"BMS Discharge Switch Control Backcode\",\n            \"sensor_type\": \"\",\n            \"unit\": \"\",\n            \"description\": \"\"\n        },\n        \"bms_charging_mos_switch_control\": {\n            \"display_name\": \"BMS Charging MOS Switch control\",\n            \"sensor_type\": \"\",\n            \"unit\": \"\",\n            \"description\": \"\"\n        },\n        \"bms_charging_switch_control_reverse_code\": {\n            \"display_name\": \"BMS Charging Switch Control Reverse Code\",\n            \"sensor_type\": \"\",\n            \"unit\": \"\",\n            \"value\": 54,\n            \"description\": \"\"\n        },\n        \"bms_cell_voltage_17\": {\n            \"display_name\": \"BMS Cell Voltage 17\",\n            \"sensor_type\": \"\",\n            \"unit\": \"mV\",\n            \"value\": 58.31,\n            \"description\": \"\"\n        },\n        \"bms_cell_voltage_18\": {\n            \"display_name\": \"BMS Cell Voltage 18\",\n            \"sensor_type\": \"\",\n            \"unit\": \"mV\",\n            \"value\": 0,\n            \"description\": \"\"\n        },\n        \"bms_cell_voltage_19\": {\n            \"display_name\": \"BMS Cell Voltage 19\",\n            \"sensor_type\": \"\",\n            \"unit\": \"mV\",\n            \"value\": 0,\n            \"description\": \"\"\n        },\n        \"bms_cell_voltage_20\": {\n            \"display_name\": \"BMS Cell Voltage 20\",\n            \"sensor_type\": \"\",\n            \"unit\": \"mV\",\n            \"value\": 0,\n            \"description\": \"\"\n        },\n        \"bms_cell_voltage_21\": {\n            \"display_name\": \"BMS Cell Voltage 21\",\n            \"sensor_type\": \"\",\n            \"unit\": \"mV\",\n            \"value\": 0,\n            \"description\": \"\"\n        },\n        \"bms_cell_voltage_22\": {\n            \"display_name\": \"BMS Cell Voltage 22\",\n            \"sensor_type\": \"\",\n            \"unit\": \"mV\",\n            \"value\": 0,\n            \"description\": \"\"\n        },\n        \"bms_cell_voltage_23\": {\n            \"display_name\": \"BMS Cell Voltage 23\",\n            \"sensor_type\": \"\",\n            \"unit\": \"mV\",\n            \"value\": 0,\n            \"description\": \"\"\n        },\n        \"bms_cell_voltage_24\": {\n            \"display_name\": \"BMS Cell Voltage 24\",\n            \"sensor_type\": \"\",\n            \"unit\": \"mV\",\n            \"value\": 0,\n            \"description\": \"\"\n        },\n        \"bms_cell_voltage_25\": {\n            \"display_name\": \"BMS Cell Voltage 25\",\n            \"sensor_type\": \"\",\n            \"unit\": \"mV\",\n            \"value\": 0,\n            \"description\": \"\"\n        },\n        \"bms_cell_voltage_26\": {\n            \"display_name\": \"BMS Cell Voltage 26\",\n            \"sensor_type\": \"\",\n            \"unit\": \"mV\",\n            \"value\": 0,\n            \"description\": \"\"\n        },\n        \"bms_cell_voltage_27\": {\n            \"display_name\": \"BMS Cell Voltage 27\",\n            \"sensor_type\": \"\",\n            \"unit\": \"mV\",\n            \"value\": 0,\n            \"description\": \"\"\n        },\n        \"bms_cell_voltage_28\": {\n            \"display_name\": \"BMS Cell Voltage 28\",\n            \"sensor_type\": \"\",\n            \"unit\": \"mV\",\n            \"value\": 0,\n            \"description\": \"\"\n        },\n        \"bms_cell_voltage_29\": {\n            \"display_name\": \"BMS Cell Voltage 29\",\n            \"sensor_type\": \"\",\n            \"unit\": \"mV\",\n            \"value\": 0,\n            \"description\": \"\"\n        },\n        \"bms_cell_voltage_30\": {\n            \"display_name\": \"BMS Cell Voltage 30\",\n            \"sensor_type\": \"\",\n            \"unit\": \"mV\",\n            \"value\": 0,\n            \"description\": \"\"\n        },\n        \"bms_cell_voltage_1\": {\n            \"display_name\": \"translation missing: en.apis.sensors.bms_cell_voltage_1\",\n            \"sensor_type\": \"\",\n            \"unit\": \"mV\",\n            \"value\": 3.28,\n            \"description\": \"\"\n        },\n        \"bms_cell_voltage_2\": {\n            \"display_name\": \"BMS Cell Voltage 2\",\n            \"sensor_type\": \"\",\n            \"unit\": \"mV\",\n            \"value\": 3.28,\n            \"description\": \"\"\n        },\n        \"bms_cell_voltage_3\": {\n            \"display_name\": \"BMS Cell Voltage 3\",\n            \"sensor_type\": \"\",\n            \"unit\": \"mV\",\n            \"value\": 3.27,\n            \"description\": \"\"\n        },\n        \"bms_cell_voltage_4\": {\n            \"display_name\": \"BMS Cell Voltage 4\",\n            \"sensor_type\": \"\",\n            \"unit\": \"mV\",\n            \"value\": 3.28,\n            \"description\": \"\"\n        },\n        \"bms_cell_voltage_5\": {\n            \"display_name\": \"BMS Cell Voltage 5\",\n            \"sensor_type\": \"\",\n            \"unit\": \"mV\",\n            \"value\": 3.27,\n            \"description\": \"\"\n        },\n        \"bms_cell_voltage_6\": {\n            \"display_name\": \"BMS Cell Voltage 6\",\n            \"sensor_type\": \"\",\n            \"unit\": \"mV\",\n            \"value\": 3.28,\n            \"description\": \"\"\n        },\n        \"bms_cell_voltage_7\": {\n            \"display_name\": \"BMS Cell Voltage 7\",\n            \"sensor_type\": \"\",\n            \"unit\": \"mV\",\n            \"value\": 3.28,\n            \"description\": \"\"\n        },\n        \"bms_cell_voltage_8\": {\n            \"display_name\": \"BMS Cell Voltage 8\",\n            \"sensor_type\": \"\",\n            \"unit\": \"mV\",\n            \"value\": 3.27,\n            \"description\": \"\"\n        },\n        \"bms_cell_voltage_9\": {\n            \"display_name\": \"BMS Cell Voltage 9\",\n            \"sensor_type\": \"\",\n            \"unit\": \"mV\",\n            \"value\": 3.27,\n            \"description\": \"\"\n        },\n        \"bms_cell_voltage_10\": {\n            \"display_name\": \"BMS Cell Voltage 10\",\n            \"sensor_type\": \"\",\n            \"unit\": \"mV\",\n            \"value\": 3.28,\n            \"description\": \"\"\n        },\n        \"bms_cell_voltage_11\": {\n            \"display_name\": \"BMS Cell Voltage 11\",\n            \"sensor_type\": \"\",\n            \"unit\": \"mV\",\n            \"value\": 3.27,\n            \"description\": \"\"\n        },\n        \"bms_cell_voltage_12\": {\n            \"display_name\": \"BMS Cell Voltage 12\",\n            \"sensor_type\": \"\",\n            \"unit\": \"mV\",\n            \"value\": 3.27,\n            \"description\": \"\"\n        },\n        \"bms_cell_voltage_13\": {\n            \"display_name\": \"BMS Cell Voltage 13\",\n            \"sensor_type\": \"\",\n            \"unit\": \"mV\",\n            \"value\": 3.27,\n            \"description\": \"\"\n        },\n        \"bms_cell_voltage_14\": {\n            \"display_name\": \"BMS Cell Voltage 14\",\n            \"sensor_type\": \"\",\n            \"unit\": \"mV\",\n            \"value\": 3.27,\n            \"description\": \"\"\n        },\n        \"bms_cell_voltage_15\": {\n            \"display_name\": \"BMS Cell Voltage 15\",\n            \"sensor_type\": \"\",\n            \"unit\": \"mV\",\n            \"value\": 3.28,\n            \"description\": \"\"\n        },\n        \"bms_cell_voltage_16\": {\n            \"display_name\": \"BMS Cell Voltage 16\",\n            \"sensor_type\": \"\",\n            \"unit\": \"mV\",\n            \"value\": 3.27,\n            \"description\": \"\"\n        },\n        \"bms_ntc_temperature_1\": {\n            \"display_name\": \"BMS NTC Temperature 1\",\n            \"sensor_type\": \"\",\n            \"unit\": \"K\",\n            \"value\": 279.49,\n            \"description\": \"\"\n        },\n        \"bms_ntc_temperature_2\": {\n            \"display_name\": \"BMS NTC Temperature 2\",\n            \"sensor_type\": \"\",\n            \"unit\": \"K\",\n            \"value\": 277.09,\n            \"description\": \"\"\n        },\n        \"bms_ntc_temperature_3\": {\n            \"display_name\": \"BMS NTC Temperature 3\",\n            \"sensor_type\": \"\",\n            \"unit\": \"K\",\n            \"value\": 277.29,\n            \"description\": \"\"\n        },\n        \"bms_ntc_temperature_4\": {\n            \"display_name\": \"BMS NTC Temperature 4\",\n            \"sensor_type\": \"\",\n            \"unit\": \"K\",\n            \"value\": 276.79,\n            \"description\": \"\"\n        },\n        \"bms_ntc_temperature_5\": {\n            \"display_name\": \"BMS NTC Temperature 5\",\n            \"sensor_type\": \"\",\n            \"unit\": \"K\",\n            \"value\": 277.39,\n            \"description\": \"\"\n        },\n        \"bms_ntc_temperature_6\": {\n            \"display_name\": \"BMS NTC Temperature 6\",\n            \"sensor_type\": \"\",\n            \"unit\": \"K\",\n            \"value\": 1920.39,\n            \"description\": \"\"\n        }\n    }\n}"},{"id":"faf25f30-8224-4907-afbb-321954a7beae","name":"Response: 404","originalRequest":{"method":"GET","header":[{"key":"User-Authentication","value":"{{user_token}}","type":"text"}],"url":"{{base_url}}/api/v1/vehicles/{{vehicle_id}}/sensor_data"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": false,\n    \"error\": \"{\\\"message\\\":\\\"Vehicle not found\\\"}\"\n}"},{"id":"e5c6a4f5-4062-454f-840e-128ba4c605d3","name":"Response: 401","originalRequest":{"method":"GET","header":[{"key":"User-Authentication","value":"{{user_token}}","type":"text"}],"url":"{{base_url}}/api/v1/vehicles/{{vehicle_id}}/sensor_data"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": false,\n    \"error\": \"User Forbidden! User auth validation failed\"\n}"}],"_postman_id":"1cd95e3f-a0c1-4c8c-9f22-4582473647a3"},{"name":"Fetch Fuel Data","id":"9395d252-1d0a-406f-a456-2b90fe1a030c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"User-Authentication","value":"{{user_auth}}","type":"text"}],"url":"{{base_url}}/api/v1/vehicles/fuel?vehicle_number={{vehicle_number}}&start_time={{start_time}}&end_time={{end_time}}","urlObject":{"path":["api","v1","vehicles","fuel"],"host":["{{base_url}}"],"query":[{"key":"vehicle_number","value":"{{vehicle_number}}"},{"key":"start_time","value":"{{start_time}}"},{"key":"end_time","value":"{{end_time}}"}],"variable":[]}},"response":[],"_postman_id":"9395d252-1d0a-406f-a456-2b90fe1a030c"},{"name":"Fetch Fuel Current levels","id":"8970e2b8-eb65-4f07-8957-cc779d62e10a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"User-Authentication","value":"{{user_auth}}","type":"text"}],"url":"{{base_url}}/api/v1/vehicles/fuel/current_levels?vehicle_number={{vehicle_number}}&page={{page}}&per_page={{per_page}}","urlObject":{"path":["api","v1","vehicles","fuel","current_levels"],"host":["{{base_url}}"],"query":[{"key":"vehicle_number","value":"{{vehicle_number}}"},{"key":"page","value":"{{page}}"},{"key":"per_page","value":"{{per_page}}"}],"variable":[]}},"response":[],"_postman_id":"8970e2b8-eb65-4f07-8957-cc779d62e10a"},{"name":"Fetch Fuel interval data","id":"cdfea482-b768-48df-9298-d0be8c5ba419","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"User-Authentication","value":"{{user_auth}}","type":"text"}],"url":"{{base_url}}/api/v1/vehicles/fuel/interval_data?vehicle_number={{vehicle_number}}&start_time={{start_time}}&end_time={{end_time}}&interval={{interval}}","urlObject":{"path":["api","v1","vehicles","fuel","interval_data"],"host":["{{base_url}}"],"query":[{"key":"vehicle_number","value":"{{vehicle_number}}"},{"key":"start_time","value":"{{start_time}}"},{"key":"end_time","value":"{{end_time}}"},{"description":{"content":"<p>interval in minutes (min: 5min)</p>\n","type":"text/plain"},"key":"interval","value":"{{interval}}"}],"variable":[]}},"response":[],"_postman_id":"cdfea482-b768-48df-9298-d0be8c5ba419"}],"id":"3b5735dc-6f18-4a4f-ac44-f872b9e473f0","description":"<p>Vehicles are an integral part of fleet management solution. LocoNav provides API to create a new vehicle in the system, update it if required, retrive the details based on vehicle attributes, delete the vehicle , fetch the distance travelled by a vehicle within a date range and assign/unassign a duty to a vehicl</p>\n","_postman_id":"3b5735dc-6f18-4a4f-ac44-f872b9e473f0"},{"name":"Polygon (Geofence)","item":[{"name":"Get a Polygon","id":"d70e497e-c2b8-4623-bf01-a8f4d6d9ea61","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"User-Authentication","value":"{{user_auth}}","type":"text"}],"url":"{{base_url}}/api/v1/polygons?page={{page}}&per_page={{per_page}}&name={{name}}&active={{active}}","urlObject":{"path":["api","v1","polygons"],"host":["{{base_url}}"],"query":[{"description":{"content":"<p>Current page</p>\n","type":"text/plain"},"key":"page","value":"{{page}}"},{"description":{"content":"<p>No. of polygon details in a page</p>\n","type":"text/plain"},"key":"per_page","value":"{{per_page}}"},{"description":{"content":"<p>Name of polygon (Autocomplete)</p>\n","type":"text/plain"},"key":"name","value":"{{name}}"},{"description":{"content":"<p>Status of polygon</p>\n","type":"text/plain"},"key":"active","value":"{{active}}"}],"variable":[]}},"response":[{"id":"7626c765-aca7-4fe4-bb70-b97acbf77fe4","name":"Response: 200","originalRequest":{"method":"GET","header":[{"key":"User-Id","value":"{{user_id}}","type":"text","disabled":true},{"key":"Admin-Authentication","value":"{{admin_auth}}","type":"text","disabled":true},{"key":"User-Authentication","value":"{{user_auth}}","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":{"raw":"{{base_url}}/api/v1/polygons?name={{name}}","host":["{{base_url}}"],"path":["api","v1","polygons"],"query":[{"key":"page","value":"{{page}}","description":"Current page","disabled":true},{"key":"per_page","value":"{{per_page}}","description":"No. of polygon details in a page","disabled":true},{"key":"name","value":"{{name}}","description":"Name of polygon (Autocomplete)"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"true\",\n    \"data\": [\n        {\n            \"id\": 51,\n            \"name\": \"CUSTOM\",\n            \"lat\": \"23.1452\",\n            \"long\": \"79.5445\",\n            \"bounding_box\": [\n                {\n                    \"lat\": \"23.140703597122302158\",\n                    \"long\": \"79.539607734833809758\"\n                },\n                {\n                    \"lat\": \"23.149696402877697842\",\n                    \"long\": \"79.539607734833809758\"\n                },\n                {\n                    \"lat\": \"23.149696402877697842\",\n                    \"long\": \"79.549392265166190242\"\n                },\n                {\n                    \"lat\": \"23.140703597122302158\",\n                    \"long\": \"79.549392265166190242\"\n                }\n            ],\n            \"radius\": 500,\n            \"updated_at\": 1635147126000,\n            \"distance_unit\": \"m\"\n        }\n    ],\n    \"pagination\": {\n      \"current_page\": 1,\n      \"per_page\": 10,\n      \"total_count\": 12\n    }\n}"},{"id":"4746cf79-2f8b-4068-9c9c-09ce2d4bcff0","name":"Response : 401","originalRequest":{"method":"GET","header":[{"key":"User-Id","value":"{{user_id}}","type":"text","disabled":true},{"key":"Admin-Authentication","value":"{{admin_auth}}","type":"text","disabled":true},{"key":"User-Authentication","value":"{{user_auth}}","type":"text"}],"url":{"raw":"{{base_url}}/api/v1/polygons?page={{page}}&per_page={{per_page}}&name={{name}}","host":["{{base_url}}"],"path":["api","v1","polygons"],"query":[{"key":"page","value":"{{page}}"},{"key":"per_page","value":"{{per_page}}"},{"key":"name","value":"{{name}}"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": false,\n    \"error\": \"User does not have sufficient privilege to get polygons. Contact your system administrator.\"\n}"}],"_postman_id":"d70e497e-c2b8-4623-bf01-a8f4d6d9ea61"},{"name":"Create new Polygon","id":"3a998d0a-fb6a-4630-bda3-81fcea5242e4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"User-Authentication","value":"{{user_auth}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"polygon\": {\n        \"name\": \"test12345\",\n        \"lat\": \"33.33\",\n        \"long\": \"77.77\",\n        \"radius\": 100,\n        \"distance_unit\": \"m\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/api/v1/polygons","urlObject":{"path":["api","v1","polygons"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[{"id":"9074ec81-3e70-4ea8-92e1-5a3cd5a45f7f","name":"Response: 200","originalRequest":{"method":"POST","header":[{"key":"User-Id","value":"{{user_id}}","type":"text","disabled":true},{"key":"Admin-Authentication","value":"{{admin_auth}}","type":"text","disabled":true},{"key":"User-Authentication","value":"{{user_auth}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"polygon\": {\n        \"name\": \"test12345\",\n        \"lat\": \"33.33\",\n        \"long\": \"77.77\",\n        \"radius\": 100,\n        \"distance_unit\": \"m\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/api/v1/polygons"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"data\":{\n        \"id\": 52,\n        \"name\": \"test12345\",\n        \"lat\": \"33.33\",\n        \"long\": \"77.77\",\n        \"bounding_box\": [\n            {\n                \"lat\": \"33.321007194244604317\",\n                \"long\": \"77.75923300981178877\"\n            },\n            {\n                \"lat\": \"33.338992805755395683\",\n                \"long\": \"77.75923300981178877\"\n            },\n            {\n                \"lat\": \"33.338992805755395683\",\n                \"long\": \"77.78076699018821123\"\n            },\n            {\n                \"lat\": \"33.321007194244604317\",\n                \"long\": \"77.78076699018821123\"\n            }\n        ],\n        \"radius\": 1000,\n        \"updated_at\": 1638360771000,\n        \"distance_unit\": \"m\"\n    }\n}"},{"id":"9837cd1b-0b9f-4ee5-982d-c0f3c35b9942","name":"Response: 422","originalRequest":{"method":"POST","header":[{"key":"User-Id","value":"{{user_id}}","type":"text","disabled":true},{"key":"Admin-Authentication","value":"{{admin_auth}}","type":"text","disabled":true},{"key":"User-Authentication","value":"{{user_auth}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"polygon\": {\n        \"name\": \"test12345\",\n        \"lat\": \"33.33\",\n        \"long\": \"77.77\",\n        \"radius\": 100,\n        \"distance_unit\": \"m\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/api/v1/polygons"},"status":"Unprocessable Entity (WebDAV) (RFC 4918)","code":422,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": false,\n    \"errors\": \"Name has already been taken!\"\n}"},{"id":"a424abca-8bef-4c86-960f-2d6b74d11435","name":"Response: 401","originalRequest":{"method":"POST","header":[{"key":"User-Id","value":"{{user_id}}","type":"text","disabled":true},{"key":"Admin-Authentication","value":"{{admin_auth}}","type":"text","disabled":true},{"key":"User-Authentication","value":"{{user_auth}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"polygon\": {\n        \"name\": \"test12345\",\n        \"lat\": \"33.33\",\n        \"long\": \"77.77\",\n        \"radius\": 100,\n        \"distance_unit\": \"m\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/api/v1/polygons"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": false,\n    \"error\": \"Unauthorised!\"\n}"},{"id":"a5db4cec-36b1-4732-80bc-81d955dd6f75","name":"Response: 400","originalRequest":{"method":"POST","header":[{"key":"User-Id","value":"{{user_id}}","type":"text","disabled":true},{"key":"Admin-Authentication","value":"{{admin_auth}}","type":"text","disabled":true},{"key":"User-Authentication","value":"{{user_auth}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"polygon\": {\n        \"name\": \"test12345\",\n        \"lat\": \"33.33\",\n        \"long\": \"77.77\",\n        \"radius\": 100,\n        \"distance_unit\": \"m\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/api/v1/polygons"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": false,\n    \"error\": \"Required request parameter 'name' for method parameter type String is not present\"\n}"},{"id":"d7139937-3c78-4b53-8df4-8d57e7e2780a","name":"Response: 500","originalRequest":{"method":"POST","header":[{"key":"User-Id","value":"{{user_id}}","type":"text","disabled":true},{"key":"Admin-Authentication","value":"{{admin_auth}}","type":"text","disabled":true},{"key":"User-Authentication","value":"{{user_auth}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"polygon\": {\n        \"name\": \"test12345\",\n        \"lat\": \"33.33\",\n        \"long\": \"77.77\",\n        \"radius\": 100,\n        \"distance_unit\": \"m\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/api/v1/polygons"},"code":500,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": false,\n    \"error\": \"Unable to process request\"\n}"}],"_postman_id":"3a998d0a-fb6a-4630-bda3-81fcea5242e4"},{"name":"Update Polygon","id":"0a4f5504-ecff-444b-b1b4-aa48916c819a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"User-Authentication","value":"{{user_auth}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"polygon\": {\n        \"name\": \"test12345\",\n        \"lat\": \"33.33\",\n        \"long\": \"77.77\",\n        \"radius\": 100,\n        \"active\": true,\n        \"distance_unit\": \"m\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/api/v1/polygons/:id","urlObject":{"path":["api","v1","polygons",":id"],"host":["{{base_url}}"],"query":[],"variable":[{"type":"any","value":null,"key":"id"}]}},"response":[{"id":"3efd06c7-36df-4ffb-aed4-bd433298195c","name":"Response: 200","originalRequest":{"method":"PUT","header":[{"key":"User-Id","value":"{{user_id}}","type":"text","disabled":true},{"key":"Admin-Authentication","value":"{{admin_auth}}","type":"text","disabled":true},{"key":"User-Authentication","value":"{{user_auth}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"polygon\": {\n        \"name\": \"test12345\",\n        \"lat\": \"33.33\",\n        \"long\": \"77.77\",\n        \"radius\": 100,\n        \"active\": true,\n        \"distance_unit\": \"m\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{base_url}}/api/v1/polygons/:id","host":["{{base_url}}"],"path":["api","v1","polygons",":id"],"variable":[{"key":"id","value":null}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"data\":{\n        \"id\": 52,\n        \"name\": \"test12345\",\n        \"lat\": \"33.33\",\n        \"long\": \"77.77\",\n        \"bounding_box\": [\n            {\n                \"lat\": \"33.321007194244604317\",\n                \"long\": \"77.75923300981178877\"\n            },\n            {\n                \"lat\": \"33.338992805755395683\",\n                \"long\": \"77.75923300981178877\"\n            },\n            {\n                \"lat\": \"33.338992805755395683\",\n                \"long\": \"77.78076699018821123\"\n            },\n            {\n                \"lat\": \"33.321007194244604317\",\n                \"long\": \"77.78076699018821123\"\n            }\n        ],\n        \"radius\": 1000,\n        \"updated_at\": 1638360771000,\n        \"distance_unit\": \"m\"\n    }\n}"},{"id":"61b7f58a-751f-46d0-94a3-2aa3cf486544","name":"Response: 422","originalRequest":{"method":"PUT","header":[{"key":"User-Id","value":"{{user_id}}","type":"text","disabled":true},{"key":"Admin-Authentication","value":"{{admin_auth}}","type":"text","disabled":true},{"key":"User-Authentication","value":"{{user_auth}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"polygon\": {\n        \"name\": \"test12345\",\n        \"lat\": \"33.33\",\n        \"long\": \"77.77\",\n        \"radius\": 100,\n        \"active\": true,\n        \"distance_unit\": \"m\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{base_url}}/api/v1/polygons/:id","host":["{{base_url}}"],"path":["api","v1","polygons",":id"],"variable":[{"key":"id","value":null}]}},"status":"Unprocessable Entity (WebDAV) (RFC 4918)","code":422,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": false,\n    \"errors\": \"Name has already been taken!\"\n}"},{"id":"f2ea1cdd-365a-4eee-9e71-2ff47d0e765b","name":"Response: 401","originalRequest":{"method":"PUT","header":[{"key":"User-Id","value":"{{user_id}}","type":"text","disabled":true},{"key":"Admin-Authentication","value":"{{admin_auth}}","type":"text","disabled":true},{"key":"User-Authentication","value":"{{user_auth}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"polygon\": {\n        \"name\": \"test12345\",\n        \"lat\": \"33.33\",\n        \"long\": \"77.77\",\n        \"radius\": 100,\n        \"active\": true,\n        \"distance_unit\": \"m\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{base_url}}/api/v1/polygons/:id","host":["{{base_url}}"],"path":["api","v1","polygons",":id"],"variable":[{"key":"id","value":null}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": false,\n    \"error\": \"Unauthorised!\"\n}"},{"id":"ddfcc75a-0f31-4a73-a635-b1e22766be74","name":"Response: 400","originalRequest":{"method":"PUT","header":[{"key":"User-Id","value":"{{user_id}}","type":"text","disabled":true},{"key":"Admin-Authentication","value":"{{admin_auth}}","type":"text","disabled":true},{"key":"User-Authentication","value":"{{user_auth}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"polygon\": {\n        \"name\": \"test12345\",\n        \"lat\": \"33.33\",\n        \"long\": \"77.77\",\n        \"radius\": 100,\n        \"active\": true,\n        \"distance_unit\": \"m\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{base_url}}/api/v1/polygons/:id","host":["{{base_url}}"],"path":["api","v1","polygons",":id"],"variable":[{"key":"id","value":null}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": false,\n    \"error\": \"Required path variable 'id' is not present\"\n}"}],"_postman_id":"0a4f5504-ecff-444b-b1b4-aa48916c819a"}],"id":"a11233e7-a0c2-4897-8851-461cb3b451ac","description":"<p>A geofence is a virtual fence or perimeter around a physical location. Like a real fence, a geofence creates a separation between that location and the area around it. Unlike a real fence, it can also detect movement inside the virtual boundary.</p>\n<p>It can be any size or shape, even a straight line between two points.</p>\n<p>Geofences are created using mapping software, which allow the user to draw the geofence over the desired geographic area. It is made up of a collection of coordinates (i.e., latitude and longitude) or in the case of a circular geofence one point that forms the center.</p>\n<p>When integrated with fleet management and telematics solutions, geofences can be used to alert you via text message in near real time if a vehicle or valuable piece of equipment with a GPS tracker attached is removed from your yard without your authorization.</p>\n","_postman_id":"a11233e7-a0c2-4897-8851-461cb3b451ac"},{"name":"Alert Subscription","item":[{"name":"Get alert subscription","id":"9873ed3e-9dab-45a2-8293-587b87f86ae1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"User-Id","value":"{{user_id}}","type":"text"},{"key":"Admin-Authentication","value":"{{admin_auth}}","type":"text"}],"url":"{{base_url}}/api/v1/alerts/subscriptions?vehicle_number={{vehicle_number}}","urlObject":{"path":["api","v1","alerts","subscriptions"],"host":["{{base_url}}"],"query":[{"key":"vehicle_number","value":"{{vehicle_number}}"}],"variable":[]}},"response":[{"id":"a482d038-889c-4bad-81d5-478b8cd7dfde","name":"Response: 200","originalRequest":{"method":"GET","header":[{"key":"User-Id","value":"{{user_id}}","type":"text"},{"key":"Admin-Authentication","value":"{{admin_auth}}","type":"text"}],"url":{"raw":"{{base_url}}/api/v1/alerts/subscriptions?vehicle_number={{vehicle_number}}","host":["{{base_url}}"],"path":["api","v1","alerts","subscriptions"],"query":[{"key":"vehicle_number","value":"{{vehicle_number}}"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n  \"status\": \"true\",\n  \"data\": [\n       {\n           \"id\": 112,\n           \"kind\": \"overspeed\",\n           \"alert_config\": {\n               \"polygon_ids\": [],\n               \"speed_limit\": 15,\n               \"min_duration_in_minutes\": \"12\",\n               \"min_duration_in_seconds\": 720\n           }\n       },\n       {\n           \"id\": 111,\n           \"kind\": \"crash\",\n           \"alert_config\": {}\n       },\n       {\n           \"id\": 110,\n           \"kind\": \"fuel_theft\",\n           \"alert_config\": {}\n       }\n   ]\n}"}],"_postman_id":"9873ed3e-9dab-45a2-8293-587b87f86ae1"},{"name":"Create Alert Subscriptions","id":"e48c2522-7e3d-427d-8594-c0e621ebe5db","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"User-Id","value":"{{user_id}}","type":"text"},{"key":"Admin-Authentication","value":"{{admin_auth}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"alert_subscriptions\": [\n        {\n            \"kind\": \"overspeed\",\n            \"vehicle_numbers\": [\n                \"vehicle_number\"\n            ],\n            \"include_all\": \"0\",\n            \"alert_config\": {\n                \"speed_limit\": \"200\",\n                \"min_duration_in_minutes\": \"100\",\n                \"min_duration_in_seconds\": \"10\"\n            }\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/api/v1/alerts/subscriptions","description":"<p>Each kind of alert will have different fields for alert_config, specific config is below :</p>\n<p>“vehicle_numbers” : [], // array of vehicle number, wether this or id only one is processed, id first priority</p>\n<p>in all kind either use vehicle id or number whichever applicable.</p>\n<p><strong>Overspeed</strong><br />“kind”: “overspeed”,<br />“vehicle_ids” : [], // array of vehicle ids<br />“include_all” : “0”,<br />“alert_config”:{<br />“speed_limit”: “200”,<br />“min_duration_in_minutes”: “100”,<br />“min_duration_in_seconds”: “10”<br />}<br /><strong>Entry_exit</strong><br />kind”: “entry_exit”,<br />Vehicles_ids:nil/empty array<br />“include_all” : “0”,<br />alert_config:{<br />“polygon_ids”: [],<br />“include_all_polygons”: 0/1<br />}</p>\n<p><strong>Sudden Braking</strong><br />“kind”: “sudden_braking”,<br />“vehicle_ids” : [], // array of vehicle ids<br />“include_all” : “0”,</p>\n<p><strong>Sudden acceleration</strong><br />“kind”: “sudden_acceleration”,<br />“vehicle_ids” : [], // array of vehicle ids<br />“include_all” : “0”,</p>\n<p><strong>Vehicle Idling Alert</strong><br />“Kind” : “vehicle_idle”,<br />“vehicle_ids” : [“2”],<br />“include_all” : “0”,<br />“alert_config” : {<br />“min_duration” : “10”<br />}</p>\n<p><strong>Fatigue Alert</strong><br />“kind” : “fatigue”,<br />\"vehicle_ids\" : [\"2\"],<br />\"include_all\" : \"0\",<br />“alert_config” : {<br />“fatigue_duration_in_minutes” : “100”,<br />“stoppage_time_to_ignore_in_minutes” : “15”<br />}</p>\n<p><strong>Antitheft Alert</strong><br />“kind” : “anti_theft”,<br />\"vehicle_ids\" : [\"2\"],<br />\"include_all\" : \"0\",<br />“alert_config” : {<br />“start_time” : “15:35”,<br />“end_time” : “15:45”<br />}</p>\n<p><strong>Over rev Alert</strong><br />“kind” : “over_rev”,<br />\"vehicle_ids\" : [\"2\"],<br />\"include_all\" : \"0\",<br />“alert_config” : {<br />“rpm_value” : “40”,<br />“min_duration_in_minutes”: “100”,<br />“min_duration_in_seconds”: “10”,<br />}</p>\n<p><strong>TowAway Alert</strong></p>\n<p>“kind” : “tow_away”,</p>\n<p>\"vehicle_ids\" : [\"2\"]</p>\n<p>}</p>\n<p><strong>vehicle low battery</strong><br />“kind” : “vehicle_low_battery_voltage”,<br />\"vehicle_ids\" : [\"2\"],<br />\"include_all\" : \"0\",<br />“alert_config” : {<br />\"battery_voltage\": \"X\"<br />}</p>\n<p><strong>device removal</strong><br />“kind” : “device_removal”,<br />\"vehicle_ids\" : [\"2\"],<br />\"include_all\" : \"0\"</p>\n<p><strong>crash detection</strong><br />“kind” : “crash_during_overspeed”,<br />\"vehicle_ids\" : [\"2\"],<br />\"include_all\" : \"0\",<br />“alert_config” : {<br />\"speed_limit\": \"X\"<br />}</p>\n<p><strong>Sharp Turn Braking</strong><br />“kind”: “sharp_turn”,<br />“vehicle_ids” : [], // array of vehicle ids<br />“include_all” : “0”,</p>\n<p>“alert_config” : {<br />\"speed_limit\": \"X\"<br />}</p>\n","urlObject":{"path":["api","v1","alerts","subscriptions"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[{"id":"1a7b79f5-c83c-44fa-bc47-1be30d615ae3","name":"Response: 200","originalRequest":{"method":"POST","header":[{"key":"User-Id","value":"{{user_id}}","type":"text"},{"key":"Admin-Authentication","value":"{{admin_auth}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"alert_subscriptions\": [\n        {\n            \"kind\": \"overspeed\",\n            \"vehicle_numbers\": [\n                \"vehicle_number\"\n            ],\n            \"include_all\": \"0\",\n            \"alert_config\": {\n                \"speed_limit\": \"200\",\n                \"min_duration_in_minutes\": \"100\",\n                \"min_duration_in_seconds\": \"10\"\n            }\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/api/v1/alerts/subscriptions"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"data\": \"Subscription Created Successfully\"\n}"},{"id":"ea106e53-623b-4bbc-b429-f69cf89b2b22","name":"Response: 422","originalRequest":{"method":"POST","header":[{"key":"User-Id","value":"{{user_id}}","type":"text"},{"key":"Admin-Authentication","value":"{{admin_auth}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"alert_subscriptions\": [\n        {\n            \"kind\": \"overspeed\",\n            \"vehicle_numbers\": [\n                \"vehicle_number\"\n            ],\n            \"include_all\": \"0\",\n            \"alert_config\": {\n                \"speed_limit\": \"200\",\n                \"min_duration_in_minutes\": \"100\",\n                \"min_duration_in_seconds\": \"10\"\n            }\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/api/v1/alerts/subscriptions"},"status":"Unprocessable Entity (WebDAV) (RFC 4918)","code":422,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"status\": false,\n    \"error\": \"422 Unprocessable Entity: [{\\\"success\\\":false,\\\"error\\\":\\\"undefined method `[]' for nil:NilClass\\\"}]\"\n}"}],"_postman_id":"e48c2522-7e3d-427d-8594-c0e621ebe5db"},{"name":"Update Alert Subscription","id":"4a55b586-797a-43d4-a012-6a42e93c5f5e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"User-Id","value":"{{user_id}}"},{"key":"Admin-Authentication","value":"{{admin_auth}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"alert_subscriptions\": [\n        {\n            \"id\" :226,\n            \"kind\": \"overspeed\",\n            \"vehicle_numbers\": [\n                \"vehicle_number\"\n            ],\n            \"include_all\": \"0\",\n            \"alert_config\": { //optional\n                \"speed_limit\": \"200\",\n                \"min_duration_in_minutes\": \"100\",\n                \"min_duration_in_seconds\": \"10\"\n            }\n        }\n    ]\n}"},"url":"http://ind-stg-marketplace.loconav.com/api/v1/alerts/subscriptions","urlObject":{"protocol":"http","path":["api","v1","alerts","subscriptions"],"host":["ind-stg-marketplace","loconav","com"],"query":[],"variable":[]}},"response":[{"id":"29629c48-7951-488b-b5ee-eb1c79e9f234","name":"Response : 200","originalRequest":{"method":"PUT","header":[{"key":"User-Id","value":"{{user_id}}"},{"key":"Admin-Authentication","value":"{{admin_auth}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"alert_subscriptions\": [\n        {\n            \"id\" :226,\n            \"kind\": \"overspeed\",\n            \"vehicle_numbers\": [\n                \"vehicle_number\"\n            ],\n            \"include_all\": \"0\",\n            \"alert_config\": { //optional\n                \"speed_limit\": \"200\",\n                \"min_duration_in_minutes\": \"100\",\n                \"min_duration_in_seconds\": \"10\"\n            }\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"http://ind-stg-marketplace.loconav.com/api/v1/alerts/subscriptions"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"data\": \"Subscription Created Successfully\"\n}"}],"_postman_id":"4a55b586-797a-43d4-a012-6a42e93c5f5e"},{"name":"Delete Alert Subscription","id":"e2e471f5-5903-428d-b162-9ce496968e2b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"User-Id","value":"{{user}}"},{"key":"Admin-Authentication","value":"{{admin_auth_token}}"}],"url":"http://ind-stg-marketplace.loconav.com/api/v1/alerts/subscriptions/:id","urlObject":{"protocol":"http","path":["api","v1","alerts","subscriptions",":id"],"host":["ind-stg-marketplace","loconav","com"],"query":[{"disabled":true,"key":"","value":""}],"variable":[{"description":{"content":"<p>Alert Subscription Id available in get of subscription</p>\n","type":"text/plain"},"type":"any","value":"{{alert_subscription_id}}","key":"id"}]}},"response":[{"id":"5a375d91-fa7a-498e-bcde-eea94a92b161","name":"Response : 200","originalRequest":{"method":"DELETE","header":[{"key":"User-Id","value":"{{user}}"},{"key":"Admin-Authentication","value":"{{admin_auth_token}}"}],"url":{"raw":"http://ind-stg-marketplace.loconav.com/api/v1/alerts/subscriptions/:id","protocol":"http","host":["ind-stg-marketplace","loconav","com"],"path":["api","v1","alerts","subscriptions",":id"],"query":[{"key":"","value":"","disabled":true}],"variable":[{"key":"id","value":"{{alert_subscription_id}}","description":"Alert Subscription Id available in get of subscription"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"data\": \"Subscription Deleted Successfully\"\n}"}],"_postman_id":"e2e471f5-5903-428d-b162-9ce496968e2b"}],"id":"6e841610-bc7a-4e08-a94d-fa17a9e9b75f","description":"<p>With our Alert subscription APIs, you can manage the alerts effectively on a platform</p>\n","_postman_id":"6e841610-bc7a-4e08-a94d-fa17a9e9b75f"},{"name":"Alerts","item":[{"name":"Get Alerts","id":"69e5fe0c-c3bd-4266-afe7-be471793ca69","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"User-Id","value":"{{user_id}}","type":"text"},{"key":"Admin-Authentication","value":"{{admin_auth}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":""},"url":"{{base_url}}/api/v1/alerts?vehicle_number={{vehicle_number}}&start_time={{start_time}}&end_time={{end_time}}","description":"<p>To fetch alerts between any time time like journey, trip, day, week this api can be used to fetch list of alerts triggered between that time.</p>\n","urlObject":{"path":["api","v1","alerts"],"host":["{{base_url}}"],"query":[{"key":"vehicle_number","value":"{{vehicle_number}}"},{"description":{"content":"<p>in epoch</p>\n","type":"text/plain"},"key":"start_time","value":"{{start_time}}"},{"description":{"content":"<p>in epoch</p>\n","type":"text/plain"},"key":"end_time","value":"{{end_time}}"},{"disabled":true,"key":"","value":""},{"disabled":true,"key":"","value":""}],"variable":[]}},"response":[{"id":"29662301-81c7-49ba-b53d-2b4ec19cab98","name":"Response : 200","originalRequest":{"method":"GET","header":[{"key":"User-Id","value":"{{user_id}}","type":"text"},{"key":"Admin-Authentication","value":"{{admin_auth}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":""},"url":{"raw":"{{base_url}}/api/v1/alerts?vehicle_number={{vehicle_number}}&start_time={{start_time}}&end_time={{end_time}}","host":["{{base_url}}"],"path":["api","v1","alerts"],"query":[{"key":"vehicle_number","value":"{{vehicle_number}}"},{"key":"start_time","value":"{{start_time}}"},{"key":"end_time","value":"{{end_time}}"},{"key":"","value":"","disabled":true},{"key":"","value":"","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"data\": [\n        {\n            \"id\": 76306,\n            \"event_time\": 1640005614,\n            \"event_type\": \"IgnitionAlert\",\n            \"started_ts\": 1640000414,\n            \"start_location\": {\n                \"lat\": 28.60772,\n                \"address\": \"test567\",\n                \"long\": 77.20498\n            },\n            \"ended_ts\": 1640005614,\n            \"end_location\": {\n                \"lat\": 28.5288,\n                \"address\": \"Sarita Vihar, Pocket C, Sarita Vihar, New Delhi, Delhi 110076, India\",\n                \"long\": 77.28857\n            },\n            \"comments\": [\n                {\n                    \"id\" : 1234,\n                    \"description\" : \"string description\",\n                    \"created_at\" : \"string\",\n                    \"created_by\" : \"String\"\n                },\n                {\n                    \"id\" : 1234,\n                    \"description\" : \"string description\",\n                    \"created_at\" : \"string\",\n                    \"created_by\" : \"String\"\n                }\n            ]\n        },\n        {\n            \"id\": 143881,\n            \"event_time\": 1640004979,\n            \"event_type\": \"Geofence\",\n            \"started_ts\": 1640004457,\n            \"start_location\": {\n                \"lat\": 28.58001,\n                \"address\": \"2/15-A-GF, Mathura Rd, Block B, Jangpura B, Jangpura, New Delhi, Delhi 110014, India\",\n                \"long\": 77.25267\n            },\n            \"ended_ts\": 1640004979,\n            \"end_location\": {\n                \"lat\": 28.56072,\n                \"address\": \"tripScheduletest\",\n                \"long\": 77.26708\n            },\n            \"comments\": [],\n            \"value\": {\n                \"name\": \"tripScheduletest\",\n                \"lat\": \"28.5696\",\n                \"long\": \"77.2567\",\n                \"coordinates\": [\n                    {\n                        \"lat\": \"28.57952987468353\",\n                        \"long\": \"77.25460168428954\"\n                    },\n                    {\n                        \"lat\": \"28.57919069762814\",\n                        \"long\": \"77.26387139864501\"\n                    },\n                    {\n                        \"lat\": \"28.57798472590644\",\n                        \"long\": \"77.26751920290526\"\n                    },\n                    {\n                        \"lat\": \"28.56875104675001\",\n                        \"long\": \"77.27223989077147\"\n                    },\n                    {\n                        \"lat\": \"28.5596296375278\",\n                        \"long\": \"77.26730462618407\"\n                    },\n                    {\n                        \"lat\": \"28.56113736300744\",\n                        \"long\": \"77.25121137209472\"\n                    },\n                    {\n                        \"lat\": \"28.565547336061634\",\n                        \"long\": \"77.24125501223143\"\n                    },\n                    {\n                        \"lat\": \"28.575874242122318\",\n                        \"long\": \"77.24812146730956\"\n                    }\n                ]\n            }\n        },\n        {\n            \"id\": 143436,\n            \"event_time\": 1640003751,\n            \"event_type\": \"Geofence\",\n            \"started_ts\": 1639999037,\n            \"start_location\": {\n                \"lat\": 28.59677,\n                \"address\": \"Officers Enclave, Sardar Patel Marg, Central Ridge Reserve Forest, New Delhi, Delhi 110021, India\",\n                \"long\": 77.17072\n            },\n            \"ended_ts\": 1640003751,\n            \"end_location\": {\n                \"lat\": 28.60157,\n                \"address\": \"test567\",\n                \"long\": 77.23781\n            },\n            \"comments\": [],\n            \"value\": {\n                \"name\": \"test567\",\n                \"lat\": \"28.660968\",\n                \"long\": \"77.227717\",\n                \"radius\": 6964.0,\n                \"coordinates\": [\n                    {\n                        \"lat\": \"28.59834210071942445\",\n                        \"long\": \"77.29911729703437696\"\n                    },\n                    {\n                        \"lat\": \"28.72359389928057555\",\n                        \"long\": \"77.29911729703437696\"\n                    },\n                    {\n                        \"lat\": \"28.72359389928057555\",\n                        \"long\": \"77.15631670296562304\"\n                    },\n                    {\n                        \"lat\": \"28.59834210071942445\",\n                        \"long\": \"77.15631670296562304\"\n                    }\n                ]\n            }\n        },\n        {\n            \"id\": 143632,\n            \"event_time\": 1640003216,\n            \"event_type\": \"Geofence\",\n            \"started_ts\": 1640001408,\n            \"start_location\": {\n                \"lat\": 28.61721,\n                \"address\": \"test567\",\n                \"long\": 77.2127\n            },\n            \"ended_ts\": 1640003216,\n            \"end_location\": {\n                \"lat\": 28.62061,\n                \"address\": \"pop put\",\n                \"long\": 77.23166\n            },\n            \"comments\": [],\n            \"value\": {\n                \"name\": \"pop put\",\n                \"lat\": \"28.662793\",\n                \"long\": \"77.186776\",\n                \"radius\": 5000.0,\n                \"coordinates\": [\n                    {\n                        \"lat\": \"28.61782897122302158\",\n                        \"long\": \"77.23804074642577808\"\n                    },\n                    {\n                        \"lat\": \"28.70775702877697842\",\n                        \"long\": \"77.23804074642577808\"\n                    },\n                    {\n                        \"lat\": \"28.70775702877697842\",\n                        \"long\": \"77.13551125357422192\"\n                    },\n                    {\n                        \"lat\": \"28.61782897122302158\",\n                        \"long\": \"77.13551125357422192\"\n                    }\n                ]\n            }\n        },\n        {\n            \"id\": 143715,\n            \"event_time\": 1640003139,\n            \"event_type\": \"Geofence\",\n            \"started_ts\": 1640002401,\n            \"start_location\": {\n                \"lat\": 28.62929,\n                \"address\": \"pop put\",\n                \"long\": 77.22584\n            },\n            \"ended_ts\": 1640003139,\n            \"end_location\": {\n                \"lat\": 28.62246,\n                \"address\": \"pop put\",\n                \"long\": 77.2318\n            },\n            \"comments\": [],\n            \"value\": {\n                \"name\": \"zxcvbn\",\n                \"lat\": \"28.62603\",\n                \"long\": \"77.2316\",\n                \"coordinates\": [\n                    {\n                        \"lat\": \"28.621533597122302158\",\n                        \"long\": \"77.236724680240609628\"\n                    },\n                    {\n                        \"lat\": \"28.630526402877697842\",\n                        \"long\": \"77.236724680240609628\"\n                    },\n                    {\n                        \"lat\": \"28.630526402877697842\",\n                        \"long\": \"77.226475319759390372\"\n                    },\n                    {\n                        \"lat\": \"28.621533597122302158\",\n                        \"long\": \"77.226475319759390372\"\n                    }\n                ]\n            }\n        },\n        {\n            \"id\": 143705,\n            \"event_time\": 1640002509,\n            \"event_type\": \"Geofence\",\n            \"started_ts\": 1640002317,\n            \"start_location\": {\n                \"lat\": 28.63275,\n                \"address\": \"pop put\",\n                \"long\": 77.22102\n            },\n            \"ended_ts\": 1640002509,\n            \"end_location\": {\n                \"lat\": 28.62605,\n                \"address\": \"pop put\",\n                \"long\": 77.23164\n            },\n            \"comments\": [],\n            \"value\": {\n                \"name\": \"qwerty1\",\n                \"lat\": \"28.62889\",\n                \"long\": \"77.22653\",\n                \"radius\": 500.0,\n                \"coordinates\": [\n                    {\n                        \"lat\": \"28.624393597122302158\",\n                        \"long\": \"77.231654819716541943\"\n                    },\n                    {\n                        \"lat\": \"28.633386402877697842\",\n                        \"long\": \"77.231654819716541943\"\n                    },\n                    {\n                        \"lat\": \"28.633386402877697842\",\n                        \"long\": \"77.221405180283458057\"\n                    },\n                    {\n                        \"lat\": \"28.624393597122302158\",\n                        \"long\": \"77.221405180283458057\"\n                    }\n                ]\n            }\n        },\n        {\n            \"id\": 76156,\n            \"event_time\": 1639999737,\n            \"event_type\": \"IgnitionAlert\",\n            \"started_ts\": 1639992263,\n            \"start_location\": {\n                \"lat\": 28.60609,\n                \"address\": \"Mahatma Gandhi Marg, Delhi Cantonment, New Delhi, Delhi 110010, India\",\n                \"long\": 77.14361\n            },\n            \"ended_ts\": 1639999737,\n            \"end_location\": {\n                \"lat\": 28.60727,\n                \"address\": \"test567\",\n                \"long\": 77.20523\n            },\n            \"comments\": []\n        },\n        {\n            \"id\": 143371,\n            \"event_time\": 1639998120,\n            \"event_type\": \"Geofence\",\n            \"started_ts\": 1639997915,\n            \"start_location\": {\n                \"lat\": 28.54484,\n                \"address\": \"test geo1\",\n                \"long\": 77.12028\n            },\n            \"ended_ts\": 1639998120,\n            \"end_location\": {\n                \"lat\": 28.55336,\n                \"address\": \"abc\",\n                \"long\": 77.13146\n            },\n            \"comments\": [],\n            \"value\": {\n                \"name\": \"Test Geo\",\n                \"lat\": \"28.54912\",\n                \"long\": \"77.12718\",\n                \"radius\": 500.0,\n                \"coordinates\": [\n                    {\n                        \"lat\": \"28.544623597122302158\",\n                        \"long\": \"77.132300937131461253\"\n                    },\n                    {\n                        \"lat\": \"28.553616402877697842\",\n                        \"long\": \"77.132300937131461253\"\n                    },\n                    {\n                        \"lat\": \"28.553616402877697842\",\n                        \"long\": \"77.122059062868538747\"\n                    },\n                    {\n                        \"lat\": \"28.544623597122302158\",\n                        \"long\": \"77.122059062868538747\"\n                    }\n                ]\n            }\n        },\n        {\n            \"id\": 143377,\n            \"event_time\": 1639998022,\n            \"event_type\": \"Geofence\",\n            \"started_ts\": 1639997829,\n            \"start_location\": {\n                \"lat\": 28.54375,\n                \"address\": \"2, Mahipalpur Flyover, IGI Airport Area, New Delhi, Delhi. 69 m from SK Communication pin-110037 (India)\",\n                \"long\": 77.11875\n            },\n            \"ended_ts\": 1639998022,\n            \"end_location\": {\n                \"lat\": 28.54708,\n                \"address\": \"Test Geo\",\n                \"long\": 77.1242\n            },\n            \"comments\": [],\n            \"value\": {\n                \"name\": \"test geo1\",\n                \"lat\": \"28.548376\",\n                \"long\": \"77.120761\",\n                \"radius\": 500.0,\n                \"coordinates\": [\n                    {\n                        \"lat\": \"28.543879597122302158\",\n                        \"long\": \"77.125881900993662227\"\n                    },\n                    {\n                        \"lat\": \"28.552872402877697842\",\n                        \"long\": \"77.125881900993662227\"\n                    },\n                    {\n                        \"lat\": \"28.552872402877697842\",\n                        \"long\": \"77.115640099006337773\"\n                    },\n                    {\n                        \"lat\": \"28.543879597122302158\",\n                        \"long\": \"77.115640099006337773\"\n                    }\n                ]\n            }\n        },\n        {\n            \"id\": 143032,\n            \"event_time\": 1639994312,\n            \"event_type\": \"Geofence\",\n            \"started_ts\": 1639994178,\n            \"start_location\": {\n                \"lat\": 28.54912,\n                \"address\": \"Test Geo\",\n                \"long\": 77.12718\n            },\n            \"ended_ts\": 1639994312,\n            \"end_location\": {\n                \"lat\": 28.5444,\n                \"address\": \"test geo1\",\n                \"long\": 77.11997\n            },\n            \"comments\": [],\n            \"value\": {\n                \"name\": \"test geo1\",\n                \"lat\": \"28.548376\",\n                \"long\": \"77.120761\",\n                \"radius\": 500.0,\n                \"coordinates\": [\n                    {\n                        \"lat\": \"28.543879597122302158\",\n                        \"long\": \"77.125881900993662227\"\n                    },\n                    {\n                        \"lat\": \"28.552872402877697842\",\n                        \"long\": \"77.125881900993662227\"\n                    },\n                    {\n                        \"lat\": \"28.552872402877697842\",\n                        \"long\": \"77.115640099006337773\"\n                    },\n                    {\n                        \"lat\": \"28.543879597122302158\",\n                        \"long\": \"77.115640099006337773\"\n                    }\n                ]\n            }\n        },\n        {\n            \"id\": 143025,\n            \"event_time\": 1639994256,\n            \"event_type\": \"Geofence\",\n            \"started_ts\": 1639994072,\n            \"start_location\": {\n                \"lat\": 28.55668,\n                \"address\": \"abc\",\n                \"long\": 77.13286\n            },\n            \"ended_ts\": 1639994256,\n            \"end_location\": {\n                \"lat\": 28.5461,\n                \"address\": \"Test Geo\",\n                \"long\": 77.1233\n            },\n            \"comments\": [],\n            \"value\": {\n                \"name\": \"Test Geo\",\n                \"lat\": \"28.54912\",\n                \"long\": \"77.12718\",\n                \"radius\": 500.0,\n                \"coordinates\": [\n                    {\n                        \"lat\": \"28.544623597122302158\",\n                        \"long\": \"77.132300937131461253\"\n                    },\n                    {\n                        \"lat\": \"28.553616402877697842\",\n                        \"long\": \"77.132300937131461253\"\n                    },\n                    {\n                        \"lat\": \"28.553616402877697842\",\n                        \"long\": \"77.122059062868538747\"\n                    },\n                    {\n                        \"lat\": \"28.544623597122302158\",\n                        \"long\": \"77.122059062868538747\"\n                    }\n                ]\n            }\n        },\n        {\n            \"id\": 142883,\n            \"event_time\": 1639992553,\n            \"event_type\": \"Geofence\",\n            \"started_ts\": 1639992456,\n            \"start_location\": {\n                \"lat\": 28.60438,\n                \"address\": \"R.R. Lines, Ring Rd, Delhi Cantonment, New Delhi, Delhi 110010, India\",\n                \"long\": 77.15363\n            },\n            \"ended_ts\": 1639992553,\n            \"end_location\": {\n                \"lat\": 28.59882,\n                \"address\": \"test567\",\n                \"long\": 77.1633\n            },\n            \"comments\": [],\n            \"value\": {\n                \"name\": \"test567\",\n                \"lat\": \"28.660968\",\n                \"long\": \"77.227717\",\n                \"radius\": 6964.0,\n                \"coordinates\": [\n                    {\n                        \"lat\": \"28.59834210071942445\",\n                        \"long\": \"77.29911729703437696\"\n                    },\n                    {\n                        \"lat\": \"28.72359389928057555\",\n                        \"long\": \"77.29911729703437696\"\n                    },\n                    {\n                        \"lat\": \"28.72359389928057555\",\n                        \"long\": \"77.15631670296562304\"\n                    },\n                    {\n                        \"lat\": \"28.59834210071942445\",\n                        \"long\": \"77.15631670296562304\"\n                    }\n                ]\n            }\n        },\n        {\n            \"id\": 75972,\n            \"event_time\": 1639989378,\n            \"event_type\": \"IgnitionAlert\",\n            \"started_ts\": 1639982911,\n            \"start_location\": {\n                \"lat\": 28.66808,\n                \"address\": \"pop put\",\n                \"long\": 77.23248\n            },\n            \"ended_ts\": 1639989378,\n            \"end_location\": {\n                \"lat\": 28.60652,\n                \"address\": \"Ring Road, Kandhar Lines, New Delhi, Delhi. 12 m from Delhi Metro Pillar 21 pin-110010 (India)\",\n                \"long\": 77.14277\n            },\n            \"comments\": []\n        },\n        {\n            \"id\": 142559,\n            \"event_time\": 1639989131,\n            \"event_type\": \"Geofence\",\n            \"started_ts\": 1639988956,\n            \"start_location\": {\n                \"lat\": 28.62392,\n                \"address\": \"206, CB202A, Guru Harkishan Plaza,, Ring Road, Block CB, Naraina Village, Naraina, New Delhi, Delhi 110028, India\",\n                \"long\": 77.13529\n            },\n            \"ended_ts\": 1639989131,\n            \"end_location\": {\n                \"lat\": 28.61815,\n                \"address\": \"pop put\",\n                \"long\": 77.13643\n            },\n            \"comments\": [],\n            \"value\": {\n                \"name\": \"pop put\",\n                \"lat\": \"28.662793\",\n                \"long\": \"77.186776\",\n                \"radius\": 5000.0,\n                \"coordinates\": [\n                    {\n                        \"lat\": \"28.61782897122302158\",\n                        \"long\": \"77.23804074642577808\"\n                    },\n                    {\n                        \"lat\": \"28.70775702877697842\",\n                        \"long\": \"77.23804074642577808\"\n                    },\n                    {\n                        \"lat\": \"28.70775702877697842\",\n                        \"long\": \"77.13551125357422192\"\n                    },\n                    {\n                        \"lat\": \"28.61782897122302158\",\n                        \"long\": \"77.13551125357422192\"\n                    }\n                ]\n            }\n        },\n        {\n            \"id\": 142331,\n            \"event_time\": 1639987850,\n            \"event_type\": \"Geofence\",\n            \"started_ts\": 1639986213,\n            \"start_location\": {\n                \"lat\": 28.70151,\n                \"address\": \"h\",\n                \"long\": 77.13485\n            },\n            \"ended_ts\": 1639987850,\n            \"end_location\": {\n                \"lat\": 28.66787,\n                \"address\": \"pop put\",\n                \"long\": 77.13611\n            },\n            \"comments\": [],\n            \"value\": {\n                \"name\": \"pop put\",\n                \"lat\": \"28.662793\",\n                \"long\": \"77.186776\",\n                \"radius\": 5000.0,\n                \"coordinates\": [\n                    {\n                        \"lat\": \"28.61782897122302158\",\n                        \"long\": \"77.23804074642577808\"\n                    },\n                    {\n                        \"lat\": \"28.70775702877697842\",\n                        \"long\": \"77.23804074642577808\"\n                    },\n                    {\n                        \"lat\": \"28.70775702877697842\",\n                        \"long\": \"77.13551125357422192\"\n                    },\n                    {\n                        \"lat\": \"28.61782897122302158\",\n                        \"long\": \"77.13551125357422192\"\n                    }\n                ]\n            }\n        },\n        {\n            \"id\": 142422,\n            \"event_time\": 1639987706,\n            \"event_type\": \"Geofence\",\n            \"started_ts\": 1639987297,\n            \"start_location\": {\n                \"lat\": 28.67936,\n                \"address\": \"Bird Sanctuary Noida\",\n                \"long\": 77.14192\n            },\n            \"ended_ts\": 1639987706,\n            \"end_location\": {\n                \"lat\": 28.66966,\n                \"address\": \"Punjabi Bagh Chowk\",\n                \"long\": 77.13815\n            },\n            \"comments\": [],\n            \"value\": {\n                \"name\": \"Punjabi Bagh Chowk\",\n                \"lat\": \"28.673541\",\n                \"long\": \"77.138122\",\n                \"radius\": 500.0,\n                \"coordinates\": [\n                    {\n                        \"lat\": \"28.669044597122302158\",\n                        \"long\": \"77.143248999888287548\"\n                    },\n                    {\n                        \"lat\": \"28.678037402877697842\",\n                        \"long\": \"77.143248999888287548\"\n                    },\n                    {\n                        \"lat\": \"28.678037402877697842\",\n                        \"long\": \"77.132995000111712452\"\n                    },\n                    {\n                        \"lat\": \"28.669044597122302158\",\n                        \"long\": \"77.132995000111712452\"\n                    }\n                ]\n            }\n        },\n        {\n            \"id\": 142401,\n            \"event_time\": 1639987394,\n            \"event_type\": \"Geofence\",\n            \"started_ts\": 1639987143,\n            \"start_location\": {\n                \"lat\": 28.68339,\n                \"address\": \"pop put\",\n                \"long\": 77.14678\n            },\n            \"ended_ts\": 1639987394,\n            \"end_location\": {\n                \"lat\": 28.67504,\n                \"address\": \"Punjabi Bagh Chowk\",\n                \"long\": 77.14056\n            },\n            \"comments\": [],\n            \"value\": {\n                \"name\": \"Bird Sanctuary Noida\",\n                \"lat\": \"28.67886\",\n                \"long\": \"77.14165\",\n                \"radius\": 500.0,\n                \"coordinates\": [\n                    {\n                        \"lat\": \"28.674363597122302158\",\n                        \"long\": \"77.146777259929828041\"\n                    },\n                    {\n                        \"lat\": \"28.683356402877697842\",\n                        \"long\": \"77.146777259929828041\"\n                    },\n                    {\n                        \"lat\": \"28.683356402877697842\",\n                        \"long\": \"77.136522740070171959\"\n                    },\n                    {\n                        \"lat\": \"28.674363597122302158\",\n                        \"long\": \"77.136522740070171959\"\n                    }\n                ]\n            }\n        },\n        {\n            \"id\": 142314,\n            \"event_time\": 1639986284,\n            \"event_type\": \"Geofence\",\n            \"started_ts\": 1639986040,\n            \"start_location\": {\n                \"lat\": 28.7069,\n                \"address\": \"156, Bhagwan Mahavir Marg, Sports Complex, Rohini Sector 14, New Delhi, Delhi. 34 m from Raymond pin-110085 (India)\",\n                \"long\": 77.12705\n            },\n            \"ended_ts\": 1639986284,\n            \"end_location\": {\n                \"lat\": 28.70041,\n                \"address\": \"h\",\n                \"long\": 77.13659\n            },\n            \"comments\": [],\n            \"value\": {\n                \"name\": \"h\",\n                \"lat\": \"28.703\",\n                \"long\": \"77.1362\",\n                \"coordinates\": [\n                    {\n                        \"lat\": \"28.70768060574036\",\n                        \"long\": \"77.13238145769402\"\n                    },\n                    {\n                        \"lat\": \"28.70735709435304\",\n                        \"long\": \"77.14171273902058\"\n                    },\n                    {\n                        \"lat\": \"28.704571668937064\",\n                        \"long\": \"77.14390142157673\"\n                    },\n                    {\n                        \"lat\": \"28.700788641356873\",\n                        \"long\": \"77.14407308295368\"\n                    },\n                    {\n                        \"lat\": \"28.69824772516363\",\n                        \"long\": \"77.13634832099079\"\n                    },\n                    {\n                        \"lat\": \"28.700054605237707\",\n                        \"long\": \"77.13087661460041\"\n                    },\n                    {\n                        \"lat\": \"28.70216259256227\",\n                        \"long\": \"77.12834460929035\"\n                    },\n                    {\n                        \"lat\": \"28.706190235974656\",\n                        \"long\": \"77.12920291617512\"\n                    }\n                ]\n            }\n        },\n        {\n            \"id\": 142280,\n            \"event_time\": 1639985852,\n            \"event_type\": \"Geofence\",\n            \"started_ts\": 1639985552,\n            \"start_location\": {\n                \"lat\": 28.72043,\n                \"address\": \"Parwana Vihar Apartments Hindu Temple, HL Parwana Rd, Parvana Vihar, Pocket 53, Sector 9, Rohini, Delhi, 110085, India\",\n                \"long\": 77.1221\n            },\n            \"ended_ts\": 1639985852,\n            \"end_location\": {\n                \"lat\": 28.71322,\n                \"address\": \"Rohini west\",\n                \"long\": 77.11802\n            },\n            \"comments\": [],\n            \"value\": {\n                \"name\": \"Rohini west\",\n                \"lat\": \"28.7158\",\n                \"long\": \"77.1177\",\n                \"coordinates\": [\n                    {\n                        \"lat\": \"28.719647218359555\",\n                        \"long\": \"77.11355139599493\"\n                    },\n                    {\n                        \"lat\": \"28.719308494167723\",\n                        \"long\": \"77.12016035900763\"\n                    },\n                    {\n                        \"lat\": \"28.717671311772953\",\n                        \"long\": \"77.12112595425299\"\n                    },\n                    {\n                        \"lat\": \"28.71454742138229\",\n                        \"long\": \"77.12245632992438\"\n                    },\n                    {\n                        \"lat\": \"28.71315481366937\",\n                        \"long\": \"77.12239195690802\"\n                    },\n                    {\n                        \"lat\": \"28.711931561868543\",\n                        \"long\": \"77.1206968008106\"\n                    },\n                    {\n                        \"lat\": \"28.711931561868543\",\n                        \"long\": \"77.11548258648565\"\n                    },\n                    {\n                        \"lat\": \"28.711931561868543\",\n                        \"long\": \"77.1129505811756\"\n                    },\n                    {\n                        \"lat\": \"28.71379466275888\",\n                        \"long\": \"77.11333681927374\"\n                    },\n                    {\n                        \"lat\": \"28.716335201399367\",\n                        \"long\": \"77.11342264996222\"\n                    }\n                ]\n            }\n        },\n        {\n            \"id\": 141757,\n            \"event_time\": 1639984384,\n            \"event_type\": \"Geofence\",\n            \"started_ts\": 1639978501,\n            \"start_location\": {\n                \"lat\": 28.64117,\n                \"address\": \"test567\",\n                \"long\": 77.25776\n            },\n            \"ended_ts\": 1639984384,\n            \"end_location\": {\n                \"lat\": 28.7312,\n                \"address\": \"test\",\n                \"long\": 77.18675\n            },\n            \"comments\": [],\n            \"value\": {\n                \"name\": \"test\",\n                \"lat\": \"28.686274\",\n                \"long\": \"77.221783\",\n                \"radius\": 5000.0,\n                \"coordinates\": [\n                    {\n                        \"lat\": \"28.64130997122302158\",\n                        \"long\": \"77.27305922511866595\"\n                    },\n                    {\n                        \"lat\": \"28.73123802877697842\",\n                        \"long\": \"77.27305922511866595\"\n                    },\n                    {\n                        \"lat\": \"28.73123802877697842\",\n                        \"long\": \"77.17050677488133405\"\n                    },\n                    {\n                        \"lat\": \"28.64130997122302158\",\n                        \"long\": \"77.17050677488133405\"\n                    }\n                ]\n            }\n        },\n        {\n            \"id\": 141668,\n            \"event_time\": 1639984098,\n            \"event_type\": \"Geofence\",\n            \"started_ts\": 1639977465,\n            \"start_location\": {\n                \"lat\": 28.59574,\n                \"address\": \"Sarai Kale Khan, Block A, Ganga Vihar, Sarai Kale Khan, New Delhi, Delhi 110013, India\",\n                \"long\": 77.25619\n            },\n            \"ended_ts\": 1639984098,\n            \"end_location\": {\n                \"lat\": 28.72206,\n                \"address\": \"test\",\n                \"long\": 77.21625\n            },\n            \"comments\": [],\n            \"value\": {\n                \"name\": \"test567\",\n                \"lat\": \"28.660968\",\n                \"long\": \"77.227717\",\n                \"radius\": 6964.0,\n                \"coordinates\": [\n                    {\n                        \"lat\": \"28.59834210071942445\",\n                        \"long\": \"77.29911729703437696\"\n                    },\n                    {\n                        \"lat\": \"28.72359389928057555\",\n                        \"long\": \"77.29911729703437696\"\n                    },\n                    {\n                        \"lat\": \"28.72359389928057555\",\n                        \"long\": \"77.15631670296562304\"\n                    },\n                    {\n                        \"lat\": \"28.59834210071942445\",\n                        \"long\": \"77.15631670296562304\"\n                    }\n                ]\n            }\n        },\n        {\n            \"id\": 142148,\n            \"event_time\": 1639983666,\n            \"event_type\": \"Geofence\",\n            \"started_ts\": 1639983610,\n            \"start_location\": {\n                \"lat\": 28.70806,\n                \"address\": \"test\",\n                \"long\": 77.22752\n            },\n            \"ended_ts\": 1639983666,\n            \"end_location\": {\n                \"lat\": 28.70968,\n                \"address\": \"test\",\n                \"long\": 77.22713\n            },\n            \"comments\": [],\n            \"value\": {\n                \"name\": \"Badarpur\",\n                \"lat\": \"28.70902\",\n                \"long\": \"77.22722\",\n                \"radius\": 100.0,\n                \"coordinates\": [\n                    {\n                        \"lat\": \"28.7081207194244604316\",\n                        \"long\": \"77.228245747152326929\"\n                    },\n                    {\n                        \"lat\": \"28.7099192805755395684\",\n                        \"long\": \"77.228245747152326929\"\n                    },\n                    {\n                        \"lat\": \"28.7099192805755395684\",\n                        \"long\": \"77.226194252847673071\"\n                    },\n                    {\n                        \"lat\": \"28.7081207194244604316\",\n                        \"long\": \"77.226194252847673071\"\n                    }\n                ]\n            }\n        },\n        {\n            \"id\": 141794,\n            \"event_time\": 1639983584,\n            \"event_type\": \"Geofence\",\n            \"started_ts\": 1639979103,\n            \"start_location\": {\n                \"lat\": 28.6623,\n                \"address\": \"test\",\n                \"long\": 77.23832\n            },\n            \"ended_ts\": 1639983584,\n            \"end_location\": {\n                \"lat\": 28.70645,\n                \"address\": \"pop put\",\n                \"long\": 77.22782\n            },\n            \"comments\": [],\n            \"value\": {\n                \"name\": \"pop put\",\n                \"lat\": \"28.662793\",\n                \"long\": \"77.186776\",\n                \"radius\": 5000.0,\n                \"coordinates\": [\n                    {\n                        \"lat\": \"28.61782897122302158\",\n                        \"long\": \"77.23804074642577808\"\n                    },\n                    {\n                        \"lat\": \"28.70775702877697842\",\n                        \"long\": \"77.23804074642577808\"\n                    },\n                    {\n                        \"lat\": \"28.70775702877697842\",\n                        \"long\": \"77.13551125357422192\"\n                    },\n                    {\n                        \"lat\": \"28.61782897122302158\",\n                        \"long\": \"77.13551125357422192\"\n                    }\n                ]\n            }\n        },\n        {\n            \"id\": 75866,\n            \"event_time\": 1639979304,\n            \"event_type\": \"IgnitionAlert\",\n            \"started_ts\": 1639977159,\n            \"start_location\": {\n                \"lat\": 28.58287,\n                \"address\": \"cc\",\n                \"long\": 77.26404\n            },\n            \"ended_ts\": 1639979304,\n            \"end_location\": {\n                \"lat\": 28.66727,\n                \"address\": \"pop put\",\n                \"long\": 77.23294\n            },\n            \"comments\": []\n        },\n        {\n            \"id\": 141357,\n            \"event_time\": 1639977159,\n            \"event_type\": \"Geofence\",\n            \"started_ts\": 1639973302,\n            \"start_location\": {\n                \"lat\": 28.57576,\n                \"address\": \"tripScheduletest\",\n                \"long\": 77.2632\n            },\n            \"ended_ts\": 1639977159,\n            \"end_location\": {\n                \"lat\": 28.58287,\n                \"address\": \"cc\",\n                \"long\": 77.26404\n            },\n            \"comments\": [],\n            \"value\": {\n                \"name\": \"cc\",\n                \"lat\": \"28.57868\",\n                \"long\": \"77.26911\",\n                \"radius\": 500.0,\n                \"coordinates\": [\n                    {\n                        \"lat\": \"28.574183597122302158\",\n                        \"long\": \"77.27423237404007716\"\n                    },\n                    {\n                        \"lat\": \"28.583176402877697842\",\n                        \"long\": \"77.27423237404007716\"\n                    },\n                    {\n                        \"lat\": \"28.583176402877697842\",\n                        \"long\": \"77.26398762595992284\"\n                    },\n                    {\n                        \"lat\": \"28.574183597122302158\",\n                        \"long\": \"77.26398762595992284\"\n                    }\n                ]\n            }\n        },\n        {\n            \"id\": 75691,\n            \"event_time\": 1639973551,\n            \"event_type\": \"IgnitionAlert\",\n            \"started_ts\": 1639967675,\n            \"start_location\": {\n                \"lat\": 28.52815,\n                \"address\": \"213, 2nd Floor, U. S. Complex, 120, Main Mathura Road Opposite Apollo, Hospital,, Delhi, 110076, India\",\n                \"long\": 77.28913\n            },\n            \"ended_ts\": 1639973551,\n            \"end_location\": {\n                \"lat\": 28.5818,\n                \"address\": \"Punjabi Bagh\",\n                \"long\": 77.26554\n            },\n            \"comments\": []\n        },\n        {\n            \"id\": 141358,\n            \"event_time\": 1639973526,\n            \"event_type\": \"Geofence\",\n            \"started_ts\": 1639973310,\n            \"start_location\": {\n                \"lat\": 28.57576,\n                \"address\": \"tripScheduletest\",\n                \"long\": 77.2632\n            },\n            \"ended_ts\": 1639973526,\n            \"end_location\": {\n                \"lat\": 28.5818,\n                \"address\": \"Punjabi Bagh\",\n                \"long\": 77.26554\n            },\n            \"comments\": [],\n            \"value\": {\n                \"name\": \"Punjabi Bagh\",\n                \"lat\": \"28.57868\",\n                \"long\": \"77.26911\",\n                \"radius\": 400.0,\n                \"coordinates\": [\n                    {\n                        \"lat\": \"28.575082877697841726\",\n                        \"long\": \"77.273207899232061728\"\n                    },\n                    {\n                        \"lat\": \"28.582277122302158274\",\n                        \"long\": \"77.273207899232061728\"\n                    },\n                    {\n                        \"lat\": \"28.582277122302158274\",\n                        \"long\": \"77.265012100767938272\"\n                    },\n                    {\n                        \"lat\": \"28.575082877697841726\",\n                        \"long\": \"77.265012100767938272\"\n                    }\n                ]\n            }\n        },\n        {\n            \"id\": 141360,\n            \"event_time\": 1639973412,\n            \"event_type\": \"Geofence\",\n            \"started_ts\": 1639973330,\n            \"start_location\": {\n                \"lat\": 28.57576,\n                \"address\": \"tripScheduletest\",\n                \"long\": 77.2632\n            },\n            \"ended_ts\": 1639973412,\n            \"end_location\": {\n                \"lat\": 28.57899,\n                \"address\": \"Punjabi Bagh\",\n                \"long\": 77.26679\n            },\n            \"comments\": [],\n            \"value\": {\n                \"name\": \"abbcu\",\n                \"lat\": \"28.579\",\n                \"long\": \"77.2688\",\n                \"coordinates\": [\n                    {\n                        \"lat\": \"28.579094504088154\",\n                        \"long\": \"77.2665778860653\"\n                    },\n                    {\n                        \"lat\": \"28.578642265899283\",\n                        \"long\": \"77.26545135827905\"\n                    },\n                    {\n                        \"lat\": \"28.577652988082168\",\n                        \"long\": \"77.26575176568872\"\n                    },\n                    {\n                        \"lat\": \"28.577153634793312\",\n                        \"long\": \"77.26666371675378\"\n                    },\n                    {\n                        \"lat\": \"28.577257274350114\",\n                        \"long\": \"77.26810138078577\"\n                    },\n                    {\n                        \"lat\": \"28.577455131402214\",\n                        \"long\": \"77.27042953821069\"\n                    },\n                    {\n                        \"lat\": \"28.578868385236806\",\n                        \"long\": \"77.27213542314416\"\n                    },\n                    {\n                        \"lat\": \"28.580799801434573\",\n                        \"long\": \"77.2717813715542\"\n                    },\n                    {\n                        \"lat\": \"28.580865751605366\",\n                        \"long\": \"77.26873438211328\"\n                    },\n                    {\n                        \"lat\": \"28.57949963248114\",\n                        \"long\": \"77.26750056596643\"\n                    }\n                ]\n            }\n        },\n        {\n            \"id\": 141307,\n            \"event_time\": 1639973375,\n            \"event_type\": \"Geofence\",\n            \"started_ts\": 1639972791,\n            \"start_location\": {\n                \"lat\": 28.55712,\n                \"address\": \"Kalka More, Sukhdev Vihar, Okhla, New Delhi, Delhi 110025, India\",\n                \"long\": 77.2696\n            },\n            \"ended_ts\": 1639973375,\n            \"end_location\": {\n                \"lat\": 28.57771,\n                \"address\": \"Punjabi Bagh\",\n                \"long\": 77.26611\n            },\n            \"comments\": [],\n            \"value\": {\n                \"name\": \"tripScheduletest\",\n                \"lat\": \"28.5696\",\n                \"long\": \"77.2567\",\n                \"coordinates\": [\n                    {\n                        \"lat\": \"28.57952987468353\",\n                        \"long\": \"77.25460168428954\"\n                    },\n                    {\n                        \"lat\": \"28.57919069762814\",\n                        \"long\": \"77.26387139864501\"\n                    },\n                    {\n                        \"lat\": \"28.57798472590644\",\n                        \"long\": \"77.26751920290526\"\n                    },\n                    {\n                        \"lat\": \"28.56875104675001\",\n                        \"long\": \"77.27223989077147\"\n                    },\n                    {\n                        \"lat\": \"28.5596296375278\",\n                        \"long\": \"77.26730462618407\"\n                    },\n                    {\n                        \"lat\": \"28.56113736300744\",\n                        \"long\": \"77.25121137209472\"\n                    },\n                    {\n                        \"lat\": \"28.565547336061634\",\n                        \"long\": \"77.24125501223143\"\n                    },\n                    {\n                        \"lat\": \"28.575874242122318\",\n                        \"long\": \"77.24812146730956\"\n                    }\n                ]\n            }\n        },\n        {\n            \"id\": 75540,\n            \"event_time\": 1639964070,\n            \"event_type\": \"IgnitionAlert\",\n            \"started_ts\": 1639959903,\n            \"start_location\": {\n                \"lat\": 28.61811,\n                \"address\": \"pop put\",\n                \"long\": 77.21482\n            },\n            \"ended_ts\": 1639964070,\n            \"end_location\": {\n                \"lat\": 28.52928,\n                \"address\": \"Madanpur Khadar, Pocket B, Sarita Vihar, New Delhi, Delhi 110076, India\",\n                \"long\": 77.28829\n            },\n            \"comments\": []\n        },\n        {\n            \"id\": 140546,\n            \"event_time\": 1639963464,\n            \"event_type\": \"Geofence\",\n            \"started_ts\": 1639962943,\n            \"start_location\": {\n                \"lat\": 28.58088,\n                \"address\": \"841/2 ,HPL road , Jangpura ,, Bhogal, New Delhi, Delhi 110014, India\",\n                \"long\": 77.25202\n            },\n            \"ended_ts\": 1639963464,\n            \"end_location\": {\n                \"lat\": 28.56103,\n                \"address\": \"tripScheduletest\",\n                \"long\": 77.26688\n            },\n            \"comments\": [],\n            \"value\": {\n                \"name\": \"tripScheduletest\",\n                \"lat\": \"28.5696\",\n                \"long\": \"77.2567\",\n                \"coordinates\": [\n                    {\n                        \"lat\": \"28.57952987468353\",\n                        \"long\": \"77.25460168428954\"\n                    },\n                    {\n                        \"lat\": \"28.57919069762814\",\n                        \"long\": \"77.26387139864501\"\n                    },\n                    {\n                        \"lat\": \"28.57798472590644\",\n                        \"long\": \"77.26751920290526\"\n                    },\n                    {\n                        \"lat\": \"28.56875104675001\",\n                        \"long\": \"77.27223989077147\"\n                    },\n                    {\n                        \"lat\": \"28.5596296375278\",\n                        \"long\": \"77.26730462618407\"\n                    },\n                    {\n                        \"lat\": \"28.56113736300744\",\n                        \"long\": \"77.25121137209472\"\n                    },\n                    {\n                        \"lat\": \"28.565547336061634\",\n                        \"long\": \"77.24125501223143\"\n                    },\n                    {\n                        \"lat\": \"28.575874242122318\",\n                        \"long\": \"77.24812146730956\"\n                    }\n                ]\n            }\n        },\n        {\n            \"id\": 139640,\n            \"event_time\": 1639962242,\n            \"event_type\": \"Geofence\",\n            \"started_ts\": 1639951306,\n            \"start_location\": {\n                \"lat\": 28.59558,\n                \"address\": \"Sardar Patel Marg, Delhi Cantonment, New Delhi, Delhi 110021, India\",\n                \"long\": 77.16846\n            },\n            \"ended_ts\": 1639962242,\n            \"end_location\": {\n                \"lat\": 28.59874,\n                \"address\": \"test567\",\n                \"long\": 77.23982\n            },\n            \"comments\": [],\n            \"value\": {\n                \"name\": \"test567\",\n                \"lat\": \"28.660968\",\n                \"long\": \"77.227717\",\n                \"radius\": 6964.0,\n                \"coordinates\": [\n                    {\n                        \"lat\": \"28.59834210071942445\",\n                        \"long\": \"77.29911729703437696\"\n                    },\n                    {\n                        \"lat\": \"28.72359389928057555\",\n                        \"long\": \"77.29911729703437696\"\n                    },\n                    {\n                        \"lat\": \"28.72359389928057555\",\n                        \"long\": \"77.15631670296562304\"\n                    },\n                    {\n                        \"lat\": \"28.59834210071942445\",\n                        \"long\": \"77.15631670296562304\"\n                    }\n                ]\n            }\n        },\n        {\n            \"id\": 140058,\n            \"event_time\": 1639961690,\n            \"event_type\": \"Geofence\",\n            \"started_ts\": 1639956467,\n            \"start_location\": {\n                \"lat\": 28.61721,\n                \"address\": \"test567\",\n                \"long\": 77.2127\n            },\n            \"ended_ts\": 1639961690,\n            \"end_location\": {\n                \"lat\": 28.62043,\n                \"address\": \"pop put\",\n                \"long\": 77.23164\n            },\n            \"comments\": [],\n            \"value\": {\n                \"name\": \"pop put\",\n                \"lat\": \"28.662793\",\n                \"long\": \"77.186776\",\n                \"radius\": 5000.0,\n                \"coordinates\": [\n                    {\n                        \"lat\": \"28.61782897122302158\",\n                        \"long\": \"77.23804074642577808\"\n                    },\n                    {\n                        \"lat\": \"28.70775702877697842\",\n                        \"long\": \"77.23804074642577808\"\n                    },\n                    {\n                        \"lat\": \"28.70775702877697842\",\n                        \"long\": \"77.13551125357422192\"\n                    },\n                    {\n                        \"lat\": \"28.61782897122302158\",\n                        \"long\": \"77.13551125357422192\"\n                    }\n                ]\n            }\n        },\n        {\n            \"id\": 140395,\n            \"event_time\": 1639961612,\n            \"event_type\": \"Geofence\",\n            \"started_ts\": 1639960857,\n            \"start_location\": {\n                \"lat\": 28.63125,\n                \"address\": \"pop put\",\n                \"long\": 77.22245\n            },\n            \"ended_ts\": 1639961612,\n            \"end_location\": {\n                \"lat\": 28.62209,\n                \"address\": \"pop put\",\n                \"long\": 77.23176\n            },\n            \"comments\": [],\n            \"value\": {\n                \"name\": \"zxcvbn\",\n                \"lat\": \"28.62603\",\n                \"long\": \"77.2316\",\n                \"coordinates\": [\n                    {\n                        \"lat\": \"28.621533597122302158\",\n                        \"long\": \"77.236724680240609628\"\n                    },\n                    {\n                        \"lat\": \"28.630526402877697842\",\n                        \"long\": \"77.236724680240609628\"\n                    },\n                    {\n                        \"lat\": \"28.630526402877697842\",\n                        \"long\": \"77.226475319759390372\"\n                    },\n                    {\n                        \"lat\": \"28.621533597122302158\",\n                        \"long\": \"77.226475319759390372\"\n                    }\n                ]\n            }\n        },\n        {\n            \"id\": 140386,\n            \"event_time\": 1639960968,\n            \"event_type\": \"Geofence\",\n            \"started_ts\": 1639960772,\n            \"start_location\": {\n                \"lat\": 28.63255,\n                \"address\": \"pop put\",\n                \"long\": 77.22098\n            },\n            \"ended_ts\": 1639960968,\n            \"end_location\": {\n                \"lat\": 28.626,\n                \"address\": \"pop put\",\n                \"long\": 77.23157\n            },\n            \"comments\": [],\n            \"value\": {\n                \"name\": \"qwerty1\",\n                \"lat\": \"28.62889\",\n                \"long\": \"77.22653\",\n                \"radius\": 500.0,\n                \"coordinates\": [\n                    {\n                        \"lat\": \"28.624393597122302158\",\n                        \"long\": \"77.231654819716541943\"\n                    },\n                    {\n                        \"lat\": \"28.633386402877697842\",\n                        \"long\": \"77.231654819716541943\"\n                    },\n                    {\n                        \"lat\": \"28.633386402877697842\",\n                        \"long\": \"77.221405180283458057\"\n                    },\n                    {\n                        \"lat\": \"28.624393597122302158\",\n                        \"long\": \"77.221405180283458057\"\n                    }\n                ]\n            }\n        },\n        {\n            \"id\": 75465,\n            \"event_time\": 1639956500,\n            \"event_type\": \"IgnitionAlert\",\n            \"started_ts\": 1639956203,\n            \"start_location\": {\n                \"lat\": 28.6153,\n                \"address\": \"test567\",\n                \"long\": 77.21226\n            },\n            \"ended_ts\": 1639956500,\n            \"end_location\": {\n                \"lat\": 28.61803,\n                \"address\": \"pop put\",\n                \"long\": 77.21464\n            },\n            \"comments\": []\n        },\n        {\n            \"id\": 75419,\n            \"event_time\": 1639954336,\n            \"event_type\": \"IgnitionAlert\",\n            \"started_ts\": 1639953727,\n            \"start_location\": {\n                \"lat\": 28.60801,\n                \"address\": \"test567\",\n                \"long\": 77.20558\n            },\n            \"ended_ts\": 1639954336,\n            \"end_location\": {\n                \"lat\": 28.61375,\n                \"address\": \"test567\",\n                \"long\": 77.21216\n            },\n            \"comments\": []\n        },\n        {\n            \"id\": 1426,\n            \"event_time\": 1639954331,\n            \"event_type\": \"RefuelingAlert\",\n            \"started_ts\": 1639954331,\n            \"start_location\": {\n                \"lat\": 28.61375,\n                \"address\": \"test567\",\n                \"long\": 77.21216\n            },\n            \"comments\": [],\n            \"refueled_in_liters\": 168.0,\n            \"vehicle_id\": 360,\n            \"refueled_in_percent\": 84.0\n        },\n        {\n            \"id\": 75305,\n            \"event_time\": 1639952079,\n            \"event_type\": \"IgnitionAlert\",\n            \"started_ts\": 1639947585,\n            \"start_location\": {\n                \"lat\": 28.49684,\n                \"address\": \"Gurgaon - Delhi Expy, DLF Cyber City, DLF Phase 2, Sector 24, Gurugram, Haryana 122010, India\",\n                \"long\": 77.08762\n            },\n            \"ended_ts\": 1639952079,\n            \"end_location\": {\n                \"lat\": 28.60801,\n                \"address\": \"test567\",\n                \"long\": 77.20527\n            },\n            \"comments\": []\n        },\n        {\n            \"id\": 139546,\n            \"event_time\": 1639950415,\n            \"event_type\": \"Geofence\",\n            \"started_ts\": 1639950217,\n            \"start_location\": {\n                \"lat\": 28.54482,\n                \"address\": \"test geo1\",\n                \"long\": 77.12025\n            },\n            \"ended_ts\": 1639950415,\n            \"end_location\": {\n                \"lat\": 28.55195,\n                \"address\": \"Test Geo\",\n                \"long\": 77.13051\n            },\n            \"comments\": [],\n            \"value\": {\n                \"name\": \"Test Geo\",\n                \"lat\": \"28.54912\",\n                \"long\": \"77.12718\",\n                \"radius\": 500.0,\n                \"coordinates\": [\n                    {\n                        \"lat\": \"28.544623597122302158\",\n                        \"long\": \"77.132300937131461253\"\n                    },\n                    {\n                        \"lat\": \"28.553616402877697842\",\n                        \"long\": \"77.132300937131461253\"\n                    },\n                    {\n                        \"lat\": \"28.553616402877697842\",\n                        \"long\": \"77.122059062868538747\"\n                    },\n                    {\n                        \"lat\": \"28.544623597122302158\",\n                        \"long\": \"77.122059062868538747\"\n                    }\n                ]\n            }\n        },\n        {\n            \"id\": 139537,\n            \"event_time\": 1639950320,\n            \"event_type\": \"Geofence\",\n            \"started_ts\": 1639950133,\n            \"start_location\": {\n                \"lat\": 28.54364,\n                \"address\": \"Mahipalpur Flyover, Indira Gandhi International Airport, New Delhi, Delhi 110037, India\",\n                \"long\": 77.11867\n            },\n            \"ended_ts\": 1639950320,\n            \"end_location\": {\n                \"lat\": 28.54708,\n                \"address\": \"Test Geo\",\n                \"long\": 77.1242\n            },\n            \"comments\": [],\n            \"value\": {\n                \"name\": \"test geo1\",\n                \"lat\": \"28.548376\",\n                \"long\": \"77.120761\",\n                \"radius\": 500.0,\n                \"coordinates\": [\n                    {\n                        \"lat\": \"28.543879597122302158\",\n                        \"long\": \"77.125881900993662227\"\n                    },\n                    {\n                        \"lat\": \"28.552872402877697842\",\n                        \"long\": \"77.125881900993662227\"\n                    },\n                    {\n                        \"lat\": \"28.552872402877697842\",\n                        \"long\": \"77.115640099006337773\"\n                    },\n                    {\n                        \"lat\": \"28.543879597122302158\",\n                        \"long\": \"77.115640099006337773\"\n                    }\n                ]\n            }\n        },\n        {\n            \"id\": 75169,\n            \"event_time\": 1639943982,\n            \"event_type\": \"IgnitionAlert\",\n            \"started_ts\": 1639940155,\n            \"start_location\": {\n                \"lat\": 28.62389,\n                \"address\": \"pop put\",\n                \"long\": 77.22482\n            },\n            \"ended_ts\": 1639943982,\n            \"end_location\": {\n                \"lat\": 28.49954,\n                \"address\": \"Jaipur Road, Udyog Vihar Phase 5, Gurugram, Haryana. 114 m from Gen X Technology pin-122016 (India)\",\n                \"long\": 77.09013\n            },\n            \"comments\": []\n        },\n        {\n            \"id\": 138969,\n            \"event_time\": 1639943111,\n            \"event_type\": \"Geofence\",\n            \"started_ts\": 1639942978,\n            \"start_location\": {\n                \"lat\": 28.55212,\n                \"address\": \"Test Geo\",\n                \"long\": 77.13091\n            },\n            \"ended_ts\": 1639943111,\n            \"end_location\": {\n                \"lat\": 28.54405,\n                \"address\": \"test geo1\",\n                \"long\": 77.11938\n            },\n            \"comments\": [],\n            \"value\": {\n                \"name\": \"test geo1\",\n                \"lat\": \"28.548376\",\n                \"long\": \"77.120761\",\n                \"radius\": 500.0,\n                \"coordinates\": [\n                    {\n                        \"lat\": \"28.543879597122302158\",\n                        \"long\": \"77.125881900993662227\"\n                    },\n                    {\n                        \"lat\": \"28.552872402877697842\",\n                        \"long\": \"77.125881900993662227\"\n                    },\n                    {\n                        \"lat\": \"28.552872402877697842\",\n                        \"long\": \"77.115640099006337773\"\n                    },\n                    {\n                        \"lat\": \"28.543879597122302158\",\n                        \"long\": \"77.115640099006337773\"\n                    }\n                ]\n            }\n        },\n        {\n            \"id\": 138959,\n            \"event_time\": 1639943053,\n            \"event_type\": \"Geofence\",\n            \"started_ts\": 1639942877,\n            \"start_location\": {\n                \"lat\": 28.55462,\n                \"address\": \"abc\",\n                \"long\": 77.13214\n            },\n            \"ended_ts\": 1639943053,\n            \"end_location\": {\n                \"lat\": 28.54564,\n                \"address\": \"Test Geo\",\n                \"long\": 77.12254\n            },\n            \"comments\": [],\n            \"value\": {\n                \"name\": \"Test Geo\",\n                \"lat\": \"28.54912\",\n                \"long\": \"77.12718\",\n                \"radius\": 500.0,\n                \"coordinates\": [\n                    {\n                        \"lat\": \"28.544623597122302158\",\n                        \"long\": \"77.132300937131461253\"\n                    },\n                    {\n                        \"lat\": \"28.553616402877697842\",\n                        \"long\": \"77.132300937131461253\"\n                    },\n                    {\n                        \"lat\": \"28.553616402877697842\",\n                        \"long\": \"77.122059062868538747\"\n                    },\n                    {\n                        \"lat\": \"28.544623597122302158\",\n                        \"long\": \"77.122059062868538747\"\n                    }\n                ]\n            }\n        },\n        {\n            \"id\": 138554,\n            \"event_time\": 1639941818,\n            \"event_type\": \"Geofence\",\n            \"started_ts\": 1639938296,\n            \"start_location\": {\n                \"lat\": 28.59902,\n                \"address\": \"test567\",\n                \"long\": 77.23937\n            },\n            \"ended_ts\": 1639941818,\n            \"end_location\": {\n                \"lat\": 28.60183,\n                \"address\": \"test567\",\n                \"long\": 77.18051\n            },\n            \"comments\": [],\n            \"value\": {\n                \"name\": \"test567\",\n                \"lat\": \"28.660968\",\n                \"long\": \"77.227717\",\n                \"radius\": 6964.0,\n                \"coordinates\": [\n                    {\n                        \"lat\": \"28.59834210071942445\",\n                        \"long\": \"77.29911729703437696\"\n                    },\n                    {\n                        \"lat\": \"28.72359389928057555\",\n                        \"long\": \"77.29911729703437696\"\n                    },\n                    {\n                        \"lat\": \"28.72359389928057555\",\n                        \"long\": \"77.15631670296562304\"\n                    },\n                    {\n                        \"lat\": \"28.59834210071942445\",\n                        \"long\": \"77.15631670296562304\"\n                    }\n                ]\n            }\n        },\n        {\n            \"id\": 138599,\n            \"event_time\": 1639941341,\n            \"event_type\": \"Geofence\",\n            \"started_ts\": 1639938870,\n            \"start_location\": {\n                \"lat\": 28.61569,\n                \"address\": \"test567\",\n                \"long\": 77.22944\n            },\n            \"ended_ts\": 1639941341,\n            \"end_location\": {\n                \"lat\": 28.61951,\n                \"address\": \"pop put\",\n                \"long\": 77.192\n            },\n            \"comments\": [],\n            \"value\": {\n                \"name\": \"pop put\",\n                \"lat\": \"28.662793\",\n                \"long\": \"77.186776\",\n                \"radius\": 5000.0,\n                \"coordinates\": [\n                    {\n                        \"lat\": \"28.61782897122302158\",\n                        \"long\": \"77.23804074642577808\"\n                    },\n                    {\n                        \"lat\": \"28.70775702877697842\",\n                        \"long\": \"77.23804074642577808\"\n                    },\n                    {\n                        \"lat\": \"28.70775702877697842\",\n                        \"long\": \"77.13551125357422192\"\n                    },\n                    {\n                        \"lat\": \"28.61782897122302158\",\n                        \"long\": \"77.13551125357422192\"\n                    }\n                ]\n            }\n        },\n        {\n            \"id\": 138713,\n            \"event_time\": 1639940220,\n            \"event_type\": \"Geofence\",\n            \"started_ts\": 1639940162,\n            \"start_location\": {\n                \"lat\": 28.62391,\n                \"address\": \"pop put\",\n                \"long\": 77.22481\n            },\n            \"ended_ts\": 1639940220,\n            \"end_location\": {\n                \"lat\": 28.62939,\n                \"address\": \"pop put\",\n                \"long\": 77.22161\n            },\n            \"comments\": [],\n            \"value\": {\n                \"name\": \"qwerty1\",\n                \"lat\": \"28.62889\",\n                \"long\": \"77.22653\",\n                \"radius\": 500.0,\n                \"coordinates\": [\n                    {\n                        \"lat\": \"28.624393597122302158\",\n                        \"long\": \"77.231654819716541943\"\n                    },\n                    {\n                        \"lat\": \"28.633386402877697842\",\n                        \"long\": \"77.231654819716541943\"\n                    },\n                    {\n                        \"lat\": \"28.633386402877697842\",\n                        \"long\": \"77.221405180283458057\"\n                    },\n                    {\n                        \"lat\": \"28.624393597122302158\",\n                        \"long\": \"77.221405180283458057\"\n                    }\n                ]\n            }\n        },\n        {\n            \"id\": 75014,\n            \"event_time\": 1639939161,\n            \"event_type\": \"IgnitionAlert\",\n            \"started_ts\": 1639932880,\n            \"start_location\": {\n                \"lat\": 28.65338,\n                \"address\": \"test\",\n                \"long\": 77.25065\n            },\n            \"ended_ts\": 1639939161,\n            \"end_location\": {\n                \"lat\": 28.62293,\n                \"address\": \"pop put\",\n                \"long\": 77.22529\n            },\n            \"comments\": []\n        },\n        {\n            \"id\": 138420,\n            \"event_time\": 1639937178,\n            \"event_type\": \"Geofence\",\n            \"started_ts\": 1639936588,\n            \"start_location\": {\n                \"lat\": 28.58121,\n                \"address\": \"Punjabi Bagh\",\n                \"long\": 77.27293\n            },\n            \"ended_ts\": 1639937178,\n            \"end_location\": {\n                \"lat\": 28.58221,\n                \"address\": \"Sankat Mochan Mandir Road, Pocket A, Sidhartha Nagar, New Delhi, Delhi 110024, India\",\n                \"long\": 77.26248\n            },\n            \"comments\": [],\n            \"value\": {\n                \"name\": \"cc\",\n                \"lat\": \"28.57868\",\n                \"long\": \"77.26911\",\n                \"radius\": 500.0,\n                \"coordinates\": [\n                    {\n                        \"lat\": \"28.574183597122302158\",\n                        \"long\": \"77.27423237404007716\"\n                    },\n                    {\n                        \"lat\": \"28.583176402877697842\",\n                        \"long\": \"77.27423237404007716\"\n                    },\n                    {\n                        \"lat\": \"28.583176402877697842\",\n                        \"long\": \"77.26398762595992284\"\n                    },\n                    {\n                        \"lat\": \"28.574183597122302158\",\n                        \"long\": \"77.26398762595992284\"\n                    }\n                ]\n            }\n        },\n        {\n            \"id\": 138427,\n            \"event_time\": 1639937126,\n            \"event_type\": \"Geofence\",\n            \"started_ts\": 1639936614,\n            \"start_location\": {\n                \"lat\": 28.58121,\n                \"address\": \"Punjabi Bagh\",\n                \"long\": 77.27293\n            },\n            \"ended_ts\": 1639937126,\n            \"end_location\": {\n                \"lat\": 28.58256,\n                \"address\": \"cc\",\n                \"long\": 77.26424\n            },\n            \"comments\": [],\n            \"value\": {\n                \"name\": \"Punjabi Bagh\",\n                \"lat\": \"28.57868\",\n                \"long\": \"77.26911\",\n                \"radius\": 400.0,\n                \"coordinates\": [\n                    {\n                        \"lat\": \"28.575082877697841726\",\n                        \"long\": \"77.273207899232061728\"\n                    },\n                    {\n                        \"lat\": \"28.582277122302158274\",\n                        \"long\": \"77.273207899232061728\"\n                    },\n                    {\n                        \"lat\": \"28.582277122302158274\",\n                        \"long\": \"77.265012100767938272\"\n                    },\n                    {\n                        \"lat\": \"28.575082877697841726\",\n                        \"long\": \"77.265012100767938272\"\n                    }\n                ]\n            }\n        },\n        {\n            \"id\": 138434,\n            \"event_time\": 1639937046,\n            \"event_type\": \"Geofence\",\n            \"started_ts\": 1639936708,\n            \"start_location\": {\n                \"lat\": 28.57989,\n                \"address\": \"Punjabi Bagh\",\n                \"long\": 77.26907\n            },\n            \"ended_ts\": 1639937046,\n            \"end_location\": {\n                \"lat\": 28.58131,\n                \"address\": \"Punjabi Bagh\",\n                \"long\": 77.26627\n            },\n            \"comments\": [],\n            \"value\": {\n                \"name\": \"abbcu\",\n                \"lat\": \"28.579\",\n                \"long\": \"77.2688\",\n                \"coordinates\": [\n                    {\n                        \"lat\": \"28.579094504088154\",\n                        \"long\": \"77.2665778860653\"\n                    },\n                    {\n                        \"lat\": \"28.578642265899283\",\n                        \"long\": \"77.26545135827905\"\n                    },\n                    {\n                        \"lat\": \"28.577652988082168\",\n                        \"long\": \"77.26575176568872\"\n                    },\n                    {\n                        \"lat\": \"28.577153634793312\",\n                        \"long\": \"77.26666371675378\"\n                    },\n                    {\n                        \"lat\": \"28.577257274350114\",\n                        \"long\": \"77.26810138078577\"\n                    },\n                    {\n                        \"lat\": \"28.577455131402214\",\n                        \"long\": \"77.27042953821069\"\n                    },\n                    {\n                        \"lat\": \"28.578868385236806\",\n                        \"long\": \"77.27213542314416\"\n                    },\n                    {\n                        \"lat\": \"28.580799801434573\",\n                        \"long\": \"77.2717813715542\"\n                    },\n                    {\n                        \"lat\": \"28.580865751605366\",\n                        \"long\": \"77.26873438211328\"\n                    },\n                    {\n                        \"lat\": \"28.57949963248114\",\n                        \"long\": \"77.26750056596643\"\n                    }\n                ]\n            }\n        },\n        {\n            \"id\": 138351,\n            \"event_time\": 1639936322,\n            \"event_type\": \"Geofence\",\n            \"started_ts\": 1639935715,\n            \"start_location\": {\n                \"lat\": 28.57715,\n                \"address\": \"Rose garden\",\n                \"long\": 77.31877\n            },\n            \"ended_ts\": 1639936322,\n            \"end_location\": {\n                \"lat\": 28.57622,\n                \"address\": \"DND Flyway, Yamuna Catchment Area West, New Delhi, Delhi. Pin-110014 (India)\",\n                \"long\": 77.28619\n            },\n            \"comments\": [],\n            \"value\": {\n                \"name\": \"Rose garden\",\n                \"lat\": \"28.575721\",\n                \"long\": \"77.306647\",\n                \"radius\": 1200.0,\n                \"coordinates\": [\n                    {\n                        \"lat\": \"28.56492963309352518\",\n                        \"long\": \"77.31894035225371969\"\n                    },\n                    {\n                        \"lat\": \"28.58651236690647482\",\n                        \"long\": \"77.31894035225371969\"\n                    },\n                    {\n                        \"lat\": \"28.58651236690647482\",\n                        \"long\": \"77.29435364774628031\"\n                    },\n                    {\n                        \"lat\": \"28.56492963309352518\",\n                        \"long\": \"77.29435364774628031\"\n                    }\n                ]\n            }\n        },\n        {\n            \"id\": 138361,\n            \"event_time\": 1639935935,\n            \"event_type\": \"Geofence\",\n            \"started_ts\": 1639935816,\n            \"start_location\": {\n                \"lat\": 28.57249,\n                \"address\": \"Rose garden\",\n                \"long\": 77.30991\n            },\n            \"ended_ts\": 1639935935,\n            \"end_location\": {\n                \"lat\": 28.57252,\n                \"address\": \"Rose garden\",\n                \"long\": 77.30711\n            },\n            \"comments\": [],\n            \"value\": {\n                \"name\": \"Demo ONE\",\n                \"lat\": \"28.5687\",\n                \"long\": \"77.3165\",\n                \"coordinates\": [\n                    {\n                        \"lat\": \"28.5690306451768\",\n                        \"long\": \"77.30759400657654\"\n                    },\n                    {\n                        \"lat\": \"28.57276189298572\",\n                        \"long\": \"77.30748671821594\"\n                    },\n                    {\n                        \"lat\": \"28.573704106354207\",\n                        \"long\": \"77.30980414680481\"\n                    },\n                    {\n                        \"lat\": \"28.573289533511694\",\n                        \"long\": \"77.32439536384582\"\n                    },\n                    {\n                        \"lat\": \"28.565864634181647\",\n                        \"long\": \"77.3254897051239\"\n                    },\n                    {\n                        \"lat\": \"28.56377275323057\",\n                        \"long\": \"77.30973977378845\"\n                    },\n                    {\n                        \"lat\": \"28.571555847560848\",\n                        \"long\": \"77.30950373939514\"\n                    }\n                ]\n            }\n        },\n        {\n            \"id\": 138337,\n            \"event_time\": 1639935513,\n            \"event_type\": \"Geofence\",\n            \"started_ts\": 1639935494,\n            \"start_location\": {\n                \"lat\": 28.57341,\n                \"address\": \"Subzi Mandi,Atta Noida, Captain Vijyant Thapar Marg, Pocket E, Sector 27, Noida, Uttar Pradesh 201301, India\",\n                \"long\": 77.32489\n            },\n            \"ended_ts\": 1639935513,\n            \"end_location\": {\n                \"lat\": 28.57341,\n                \"address\": \"Subzi Mandi,Atta Noida, Captain Vijyant Thapar Marg, Pocket E, Sector 27, Noida, Uttar Pradesh 201301, India\",\n                \"long\": 77.32489\n            },\n            \"comments\": [],\n            \"value\": {\n                \"name\": \"Demo ONE\",\n                \"lat\": \"28.5687\",\n                \"long\": \"77.3165\",\n                \"coordinates\": [\n                    {\n                        \"lat\": \"28.5690306451768\",\n                        \"long\": \"77.30759400657654\"\n                    },\n                    {\n                        \"lat\": \"28.57276189298572\",\n                        \"long\": \"77.30748671821594\"\n                    },\n                    {\n                        \"lat\": \"28.573704106354207\",\n                        \"long\": \"77.30980414680481\"\n                    },\n                    {\n                        \"lat\": \"28.573289533511694\",\n                        \"long\": \"77.32439536384582\"\n                    },\n                    {\n                        \"lat\": \"28.565864634181647\",\n                        \"long\": \"77.3254897051239\"\n                    },\n                    {\n                        \"lat\": \"28.56377275323057\",\n                        \"long\": \"77.30973977378845\"\n                    },\n                    {\n                        \"lat\": \"28.571555847560848\",\n                        \"long\": \"77.30950373939514\"\n                    }\n                ]\n            }\n        },\n        {\n            \"id\": 138267,\n            \"event_time\": 1639935379,\n            \"event_type\": \"Geofence\",\n            \"started_ts\": 1639934728,\n            \"start_location\": {\n                \"lat\": 28.58591,\n                \"address\": \"Rose garden\",\n                \"long\": 77.29901\n            },\n            \"ended_ts\": 1639935379,\n            \"end_location\": {\n                \"lat\": 28.57581,\n                \"address\": \"A-10, Captain Vijyant Thapar Marg, A Block, Pocket A, Sector 19, Noida, Uttar Pradesh 201301, India\",\n                \"long\": 77.3206\n            },\n            \"comments\": [],\n            \"value\": {\n                \"name\": \"Rose garden\",\n                \"lat\": \"28.575721\",\n                \"long\": \"77.306647\",\n                \"radius\": 1200.0,\n                \"coordinates\": [\n                    {\n                        \"lat\": \"28.56492963309352518\",\n                        \"long\": \"77.31894035225371969\"\n                    },\n                    {\n                        \"lat\": \"28.58651236690647482\",\n                        \"long\": \"77.31894035225371969\"\n                    },\n                    {\n                        \"lat\": \"28.58651236690647482\",\n                        \"long\": \"77.29435364774628031\"\n                    },\n                    {\n                        \"lat\": \"28.56492963309352518\",\n                        \"long\": \"77.29435364774628031\"\n                    }\n                ]\n            }\n        },\n        {\n            \"id\": 138299,\n            \"event_time\": 1639935208,\n            \"event_type\": \"Geofence\",\n            \"started_ts\": 1639935084,\n            \"start_location\": {\n                \"lat\": 28.57329,\n                \"address\": \"Rose garden\",\n                \"long\": 77.31135\n            },\n            \"ended_ts\": 1639935208,\n            \"end_location\": {\n                \"lat\": 28.57446,\n                \"address\": \"Rose garden\",\n                \"long\": 77.31466\n            },\n            \"comments\": [],\n            \"value\": {\n                \"name\": \"Demo ONE\",\n                \"lat\": \"28.5687\",\n                \"long\": \"77.3165\",\n                \"coordinates\": [\n                    {\n                        \"lat\": \"28.5690306451768\",\n                        \"long\": \"77.30759400657654\"\n                    },\n                    {\n                        \"lat\": \"28.57276189298572\",\n                        \"long\": \"77.30748671821594\"\n                    },\n                    {\n                        \"lat\": \"28.573704106354207\",\n                        \"long\": \"77.30980414680481\"\n                    },\n                    {\n                        \"lat\": \"28.573289533511694\",\n                        \"long\": \"77.32439536384582\"\n                    },\n                    {\n                        \"lat\": \"28.565864634181647\",\n                        \"long\": \"77.3254897051239\"\n                    },\n                    {\n                        \"lat\": \"28.56377275323057\",\n                        \"long\": \"77.30973977378845\"\n                    },\n                    {\n                        \"lat\": \"28.571555847560848\",\n                        \"long\": \"77.30950373939514\"\n                    }\n                ]\n            }\n        },\n        {\n            \"id\": 137833,\n            \"event_time\": 1639934461,\n            \"event_type\": \"Geofence\",\n            \"started_ts\": 1639929338,\n            \"start_location\": {\n                \"lat\": 28.72254,\n                \"address\": \"test\",\n                \"long\": 77.21567\n            },\n            \"ended_ts\": 1639934461,\n            \"end_location\": {\n                \"lat\": 28.59395,\n                \"address\": \"Mayur Vihar Extention Metro Station, Trilokpuri, Delhi, 110091, India\",\n                \"long\": 77.29388\n            },\n            \"comments\": [],\n            \"value\": {\n                \"name\": \"test567\",\n                \"lat\": \"28.660968\",\n                \"long\": \"77.227717\",\n                \"radius\": 6964.0,\n                \"coordinates\": [\n                    {\n                        \"lat\": \"28.59834210071942445\",\n                        \"long\": \"77.29911729703437696\"\n                    },\n                    {\n                        \"lat\": \"28.72359389928057555\",\n                        \"long\": \"77.29911729703437696\"\n                    },\n                    {\n                        \"lat\": \"28.72359389928057555\",\n                        \"long\": \"77.15631670296562304\"\n                    },\n                    {\n                        \"lat\": \"28.59834210071942445\",\n                        \"long\": \"77.15631670296562304\"\n                    }\n                ]\n            }\n        },\n        {\n            \"id\": 137815,\n            \"event_time\": 1639933397,\n            \"event_type\": \"Geofence\",\n            \"started_ts\": 1639929136,\n            \"start_location\": {\n                \"lat\": 28.73009,\n                \"address\": \"test\",\n                \"long\": 77.19204\n            },\n            \"ended_ts\": 1639933397,\n            \"end_location\": {\n                \"lat\": 28.63891,\n                \"address\": \"test567\",\n                \"long\": 77.26961\n            },\n            \"comments\": [],\n            \"value\": {\n                \"name\": \"test\",\n                \"lat\": \"28.686274\",\n                \"long\": \"77.221783\",\n                \"radius\": 5000.0,\n                \"coordinates\": [\n                    {\n                        \"lat\": \"28.64130997122302158\",\n                        \"long\": \"77.27305922511866595\"\n                    },\n                    {\n                        \"lat\": \"28.73123802877697842\",\n                        \"long\": \"77.27305922511866595\"\n                    },\n                    {\n                        \"lat\": \"28.73123802877697842\",\n                        \"long\": \"77.17050677488133405\"\n                    },\n                    {\n                        \"lat\": \"28.64130997122302158\",\n                        \"long\": \"77.17050677488133405\"\n                    }\n                ]\n            }\n        },\n        {\n            \"id\": 75004,\n            \"event_time\": 1639932311,\n            \"event_type\": \"IgnitionAlert\",\n            \"started_ts\": 1639932176,\n            \"start_location\": {\n                \"lat\": 28.65785,\n                \"address\": \"test\",\n                \"long\": 77.24853\n            },\n            \"ended_ts\": 1639932311,\n            \"end_location\": {\n                \"lat\": 28.6537,\n                \"address\": \"test\",\n                \"long\": 77.25018\n            },\n            \"comments\": []\n        },\n        {\n            \"id\": 137879,\n            \"event_time\": 1639930821,\n            \"event_type\": \"Geofence\",\n            \"started_ts\": 1639929813,\n            \"start_location\": {\n                \"lat\": 28.70731,\n                \"address\": \"pop put\",\n                \"long\": 77.22785\n            },\n            \"ended_ts\": 1639930821,\n            \"end_location\": {\n                \"lat\": 28.66215,\n                \"address\": \"test\",\n                \"long\": 77.23956\n            },\n            \"comments\": [],\n            \"value\": {\n                \"name\": \"pop put\",\n                \"lat\": \"28.662793\",\n                \"long\": \"77.186776\",\n                \"radius\": 5000.0,\n                \"coordinates\": [\n                    {\n                        \"lat\": \"28.61782897122302158\",\n                        \"long\": \"77.23804074642577808\"\n                    },\n                    {\n                        \"lat\": \"28.70775702877697842\",\n                        \"long\": \"77.23804074642577808\"\n                    },\n                    {\n                        \"lat\": \"28.70775702877697842\",\n                        \"long\": \"77.13551125357422192\"\n                    },\n                    {\n                        \"lat\": \"28.61782897122302158\",\n                        \"long\": \"77.13551125357422192\"\n                    }\n                ]\n            }\n        },\n        {\n            \"id\": 137874,\n            \"event_time\": 1639929794,\n            \"event_type\": \"Geofence\",\n            \"started_ts\": 1639929754,\n            \"start_location\": {\n                \"lat\": 28.70884,\n                \"address\": \"test\",\n                \"long\": 77.22739\n            },\n            \"ended_ts\": 1639929794,\n            \"end_location\": {\n                \"lat\": 28.70731,\n                \"address\": \"pop put\",\n                \"long\": 77.22785\n            },\n            \"comments\": [],\n            \"value\": {\n                \"name\": \"Badarpur\",\n                \"lat\": \"28.70902\",\n                \"long\": \"77.22722\",\n                \"radius\": 100.0,\n                \"coordinates\": [\n                    {\n                        \"lat\": \"28.7081207194244604316\",\n                        \"long\": \"77.228245747152326929\"\n                    },\n                    {\n                        \"lat\": \"28.7099192805755395684\",\n                        \"long\": \"77.228245747152326929\"\n                    },\n                    {\n                        \"lat\": \"28.7099192805755395684\",\n                        \"long\": \"77.226194252847673071\"\n                    },\n                    {\n                        \"lat\": \"28.7081207194244604316\",\n                        \"long\": \"77.226194252847673071\"\n                    }\n                ]\n            }\n        }\n    ]\n}"},{"id":"1b2149f4-219d-41c3-881d-ebec6b61fda1","name":"Response : 400","originalRequest":{"method":"GET","header":[{"key":"User-Id","value":"{{user_id}}","type":"text"},{"key":"Admin-Authentication","value":"{{admin_auth}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":""},"url":{"raw":"{{base_url}}/api/v1/alerts?vehicle_number={{vehicle_number}}&start_time={{start_time}}&end_time={{end_time}}","host":["{{base_url}}"],"path":["api","v1","alerts"],"query":[{"key":"vehicle_number","value":"{{vehicle_number}}"},{"key":"start_time","value":"{{start_time}}"},{"key":"end_time","value":"{{end_time}}"},{"key":"","value":"","disabled":true},{"key":"","value":"","disabled":true}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": false,\n    \"error\": \"Required request parameter 'start_time' for method parameter type Long is not present\"\n}"}],"_postman_id":"69e5fe0c-c3bd-4266-afe7-be471793ca69"}],"id":"dd1c3edc-140a-4de7-833b-631ceeb65daf","_postman_id":"dd1c3edc-140a-4de7-833b-631ceeb65daf","description":""},{"name":"Trips","item":[{"name":"Create New Trip","id":"480f1b97-6fe1-4e78-a775-9fbe40c3ba02","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"User-Authentication","value":"{{user_auth}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"trip\": {\n        \"vehicle\": {\n            \"id\": 668,\n            \"number\": \"SUCHITEST1\"\n        },\n        \"route\": {\n            \"id\": \"\",\n            \"name\": \"\"\n        },\n        \"custom_fields\": {},\n        \"create_new_vechicle_route\": true,\n        \"new_vehicle_route_name\": \"abc\",\n        \"should_start_at\": 7,\n        \"unique_id\": \"trip142\",\n        \"expected_distance\": 10,\n        \"trip_delay_alerts_enabled\": true,\n        \"source_name\": \"Delhi\",\n        \"destination_name\": \"Ktm\",\n        \"should_expire_old_trips\": true,\n        \"source\": {\n            \"geofence_id\": 1,\n            \"geofence_name\": \"test7\",\n            \"address\": \"testaddress\",\n            \"coordinates\": \"10.01, 10.01\",\n            \"eta\": 10,\n            \"etd\": 12,\n            \"check_point_target_option\": {\n                \"activity\": 1,\n                \"odometer_in\": 0,\n                \"odometer_out\": 0,\n                \"fuel_in\": 0,\n                \"fuel_out\": 0\n            }\n        },\n        \"destination\": {\n            \"geofence_id\": 8,\n            \"geofence_name\": \"test8\",\n            \"address\": \"testaddress\",\n            \"coordinates\": \"10.01, 10.01\",\n            \"eta\": 20,\n            \"etd\": 22,\n            \"create_gate_pass\": true,\n            \"check_point_target_option\": {\n                \"activity\": 1,\n                \"odometer_in\": 0,\n                \"odometer_out\": 0,\n                \"fuel_in\": 0,\n                \"fuel_out\": 0\n            }\n        },\n        \"cosigner\": {\n            \"id\": 1,\n            \"name\": \"test\"\n        },\n        \"check_points\": {\n            \"2\": {\n                \"geofence_id\": 7,\n                \"geofence_name\": \"vempadu\",\n                \"radius\": 100,\n                \"eta\": 1640193300,\n                \"coordinates\": \"16.69344,81.02505\",\n                \"create_gatepass\": false\n            }\n        },\n        \"expected_polyline_ids\" : [1, 2, 3]\n    }\n}","options":{"raw":{"language":"json"}}},"url":"http://marketplace.loconav.com/api/v1/trips","description":"<p><strong>Purpose</strong></p>\n<p>Create Trip.</p>\n<ol>\n<li>Create trip using route name: Pass route name in the create trip API.</li>\n<li>Create trip using Route id: Pass route id in the create trip API.</li>\n<li>Create trip using geofence: Pass geofence id in the create trip API</li>\n<li>Create Trip using the address and coordinates : Pass address and coordinates in source in the create trip API</li>\n<li>Create Trip where the destination is not known</li>\n<li>Create Trip with multiple stops/checkpoints</li>\n</ol>\n<p>Create Trip Request</p>\n<ol>\n<li>Removing the <code>vehicle</code> json object from the body of the request will create a trip request instead of trip. (Trip state will be \"requested\" instead of \"new\"). For this \"trip_request\" feature should be enabled for User.</li>\n</ol>\n<p><strong>Mandatory Fields</strong> :</p>\n<ol>\n<li>\"should_start_at\"</li>\n<li>\"source\"<ol>\n<li>\"geofence_id\" or \"geofence_name\" or a combination of (\"coordinates\" and \"address\")</li>\n</ol>\n</li>\n</ol>\n<p><strong>Validations</strong> :</p>\n<ol>\n<li>etd (Estimated Time of Departure) &gt; eta (Estimated Time of Arrival)</li>\n</ol>\n<p><strong>Cases :</strong></p>\n<ol>\n<li>Route[id, name], if either of id and name is present, it means we are using existing route. source, checkpoints, destination can be ignored.</li>\n<li>If Route[id, name] not present, send Source and CheckPoints. Destination is optional.<ol>\n<li>if create_new_vehicle_route is not present, route won't be shown on UI.</li>\n<li>if create_new vehicle route is present, route name is mandatory and will be shown on UI.</li>\n</ol>\n</li>\n</ol>\n<p><strong>Body</strong></p>\n<p>This api expects json object in trip with the following fields:</p>\n<ol>\n<li><p>\"vehicle\"</p>\n<ol>\n<li>\"id\" (DataType : Integer)</li>\n<li>\"number\" (DataType : String)</li>\n</ol>\n</li>\n<li><p>\"route\"</p>\n<ol>\n<li>\"id\" (DataType : Integer)</li>\n<li>\"name\" (DataType : String)</li>\n</ol>\n</li>\n<li><p>\"custom_fields\" (DataType : HashMap)</p>\n</li>\n<li><p>\"create_new_vechicle_route\" (DataType : Boolean)</p>\n</li>\n<li><p>\"new_vehicle_route_name\" (DataType : String)</p>\n</li>\n<li><p>\"should_start_at\" (DataType : Integer, Epoch Timestamp) # Time by which trip should be started.</p>\n</li>\n<li><p>\"expected_distance\" (DataType : Integer)</p>\n</li>\n<li><p>\"trip_delay_alerts_enabled\" (DataType : Boolean)</p>\n</li>\n<li><p>\"source_name\" (DataType : String)</p>\n</li>\n<li><p>\"destination_name\" (DataType : String)</p>\n</li>\n<li><p>\"should_expire_old_trips\" (DataType : Boolean) # Mark True if you want to expire all active trips on the vehicle.</p>\n</li>\n<li><p>\"check_points\"</p>\n<ol>\n<li>\"geofence_id\" (DataType : Integer)</li>\n<li>\"geofence_name\" (DataType : String)</li>\n<li>\"eta\" (DataType : Integer)</li>\n<li>\"etd\" (DataType : Integer)</li>\n<li>\"coordinates\" (DataType : String)</li>\n<li>\"address\" (DataType : String)</li>\n<li>\"create_gatepass\" (DataType : Boolean)</li>\n</ol>\n</li>\n<li><p>\"source\"</p>\n<ol>\n<li><p>\"geofence_id\" (DataType : Integer)</p>\n</li>\n<li><p>\"geofence_name\" (DataType : String)</p>\n</li>\n<li><p>\"radius\" (DataType: Integer) (radius in meters)</p>\n</li>\n<li><p>\"eta\" (DataType : Integer)</p>\n</li>\n<li><p>\"etd\" (DataType : Integer)</p>\n</li>\n<li><p>\"coordinates\" (DataType : String) (lat,long) ( with no trailing zeros after decimal)</p>\n</li>\n<li><p>\"address\" (DataType : String)</p>\n</li>\n<li><p>\"create_gatepass\" (DataType : Boolean)</p>\n</li>\n<li><p>\"check_point_target_option\"</p>\n<ol>\n<li>\"activity\" (DataType : Integer) # unloading: 0, loading: 1, maintenance: 2, fuel: 3, partial_loading: 4, partial_unloading: 5, parking</li>\n<li>\"odometer_in\" (DataType : Integer)</li>\n<li>\"odometer_out\" (DataType : Integer)</li>\n<li>\"fuel_in\" (DataType : Integer)</li>\n<li>\"fuel_out\" (DataType : Integer)</li>\n</ol>\n</li>\n</ol>\n</li>\n<li><p>\"destination\"</p>\n<ol>\n<li><p>\"geofence_id\" (DataType : Integer)</p>\n</li>\n<li><p>\"geofence_name\" (DataType : String)</p>\n</li>\n<li><p>\"radius\" (DataType: integer) (radius in meters)</p>\n</li>\n<li><p>\"eta\" (DataType : Integer)</p>\n</li>\n<li><p>\"etd\" (DataType : Integer)</p>\n</li>\n<li><p>\"coordinates\" (DataType : String) (lat,long) ( with no trailing zeros after decimal)</p>\n</li>\n<li><p>\"address\" (DataType : String)</p>\n</li>\n<li><p>\"create_gatepass\" (DataType : Boolean)</p>\n</li>\n<li><p>\"check_point_target_option\"</p>\n<ol>\n<li>\"activity\" (DataType : Integer)</li>\n<li>\"odometer_in\" (DataType : Integer)</li>\n<li>\"odometer_out\" (DataType : Integer)</li>\n<li>\"fuel_in\" (DataType : Integer)</li>\n<li>\"fuel_out\" (DataType : Integer)</li>\n</ol>\n</li>\n</ol>\n</li>\n<li><p>\"cosigner\"</p>\n<ol>\n<li>\"id\" (DataType : Integer) # Company Id</li>\n<li>\"name\" (DataType : String)</li>\n</ol>\n</li>\n<li><p>\"expected_polyline_ids\" (DataType : List) # List of google polyline data.</p>\n</li>\n</ol>\n","urlObject":{"protocol":"http","path":["api","v1","trips"],"host":["marketplace","loconav","com"],"query":[],"variable":[]}},"response":[{"id":"dbf99111-31b7-4ca5-9cb8-88841017ffed","name":"Response : 200","originalRequest":{"method":"POST","header":[{"key":"User-Id","value":"{{user_id}}","type":"text","disabled":true},{"key":"Admin-Authentication","value":"{{admin_auth}}","type":"text","disabled":true},{"key":"User-Authentication","value":"{{user_auth}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"trip\": {\n        \"vehicle\": {\n            \"id\": 668,\n            \"number\": \"SUCHITEST1\"\n        },\n        \"route\": {\n            \"id\": \"\",\n            \"name\": \"\"\n        },\n        \"custom_fields\": {},\n        \"create_new_vechicle_route\": true,\n        \"new_vehicle_route_name\": \"abc\",\n        \"should_start_at\": 7,\n        \"unique_id\": \"trip142\",\n        \"expected_distance\": 10,\n        \"trip_delay_alerts_enabled\": true,\n        \"source_name\": \"Delhi\",\n        \"destination_name\": \"Ktm\",\n        \"should_expire_old_trips\": true,\n        \"source\": {\n            \"geofence_id\": 1,\n            \"geofence_name\": \"test7\",\n            \"address\": \"testaddress\",\n            \"radius\": 100,\n            \"coordinates\": \"10.01, 10.01\",\n            \"eta\": 10,\n            \"etd\": 12,\n            \"check_point_target_option\": {\n                \"activity\": 1,\n                \"odometer_in\": 0,\n                \"odometer_out\": 0,\n                \"fuel_in\": 0,\n                \"fuel_out\": 0\n            }\n        },\n        \"destination\": {\n            \"geofence_id\": 8,\n            \"geofence_name\": \"test8\",\n            \"radius\": 100,\n            \"address\": \"testaddress\",\n            \"coordinates\": \"10.01, 10.01\",\n            \"eta\": 20,\n            \"etd\": 22,\n            \"create_gate_pass\": true,\n            \"check_point_target_option\": {\n                \"activity\": 1,\n                \"odometer_in\": 0,\n                \"odometer_out\": 0,\n                \"fuel_in\": 0,\n                \"fuel_out\": 0\n            }\n        },\n        \"cosigner\": {\n            \"id\": 1,\n            \"name\": \"test\"\n        },\n        \"check_points\": {\n            \"2\": {\n                \"geofence_id\": 7,\n                \"geofence_name\": \"vempadu\",\n                \"radius\": 100,\n                \"eta\": 1640193300,\n                \"coordinates\": \"16.69344,81.02505\",\n                \"create_gatepass\": false\n            }\n        },\n        \"expected_polyline_ids\" : [1, 2, 3]\n    }\n}","options":{"raw":{"language":"json"}}},"url":"http://marketplace.loconav.com/api/v1/trips"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"data\": {\n        \"id\": 17,\n        \"unique_id\": \"trip145\"\n    }\n}"},{"id":"1c78ca44-97f8-4ace-9052-db0eea3cc99c","name":"Response : 401","originalRequest":{"method":"POST","header":[{"key":"User-Id","value":"{{user_id}}","type":"text","disabled":true},{"key":"Admin-Authentication","value":"{{admin_auth}}","type":"text","disabled":true},{"key":"User-Authentication","value":"{{user_auth}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"trip\": {\n        \"vehicle\": {\n            \"id\": 668,\n            \"number\": \"SUCHITEST1\"\n        },\n        \"route\": {\n            \"id\": \"\",\n            \"name\": \"\"\n        },\n        \"custom_fields\": {},\n        \"create_new_vechicle_route\": true,\n        \"new_vehicle_route_name\": \"abc\",\n        \"should_start_at\": 7,\n        \"unique_id\": \"trip142\",\n        \"expected_distance\": 10,\n        \"trip_delay_alerts_enabled\": true,\n        \"source_name\": \"Delhi\",\n        \"destination_name\": \"Ktm\",\n        \"should_expire_old_trips\": true,\n        \"source\": {\n            \"geofence_id\": 1,\n            \"geofence_name\": \"test7\",\n            \"address\": \"testaddress\",\n            \"radius\": 100,\n            \"coordinates\": \"10.01, 10.01\",\n            \"eta\": 10,\n            \"etd\": 12,\n            \"check_point_target_option\": {\n                \"activity\": 1,\n                \"odometer_in\": 0,\n                \"odometer_out\": 0,\n                \"fuel_in\": 0,\n                \"fuel_out\": 0\n            }\n        },\n        \"destination\": {\n            \"geofence_id\": 8,\n            \"geofence_name\": \"test8\",\n            \"radius\": 100,\n            \"address\": \"testaddress\",\n            \"coordinates\": \"10.01, 10.01\",\n            \"eta\": 20,\n            \"etd\": 22,\n            \"create_gate_pass\": true,\n            \"check_point_target_option\": {\n                \"activity\": 1,\n                \"odometer_in\": 0,\n                \"odometer_out\": 0,\n                \"fuel_in\": 0,\n                \"fuel_out\": 0\n            }\n        },\n        \"cosigner\": {\n            \"id\": 1,\n            \"name\": \"test\"\n        },\n        \"check_points\": {\n            \"2\": {\n                \"geofence_id\": 7,\n                \"geofence_name\": \"vempadu\",\n                \"radius\": 100,\n                \"eta\": 1640193300,\n                \"coordinates\": \"16.69344,81.02505\",\n                \"create_gatepass\": false\n            }\n        },\n        \"expected_polyline_ids\" : [1, 2, 3]\n    }\n}","options":{"raw":{"language":"json"}}},"url":"http://marketplace.loconav.com/api/v1/trips"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"status\": false,\n    \"errors\": \"User does not have sufficient privilege to update trip. Contact your system administrator.\"\n}"},{"id":"b420bd56-d2d1-4739-98c8-352f09a4aa52","name":"Response : 403","originalRequest":{"method":"POST","header":[{"key":"User-Id","value":"{{user_id}}","type":"text","disabled":true},{"key":"Admin-Authentication","value":"{{admin_auth}}","type":"text","disabled":true},{"key":"User-Authentication","value":"{{user_auth}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"trip\": {\n        \"vehicle\": {\n            \"id\": 668,\n            \"number\": \"SUCHITEST1\"\n        },\n        \"route\": {\n            \"id\": \"\",\n            \"name\": \"\"\n        },\n        \"custom_fields\": {},\n        \"create_new_vechicle_route\": true,\n        \"new_vehicle_route_name\": \"abc\",\n        \"should_start_at\": 7,\n        \"unique_id\": \"trip142\",\n        \"expected_distance\": 10,\n        \"trip_delay_alerts_enabled\": true,\n        \"source_name\": \"Delhi\",\n        \"destination_name\": \"Ktm\",\n        \"should_expire_old_trips\": true,\n        \"source\": {\n            \"geofence_id\": 1,\n            \"geofence_name\": \"test7\",\n            \"address\": \"testaddress\",\n            \"radius\": 100,\n            \"coordinates\": \"10.01, 10.01\",\n            \"eta\": 10,\n            \"etd\": 12,\n            \"check_point_target_option\": {\n                \"activity\": 1,\n                \"odometer_in\": 0,\n                \"odometer_out\": 0,\n                \"fuel_in\": 0,\n                \"fuel_out\": 0\n            }\n        },\n        \"destination\": {\n            \"geofence_id\": 8,\n            \"geofence_name\": \"test8\",\n            \"radius\": 100,\n            \"address\": \"testaddress\",\n            \"coordinates\": \"10.01, 10.01\",\n            \"eta\": 20,\n            \"etd\": 22,\n            \"create_gate_pass\": true,\n            \"check_point_target_option\": {\n                \"activity\": 1,\n                \"odometer_in\": 0,\n                \"odometer_out\": 0,\n                \"fuel_in\": 0,\n                \"fuel_out\": 0\n            }\n        },\n        \"cosigner\": {\n            \"id\": 1,\n            \"name\": \"test\"\n        },\n        \"check_points\": {\n            \"2\": {\n                \"geofence_id\": 7,\n                \"geofence_name\": \"vempadu\",\n                \"radius\": 100,\n                \"eta\": 1640193300,\n                \"coordinates\": \"16.69344,81.02505\",\n                \"create_gatepass\": false\n            }\n        },\n        \"expected_polyline_ids\" : [1, 2, 3]\n    }\n}","options":{"raw":{"language":"json"}}},"url":"http://marketplace.loconav.com/api/v1/trips"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"status\": false,\n    \"errors\": \"Permission denied to update trip. Contact your system administrator.\"\n}"},{"id":"a8614a65-539d-4e91-a3a1-48dc80a1aa2f","name":"Response : 422","originalRequest":{"method":"POST","header":[{"key":"User-Id","value":"{{user_id}}","type":"text","disabled":true},{"key":"Admin-Authentication","value":"{{admin_auth}}","type":"text","disabled":true},{"key":"User-Authentication","value":"{{user_auth}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"trip\": {\n        \"vehicle\": {\n            \"id\": 668,\n            \"number\": \"SUCHITEST1\"\n        },\n        \"route\": {\n            \"id\": \"\",\n            \"name\": \"\"\n        },\n        \"custom_fields\": {},\n        \"create_new_vechicle_route\": true,\n        \"new_vehicle_route_name\": \"abc\",\n        \"should_start_at\": 7,\n        \"unique_id\": \"trip142\",\n        \"expected_distance\": 10,\n        \"trip_delay_alerts_enabled\": true,\n        \"source_name\": \"Delhi\",\n        \"destination_name\": \"Ktm\",\n        \"should_expire_old_trips\": true,\n        \"source\": {\n            \"geofence_id\": 1,\n            \"geofence_name\": \"test7\",\n            \"address\": \"testaddress\",\n            \"radius\": 100,\n            \"coordinates\": \"10.01, 10.01\",\n            \"eta\": 10,\n            \"etd\": 12,\n            \"check_point_target_option\": {\n                \"activity\": 1,\n                \"odometer_in\": 0,\n                \"odometer_out\": 0,\n                \"fuel_in\": 0,\n                \"fuel_out\": 0\n            }\n        },\n        \"destination\": {\n            \"geofence_id\": 8,\n            \"geofence_name\": \"test8\",\n            \"radius\": 100,\n            \"address\": \"testaddress\",\n            \"coordinates\": \"10.01, 10.01\",\n            \"eta\": 20,\n            \"etd\": 22,\n            \"create_gate_pass\": true,\n            \"check_point_target_option\": {\n                \"activity\": 1,\n                \"odometer_in\": 0,\n                \"odometer_out\": 0,\n                \"fuel_in\": 0,\n                \"fuel_out\": 0\n            }\n        },\n        \"cosigner\": {\n            \"id\": 1,\n            \"name\": \"test\"\n        },\n        \"check_points\": {\n            \"2\": {\n                \"geofence_id\": 7,\n                \"geofence_name\": \"vempadu\",\n                \"radius\": 100,\n                \"eta\": 1640193300,\n                \"coordinates\": \"16.69344,81.02505\",\n                \"create_gatepass\": false\n            }\n        },\n        \"expected_polyline_ids\" : [1, 2, 3]\n    }\n}","options":{"raw":{"language":"json"}}},"url":"http://marketplace.loconav.com/api/v1/trips"},"status":"Unprocessable Entity (WebDAV) (RFC 4918)","code":422,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"status\": false,\n    \"errors\": \"Insufficient body params!\"\n}"}],"_postman_id":"480f1b97-6fe1-4e78-a775-9fbe40c3ba02"},{"name":"Update Trip","id":"f32d68ed-4c82-443a-8446-a2c1462477de","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"User-Id","value":"{{user_id}}","type":"text"},{"key":"Admin-Authentication","value":"{{admin_auth}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"trip\": {\n        \"id\": \"13\",\n        \"action\": \"UPDATE_TRIP\",\n        \"new_vehicle_route_name\": \"abc\",\n        \"should_start_at\": 7,\n        \"expected_distance\": 20,\n        \"trip_delay_alerts_enabled\": true,\n        \"source_name\": \"Delhi\",\n        \"destination_name\": \"Ktm\",\n        \"should_expire_old_trips\": true,\n        \"check_points\": {\n            \"2\": {\n                \"geofence_id\": 7,\n                \"geofence_name\": \"vempadu\",\n                \"eta\": 1640193300,\n                \"coordinates\": \"16.69344,81.02505\",\n                \"create_gatepass\": false\n            }\n        },\n        \"source\": {\n            \"geofence_id\": 7,\n            \"geofence_name\": \"test7\",\n            \"address\": \"testaddress\",\n            \"coordinates\": \"10.01, 10.01\",\n            \"eta\": 10,\n            \"etd\": 12,\n            \"check_point_target_option\": {\n                \"activity\": 1,\n                \"odometer_in\": 0,\n                \"odometer_out\": 0,\n                \"fuel_in\": 0,\n                \"fuel_out\": 0\n            }\n        },\n        \"destination\": {\n            \"geofence_id\": 8,\n            \"geofence_name\": \"test8\",\n            \"address\": \"testaddress\",\n            \"coordinates\": \"10.01, 10.01\",\n            \"eta\": 20,\n            \"etd\": 22,\n            \"create_gate_pass\": true,\n            \"check_point_target_option\": {\n                \"activity\": 1,\n                \"odometer_in\": 0,\n                \"odometer_out\": 0,\n                \"fuel_in\": 0,\n                \"fuel_out\": 0\n            }\n        },\n        \"cosigner\": {\n            \"id\": 1,\n            \"name\": \"test\"\n        },\n        \"expected_polyline_ids\" : [1, 2, 3]\n    }\n}","options":{"raw":{"language":"json"}}},"url":"http://ind-stg-marketplace.loconav.com/api/v1/trips","description":"<p><strong>Purpose</strong></p>\n<p>Update Trip.</p>\n<ol>\n<li>Action can have these 4 values :<ol>\n<li>UPDATE_TRIP - Can update any variables<ol>\n<li>Mandatory Fields : id, action, source</li>\n</ol>\n</li>\n<li>END_TRIP -<br /> To end the trip: Only need \"id\" for this.<ol>\n<li>Mandatory Fields : id, action, source</li>\n</ol>\n</li>\n<li>PARTIAL_UPDATE_TRIP - Can be used to update \"custom_fields\" only.<ol>\n<li>Mandatory Fields : id, action, custom_fields</li>\n</ol>\n</li>\n<li>REJECT_TRIP - To reject a trip which is in requested state.<ol>\n<li>Mandatory Fields: id, action</li>\n</ol>\n</li>\n<li>START_TRIP - To start the trip: Only need \"id\" for this.<ol>\n<li>Mandatory Fields : id, action</li>\n</ol>\n</li>\n</ol>\n</li>\n</ol>\n<p><strong>Body</strong></p>\n<p>This api expects json object in trip with the following fields:</p>\n<ol>\n<li><p>\"id\" (DataType : Integer)</p>\n</li>\n<li><p>\"action\" (DataType : Enum)</p>\n</li>\n<li><p>\"new_vehicle_route_name\"</p>\n</li>\n<li><p>\"should_start_at\" (DataType : Integer)</p>\n</li>\n<li><p>\"expected_distance\" (DataType : Integer)</p>\n</li>\n<li><p>\"trip_delay_alerts_enabled\" (DataType : Boolean)</p>\n</li>\n<li><p>\"source_name\" (DataType : String)</p>\n</li>\n<li><p>\"destination_name\" (DataType : String)</p>\n</li>\n<li><p>\"should_expire_old_trips\" (DataType : Boolean)</p>\n</li>\n<li><p>\"check_points\"</p>\n<ol>\n<li>\"geofence_id\" (DataType : Integer)</li>\n<li>\"geofence_name\" (DataType : String)</li>\n<li>\"eta\" (DataType : Integer)</li>\n<li>\"coordinates\" (DataType : String)</li>\n<li>\"create_gatepass\" (DataType : Boolean)</li>\n</ol>\n</li>\n<li><p>\"source\"</p>\n<ol>\n<li><p>\"geofence_id\" (DataType : Integer)</p>\n</li>\n<li><p>\"geofence_name\" (DataType : String)</p>\n</li>\n<li><p>\"radius\" (DataType: Integer) (radius in meters)</p>\n</li>\n<li><p>\"eta\" (DataType : Integer)</p>\n</li>\n<li><p>\"etd\" (DataType : Integer)</p>\n</li>\n<li><p>\"coordinates\" (DataType : String)</p>\n</li>\n<li><p>\"create_gatepass\" (DataType : Boolean)</p>\n</li>\n<li><p>\"check_point_target_option\"</p>\n<ol>\n<li>\"activity\" (DataType : Integer)</li>\n<li>\"odometer_in\" (DataType : Integer)</li>\n<li>\"odometer_out\" (DataType : Integer)</li>\n<li>\"fuel_in\" (DataType : Integer)</li>\n<li>\"fuel_out\" (DataType : Integer)</li>\n</ol>\n</li>\n</ol>\n</li>\n<li><p>\"destination\"</p>\n<ol>\n<li><p>\"geofence_id\" (DataType : Integer)</p>\n</li>\n<li><p>\"geofence_name\" (DataType : String)</p>\n</li>\n<li><p>\"radius\" (DataType: Integer) (radius in meters)</p>\n</li>\n<li><p>\"eta\" (DataType : Integer)</p>\n</li>\n<li><p>\"etd\" (DataType : Integer)</p>\n</li>\n<li><p>\"coordinates\" (DataType : String)</p>\n</li>\n<li><p>\"create_gatepass\" (DataType : Boolean)</p>\n</li>\n<li><p>\"check_point_target_option\"</p>\n<ol>\n<li>\"activity\" (DataType : Integer)</li>\n<li>\"odometer_in\" (DataType : Integer)</li>\n<li>\"odometer_out\" (DataType : Integer)</li>\n<li>\"fuel_in\" (DataType : Integer)</li>\n<li>\"fuel_out\" (DataType : Integer)</li>\n</ol>\n</li>\n</ol>\n</li>\n<li><p>\"cosigner\"</p>\n<ol>\n<li>\"id\" (DataType : Integer)</li>\n<li>\"name\" (DataType : String)</li>\n</ol>\n</li>\n<li><p>\"expected_polyline_ids\" (DataType : List)</p>\n</li>\n</ol>\n","urlObject":{"protocol":"http","path":["api","v1","trips"],"host":["ind-stg-marketplace","loconav","com"],"query":[],"variable":[]}},"response":[{"id":"dc261405-2974-4a53-bff0-890b104d015f","name":"Response : 200","originalRequest":{"method":"PUT","header":[{"key":"User-Id","value":"{{user_id}}","type":"text","disabled":true},{"key":"Admin-Authentication","value":"{{admin_auth}}","type":"text","disabled":true},{"key":"User-Authentication","value":"{{user_auth}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"trip\": {\n        \"id\": \"13\",\n        \"action\": \"UPDATE_TRIP\",\n        \"new_vehicle_route_name\": \"abc\",\n        \"should_start_at\": 7,\n        \"check_points\": {\n            \"2\": {\n                \"geofence_id\": 7,\n                \"geofence_name\": \"vempadu\",\n                \"eta\": 1640193300,\n                \"coordinates\": \"16.69344,81.02505\",\n                \"create_gatepass\": false\n            }\n        },\n        \"expected_distance\": 20,\n        \"trip_delay_alerts_enabled\": true,\n        \"source_name\": \"Delhi\",\n        \"destination_name\": \"Ktm\",\n        \"should_expire_old_trips\": true,\n        \"source\": {\n            \"geofence_id\": 7,\n            \"geofence_name\": \"test7\",\n            \"address\": \"testaddress\",\n            \"coordinates\": \"10.01, 10.01\",\n            \"eta\": 10,\n            \"etd\": 12,\n            \"check_point_target_option\": {\n                \"activity\": 1,\n                \"odometer_in\": 0,\n                \"odometer_out\": 0,\n                \"fuel_in\": 0,\n                \"fuel_out\": 0\n            }\n        },\n        \"destination\": {\n            \"geofence_id\": 8,\n            \"geofence_name\": \"test8\",\n            \"address\": \"testaddress\",\n            \"coordinates\": \"10.01, 10.01\",\n            \"eta\": 20,\n            \"etd\": 22,\n            \"create_gate_pass\": true,\n            \"check_point_target_option\": {\n                \"activity\": 1,\n                \"odometer_in\": 0,\n                \"odometer_out\": 0,\n                \"fuel_in\": 0,\n                \"fuel_out\": 0\n            }\n        },\n        \"cosigner\": {\n            \"id\": 1,\n            \"name\": \"test\"\n        }\n    }\n}","options":{"raw":{"language":"json"}}},"url":"http://ind-stg-marketplace.loconav.com/api/v1/trips"},"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"data\": {\n        \"id\": 17,\n        \"unique_id\": \"trip145\"\n    }\n}"},{"id":"a6a6d92b-a4cd-4f0f-be76-d676712bca3c","name":"Response : 401","originalRequest":{"method":"PUT","header":[{"key":"User-Id","value":"{{user_id}}","type":"text","disabled":true},{"key":"Admin-Authentication","value":"{{admin_auth}}","type":"text","disabled":true},{"key":"User-Authentication","value":"{{user_auth}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"trip\": {\n        \"id\": \"13\",\n        \"action\": \"UPDATE_TRIP\",\n        \"new_vehicle_route_name\": \"abc\",\n        \"should_start_at\": 7,\n        \"expected_distance\": 20,\n        \"check_points\": {\n            \"2\": {\n                \"geofence_id\": 7,\n                \"geofence_name\": \"vempadu\",\n                \"eta\": 1640193300,\n                \"coordinates\": \"16.69344,81.02505\",\n                \"create_gatepass\": false\n            }\n        },\n        \"trip_delay_alerts_enabled\": true,\n        \"source_name\": \"Delhi\",\n        \"destination_name\": \"Ktm\",\n        \"should_expire_old_trips\": true,\n        \"source\": {\n            \"geofence_id\": 7,\n            \"geofence_name\": \"test7\",\n            \"address\": \"testaddress\",\n            \"coordinates\": \"10.01, 10.01\",\n            \"eta\": 10,\n            \"etd\": 12,\n            \"check_point_target_option\": {\n                \"activity\": 1,\n                \"odometer_in\": 0,\n                \"odometer_out\": 0,\n                \"fuel_in\": 0,\n                \"fuel_out\": 0\n            }\n        },\n        \"destination\": {\n            \"geofence_id\": 8,\n            \"geofence_name\": \"test8\",\n            \"address\": \"testaddress\",\n            \"coordinates\": \"10.01, 10.01\",\n            \"eta\": 20,\n            \"etd\": 22,\n            \"create_gate_pass\": true,\n            \"check_point_target_option\": {\n                \"activity\": 1,\n                \"odometer_in\": 0,\n                \"odometer_out\": 0,\n                \"fuel_in\": 0,\n                \"fuel_out\": 0\n            }\n        },\n        \"cosigner\": {\n            \"id\": 1,\n            \"name\": \"test\"\n        },\n        \"expected_polyline_ids\" : [1, 2, 3]\n    }\n}","options":{"raw":{"language":"json"}}},"url":"http://ind-stg-marketplace.loconav.com/api/v1/trips"},"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"status\": false,\n    \"errors\": \"User does not have sufficient privilege to update trip. Contact your system administrator.\"\n}"},{"id":"aff9c974-6af0-4eae-8c9a-b5f68314262b","name":"Response : 403","originalRequest":{"method":"PUT","header":[{"key":"User-Id","value":"{{user_id}}","type":"text","disabled":true},{"key":"Admin-Authentication","value":"{{admin_auth}}","type":"text","disabled":true},{"key":"User-Authentication","value":"{{user_auth}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"trip\": {\n        \"id\": \"13\",\n        \"action\": \"UPDATE_TRIP\",\n        \"new_vehicle_route_name\": \"abc\",\n        \"should_start_at\": 7,\n        \"check_points\": {\n            \"2\": {\n                \"geofence_id\": 7,\n                \"geofence_name\": \"vempadu\",\n                \"eta\": 1640193300,\n                \"coordinates\": \"16.69344,81.02505\",\n                \"create_gatepass\": false\n            }\n        },\n        \"expected_distance\": 20,\n        \"trip_delay_alerts_enabled\": true,\n        \"source_name\": \"Delhi\",\n        \"destination_name\": \"Ktm\",\n        \"should_expire_old_trips\": true,\n        \"source\": {\n            \"geofence_id\": 7,\n            \"geofence_name\": \"test7\",\n            \"address\": \"testaddress\",\n            \"coordinates\": \"10.01, 10.01\",\n            \"eta\": 10,\n            \"etd\": 12,\n            \"check_point_target_option\": {\n                \"activity\": 1,\n                \"odometer_in\": 0,\n                \"odometer_out\": 0,\n                \"fuel_in\": 0,\n                \"fuel_out\": 0\n            }\n        },\n        \"destination\": {\n            \"geofence_id\": 8,\n            \"geofence_name\": \"test8\",\n            \"address\": \"testaddress\",\n            \"coordinates\": \"10.01, 10.01\",\n            \"eta\": 20,\n            \"etd\": 22,\n            \"create_gate_pass\": true,\n            \"check_point_target_option\": {\n                \"activity\": 1,\n                \"odometer_in\": 0,\n                \"odometer_out\": 0,\n                \"fuel_in\": 0,\n                \"fuel_out\": 0\n            }\n        },\n        \"cosigner\": {\n            \"id\": 1,\n            \"name\": \"test\"\n        },\n        \"expected_polyline_ids\" : [1, 2, 3]\n    }\n}","options":{"raw":{"language":"json"}}},"url":"http://ind-stg-marketplace.loconav.com/api/v1/trips"},"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"status\": false,\n    \"errors\": \"Permission denied to update trip. Contact your system administrator.\"\n}"},{"id":"a31c150e-2691-4cdb-acdd-9ae8d0cbf3d2","name":"Response : 422","originalRequest":{"method":"PUT","header":[{"key":"User-Id","value":"{{user_id}}","type":"text","disabled":true},{"key":"Admin-Authentication","value":"{{admin_auth}}","type":"text","disabled":true},{"key":"User-Authentication","value":"{{user_auth}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"trip\": {\n        \"id\": \"13\",\n        \"action\": \"UPDATE_TRIP\",\n        \"new_vehicle_route_name\": \"abc\",\n        \"should_start_at\": 7,\n        \"check_points\": {\n            \"2\": {\n                \"geofence_id\": 7,\n                \"geofence_name\": \"vempadu\",\n                \"eta\": 1640193300,\n                \"coordinates\": \"16.69344,81.02505\",\n                \"create_gatepass\": false\n            }\n        },\n        \"expected_distance\": 20,\n        \"trip_delay_alerts_enabled\": true,\n        \"source_name\": \"Delhi\",\n        \"destination_name\": \"Ktm\",\n        \"should_expire_old_trips\": true,\n        \"source\": {\n            \"geofence_id\": 7,\n            \"geofence_name\": \"test7\",\n            \"address\": \"testaddress\",\n            \"coordinates\": \"10.01, 10.01\",\n            \"eta\": 10,\n            \"etd\": 12,\n            \"check_point_target_option\": {\n                \"activity\": 1,\n                \"odometer_in\": 0,\n                \"odometer_out\": 0,\n                \"fuel_in\": 0,\n                \"fuel_out\": 0\n            }\n        },\n        \"destination\": {\n            \"geofence_id\": 8,\n            \"geofence_name\": \"test8\",\n            \"address\": \"testaddress\",\n            \"coordinates\": \"10.01, 10.01\",\n            \"eta\": 20,\n            \"etd\": 22,\n            \"create_gate_pass\": true,\n            \"check_point_target_option\": {\n                \"activity\": 1,\n                \"odometer_in\": 0,\n                \"odometer_out\": 0,\n                \"fuel_in\": 0,\n                \"fuel_out\": 0\n            }\n        },\n        \"cosigner\": {\n            \"id\": 1,\n            \"name\": \"test\"\n        },\n        \"expected_polyline_ids\" : [1, 2, 3]\n    }\n}","options":{"raw":{"language":"json"}}},"url":"http://ind-stg-marketplace.loconav.com/api/v1/trips"},"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"status\": false,\n    \"errors\": \"Insufficient body params!\"\n}"}],"_postman_id":"f32d68ed-4c82-443a-8446-a2c1462477de"},{"name":"Delete Trip","id":"6fc7d9ec-6b27-4cfa-9d61-988abe9a259b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"User-Id","value":"{{user_id}}","type":"text"},{"key":"Admin-Authentication","value":"{{admin_auth}}","type":"text"}],"url":"http://ind-stg-marketplace.loconav.com/api/v1/trips?id=1","description":"<p>API to delete trip. Id is mandatory</p>\n","urlObject":{"protocol":"http","path":["api","v1","trips"],"host":["ind-stg-marketplace","loconav","com"],"query":[{"key":"id","value":"1"}],"variable":[]}},"response":[{"id":"92e6f6b4-e84b-448e-a89c-3af612eeddf0","name":"Response : 200","originalRequest":{"method":"DELETE","header":[{"key":"User-Id","value":"{{user_id}}","type":"text","disabled":true},{"key":"Admin-Authentication","value":"{{admin_auth}}","type":"text","disabled":true},{"key":"User-Authentication","value":"{{user_auth}}","type":"text"}],"url":{"raw":"http://ind-stg-marketplace.loconav.com/api/v1/trips?id=1","protocol":"http","host":["ind-stg-marketplace","loconav","com"],"path":["api","v1","trips"],"query":[{"key":"id","value":"1"}]}},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"data\": {\n        \"success\": true,\n        \"message\": \"successful\"\n    }\n}"},{"id":"61eb6256-7245-472f-bde1-2a369de212c6","name":"Response : 401","originalRequest":{"method":"DELETE","header":[{"key":"User-Id","value":"{{user_id}}","type":"text","disabled":true},{"key":"Admin-Authentication","value":"{{admin_auth}}","type":"text","disabled":true},{"key":"User-Authentication","value":"{{user_auth}}","type":"text"}],"url":{"raw":"http://ind-stg-marketplace.loconav.com/api/v1/trips?id=1","protocol":"http","host":["ind-stg-marketplace","loconav","com"],"path":["api","v1","trips"],"query":[{"key":"id","value":"1"}]}},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": false,\n    \"errors\": \"User does not have sufficient privilege to update trip. Contact your system administrator.\"\n}"},{"id":"8ceff657-35fe-42ee-a459-fe7b91b3daf8","name":"Response : 403","originalRequest":{"method":"DELETE","header":[{"key":"User-Id","value":"{{user_id}}","type":"text","disabled":true},{"key":"Admin-Authentication","value":"{{admin_auth}}","type":"text","disabled":true},{"key":"User-Authentication","value":"{{user_auth}}","type":"text"}],"url":{"raw":"http://ind-stg-marketplace.loconav.com/api/v1/trips?id=1","protocol":"http","host":["ind-stg-marketplace","loconav","com"],"path":["api","v1","trips"],"query":[{"key":"id","value":"1"}]}},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": false,\n    \"errors\": \"Permission denied to update trip. Contact your system administrator.\"\n}"},{"id":"7db5fb08-640e-40cd-a4de-6eadd17869ce","name":"Response : 422","originalRequest":{"method":"DELETE","header":[{"key":"User-Id","value":"{{user_id}}","type":"text","disabled":true},{"key":"Admin-Authentication","value":"{{admin_auth}}","type":"text","disabled":true},{"key":"User-Authentication","value":"{{user_auth}}","type":"text"}],"url":{"raw":"http://ind-stg-marketplace.loconav.com/api/v1/trips","protocol":"http","host":["ind-stg-marketplace","loconav","com"],"path":["api","v1","trips"],"query":[{"key":"id","value":"1","disabled":true}]}},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": false,\n    \"errors\": \"Insufficient params!\"\n}"}],"_postman_id":"6fc7d9ec-6b27-4cfa-9d61-988abe9a259b"},{"name":"Get All Trips","id":"7f48a23d-0337-4b54-9145-239e311e1e18","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"User-Authentication","value":"{{user_auth}}","type":"text"}],"url":"https://marketplace.loconav.com/api/v1/trips?page={{page}}&per_page={{per_page}}&vehicle_number={{vehicle_number}}","urlObject":{"protocol":"https","path":["api","v1","trips"],"host":["marketplace","loconav","com"],"query":[{"disabled":true,"description":{"content":"<p>optional</p>\n","type":"text/plain"},"key":"unique_id","value":"{{unique_id}}"},{"disabled":true,"description":{"content":"<p>optional, Long</p>\n","type":"text/plain"},"key":"start_time","value":"{{start_time}}"},{"disabled":true,"description":{"content":"<p>optional, Long</p>\n","type":"text/plain"},"key":"end_time","value":"{{end_time}}"},{"disabled":true,"description":{"content":"<p>optional { 1 =&gt; :initialized, 2 =&gt; :trashed, 3 =&gt; :ongoing, 4 =&gt; :delayed,  5 =&gt; :unsuccessful, 6 =&gt; :completed }</p>\n","type":"text/plain"},"key":"states","value":"{{states}}"},{"disabled":true,"description":{"content":"<p>optional</p>\n","type":"text/plain"},"key":"driver_id","value":"{{driver_id}}"},{"disabled":true,"description":{"content":"<p>optional \"should_start_at\", \"created_at\"</p>\n","type":"text/plain"},"key":"sort_column","value":"{{sort_column}}"},{"disabled":true,"description":{"content":"<p>optional \"desc\", \"asc\"</p>\n","type":"text/plain"},"key":"sort_order","value":"{{sort_order}}"},{"description":{"content":"<p>optional</p>\n","type":"text/plain"},"key":"page","value":"{{page}}"},{"description":{"content":"<p>optional</p>\n","type":"text/plain"},"key":"per_page","value":"{{per_page}}"},{"description":{"content":"<p>optional</p>\n","type":"text/plain"},"key":"vehicle_number","value":"{{vehicle_number}}"}],"variable":[]}},"response":[{"id":"e3f906d8-cf47-40d3-8a43-0466d00e3016","name":"Response : 200","originalRequest":{"method":"GET","header":[{"key":"User-Id","value":"{{user_id}}","type":"text","disabled":true},{"key":"Admin-Authentication","value":"{{admin_auth}}","type":"text","disabled":true},{"key":"User-Authentication","value":"{{user_auth}}","type":"text"}],"url":"{{base_url}}/api/v1/trips"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n  \"data\": [\n    {\n      \"id\": 175,\n      \"vehicle_number\": \"MOCKDEVICENegi01\",\n      \"vehicle_id\": 703,\n      \"unique_id\": \"geof/00059\",\n      \"should_start_ts\": 10,\n      \"start_time_ts\": 76394788659,\n      \"source\": {\n        \"id\": 768,\n        \"name\": \"RouteNegi01\",\n        \"coordinates\": \"30.89277,75.91232\",\n        \"address\": \"RouteNegi01\",\n        \"status\": \"pending\",\n        \"position\": 1,\n        \"identifier\": 0,\n        \"etd\": 10,\n        \"radius\": 495,\n        \"polygon_coordinates\": [\n          {\n            \"id\": 3741,\n            \"lat\": \"30.888318561151079136\",\n            \"polygon_id\": 577,\n            \"polygon_coordinate_version_id\": 919,\n            \"long\": \"75.917509392412121141\"\n          },\n          {\n            \"id\": 3740,\n            \"lat\": \"30.897221438848920864\",\n            \"polygon_id\": 577,\n            \"polygon_coordinate_version_id\": 919,\n            \"long\": \"75.917509392412121141\"\n          },\n          {\n            \"id\": 3739,\n            \"lat\": \"30.897221438848920864\",\n            \"polygon_id\": 577,\n            \"polygon_coordinate_version_id\": 919,\n            \"long\": \"75.907130607587878859\"\n          },\n          {\n            \"id\": 3738,\n            \"lat\": \"30.888318561151079136\",\n            \"polygon_id\": 577,\n            \"polygon_coordinate_version_id\": 919,\n            \"long\": \"75.907130607587878859\"\n          }\n        ],\n        \"create_gatepass\": false\n      },\n      \"company\": {\n        \"id\": 1,\n        \"name\": \"test\",\n        \"count\": 12\n      },\n      \"returned_unsuccessfully_at_ts\": 684736934,\n      \"end_time_ts\": 697834543,\n      \"current_cta\": {\n        \"name\": \"test checkpoint\",\n        \"cpt_id\": 42\n      },\n      \"destination\": {\n        \"id\": 771,\n        \"name\": \"RouteNegi02\",\n        \"coordinates\": \"30.83607,76.1913\",\n        \"address\": \"RouteNegi02\",\n        \"status\": \"pending\",\n        \"position\": 2,\n        \"identifier\": 2,\n        \"radius\": 500,\n        \"polygon_coordinates\": [\n          {\n            \"id\": 3745,\n            \"lat\": \"30.831573597122302158\",\n            \"polygon_id\": 578,\n            \"polygon_coordinate_version_id\": 920,\n            \"long\": \"76.196538714760150504\"\n          },\n          {\n            \"id\": 3744,\n            \"lat\": \"30.840566402877697842\",\n            \"polygon_id\": 578,\n            \"polygon_coordinate_version_id\": 920,\n            \"long\": \"76.196538714760150504\"\n          },\n          {\n            \"id\": 3743,\n            \"lat\": \"30.840566402877697842\",\n            \"polygon_id\": 578,\n            \"polygon_coordinate_version_id\": 920,\n            \"long\": \"76.186061285239849496\"\n          },\n          {\n            \"id\": 3742,\n            \"lat\": \"30.831573597122302158\",\n            \"polygon_id\": 578,\n            \"polygon_coordinate_version_id\": 920,\n            \"long\": \"76.186061285239849496\"\n          }\n        ],\n        \"create_gatepass\": false\n      },\n      \"state\": \"trashed\",\n      \"owner_type\": \"Transporter\",\n      \"owner_id\": 10,\n      \"owner_email\": \"geofast@loconav.com\",\n      \"owner_name\": \"geofast\",\n      \"creator_type\": \"User\",\n      \"creator_id\": 12,\n      \"creator_email\": \"geofast@loconav.com\",\n      \"creator_name\": \"geofast\",\n      \"transporter_name\": \"geofast\",\n      \"truck_current_location\": \"nesource01\",\n      \"custom_data\": [\n        {\n          \"name\": \"somelabel\",\n          \"value\": \"asdf\"\n        }\n      ],\n      \"check_points\": [\n        {\n          \"id\": 768,\n          \"name\": \"RouteNegi01\",\n          \"coordinates\": \"30.89277,75.91232\",\n          \"address\": \"RouteNegi01\",\n          \"status\": \"pending\",\n          \"position\": 1,\n          \"identifier\": 0,\n          \"etd\": 10,\n          \"radius\": 495,\n          \"polygon_coordinates\": [\n            {\n              \"id\": 3741,\n              \"lat\": \"30.888318561151079136\",\n              \"polygon_id\": 577,\n              \"polygon_coordinate_version_id\": 919,\n              \"long\": \"75.917509392412121141\"\n            },\n            {\n              \"id\": 3740,\n              \"lat\": \"30.897221438848920864\",\n              \"polygon_id\": 577,\n              \"polygon_coordinate_version_id\": 919,\n              \"long\": \"75.917509392412121141\"\n            },\n            {\n              \"id\": 3739,\n              \"lat\": \"30.897221438848920864\",\n              \"polygon_id\": 577,\n              \"polygon_coordinate_version_id\": 919,\n              \"long\": \"75.907130607587878859\"\n            },\n            {\n              \"id\": 3738,\n              \"lat\": \"30.888318561151079136\",\n              \"polygon_id\": 577,\n              \"polygon_coordinate_version_id\": 919,\n              \"long\": \"75.907130607587878859\"\n            }\n          ],\n          \"create_gatepass\": false\n        },\n        {\n          \"id\": 771,\n          \"name\": \"RouteNegi02\",\n          \"coordinates\": \"30.83607,76.1913\",\n          \"address\": \"RouteNegi02\",\n          \"status\": \"pending\",\n          \"position\": 2,\n          \"identifier\": 2,\n          \"radius\": 500,\n          \"polygon_coordinates\": [\n            {\n              \"id\": 3745,\n              \"lat\": \"30.831573597122302158\",\n              \"polygon_id\": 578,\n              \"polygon_coordinate_version_id\": 920,\n              \"long\": \"76.196538714760150504\"\n            },\n            {\n              \"id\": 3744,\n              \"lat\": \"30.840566402877697842\",\n              \"polygon_id\": 578,\n              \"polygon_coordinate_version_id\": 920,\n              \"long\": \"76.196538714760150504\"\n            },\n            {\n              \"id\": 3743,\n              \"lat\": \"30.840566402877697842\",\n              \"polygon_id\": 578,\n              \"polygon_coordinate_version_id\": 920,\n              \"long\": \"76.186061285239849496\"\n            },\n            {\n              \"id\": 3742,\n              \"lat\": \"30.831573597122302158\",\n              \"polygon_id\": 578,\n              \"polygon_coordinate_version_id\": 920,\n              \"long\": \"76.186061285239849496\"\n            }\n          ],\n          \"create_gatepass\": false\n        }\n      ],\n      \"driver_cta\": {\n        \"name\": \"cpt_entry\",\n        \"cpt_id\": 768\n      },\n      \"show_driver_cta\": false,\n      \"expected_distance\": 20,\n      \"trip_delay_alerts_enabled\": true\n    },\n    {\n      \"id\": 176,\n      \"vehicle_number\": \"MOCKDEVICENegi01\",\n      \"vehicle_id\": 703,\n      \"unique_id\": \"geof/00060\",\n      \"should_start_ts\": 10,\n      \"source\": {\n        \"id\": 772,\n        \"name\": \"RouteNegi01\",\n        \"coordinates\": \"30.89277,75.91232\",\n        \"address\": \"RouteNegi01\",\n        \"status\": \"pending\",\n        \"position\": 1,\n        \"identifier\": 0,\n        \"etd\": 10,\n        \"radius\": 495,\n        \"polygon_coordinates\": [\n          {\n            \"id\": 3741,\n            \"lat\": \"30.888318561151079136\",\n            \"polygon_id\": 577,\n            \"polygon_coordinate_version_id\": 919,\n            \"long\": \"75.917509392412121141\"\n          },\n          {\n            \"id\": 3740,\n            \"lat\": \"30.897221438848920864\",\n            \"polygon_id\": 577,\n            \"polygon_coordinate_version_id\": 919,\n            \"long\": \"75.917509392412121141\"\n          },\n          {\n            \"id\": 3739,\n            \"lat\": \"30.897221438848920864\",\n            \"polygon_id\": 577,\n            \"polygon_coordinate_version_id\": 919,\n            \"long\": \"75.907130607587878859\"\n          },\n          {\n            \"id\": 3738,\n            \"lat\": \"30.888318561151079136\",\n            \"polygon_id\": 577,\n            \"polygon_coordinate_version_id\": 919,\n            \"long\": \"75.907130607587878859\"\n          }\n        ],\n        \"create_gatepass\": false\n      },\n      \"destination\": {\n        \"id\": 774,\n        \"name\": \"RouteNegi02\",\n        \"coordinates\": \"30.83607,76.1913\",\n        \"address\": \"RouteNegi02\",\n        \"status\": \"pending\",\n        \"position\": 2,\n        \"identifier\": 2,\n        \"radius\": 500,\n        \"polygon_coordinates\": [\n          {\n            \"id\": 3745,\n            \"lat\": \"30.831573597122302158\",\n            \"polygon_id\": 578,\n            \"polygon_coordinate_version_id\": 920,\n            \"long\": \"76.196538714760150504\"\n          },\n          {\n            \"id\": 3744,\n            \"lat\": \"30.840566402877697842\",\n            \"polygon_id\": 578,\n            \"polygon_coordinate_version_id\": 920,\n            \"long\": \"76.196538714760150504\"\n          },\n          {\n            \"id\": 3743,\n            \"lat\": \"30.840566402877697842\",\n            \"polygon_id\": 578,\n            \"polygon_coordinate_version_id\": 920,\n            \"long\": \"76.186061285239849496\"\n          },\n          {\n            \"id\": 3742,\n            \"lat\": \"30.831573597122302158\",\n            \"polygon_id\": 578,\n            \"polygon_coordinate_version_id\": 920,\n            \"long\": \"76.186061285239849496\"\n          }\n        ],\n        \"create_gatepass\": false\n      },\n      \"state\": \"trashed\",\n      \"owner_type\": \"Transporter\",\n      \"owner_id\": 10,\n      \"owner_email\": \"geofast@loconav.com\",\n      \"owner_name\": \"geofast\",\n      \"creator_type\": \"User\",\n      \"creator_id\": 12,\n      \"creator_email\": \"geofast@loconav.com\",\n      \"creator_name\": \"geofast\",\n      \"transporter_name\": \"geofast\",\n      \"truck_current_location\": \"nesource01\",\n      \"custom_data\": [\n        {\n          \"name\": \"somelabel\",\n          \"value\": \"asdf\"\n        }\n      ],\n      \"check_points\": [\n        {\n          \"id\": 772,\n          \"name\": \"RouteNegi01\",\n          \"coordinates\": \"30.89277,75.91232\",\n          \"address\": \"RouteNegi01\",\n          \"status\": \"pending\",\n          \"position\": 1,\n          \"identifier\": 0,\n          \"etd\": 10,\n          \"radius\": 495,\n          \"polygon_coordinates\": [\n            {\n              \"id\": 3741,\n              \"lat\": \"30.888318561151079136\",\n              \"polygon_id\": 577,\n              \"polygon_coordinate_version_id\": 919,\n              \"long\": \"75.917509392412121141\"\n            },\n            {\n              \"id\": 3740,\n              \"lat\": \"30.897221438848920864\",\n              \"polygon_id\": 577,\n              \"polygon_coordinate_version_id\": 919,\n              \"long\": \"75.917509392412121141\"\n            },\n            {\n              \"id\": 3739,\n              \"lat\": \"30.897221438848920864\",\n              \"polygon_id\": 577,\n              \"polygon_coordinate_version_id\": 919,\n              \"long\": \"75.907130607587878859\"\n            },\n            {\n              \"id\": 3738,\n              \"lat\": \"30.888318561151079136\",\n              \"polygon_id\": 577,\n              \"polygon_coordinate_version_id\": 919,\n              \"long\": \"75.907130607587878859\"\n            }\n          ],\n          \"create_gatepass\": false\n        },\n        {\n          \"id\": 773,\n          \"name\": \"RouteNegi03\",\n          \"coordinates\": \"30.86236,76.02515\",\n          \"address\": \"RouteNegi03\",\n          \"status\": \"pending\",\n          \"position\": 2,\n          \"identifier\": 1,\n          \"radius\": 200,\n          \"polygon_coordinates\": [\n            {\n              \"id\": 3749,\n              \"lat\": \"30.860561438848920863\",\n              \"polygon_id\": 579,\n              \"polygon_coordinate_version_id\": 921,\n              \"long\": \"76.027246059629116001\"\n            },\n            {\n              \"id\": 3748,\n              \"lat\": \"30.864158561151079137\",\n              \"polygon_id\": 579,\n              \"polygon_coordinate_version_id\": 921,\n              \"long\": \"76.027246059629116001\"\n            },\n            {\n              \"id\": 3747,\n              \"lat\": \"30.864158561151079137\",\n              \"polygon_id\": 579,\n              \"polygon_coordinate_version_id\": 921,\n              \"long\": \"76.023053940370883999\"\n            },\n            {\n              \"id\": 3746,\n              \"lat\": \"30.860561438848920863\",\n              \"polygon_id\": 579,\n              \"polygon_coordinate_version_id\": 921,\n              \"long\": \"76.023053940370883999\"\n            }\n          ],\n          \"create_gatepass\": false\n        },\n        {\n          \"id\": 774,\n          \"name\": \"RouteNegi02\",\n          \"coordinates\": \"30.83607,76.1913\",\n          \"address\": \"RouteNegi02\",\n          \"status\": \"pending\",\n          \"position\": 2,\n          \"identifier\": 2,\n          \"radius\": 500,\n          \"polygon_coordinates\": [\n            {\n              \"id\": 3745,\n              \"lat\": \"30.831573597122302158\",\n              \"polygon_id\": 578,\n              \"polygon_coordinate_version_id\": 920,\n              \"long\": \"76.196538714760150504\"\n            },\n            {\n              \"id\": 3744,\n              \"lat\": \"30.840566402877697842\",\n              \"polygon_id\": 578,\n              \"polygon_coordinate_version_id\": 920,\n              \"long\": \"76.196538714760150504\"\n            },\n            {\n              \"id\": 3743,\n              \"lat\": \"30.840566402877697842\",\n              \"polygon_id\": 578,\n              \"polygon_coordinate_version_id\": 920,\n              \"long\": \"76.186061285239849496\"\n            },\n            {\n              \"id\": 3742,\n              \"lat\": \"30.831573597122302158\",\n              \"polygon_id\": 578,\n              \"polygon_coordinate_version_id\": 920,\n              \"long\": \"76.186061285239849496\"\n            }\n          ],\n          \"create_gatepass\": false\n        }\n      ],\n      \"driver_cta\": {\n        \"name\": \"cpt_entry\",\n        \"cpt_id\": 772\n      },\n      \"show_driver_cta\": false,\n      \"expected_distance\": 20,\n      \"trip_delay_alerts_enabled\": true\n    },\n    {\n      \"id\": 96,\n      \"vehicle_number\": \"qwerty09\",\n      \"vehicle_id\": 14,\n      \"unique_id\": \"my_trip\",\n      \"should_start_ts\": 909550860,\n      \"source\": {\n        \"id\": 579,\n        \"name\": \"abbcu\",\n        \"coordinates\": \"28.579,77.2688\",\n        \"address\": \"abbcu\",\n        \"status\": \"pending\",\n        \"position\": 1,\n        \"identifier\": 0,\n        \"polygon_coordinates\": [\n          {\n            \"id\": 1395,\n            \"lat\": \"28.579094504088154\",\n            \"polygon_id\": 207,\n            \"polygon_coordinate_version_id\": 342,\n            \"long\": \"77.2665778860653\"\n          },\n          {\n            \"id\": 1394,\n            \"lat\": \"28.578642265899283\",\n            \"polygon_id\": 207,\n            \"polygon_coordinate_version_id\": 342,\n            \"long\": \"77.26545135827905\"\n          },\n          {\n            \"id\": 1393,\n            \"lat\": \"28.577652988082168\",\n            \"polygon_id\": 207,\n            \"polygon_coordinate_version_id\": 342,\n            \"long\": \"77.26575176568872\"\n          },\n          {\n            \"id\": 1392,\n            \"lat\": \"28.577153634793312\",\n            \"polygon_id\": 207,\n            \"polygon_coordinate_version_id\": 342,\n            \"long\": \"77.26666371675378\"\n          },\n          {\n            \"id\": 1391,\n            \"lat\": \"28.577257274350114\",\n            \"polygon_id\": 207,\n            \"polygon_coordinate_version_id\": 342,\n            \"long\": \"77.26810138078577\"\n          },\n          {\n            \"id\": 1390,\n            \"lat\": \"28.577455131402214\",\n            \"polygon_id\": 207,\n            \"polygon_coordinate_version_id\": 342,\n            \"long\": \"77.27042953821069\"\n          },\n          {\n            \"id\": 1389,\n            \"lat\": \"28.578868385236806\",\n            \"polygon_id\": 207,\n            \"polygon_coordinate_version_id\": 342,\n            \"long\": \"77.27213542314416\"\n          },\n          {\n            \"id\": 1388,\n            \"lat\": \"28.580799801434573\",\n            \"polygon_id\": 207,\n            \"polygon_coordinate_version_id\": 342,\n            \"long\": \"77.2717813715542\"\n          },\n          {\n            \"id\": 1387,\n            \"lat\": \"28.580865751605366\",\n            \"polygon_id\": 207,\n            \"polygon_coordinate_version_id\": 342,\n            \"long\": \"77.26873438211328\"\n          },\n          {\n            \"id\": 1386,\n            \"lat\": \"28.57949963248114\",\n            \"polygon_id\": 207,\n            \"polygon_coordinate_version_id\": 342,\n            \"long\": \"77.26750056596643\"\n          }\n        ],\n        \"create_gatepass\": false\n      },\n      \"destination\": {\n        \"id\": 580,\n        \"name\": \"abbcu\",\n        \"coordinates\": \"28.579,77.2688\",\n        \"address\": \"abbcu\",\n        \"status\": \"pending\",\n        \"position\": 2,\n        \"identifier\": 2,\n        \"polygon_coordinates\": [\n          {\n            \"id\": 1395,\n            \"lat\": \"28.579094504088154\",\n            \"polygon_id\": 207,\n            \"polygon_coordinate_version_id\": 342,\n            \"long\": \"77.2665778860653\"\n          },\n          {\n            \"id\": 1394,\n            \"lat\": \"28.578642265899283\",\n            \"polygon_id\": 207,\n            \"polygon_coordinate_version_id\": 342,\n            \"long\": \"77.26545135827905\"\n          },\n          {\n            \"id\": 1393,\n            \"lat\": \"28.577652988082168\",\n            \"polygon_id\": 207,\n            \"polygon_coordinate_version_id\": 342,\n            \"long\": \"77.26575176568872\"\n          },\n          {\n            \"id\": 1392,\n            \"lat\": \"28.577153634793312\",\n            \"polygon_id\": 207,\n            \"polygon_coordinate_version_id\": 342,\n            \"long\": \"77.26666371675378\"\n          },\n          {\n            \"id\": 1391,\n            \"lat\": \"28.577257274350114\",\n            \"polygon_id\": 207,\n            \"polygon_coordinate_version_id\": 342,\n            \"long\": \"77.26810138078577\"\n          },\n          {\n            \"id\": 1390,\n            \"lat\": \"28.577455131402214\",\n            \"polygon_id\": 207,\n            \"polygon_coordinate_version_id\": 342,\n            \"long\": \"77.27042953821069\"\n          },\n          {\n            \"id\": 1389,\n            \"lat\": \"28.578868385236806\",\n            \"polygon_id\": 207,\n            \"polygon_coordinate_version_id\": 342,\n            \"long\": \"77.27213542314416\"\n          },\n          {\n            \"id\": 1388,\n            \"lat\": \"28.580799801434573\",\n            \"polygon_id\": 207,\n            \"polygon_coordinate_version_id\": 342,\n            \"long\": \"77.2717813715542\"\n          },\n          {\n            \"id\": 1387,\n            \"lat\": \"28.580865751605366\",\n            \"polygon_id\": 207,\n            \"polygon_coordinate_version_id\": 342,\n            \"long\": \"77.26873438211328\"\n          },\n          {\n            \"id\": 1386,\n            \"lat\": \"28.57949963248114\",\n            \"polygon_id\": 207,\n            \"polygon_coordinate_version_id\": 342,\n            \"long\": \"77.26750056596643\"\n          }\n        ],\n        \"create_gatepass\": false\n      },\n      \"state\": \"initialized\",\n      \"owner_type\": \"Transporter\",\n      \"owner_id\": 10,\n      \"owner_email\": \"geofast@loconav.com\",\n      \"owner_name\": \"geofast\",\n      \"creator_type\": \"User\",\n      \"creator_id\": 12,\n      \"creator_email\": \"geofast@loconav.com\",\n      \"creator_name\": \"geofast\",\n      \"transporter_name\": \"geofast\",\n      \"truck_current_location\": \"DESTINATION02\",\n      \"custom_data\": [\n        \n      ],\n      \"check_points\": [\n        {\n          \"id\": 579,\n          \"name\": \"abbcu\",\n          \"coordinates\": \"28.579,77.2688\",\n          \"address\": \"abbcu\",\n          \"status\": \"pending\",\n          \"position\": 1,\n          \"identifier\": 0,\n          \"polygon_coordinates\": [\n            {\n              \"id\": 1395,\n              \"lat\": \"28.579094504088154\",\n              \"polygon_id\": 207,\n              \"polygon_coordinate_version_id\": 342,\n              \"long\": \"77.2665778860653\"\n            },\n            {\n              \"id\": 1394,\n              \"lat\": \"28.578642265899283\",\n              \"polygon_id\": 207,\n              \"polygon_coordinate_version_id\": 342,\n              \"long\": \"77.26545135827905\"\n            },\n            {\n              \"id\": 1393,\n              \"lat\": \"28.577652988082168\",\n              \"polygon_id\": 207,\n              \"polygon_coordinate_version_id\": 342,\n              \"long\": \"77.26575176568872\"\n            },\n            {\n              \"id\": 1392,\n              \"lat\": \"28.577153634793312\",\n              \"polygon_id\": 207,\n              \"polygon_coordinate_version_id\": 342,\n              \"long\": \"77.26666371675378\"\n            },\n            {\n              \"id\": 1391,\n              \"lat\": \"28.577257274350114\",\n              \"polygon_id\": 207,\n              \"polygon_coordinate_version_id\": 342,\n              \"long\": \"77.26810138078577\"\n            },\n            {\n              \"id\": 1390,\n              \"lat\": \"28.577455131402214\",\n              \"polygon_id\": 207,\n              \"polygon_coordinate_version_id\": 342,\n              \"long\": \"77.27042953821069\"\n            },\n            {\n              \"id\": 1389,\n              \"lat\": \"28.578868385236806\",\n              \"polygon_id\": 207,\n              \"polygon_coordinate_version_id\": 342,\n              \"long\": \"77.27213542314416\"\n            },\n            {\n              \"id\": 1388,\n              \"lat\": \"28.580799801434573\",\n              \"polygon_id\": 207,\n              \"polygon_coordinate_version_id\": 342,\n              \"long\": \"77.2717813715542\"\n            },\n            {\n              \"id\": 1387,\n              \"lat\": \"28.580865751605366\",\n              \"polygon_id\": 207,\n              \"polygon_coordinate_version_id\": 342,\n              \"long\": \"77.26873438211328\"\n            },\n            {\n              \"id\": 1386,\n              \"lat\": \"28.57949963248114\",\n              \"polygon_id\": 207,\n              \"polygon_coordinate_version_id\": 342,\n              \"long\": \"77.26750056596643\"\n            }\n          ],\n          \"create_gatepass\": false\n        },\n        {\n          \"id\": 580,\n          \"name\": \"abbcu\",\n          \"coordinates\": \"28.579,77.2688\",\n          \"address\": \"abbcu\",\n          \"status\": \"pending\",\n          \"position\": 2,\n          \"identifier\": 2,\n          \"polygon_coordinates\": [\n            {\n              \"id\": 1395,\n              \"lat\": \"28.579094504088154\",\n              \"polygon_id\": 207,\n              \"polygon_coordinate_version_id\": 342,\n              \"long\": \"77.2665778860653\"\n            },\n            {\n              \"id\": 1394,\n              \"lat\": \"28.578642265899283\",\n              \"polygon_id\": 207,\n              \"polygon_coordinate_version_id\": 342,\n              \"long\": \"77.26545135827905\"\n            },\n            {\n              \"id\": 1393,\n              \"lat\": \"28.577652988082168\",\n              \"polygon_id\": 207,\n              \"polygon_coordinate_version_id\": 342,\n              \"long\": \"77.26575176568872\"\n            },\n            {\n              \"id\": 1392,\n              \"lat\": \"28.577153634793312\",\n              \"polygon_id\": 207,\n              \"polygon_coordinate_version_id\": 342,\n              \"long\": \"77.26666371675378\"\n            },\n            {\n              \"id\": 1391,\n              \"lat\": \"28.577257274350114\",\n              \"polygon_id\": 207,\n              \"polygon_coordinate_version_id\": 342,\n              \"long\": \"77.26810138078577\"\n            },\n            {\n              \"id\": 1390,\n              \"lat\": \"28.577455131402214\",\n              \"polygon_id\": 207,\n              \"polygon_coordinate_version_id\": 342,\n              \"long\": \"77.27042953821069\"\n            },\n            {\n              \"id\": 1389,\n              \"lat\": \"28.578868385236806\",\n              \"polygon_id\": 207,\n              \"polygon_coordinate_version_id\": 342,\n              \"long\": \"77.27213542314416\"\n            },\n            {\n              \"id\": 1388,\n              \"lat\": \"28.580799801434573\",\n              \"polygon_id\": 207,\n              \"polygon_coordinate_version_id\": 342,\n              \"long\": \"77.2717813715542\"\n            },\n            {\n              \"id\": 1387,\n              \"lat\": \"28.580865751605366\",\n              \"polygon_id\": 207,\n              \"polygon_coordinate_version_id\": 342,\n              \"long\": \"77.26873438211328\"\n            },\n            {\n              \"id\": 1386,\n              \"lat\": \"28.57949963248114\",\n              \"polygon_id\": 207,\n              \"polygon_coordinate_version_id\": 342,\n              \"long\": \"77.26750056596643\"\n            }\n          ],\n          \"create_gatepass\": false\n        }\n      ],\n      \"driver_cta\": {\n        \"name\": \"trip_start\"\n      },\n      \"show_driver_cta\": false\n    }\n  ],\n  \"pagination\": {\n    \"per_page\": 10,\n    \"current_page\": 0\n  }\n}"},{"id":"0043308a-2dcb-4e77-818a-f91579ddaf35","name":"Response : 401","originalRequest":{"method":"GET","header":[{"key":"User-Id","value":"{{user_id}}","type":"text","disabled":true},{"key":"Admin-Authentication","value":"{{admin_auth}}","type":"text","disabled":true},{"key":"User-Authentication","value":"{{user_auth}}","type":"text"}],"url":"http://ind-stg-marketplace.loconav.com/api/v1/trips"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": false,\n    \"errors\": \"User does not have sufficient privilege to get trip. Contact your system administrator.\"\n}"},{"id":"3595f1eb-5b66-492d-86aa-c9030eaa27c5","name":"Response : 403","originalRequest":{"method":"GET","header":[{"key":"User-Id","value":"{{user_id}}","type":"text","disabled":true},{"key":"Admin-Authentication","value":"{{admin_auth}}","type":"text","disabled":true},{"key":"User-Authentication","value":"{{user_auth}}","type":"text"}],"url":"http://ind-stg-marketplace.loconav.com/api/v1/trips"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": false,\n    \"errors\": \"Permission denied to get trip. Contact your system administrator.\"\n}"}],"_postman_id":"7f48a23d-0337-4b54-9145-239e311e1e18"},{"name":"Get Trip by Id","id":"6d409e5d-673f-4efc-8613-923173b3c39f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"User-Authentication","value":"{{user_auth}}","type":"text"}],"url":"{{base_url}}/api/v1/trips/:id","urlObject":{"path":["api","v1","trips",":id"],"host":["{{base_url}}"],"query":[],"variable":[{"type":"any","value":null,"key":"id"}]}},"response":[{"id":"5a7d9033-fe85-4688-b751-1a170e00d9b8","name":"Response : 200","originalRequest":{"method":"GET","header":[{"key":"User-Id","value":"{{user_id}}","type":"text","disabled":true},{"key":"Admin-Authentication","value":"{{admin_auth}}","type":"text","disabled":true},{"key":"User-Authentication","value":"{{user_auth}}","type":"text"}],"url":{"raw":"{{base_url}}/api/v1/trips/:id","host":["{{base_url}}"],"path":["api","v1","trips",":id"],"variable":[{"key":"id","value":null}]}},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"id\": 175,\n            \"vehicle_number\": \"MOCKDEVICENegi01\",\n            \"vehicle_id\": 703,\n            \"unique_id\": \"geof/00059\",\n            \"should_start_ts\": 10,\n            \"start_time_for_ui_ts\":769437694,\n            \"end_time_for_ui_ts\":98437807834,\n            \"source\": {\n                \"id\": 768,\n                \"name\": \"RouteNegi01\",\n                \"coordinates\": \"30.89277,75.91232\",\n                \"address\": \"RouteNegi01\",\n                \"status\": \"pending\",\n                \"position\": 1,\n                \"identifier\": 0,\n                \"etd\": 10,\n                \"radius\": 495.0,\n                \"polygon_coordinates\": [\n                    {\n                        \"id\": 3741,\n                        \"lat\": \"30.888318561151079136\",\n                        \"polygon_id\": 577,\n                        \"polygon_coordinate_version_id\": 919,\n                        \"long\": \"75.917509392412121141\"\n                    },\n                    {\n                        \"id\": 3740,\n                        \"lat\": \"30.897221438848920864\",\n                        \"polygon_id\": 577,\n                        \"polygon_coordinate_version_id\": 919,\n                        \"long\": \"75.917509392412121141\"\n                    },\n                    {\n                        \"id\": 3739,\n                        \"lat\": \"30.897221438848920864\",\n                        \"polygon_id\": 577,\n                        \"polygon_coordinate_version_id\": 919,\n                        \"long\": \"75.907130607587878859\"\n                    },\n                    {\n                        \"id\": 3738,\n                        \"lat\": \"30.888318561151079136\",\n                        \"polygon_id\": 577,\n                        \"polygon_coordinate_version_id\": 919,\n                        \"long\": \"75.907130607587878859\"\n                    }\n                ],\n                \"create_gatepass\": false\n            },\n            \"destination\": {\n                \"id\": 771,\n                \"name\": \"RouteNegi02\",\n                \"coordinates\": \"30.83607,76.1913\",\n                \"address\": \"RouteNegi02\",\n                \"status\": \"pending\",\n                \"position\": 2,\n                \"identifier\": 2,\n                \"radius\": 500.0,\n                \"polygon_coordinates\": [\n                    {\n                        \"id\": 3745,\n                        \"lat\": \"30.831573597122302158\",\n                        \"polygon_id\": 578,\n                        \"polygon_coordinate_version_id\": 920,\n                        \"long\": \"76.196538714760150504\"\n                    },\n                    {\n                        \"id\": 3744,\n                        \"lat\": \"30.840566402877697842\",\n                        \"polygon_id\": 578,\n                        \"polygon_coordinate_version_id\": 920,\n                        \"long\": \"76.196538714760150504\"\n                    },\n                    {\n                        \"id\": 3743,\n                        \"lat\": \"30.840566402877697842\",\n                        \"polygon_id\": 578,\n                        \"polygon_coordinate_version_id\": 920,\n                        \"long\": \"76.186061285239849496\"\n                    },\n                    {\n                        \"id\": 3742,\n                        \"lat\": \"30.831573597122302158\",\n                        \"polygon_id\": 578,\n                        \"polygon_coordinate_version_id\": 920,\n                        \"long\": \"76.186061285239849496\"\n                    }\n                ],\n                \"create_gatepass\": false\n            },\n            \"state\": \"trashed\",\n            \"owner_type\": \"Transporter\",\n            \"owner_id\": 10,\n            \"owner_email\": \"geofast@loconav.com\",\n            \"owner_name\": \"geofast\",\n            \"creator_type\": \"User\",\n            \"creator_id\": 12,\n            \"creator_email\": \"geofast@loconav.com\",\n            \"creator_name\": \"geofast\",\n            \"transporter_name\": \"geofast\",\n            \"truck_current_location\": \"nesource01\",\n            \"custom_data\": [\n                {\n                    \"name\": \"somelabel\",\n                    \"value\": \"asdf\"\n                }\n            ],\n            \"check_points\": [\n                {\n                    \"id\": 768,\n                    \"name\": \"RouteNegi01\",\n                    \"coordinates\": \"30.89277,75.91232\",\n                    \"address\": \"RouteNegi01\",\n                    \"status\": \"pending\",\n                    \"position\": 1,\n                    \"identifier\": 0,\n                    \"etd\": 10,\n                    \"radius\": 495.0,\n                    \"polygon_coordinates\": [\n                        {\n                            \"id\": 3741,\n                            \"lat\": \"30.888318561151079136\",\n                            \"polygon_id\": 577,\n                            \"polygon_coordinate_version_id\": 919,\n                            \"long\": \"75.917509392412121141\"\n                        },\n                        {\n                            \"id\": 3740,\n                            \"lat\": \"30.897221438848920864\",\n                            \"polygon_id\": 577,\n                            \"polygon_coordinate_version_id\": 919,\n                            \"long\": \"75.917509392412121141\"\n                        },\n                        {\n                            \"id\": 3739,\n                            \"lat\": \"30.897221438848920864\",\n                            \"polygon_id\": 577,\n                            \"polygon_coordinate_version_id\": 919,\n                            \"long\": \"75.907130607587878859\"\n                        },\n                        {\n                            \"id\": 3738,\n                            \"lat\": \"30.888318561151079136\",\n                            \"polygon_id\": 577,\n                            \"polygon_coordinate_version_id\": 919,\n                            \"long\": \"75.907130607587878859\"\n                        }\n                    ],\n                    \"create_gatepass\": false\n                },\n                {\n                    \"id\": 771,\n                    \"name\": \"RouteNegi02\",\n                    \"coordinates\": \"30.83607,76.1913\",\n                    \"address\": \"RouteNegi02\",\n                    \"status\": \"pending\",\n                    \"position\": 2,\n                    \"identifier\": 2,\n                    \"radius\": 500.0,\n                    \"polygon_coordinates\": [\n                        {\n                            \"id\": 3745,\n                            \"lat\": \"30.831573597122302158\",\n                            \"polygon_id\": 578,\n                            \"polygon_coordinate_version_id\": 920,\n                            \"long\": \"76.196538714760150504\"\n                        },\n                        {\n                            \"id\": 3744,\n                            \"lat\": \"30.840566402877697842\",\n                            \"polygon_id\": 578,\n                            \"polygon_coordinate_version_id\": 920,\n                            \"long\": \"76.196538714760150504\"\n                        },\n                        {\n                            \"id\": 3743,\n                            \"lat\": \"30.840566402877697842\",\n                            \"polygon_id\": 578,\n                            \"polygon_coordinate_version_id\": 920,\n                            \"long\": \"76.186061285239849496\"\n                        },\n                        {\n                            \"id\": 3742,\n                            \"lat\": \"30.831573597122302158\",\n                            \"polygon_id\": 578,\n                            \"polygon_coordinate_version_id\": 920,\n                            \"long\": \"76.186061285239849496\"\n                        }\n                    ],\n                    \"create_gatepass\": false\n                }\n            ],\n            \"driver_cta\": {\n                \"name\": \"cpt_entry\",\n                \"cpt_id\": 768\n            },\n            \"show_driver_cta\": false,\n            \"expected_distance\": 20,\n            \"trip_delay_alerts_enabled\": true\n        }\n    ]\n}"},{"id":"b3cc50ec-a3d9-42f4-800f-55f5eaa3d548","name":"Response : 401","originalRequest":{"method":"GET","header":[{"key":"User-Id","value":"{{user_id}}","type":"text","disabled":true},{"key":"Admin-Authentication","value":"{{admin_auth}}","type":"text","disabled":true},{"key":"User-Authentication","value":"{{user_auth}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Cookie","value":"__profilin=p%3Dt","type":"text"}],"url":"http://ind-stg-marketplace.loconav.com/api/v1/trips/id"},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": false,\n    \"errors\": \"User does not have sufficient privilege to get trip. Contact your system administrator.\"\n}"},{"id":"a060a303-b4eb-429a-8f95-630833eb7350","name":"Response : 403","originalRequest":{"method":"GET","header":[{"key":"User-Id","value":"{{user_id}}","type":"text","disabled":true},{"key":"Admin-Authentication","value":"{{admin_auth}}","type":"text","disabled":true},{"key":"User-Authentication","value":"{{user_auth}}","type":"text"}],"url":"http://ind-stg-marketplace.loconav.com/api/v1/trips/id"},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": false,\n    \"errors\": \"Permission denied to get trip. Contact your system administrator.\"\n}"},{"id":"ce2a32ea-9fc8-4ff7-a818-b66237226723","name":"Response : 422","originalRequest":{"method":"GET","header":[{"key":"User-Id","value":"{{user_id}}","type":"text","disabled":true},{"key":"Admin-Authentication","value":"{{admin_auth}}","type":"text","disabled":true},{"key":"User-Authentication","value":"{{user_auth}}","type":"text"}],"url":"http://ind-stg-marketplace.loconav.com/api/v1/trips/id"},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": false,\n    \"errors\": \"Insufficient params!\"\n}"}],"_postman_id":"6d409e5d-673f-4efc-8613-923173b3c39f"},{"name":"Track Trip Url","id":"2b71638e-1b9f-4627-a613-8f1954486555","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"User-Authentication","value":"{{user_auth}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"trip_id\": 521,\n    \"all_check_points\": true, // if true 'check_point_ids' not needed\n    \"check_point_ids\": [123,754]\n}"},"url":"{{base_url}}/api/v1/trips/track_url","description":"<p><strong>Purpose</strong></p>\n<p>Create Track Url.</p>\n<p><strong>Body</strong></p>\n<p>This api expects json objects with fields :</p>\n<ol>\n<li>\"trip_id\" (DataType : Integer)</li>\n<li>\"all_check_points\" (DataType : Boolean)</li>\n<li>\"check_point_ids\" (DataType : List)</li>\n</ol>\n<p>if all_check_points is marked true, then we don't need to give check_point_ids but the trip should have source and a destination.</p>\n<p>if all_check_points is marked false, then we need to provide at least two check points in check_point_ids.</p>\n","urlObject":{"path":["api","v1","trips","track_url"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[{"id":"1cfc9d65-a333-4a54-b84c-29512187bfd6","name":"Response 200","originalRequest":{"method":"POST","header":[{"key":"User-Id","value":"{{user_id}}"},{"key":"Admin-Authentication","value":"{{admin_auth}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"trip_id\": 521,\n    \"all_check_points\": true, // if true 'check_point_ids' not needed\n    \"check_point_ids\": [123,754]\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/api/v1/trips/track_url"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"data\": {\n        \"trip_track_token\": \"B9weNa-WvKRUkbXeL1Ro\",\n        \"url\": \"https://staging01.loconav.com/track-a-trip/B9weNa-WvKRUkbXeL1Ro?locale=en\"\n    }\n}"},{"id":"7cbaab65-a327-4d35-bdf5-f364b316607d","name":"Response 401","originalRequest":{"method":"POST","header":[{"key":"User-Id","value":"{{user_id}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"trip_id\": 521,\n    \"all_check_points\": true, // if true 'check_point_ids' not needed\n    \"check_point_ids\": [123,754]\n}"},"url":"{{base_url}}/api/v1/trips/track_url"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": false,\n    \"errors\": \"User does not have sufficient privilege to get trip. Contact your system administrator.\"\n}"}],"_postman_id":"2b71638e-1b9f-4627-a613-8f1954486555"}],"id":"e3ee676e-4519-488e-8a77-8f60847cd20d","description":"<p>If a user wants to see the details of a trip, LocoNav Trips API can be used: Path taken, Average speed, Mileage, Start location and time, End location and time, Distance traveled, Driving time, Top speed</p>\n<p>Details in a Trip API</p>\n<ul>\n<li>Path taken:</li>\n<li>Average speed: Distance/ drive time</li>\n<li>Mileage: We won’t be able to provide mileage for some vehicles where fuel level is not provided.</li>\n<li>Start location and start time: Start time should be ignition on time</li>\n<li>Drive time: Time when the vehicle was moving (up to 2 decimal places)</li>\n<li>Distance traveled:</li>\n<li>End location and end time: End time should be ignition off time</li>\n<li>Trip time: Ignition On to Ignition Off time</li>\n<li>Top Speed: top speed achieved during the trip</li>\n<li><strong>Trip Alerts:</strong><ul>\n<li>Over rev alerts: Count of all, time, and location of each alert</li>\n<li>Sudden braking alerts: Count of all, time, and location of each alert</li>\n<li>Overspeeding alerts: Count of all, time, and location of each alert</li>\n</ul>\n</li>\n</ul>\n","_postman_id":"e3ee676e-4519-488e-8a77-8f60847cd20d"},{"name":"Timeline","item":[{"name":"Get Timeline","id":"d23aefb7-cd2e-4b19-85c3-a5e222e5ae66","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"User-Authentication","value":" {{user-auth-token}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":""},"url":"{{base_url}}/api/v1/timeline?start_time=1659853444&end_time=1662531844&vehicle_number=4689996849","description":"<p>To get details of start position, end position, travelled distance, total_time, stoppage time, average speed, timeline like address, coordinates, event time etc are details that can be fetched using this api.</p>\n<p>This is a bulk api which provides all movement data for given timeline, ensure limited time range.</p>\n<p>Note:</p>\n<ul>\n<li><p>Start time should not be before 6 months</p>\n</li>\n<li><p>Difference between start time and end time should be less than 31 days</p>\n</li>\n</ul>\n","urlObject":{"path":["api","v1","timeline"],"host":["{{base_url}}"],"query":[{"key":"start_time","value":"1659853444"},{"key":"end_time","value":"1662531844"},{"disabled":true,"key":"","value":""},{"disabled":true,"key":"","value":""},{"disabled":true,"key":"","value":""},{"disabled":true,"key":"","value":""},{"key":"vehicle_number","value":"4689996849"}],"variable":[]}},"response":[{"id":"a47ffc3b-ca9f-4323-a590-2e1f59367e4c","name":"Response : 200","originalRequest":{"method":"GET","header":[{"key":"User-Id","value":"{{user_id}}","type":"text"},{"key":"Admin-Authentication","value":"{{admin_auth}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":""},"url":{"raw":"{{base_url}}/api/v1/timeline?vehicle_number={{vehicle_number}}&start_time={{start_time}}&end_time={{end_time}}","host":["{{base_url}}"],"path":["api","v1","timeline"],"query":[{"key":"vehicle_number","value":"{{vehicle_number}}"},{"key":"start_time","value":"{{start_time}}"},{"key":"end_time","value":"{{end_time}}"},{"key":"","value":"","disabled":true},{"key":"","value":"","disabled":true},{"key":"","value":"","disabled":true},{"key":"","value":"","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"data\": {\n        \"coordinate_at_st\": \"19.72862,78.54308\",\n        \"location_at_starttime\": \"NH 44, Fouzpur, Telangana 504309, India\",\n        \"coordinate_at_et\": \"23.77785,78.80881\",\n        \"location_at_endtime\": \"NH 44, Bamhori Bika, Madhya Pradesh 470001, India\",\n        \"motion\": {\n            \"distance\": {\n                \"value\": 516.839,\n                \"unit\": \"km\"\n            },\n            \"running_time\": {\n                \"value\": 835.0,\n                \"unit\": \"minutes\"\n            },\n            \"stoppage_time\": {\n                \"value\": 34.0,\n                \"unit\": \"minutes\"\n            },\n            \"offline_time\": {\n                \"value\": 0.0,\n                \"unit\": \"minutes\"\n            },\n            \"average_speed\": {\n                \"value\": 37.14,\n                \"unit\": \"km/h\"\n            }\n        },\n        \"timeline\": [\n            {\n                \"started_ts\": 1641312000,\n                \"ended_ts\": 1641313559,\n                \"end_coordinates\": \"19.72862,78.54308\",\n                \"movement_status\": \"Stopped\",\n                \"end_address\": \"NH 44, Fouzpur, Telangana 504309, India\",\n                \"event_time\": 1641312000\n            },\n            {\n                \"started_ts\": 1641313560,\n                \"ended_ts\": 1641360719,\n                \"start_coordinates\": \"19.72862,78.54308\",\n                \"end_coordinates\": \"23.48719,78.97136\",\n                \"movement_status\": \"Moving\",\n                \"start_address\": \"NH 44, Fouzpur, Telangana 504309, India\",\n                \"end_address\": \"NH 44, Charguwan, Madhya Pradesh 470226, India\",\n                \"event_time\": 1641313560,\n                \"average_speed\": {\n                    \"value\": 46.55,\n                    \"unit\": \"km/h\"\n                },\n                \"distance\": {\n                    \"value\": 480.157,\n                    \"unit\": \"km\"\n                }\n            },\n            {\n                \"started_ts\": 1641360720,\n                \"ended_ts\": 1641361199,\n                \"end_coordinates\": \"23.48719,78.97136\",\n                \"movement_status\": \"Stopped\",\n                \"end_address\": \"NH 44, Charguwan, Madhya Pradesh 470226, India\",\n                \"event_time\": 1641360720\n            },\n            {\n                \"started_ts\": 1641361200,\n                \"ended_ts\": 1641364139,\n                \"start_coordinates\": \"23.48719,78.97136\",\n                \"end_coordinates\": \"23.77785,78.80881\",\n                \"movement_status\": \"Moving\",\n                \"start_address\": \"NH 44, Charguwan, Madhya Pradesh 470226, India\",\n                \"end_address\": \"NH 44, Bamhori Bika, Madhya Pradesh 470001, India\",\n                \"event_time\": 1641361200,\n                \"average_speed\": {\n                    \"value\": 44.1,\n                    \"unit\": \"km/h\"\n                },\n                \"distance\": {\n                    \"value\": 36.682,\n                    \"unit\": \"km\"\n                }\n            }\n        ]\n    }\n}"},{"id":"864fc38a-497c-464c-849a-9f4aa41bba15","name":"Response : 400","originalRequest":{"method":"GET","header":[{"key":"User-Id","value":"{{user_id}}","type":"text"},{"key":"Admin-Authentication","value":"{{admin_auth}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":""},"url":{"raw":"{{base_url}}/api/v1/timeline?vehicle_number={{vehicle_number}}&start_time={{start_time}}&end_time={{end_time}}","host":["{{base_url}}"],"path":["api","v1","timeline"],"query":[{"key":"vehicle_number","value":"{{vehicle_number}}"},{"key":"start_time","value":"{{start_time}}"},{"key":"end_time","value":"{{end_time}}"},{"key":"","value":"","disabled":true},{"key":"","value":"","disabled":true},{"key":"","value":"","disabled":true},{"key":"","value":"","disabled":true}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": false,\n    \"error\": \"Required request parameter 'start_time' for method parameter type Long is not present\"\n}"}],"_postman_id":"d23aefb7-cd2e-4b19-85c3-a5e222e5ae66"}],"id":"5f158024-78e6-4b4c-8222-a9532268753e","_postman_id":"5f158024-78e6-4b4c-8222-a9532268753e","description":""},{"name":"Driver/ Vehicle Driving Score","item":[{"name":"Get Driver Score","id":"233712ad-9eb8-4f69-8967-c2106825e5c1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"User-Authentication","value":"{{user_auth}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"url":"{{base_url}}/api/v1/driver_score?vehicle_id={{vehicle_id}}&vehicle_number={{vehicle_number}}&start_time={{start_time}}&end_time={{end_time}}","description":"<p>Distance is in km and time in minutes for the response.</p>\n","urlObject":{"path":["api","v1","driver_score"],"host":["{{base_url}}"],"query":[{"description":{"content":"<p>optional if vehicle number present, Integer data type</p>\n","type":"text/plain"},"key":"vehicle_id","value":"{{vehicle_id}}"},{"description":{"content":"<p>optional if vehicle id present, String data type</p>\n","type":"text/plain"},"key":"vehicle_number","value":"{{vehicle_number}}"},{"description":{"content":"<p>in epoch,Long data type</p>\n","type":"text/plain"},"key":"start_time","value":"{{start_time}}"},{"description":{"content":"<p>in epoch,Long data type</p>\n","type":"text/plain"},"key":"end_time","value":"{{end_time}}"}],"variable":[]}},"response":[{"id":"fef27e14-8a08-4a73-ac20-a04d864e3172","name":"Response : 200","originalRequest":{"method":"GET","header":[{"key":"User-Id","value":"{{user_id}}"},{"key":"Admin-Authentication","value":"{{admin_auth}}"},{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{base_url}}/api/v1/driver_score?vehicle_id={{vehicle_id}}&vehicle_number={{vehicle_number}}&start_time={{start_time}}&end_time={{end_time}}","host":["{{base_url}}"],"path":["api","v1","driver_score"],"query":[{"key":"vehicle_id","value":"{{vehicle_id}}","description":"optional if vehicle number present"},{"key":"vehicle_number","value":"{{vehicle_number}}","description":"optional if vehicle id present"},{"key":"start_time","value":"{{start_time}}","description":"in epoch"},{"key":"end_time","value":"{{end_time}}","description":"in epoch"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"data\": {\n        \"driver_score\": {\n            \"running_time\": 769,\n            \"distance\": 132.2033244195074,\n            \"stoppage_time\": 347,\n            \"idle_duration\": 0,\n            \"idling_events_count\": 0,\n            \"overspeed_duration\": 0,\n            \"overspeed_events_count\": 0,\n            \"sudden_braking_events_count\": 0,\n            \"sudden_acceleration_events_count\": 0,\n            \"sharp_turn_events_count\": 0,\n            \"total_events\": 0,\n            \"overall_score\": 100,\n            \"total_duration\": 1265\n        }\n    }\n}"},{"id":"3030af0f-3d19-4214-90ac-a5646e85cedb","name":"Response : 400","originalRequest":{"method":"GET","header":[{"key":"User-Id","value":"{{user_id}}"},{"key":"Admin-Authentication","value":"{{admin_auth}}"},{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{base_url}}/api/v1/driver_score?vehicle_id={{vehicle_id}}&end_time={{end_time}}","host":["{{base_url}}"],"path":["api","v1","driver_score"],"query":[{"key":"vehicle_id","value":"{{vehicle_id}}","description":"optional if vehicle number present"},{"key":"vehicle_number","value":"{{vehicle_number}}","description":"optional if vehicle id present","disabled":true},{"key":"start_time","value":"{{start_time}}","description":"in epoch","disabled":true},{"key":"end_time","value":"{{end_time}}","description":"in epoch"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": false,\n    \"error\": \"400 Bad Request: [{\\\"error\\\":\\\"start_time is missing\\\"}]\"\n}"}],"_postman_id":"233712ad-9eb8-4f69-8967-c2106825e5c1"}],"id":"d64b15c0-4562-4ab5-98c5-728fc6e46eb2","description":"<p>Driver Scorecard Template provides an option to the FO/FM where they can prioritize the driver scoring matrix.</p>\n<p>Use ‘Driver Scoring Matrix’ under the settings tab, and assign weightages to various driving events based on the use case.</p>\n<p>The list of driving events that are considered in calculating driver scorecard:</p>\n<ul>\n<li>Overspeeding</li>\n<li>Sudden Acceleration</li>\n<li>Sudden Braking</li>\n<li>Sharp Turn</li>\n<li>Idling</li>\n</ul>\n","_postman_id":"d64b15c0-4562-4ab5-98c5-728fc6e46eb2"},{"name":"Webhook","item":[{"name":"Webhook Alert Push","item":[{"name":"Harsh Braking Alert","id":"783ec625-0a0a-4290-ae02-60593dc7582a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"        id: integer, (unique id in our system)\n     \tevent_time: datetime,\n     \tlatitude: float,\n     \tlongitude: float,\n     \tvehicle_number: string,\n    \tcreated_at :datetime,\n     \tspeed:float,\n        kind: ‘SuddenBrakingAlert’\n\n"},"urlObject":{"query":[],"variable":[]},"url":""},"response":[],"_postman_id":"783ec625-0a0a-4290-ae02-60593dc7582a"},{"name":"Harsh Acceleration Alert","id":"60f46524-d1e1-4570-acf3-a143273ea16d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"id: integer,\nevent_time: datetime,\nlatitude:float,\nlongitude:float,\nvehicle_number: string,\ncreated_at :datetime,\nspeed: float\nkind: ‘SuddenAccelerationAlert’\n"},"urlObject":{"query":[],"variable":[]},"url":""},"response":[],"_postman_id":"60f46524-d1e1-4570-acf3-a143273ea16d"},{"name":"Overspeed Alert","id":"abe9a29c-3546-4727-94f0-4b8feb68678b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"id: integer,\nvehicle_number: string,\nalert_condition_id :integer,\nevent_key :string,\ntopic_group_id :integer,\nactive_event_time :datetime,\nactive_event_latitude :float,\nactive_event_longitude :float,\ninactive_event_time :datetime,\ninactive_event_latitude :float,\ninactive_event_longitude :float,\ncreated_at :datetime,\nupdated_at :datetime,\nspeed :float,\nkind: ‘OverspeedAlert‘"},"urlObject":{"query":[],"variable":[]},"url":""},"response":[],"_postman_id":"abe9a29c-3546-4727-94f0-4b8feb68678b"},{"name":"Ignition Alert","id":"ba2098a9-742a-4193-8b41-24d86f7b863b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"\n            id: integer,\n            vehicle_number: string,\n            active_event_time: datetime,\n            active_event_latitude: float,\n            active_event_longitude: float,\n            inactive_event_time: datetime,\n            inactive_event_latitude: float,\n            inactive_event_longitude: float,\n            created_at: datetime,\n            event_key: string,\n            alert_condition_id: integer\n            kind: ‘IgnitionAlert’\n"},"urlObject":{"query":[],"variable":[]},"url":""},"response":[],"_postman_id":"ba2098a9-742a-4193-8b41-24d86f7b863b"},{"name":"Idling Alert","id":"92003510-03df-4154-9e3a-6e486809a15a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":" id: integer,\nvehicle_number: string,\nactive_event_time: datetime,\nactive_event_latitude: float,\nactive_event_longitude: float,\ninactive_event_time: datetime,\ninactive_event_latitude: float,\ninactive_event_longitude: float,\ncreated_at: datetime,\nalert_condition_id: integer\nkind: ‘IgnitionAlert’"},"urlObject":{"query":[],"variable":[]},"url":""},"response":[],"_postman_id":"92003510-03df-4154-9e3a-6e486809a15a"},{"name":"Fatigue Alert","id":"df85716b-8972-43a5-b614-93f7f1bd6586","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"id: Id of alert (Integer),\nvehicle_number: string,\nstart_time: time from when fatigue alert calculation starts aka Ignition on time (TimeStamp),\nactive_event_time: time at which fatigue alert conditions are met i.e. > start_time + trip_duration (Timestamp)\ninactive_event_time: time at which driver stops for more than bypass_ignition_off_duration after completing\ntrip duration aka IgnitionOFF time (TimeStamp)\nactive_event_latitude: latitude of vehicle when fatigue alert is active (Float),\nactive_event_longitude: longitude of vehicle when fatigue alert is active (Float),\ninactive_event_latitude: latitude of vehicle when fatigue alert is inactive (Float),\ninactive_event_longitude: longitude of vehicle when fatigue alert is inactive (Float),               \nkind: ’FatigueAlert’\n"},"urlObject":{"query":[],"variable":[]},"url":""},"response":[],"_postman_id":"df85716b-8972-43a5-b614-93f7f1bd6586"},{"name":"Overrev(RPM) Alert","id":"552d8f5f-0f2c-4e2b-bffb-c9a225230563","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"id: integer,\nvehicle_number: string,\nevent_key: string,\nrpm_value: integer\nstart_time: datetime\nactive_event_time: datetime,\ninactive_event_time: datetime,\ncreated_at: datetime,\nkind: OverrevAlert: \n"},"urlObject":{"query":[],"variable":[]},"url":""},"response":[],"_postman_id":"552d8f5f-0f2c-4e2b-bffb-c9a225230563"},{"name":"Anti Theft Alert","id":"94d67595-28a4-4186-ae15-ce8910dabdb0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"            id: integer,\n            vehicle_number: string,\n            event_time: datetime,\n            latitude: float,\n            longitude: float,\n            created_at: datetime,\n            kind: ‘AntiTheftAlert’\n"},"urlObject":{"query":[],"variable":[]},"url":""},"response":[],"_postman_id":"94d67595-28a4-4186-ae15-ce8910dabdb0"},{"name":"Geofence Alert","id":"685380fa-9983-48fb-ada0-66f02cb2a90c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"id: integer, \nvehicle_number: string,\npolygon_coordinate_version_id: integer, // not include\npolygon_id: integer,\nevent_key: string,\nactive_event_time: datetime,\nactive_event_latitude: float,\nactive_event_longitude: float,\ninactive_event_time: datetime,\ninactive_event_latitude: float,\ninactive_event_longitude: float,\ncreated_at: datetime,\nkind: ‘GeofenceAlert’\n"},"urlObject":{"query":[],"variable":[]},"url":""},"response":[],"_postman_id":"685380fa-9983-48fb-ada0-66f02cb2a90c"},{"name":"Journeys/Trips","id":"08dc97e2-3603-4960-b45f-9e90cb9c6d46","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"type\": \"trips\",\n    \"data\": {\n        \"din\": device_imei,\n        \"vid\": vehicle_number,\n        \"timeline\": [\n            {\n                \"started_ts\": start_timestamp,\n                \"ended_ts\": start_timestamp,\n                \"start_coordinates\": \"28.5823,77.26188\",\n                \"end_coordinates\": \"28.58297,77.2635\",\n                \"movement_status\": \"Moving\",\n                \"distance\": {\n                    \"value\": 0.175,\n                    \"unit\": \"km\"\n                },\n                \"path\": PolyLine,\n                \"start_address\": \"Sankat Mochan Mandir Road, Pocket A, Sidhartha Nagar, New Delhi, Delhi 110024, India\",\n                \"end_address\": \"Mahatma Gandhi Marg, Block B, Ganga Vihar, Sarai Kale Khan, New Delhi, Delhi 110013, India\",\n                \"average_speed\": {\n                    \"value\": 14.91,\n                    \"unit\": \"km/h\"\n                },\n                \"event_time\": 1640323980\n            }\n        ],\n        \"motion\": {\n            \"distance\": {\n                \"value\": 0.175,\n                \"unit\": \"km\"\n            },\n            \"running_time\": {\n                \"value\": 1,\n                \"unit\": \"minutes\"\n            },\n            \"stoppage_time\": {\n                \"value\": 0,\n                \"unit\": \"minutes\"\n            },\n            \"offline_time\": {\n                \"value\": 0,\n                \"unit\": \"minutes\"\n            },\n            \"average_speed\": {\n                \"value\": 10.52,\n                \"unit\": \"km/h\"\n            }\n        },\n        \"distance_travelled\": distance_travelled,\n        \"mileage\": 0,\n        \"average_speed\": {\n            \"value\": 10.51747388852445\n        },\n        \"start_location\": Start_Location,\n        \"end_location\": End_Location,\n        \"start_time\": Start_Time,\n        \"start_coordinate\": Start Coordinates,\n        \"end_time\": End_time,\n        \"end_coordinate\": End_Coordinate\n    }\n}","options":{"raw":{"language":"json"}}},"urlObject":{"query":[],"variable":[]},"url":""},"response":[],"_postman_id":"08dc97e2-3603-4960-b45f-9e90cb9c6d46"},{"name":"Crash detection with speed limit","id":"ba108138-b0f1-4526-82ca-b342c7ed56c6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"id\": 7,\n    \"event_time\": \"2022-08-09T14:47:44.000+05:30\",\n    \"latitude\": 22.44372,\n    \"longitude\": 73.33989,\n    \"speed\": 25.0,\n    \"vehicle_number\": \"508\",\n    \"topic_group_id\": 10928,\n    \"created_at\": \"2022-08-09T14:47:46.866+05:30\",\n    \"updated_at\": \"2022-08-09T14:47:46.866+05:30\",\n    \"kind\": \"CrashDuringOverspeedAlert\"\n}","options":{"raw":{"language":"json"}}},"urlObject":{"query":[],"variable":[]},"url":""},"response":[],"_postman_id":"ba108138-b0f1-4526-82ca-b342c7ed56c6"},{"name":"Device Removal Alert","id":"9efee70c-06cf-4450-b55e-f049b65e7b09","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"id: integer,\n            vehicle_number: string,\n            active_event_time: datetime,\n            active_event_latitude: float,\n            active_event_longitude: float,\n            inactive_event_time: datetime,\n            inactive_event_latitude: float,\n            inactive_event_longitude: float,\n            created_at: datetime,\n            event_key: string,\n            alert_condition_id: integer\n            kind: 'DeviceRemovalAlert'","options":{"raw":{"language":"javascript"}}},"urlObject":{"query":[],"variable":[]},"url":""},"response":[],"_postman_id":"9efee70c-06cf-4450-b55e-f049b65e7b09"},{"name":"Vehicle Low Battery Voltage Alert","id":"e58cf9ba-0524-4d88-a017-c42ef9042882","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"id: integer,\n            vehicle_number: string,\n            active_event_time: datetime,\n            active_event_latitude: float,\n            active_event_longitude: float,\n            inactive_event_time: datetime,\n            inactive_event_latitude: float,\n            inactive_event_longitude: float,\n            created_at: datetime,\n            event_key: string,\n            alert_condition_id: integer\n            kind: 'VehicleLowBatteryVoltageAlert'"},"urlObject":{"query":[],"variable":[]},"url":""},"response":[],"_postman_id":"e58cf9ba-0524-4d88-a017-c42ef9042882"},{"name":"Sharp turn","id":"7e585daa-aa42-427b-9ea2-d1f2e8e39889","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"id : integer,\nevent_time : datetime,\nlatitude : float,\nlongitude : float,\ntruck_id : integer,\nvehicle_number : string,\ncreated_at : datetime,\nupdated_at : datetime,\nspeed : float,\nkind : \"SharpTurnAlert\""},"url":"Sharp Turn","urlObject":{"host":["Sharp Turn"],"query":[],"variable":[]}},"response":[],"_postman_id":"7e585daa-aa42-427b-9ea2-d1f2e8e39889"},{"name":"Dtc Alert","id":"7b828b02-6ba2-4a38-90ee-1825737f502d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"\n            id: integer,\n            vehicle_number: string,\n            active_event_time: datetime,\n            active_event_latitude: float,\n            active_event_longitude: float,\n            inactive_event_time: datetime,\n            inactive_event_latitude: float,\n            inactive_event_longitude: float,\n            created_at: datetime,\n            event_key: string,\n            alert_condition_id: integer\n            dtc_code: string\n            kind: ‘DtcAlert’\n"},"url":"","urlObject":{"query":[],"variable":[]}},"response":[],"_postman_id":"7b828b02-6ba2-4a38-90ee-1825737f502d"},{"name":"SOS ALert","id":"9ff72aff-3ec8-4412-8d8e-17057882bfe2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":":id => :integer,\n:partition_key => :string,\n:event_time => :datetime,\n:latitude => :float,\n:longitude => :float,\n:vehicle_number => :string,\n:duty_id => :integer,\n:created_at => :datetime,\n:updated_at => :datetime,\n:speed => :float,\n:status => :integer,\n:kind => string,\n:alert_condition_id => :integer"},"urlObject":{"query":[],"variable":[]},"url":""},"response":[],"_postman_id":"9ff72aff-3ec8-4412-8d8e-17057882bfe2"},{"name":"Refueling Alert","id":"56c4ef18-8a06-41b7-80cb-9715c388fbe3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":":id => :integer,\n:kind:  => \"RefuelingAlert\",\n:vehicle_number => :string,\n:event_time => :datetime,\n:latitude => :float,\n:longitude => :float,\n:refueled_in_percent => :float,\n:refueled_in_liters => :float,\n:created_at => :datetime,\n:updated_at => :datetime,\n:fuel_tank_uuid => :string","options":{"raw":{"language":"json"}}},"urlObject":{"query":[],"variable":[]},"url":""},"response":[],"_postman_id":"56c4ef18-8a06-41b7-80cb-9715c388fbe3"},{"name":"FuelTheft Alert","id":"9270657d-10e3-40ee-866f-6d148c5948c8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":":id => :integer,\n:kind: \"PossibleFuelTheftAlert\",\n:vehicle_number => :string,\n:event_time => :datetime,\n:latitude => :float,\n:longitude => :float,\n:fuel_theft_in_percent => :float,\n:fuel_theft_in_liters => :float,\n:created_at => :datetime,\n:updated_at => :datetime,\n:fuel_tank_uuid => :string","options":{"raw":{"language":"json"}}},"urlObject":{"query":[],"variable":[]},"url":""},"response":[],"_postman_id":"9270657d-10e3-40ee-866f-6d148c5948c8"},{"name":"DeviceOffline Alert","id":"494ebf28-c43e-45ad-81f1-4436bac54622","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":":id => :integer,\n:kind: => \"DeviceOfflineAlert\",\n:vehicle_number => :string,\n:topic_group_id => :integer,\n:active_event_time => :datetime,\n:active_event_latitude => :float,\n:active_event_longitude => :float,\n:inactive_event_time => :datetime,\n:inactive_event_latitude => :float,\n:inactive_event_longitude => :float,\n:created_at => :datetime,\n:updated_at => :datetime","options":{"raw":{"language":"json"}}},"urlObject":{"query":[],"variable":[]},"url":""},"response":[],"_postman_id":"494ebf28-c43e-45ad-81f1-4436bac54622"}],"id":"6dbf77b9-c5e2-4463-8ce7-ccf202490ac4","description":"<p>The webhook alert push feature allows users to receive real-time notifications for various events and conditions detected by the system, such as sudden braking, overspeeding, ignition status changes, and more.</p>\n<p>By subscribing to webhooks, users can seamlessly integrate these alerts into their systems or applications, enabling proactive monitoring and response to critical vehicle-related events.</p>\n<p>Following are the alert supported for alert push</p>\n<ol>\n<li><p>SuddenBrakingAlert</p>\n</li>\n<li><p>SuddenAccelerationAlert</p>\n</li>\n<li><p>OverspeedAlert</p>\n</li>\n<li><p>IgnitionAlert</p>\n</li>\n<li><p>IdlingAlert</p>\n</li>\n<li><p>FatigueAlert</p>\n</li>\n<li><p>OverrevAlert</p>\n</li>\n<li><p>AntiTheftAlert</p>\n</li>\n<li><p>GeofenceAlert</p>\n</li>\n<li><p>SharpTurnAlert</p>\n</li>\n<li><p>DtcAlert</p>\n</li>\n<li><p>SosAlert</p>\n</li>\n<li><p>RefuelingAlert</p>\n</li>\n<li><p>PossibleFuelTheftAlert</p>\n</li>\n<li><p>DeviceOfflineAlert</p>\n</li>\n</ol>\n","_postman_id":"6dbf77b9-c5e2-4463-8ce7-ccf202490ac4"},{"name":"Webhook Live Location Push","item":[{"name":"Vehicle Live Location Push","id":"f6ff737f-17ef-463f-9285-95950dc6027b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n   \"imei\": \"0210716299\",\n   \"speed\": 0.0,\n   \"gpstime\": \"17-12-2021 09:57:07\",\n   \"ignition\": \"1\",\n   \"latitude\": 11.125757,\n   \"longitude\": 79.140228,\n   \"sharpTurn\": \"0\",\n   \"orientation\": 201.0,\n   \"harshBraking\": \"0\",\n   \"vehiclenumber\": \"TN19AA7420\",\n   \"rockBreakerPedal\": \"0\",\n   \"harshAcceleration\": \"0\"\n}\n","options":{"raw":{"language":"json"}}},"url":"","description":"<h3 id=\"overview\">Overview:</h3>\n<p>The Live Location GPS Push webhook delivers real-time updates of a vehicle's GPS information, including its current speed, GPS time, ignition status, latitude, longitude, orientation, and various driving behaviors such as sharp turns, harsh braking, and harsh acceleration.</p>\n<h3 id=\"request-body\">Request Body:</h3>\n<ul>\n<li><p><code>imei</code>: IMEI number of the device.</p>\n</li>\n<li><p><code>speed</code>: (kmph)Current speed of the vehicle.</p>\n</li>\n<li><p><code>gpstime</code>: GPS time indicating the timestamp of the location data.</p>\n</li>\n<li><p><code>ignition</code>: Ignition status of the vehicle (1 for on, 0 for off).</p>\n</li>\n<li><p><code>latitude</code>: Latitude coordinate of the vehicle's current location.</p>\n</li>\n<li><p><code>longitude</code>: Longitude coordinate of the vehicle's current location.</p>\n</li>\n<li><p><code>sharpTurn</code>: Indicator for sharp turn events (1 for detected, 0 for not detected).</p>\n</li>\n<li><p><code>orientation</code>: Orientation of the vehicle. (<em>refers to the direction in which the vehicle is facing, often measured in degrees relative to the North direction)</em></p>\n</li>\n<li><p><code>harshBraking</code>: Indicator for harsh braking events (1 for detected, 0 for not detected).</p>\n</li>\n<li><p><code>vehiclenumber</code>: Vehicle registration number.</p>\n</li>\n<li><p><code>rockBreakerPedal</code>: Indicator for rock breaker pedal status (1 for engaged, 0 for disengaged).</p>\n</li>\n<li><p><code>harshAcceleration</code>: Indicator for harsh acceleration events (1 for detected, 0 for not detected).</p>\n</li>\n</ul>\n","urlObject":{"query":[],"variable":[]}},"response":[],"_postman_id":"f6ff737f-17ef-463f-9285-95950dc6027b"}],"id":"37d1fb1d-92a5-44ff-bc8c-e6258673a51f","description":"<p>This webhook offers real-time vehicle location push via webhook integration. This feature allows customers to receive live updates of their vehicle's location directly into their system. The raw data provided includes essential parameters such as speed, GPS time, ignition status, latitude, longitude, and driving behavior indicators like sharp turns, harsh braking, and harsh acceleration.</p>\n<h2 id=\"requirements\"><strong>Requirements</strong></h2>\n<ul>\n<li><p>Customers need to provide an API endpoint to receive live location data.</p>\n</li>\n<li><p>The request body structure of the customer's API should be compatible with the format of the data pushed by Loconav.</p>\n</li>\n<li><p>IP/domain whitelisting should be configured on the customer's end. Loconav provides the domain for whitelisting purposes.</p>\n</li>\n</ul>\n<p><strong>Usage of the Data:</strong></p>\n<ul>\n<li><p>Customers can parse and store the live location data received from Loconav.</p>\n</li>\n<li><p>The raw data can be utilized for various purposes such as displaying live vehicle location on maps, providing speed and time information to customers, and performing further analysis.</p>\n</li>\n<li><p>Fields such as sharp turns, harsh braking, and harsh acceleration can be leveraged for generating alerts and calculating metrics like driver or vehicle scores.</p>\n</li>\n</ul>\n<p><strong>Common Use Cases:</strong></p>\n<ol>\n<li><p><strong>Live Location Display</strong>: Customers can visualize the live location of their vehicles on maps in real time.</p>\n</li>\n<li><p><strong>Speed and Time Information</strong>: Speed and time data can be presented to customers for better monitoring and management.</p>\n</li>\n<li><p><strong>Driving Behavior Analysis</strong>: The provided driving behavior indicators can be used to analyze driver behavior and vehicle performance.</p>\n</li>\n<li><p><strong>Alert Generation</strong>: Events such as sharp turns, harsh braking, and harsh acceleration can trigger alerts for immediate action.</p>\n</li>\n</ol>\n","_postman_id":"37d1fb1d-92a5-44ff-bc8c-e6258673a51f"},{"name":"Webhook Journey","item":[{"name":"Journey","id":"2f50974d-9362-4f65-b11d-a752f18975c2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"type\": \"trips\",\n  \"data\": {\n    \"id\": 160941,\n    \"end_reason\": \"stopped\",\n    \"din\": \"0866897057708523\",\n    \"vin\": \"957218675\",\n    \"timeline\": [\n      {\n        \"started_ts\": 1657618380,\n        \"ended_ts\": 1657618499,\n        \"start_coordinates\": \"28.458984,77.061935\",\n        \"end_coordinates\": \"28.457272,77.061859\",\n        \"movement_status\": \"Moving\",\n        \"distance\": {\n          \"value\": 0.229,\n          \"unit\": \"km\"\n        },\n        \"path\": \"skulDcdjuM?B?@GL^^xABfANxAc@|@@?A?C?GB@?I\",\n        \"start_address\": \"105, Block C, South City I, Sector 41, Gurugram, Haryana 122001, India\",\n        \"end_address\": \"Ashok Marg, Moti Vihar, Sector 41, Gurugram, Haryana 122003, India\",\n        \"average_speed\": {\n          \"value\": 4.86,\n          \"unit\": \"km/h\"\n        },\n        \"event_time\": 1657618380\n      },\n      {\n        \"started_ts\": 1657618500,\n        \"ended_ts\": 1657618559,\n        \"movement_status\": \"Stopped\",\n        \"end_coordinates\": \"28.457312,77.061737\",\n        \"end_address\": \"Ashok Marg, Moti Vihar, Sector 41, Gurugram, Haryana 122003, India\",\n        \"event_time\": 1657618500\n      }\n    ],\n    \"motion\": {\n      \"distance\": {\n        \"value\": 0.229,\n        \"unit\": \"km\"\n      },\n      \"running_time\": {\n        \"value\": 2,\n        \"unit\": \"minutes\"\n      },\n      \"stoppage_time\": {\n        \"value\": 1,\n        \"unit\": \"minutes\"\n      },\n      \"offline_time\": {\n        \"value\": 0,\n        \"unit\": \"minutes\"\n      },\n      \"average_speed\": {\n        \"value\": 6.88,\n        \"unit\": \"km/h\"\n      }\n    },\n    \"distance_travelled\": \"0.229 km\",\n    \"mileage\": {\n      \"unit\": \"km\",\n      \"value\": 0\n    },\n    \"average_speed\": {\n      \"value\": 6.88,\n      \"unit\": \"km\"\n    },\n    \"start_location\": \"105, Block C, South City I, Sector 41, Gurugram, Haryana 122001, India\",\n    \"end_location\": \"Ashok Marg, Moti Vihar, Sector 41, Gurugram, Haryana 122003, India\",\n    \"start_time\": 1657618380,\n    \"start_coordinate\": \"28.458414, 77.061661\",\n    \"end_time\": 1657618500,\n    \"end_coordinate\": \"28.457314, 77.061775\",\n    \"max_speed\": 17.0,\n    \"coordinates\": [\n      {\n        \"lat\": 28.458984,\n        \"long\": 77.061935,\n        \"time\": 1657618388000,\n        \"speed\": 0.0,\n        \"unit\": \"km\"\n      },\n      {\n        \"lat\": 28.458977,\n        \"long\": 77.06192,\n        \"time\": 1657618398000,\n        \"speed\": 0.0,\n        \"unit\": \"km\"\n      },\n      {\n        \"lat\": 28.458975,\n        \"long\": 77.061913,\n        \"time\": 1657618408000,\n        \"speed\": 0.0,\n        \"unit\": \"km\"\n      },\n      {\n        \"lat\": 28.459017,\n        \"long\": 77.061836,\n        \"time\": 1657618418000,\n        \"speed\": 0.0,\n        \"unit\": \"km\"\n      },\n      {\n        \"lat\": 28.458864,\n        \"long\": 77.061676,\n        \"time\": 1657618428000,\n        \"speed\": 9.0,\n        \"unit\": \"km\"\n      },\n      {\n        \"lat\": 28.458414,\n        \"long\": 77.061661,\n        \"time\": 1657618438000,\n        \"speed\": 16.0,\n        \"unit\": \"km\"\n      },\n      {\n        \"lat\": 28.458048,\n        \"long\": 77.061577,\n        \"time\": 1657618448000,\n        \"speed\": 14.0,\n        \"unit\": \"km\"\n      },\n      {\n        \"lat\": 28.4576,\n        \"long\": 77.06176,\n        \"time\": 1657618458000,\n        \"speed\": 17.0,\n        \"unit\": \"km\"\n      },\n      {\n        \"lat\": 28.457289,\n        \"long\": 77.061745,\n        \"time\": 1657618468000,\n        \"speed\": 12.0,\n        \"unit\": \"km\"\n      },\n      {\n        \"lat\": 28.457291,\n        \"long\": 77.06176,\n        \"time\": 1657618477000,\n        \"speed\": 0.0,\n        \"unit\": \"km\"\n      },\n      {\n        \"lat\": 28.457291,\n        \"long\": 77.061775,\n        \"time\": 1657618478000,\n        \"speed\": 0.0,\n        \"unit\": \"km\"\n      },\n      {\n        \"lat\": 28.457285,\n        \"long\": 77.061821,\n        \"time\": 1657618481000,\n        \"speed\": 0.0,\n        \"unit\": \"km\"\n      },\n      {\n        \"lat\": 28.457266,\n        \"long\": 77.061813,\n        \"time\": 1657618491000,\n        \"speed\": 0.0,\n        \"unit\": \"km\"\n      },\n      {\n        \"lat\": 28.457272,\n        \"long\": 77.061859,\n        \"time\": 1657618496000,\n        \"speed\": 0.0,\n        \"unit\": \"km\"\n      }\n    ]\n  }\n}","options":{"raw":{"language":"json"}}},"urlObject":{"query":[],"variable":[]},"url":""},"response":[],"_postman_id":"2f50974d-9362-4f65-b11d-a752f18975c2"}],"id":"ef91299d-5739-4780-8f36-e1c62c3905b7","_postman_id":"ef91299d-5739-4780-8f36-e1c62c3905b7","description":""},{"name":"Webhook Mobilization","item":[{"name":"Vehicle Mobilization","id":"a754b15e-8505-4420-b119-22c29d3885ff","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"vehicle_id\": integer,\n    \"vehicle_number\": string,\n    \"mobilize\": boolean,\n    \"status\": string,\n    \"message\": string,\n    \"kind\": 'VehicleMobilization'\n}","options":{"raw":{"language":"json"}}},"urlObject":{"query":[],"variable":[]},"url":""},"response":[],"_postman_id":"a754b15e-8505-4420-b119-22c29d3885ff"}],"id":"8f27c678-031f-433f-b22b-38fc2219cdc6","_postman_id":"8f27c678-031f-433f-b22b-38fc2219cdc6","description":""}],"id":"b0555c0b-065b-4e3e-a2c9-fb7421bf576c","description":"<p>Webhooks are a powerful mechanism for receiving real-time notifications<br />about events that occur within the platform. With webhooks, you can receive instant alerts and updates directly to your application or platform, enabling you to take immediate action based on these events.</p>\n<p>Examples of events include overspeed alerts, harsh braking alerts, and more.</p>\n<hr />\n<h4 id=\"how-to-consume-webhooks\">How to Consume Webhooks</h4>\n<ol>\n<li><p><strong>Define Webhook Acceptor</strong>: Set up an endpoint in your application or platform to receive webhook notifications. This endpoint, known as the webhook acceptor, should be capable of handling HTTP POST requests.</p>\n</li>\n<li><p><strong>Register Webhook Acceptor URL</strong>: Once you have defined your webhook acceptor, register its URL with us via Email. This informs our system where to send webhook notifications when relevant events occur.</p>\n</li>\n<li><p><strong>Configure Alerts</strong>: Utilize our APIs to configure the specific alerts and events for which you want to receive webhook notifications. You can customize the types of alerts and events based on your requirements and use case.</p>\n</li>\n</ol>\n","_postman_id":"b0555c0b-065b-4e3e-a2c9-fb7421bf576c"},{"name":"Send Device Data to API from External Device to LocoNav","item":[{"name":"Send Device Data","id":"1a5bc750-4499-40e8-a45d-adca6d1d9856","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"xxx","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"[ \n { \n \"deviceIMEI\": \"1234567890\", (Varchar) - Mandatory\n \"latitude\": 28.0567,  - Mandatory\n \"longitude\": 77.0987654,  - Mandatory\n \"gpsTS\": 1551269494123, (Epoch) - Mandatory\n \"speed\": 56, (Integer)\n \"orientation\": 127, (Integer)\n \"odometer\": 456789, (Long)\n \"availability\": \"A\", (Char) - Mandatory ( A for non reliable location , V for reliable location)\n \"ignitionOn\": true, (Boolean)\n \"sos\": true, (Boolean)\n \"deviceBatteryVoltage\": 3.81, (Decimal)\n \"vehicleBatteryVoltage\": 12.57, (Decimal)\n \"mnc\": \"40\", (Int)\n \"mcc\": \"90\", (Int)\n \"lac\": 1234, (Long)\n \"cellID\": 1234567890, \n \"gsmStrength\": \"31\", (Integer)\n \"fuel\": \"45\", (Integer)\n \"temperature\": \"24\", (Integer)\n \"acOn\": true, (Boolean)\n \"doorOpen\": true (Boolean)\n } \n]\n\n"},"url":"http://telematics.loconav.com:5080","urlObject":{"protocol":"http","port":"5080","host":["telematics","loconav","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"1a5bc750-4499-40e8-a45d-adca6d1d9856"}],"id":"ebdf6b04-d2fd-4b62-a492-05ec7b010677","_postman_id":"ebdf6b04-d2fd-4b62-a492-05ec7b010677","description":""},{"name":"Maps","item":[{"name":"Route API","id":"b2f56c9e-2400-4980-b181-f78638482129","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"User-Authentication","value":"KqPW_r5tP2wqV_sVd_hj"}],"url":"https://marketplace.loconav.com/api/v1/maps/route?origin=28.5,77.5369&destination=28.488,77.5264","description":"<p>This API provides intermediate routes required to go from source to destination location.</p>\n<ul>\n<li>Gives the shortest route between source and destinations</li>\n<li>Only provides lat and long of intermediate routes</li>\n</ul>\n","urlObject":{"protocol":"https","path":["api","v1","maps","route"],"host":["marketplace","loconav","com"],"query":[{"key":"origin","value":"28.5,77.5369"},{"key":"destination","value":"28.488,77.5264"}],"variable":[]}},"response":[],"_postman_id":"b2f56c9e-2400-4980-b181-f78638482129"},{"name":"ETA API","id":"0ed5917d-4d9a-477f-a88e-7f5740cb2667","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"User-Authentication","value":"KqPW_r5tP2wqV_sVd_hj"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"sources\": [\n        \"28.6114643,77.2311575\"\n    ],\n    \"destinations\": [\n        \"28.631160,77.220982\",\n        \"29.631160,77.220982\",\n        \"30.631160,77.220982\"\n    ]\n}"},"url":"https://marketplace.loconav.com/api/v1/maps/eta","description":"<p>This API provides distance and time required to go from source location to destination location in fastest time.</p>\n<ul>\n<li>Support multiple Source and destinations and returns a response of NxM matric</li>\n<li>User any admin auth token and corresponding user id</li>\n</ul>\n","urlObject":{"protocol":"https","path":["api","v1","maps","eta"],"host":["marketplace","loconav","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"0ed5917d-4d9a-477f-a88e-7f5740cb2667"}],"id":"799667e9-c0b4-4ef0-ba5f-768e78102095","_postman_id":"799667e9-c0b4-4ef0-ba5f-768e78102095","description":""},{"name":"Driver","item":[{"name":"Create Drivers","id":"d75d1c8b-d109-4777-9479-e2d2987ca8ac","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"User-Authentication","value":"{{user_auth}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"drivers\": [\n        {\n            \"name\": \"PDriver 2\",\n            \"country_code\": \"IN\",\n            \"phone_number\": \"9898117221\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/api/v1/drivers","description":"<p>Content of driver like name , country_code and phone_number all are mandatory.</p>\n","urlObject":{"path":["api","v1","drivers"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[{"id":"a0bfb413-1deb-4761-9c89-faab28bde629","name":"Response:  200","originalRequest":{"method":"POST","header":[{"key":"User-Id","value":"{{user_id}}","type":"text","disabled":true},{"key":"Admin-Authentication","value":"{{admin_auth}}","type":"text","disabled":true},{"key":"User-Authentication","value":"{{user_auth}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"drivers\": [\n        {\n            \"name\": \"PDriver 2\",\n            \"country_code\": \"IN\",\n            \"phone_number\": \"9898117221\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/api/v1/drivers"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 04 Jan 2022 14:14:00 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"vary","value":"accept-encoding"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"data\": [\n        {\n            \"id\": 261,\n            \"name\": \"PDriver 2\"\n        }\n    ]\n}"},{"id":"29994434-3d01-4c65-a3ff-104498094aed","name":"Response: 422","originalRequest":{"method":"POST","header":[{"key":"User-Id","value":"{{user_id}}","type":"text","disabled":true},{"key":"Admin-Authentication","value":"{{admin_auth}}","type":"text","disabled":true},{"key":"User-Authentication","value":"{{user_auth}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"drivers\": [\n        {\n            \"name\": \"PDriver 2\",\n            \"country_code\": \"IN\",\n            \"phone_number\": \"9898117221\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/api/v1/drivers"},"status":"Unprocessable Entity (WebDAV) (RFC 4918)","code":422,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 04 Jan 2022 14:15:41 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"vary","value":"accept-encoding"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": false,\n    \"error\": \"422 Unprocessable Entity: [{\\\"message\\\":{\\\"success\\\":false,\\\"error\\\":\\\"Validation failed: Phone Number has already been taken\\\"}}]\"\n}"},{"id":"7c109fd0-035d-4d57-a6b1-2fed5d90f254","name":"Response: 403","originalRequest":{"method":"POST","header":[{"key":"User-Id","value":"{{user_id}}","type":"text","disabled":true},{"key":"Admin-Authentication","value":"{{admin_auth}}","type":"text","disabled":true},{"key":"User-Authentication","value":"{{user_auth}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"drivers\": [\n        {\n            \"name\": \"PDriver 2\",\n            \"country_code\": \"IN\",\n            \"phone_number\": \"9898117221\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/api/v1/drivers"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 04 Jan 2022 14:16:21 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"vary","value":"accept-encoding"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": false,\n    \"error\": \"User Forbidden!\"\n}"},{"id":"e3c014c2-aec3-4500-8d22-ba4cedd12552","name":"Reponse: 401","originalRequest":{"method":"POST","header":[{"key":"User-Id","value":"{{user_id}}","type":"text","disabled":true},{"key":"Admin-Authentication","value":"{{admin_auth}}","type":"text","disabled":true},{"key":"User-Authentication","value":"{{user_auth}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"drivers\": [\n        {\n            \"name\": \"PDriver 2\",\n            \"country_code\": \"IN\",\n            \"phone_number\": \"9898117221\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/api/v1/drivers"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 04 Jan 2022 14:16:42 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"vary","value":"accept-encoding"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": false,\n    \"error\": \"User not authorised!\"\n}"}],"_postman_id":"d75d1c8b-d109-4777-9479-e2d2987ca8ac"},{"name":"Update Drivers","id":"9e56ae80-92c2-4410-a6a5-6589d420714b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"User-Authentication","value":"{{user_auth}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"drivers\": [\n        {\n            \"id\": 261,\n            \"name\": \"PDriver 2\",\n            \"country_code\": \"IN\",\n            \"phone_number\": \"9898117221\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/api/v1/drivers","urlObject":{"path":["api","v1","drivers"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[{"id":"c97823d6-3809-474c-a3fa-5555b608c443","name":"Response: 200","originalRequest":{"method":"PUT","header":[{"key":"User-Id","value":"{{user_id}}","type":"text","disabled":true},{"key":"Admin-Authentication","value":"{{admin_auth}}","type":"text","disabled":true},{"key":"User-Authentication","value":"{{user_auth}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"drivers\": [\n        {\n            \"id\": 261,\n            \"name\": \"PDriver 2\",\n            \"country_code\": \"IN\",\n            \"phone_number\": \"9898117221\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/api/v1/drivers"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 04 Jan 2022 14:18:09 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"vary","value":"accept-encoding"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"data\": [\n        {\n            \"id\": 261,\n            \"name\": \"PDriver 2\"\n        }\n    ]\n}"},{"id":"fbd1a067-8d08-44c1-8cda-352feeb88a46","name":"Response: 422","originalRequest":{"method":"PUT","header":[{"key":"User-Id","value":"{{user_id}}","type":"text","disabled":true},{"key":"Admin-Authentication","value":"{{admin_auth}}","type":"text","disabled":true},{"key":"User-Authentication","value":"{{user_auth}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"drivers\": [\n        {\n            \"id\": 261,\n            \"name\": \"PDriver 2\",\n            \"country_code\": \"IN\",\n            \"phone_number\": \"9898117211\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/api/v1/drivers"},"status":"Unprocessable Entity (WebDAV) (RFC 4918)","code":422,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 04 Jan 2022 14:18:57 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"vary","value":"accept-encoding"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": false,\n    \"error\": \"422 Unprocessable Entity: [{\\\"message\\\":{\\\"success\\\":false,\\\"error\\\":\\\"Validation failed: Phone Number has already been taken\\\"}}]\"\n}"},{"id":"cfc0e511-8c0b-4795-9a08-3b81082c742d","name":"Response: 401","originalRequest":{"method":"PUT","header":[{"key":"User-Id","value":"{{user_id}}","type":"text","disabled":true},{"key":"Admin-Authentication","value":"{{admin_auth}}","type":"text","disabled":true},{"key":"User-Authentication","value":"{{user_auth}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"drivers\": [\n        {\n            \"id\": 261,\n            \"name\": \"PDriver 2\",\n            \"country_code\": \"IN\",\n            \"phone_number\": \"9898117211\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/api/v1/drivers"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 04 Jan 2022 14:19:16 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"vary","value":"accept-encoding"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": false,\n    \"error\": \"User not authorised!\"\n}"},{"id":"c1a7678c-28c0-493f-a851-cf7490b8d76f","name":"Response: 403","originalRequest":{"method":"PUT","header":[{"key":"User-Id","value":"{{user_id}}","type":"text","disabled":true},{"key":"Admin-Authentication","value":"{{admin_auth}}","type":"text","disabled":true},{"key":"User-Authentication","value":"{{user_auth}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"drivers\": [\n        {\n            \"id\": 261,\n            \"name\": \"PDriver 2\",\n            \"country_code\": \"IN\",\n            \"phone_number\": \"9898117211\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/api/v1/drivers"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 04 Jan 2022 14:19:39 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"vary","value":"accept-encoding"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": false,\n    \"error\": \"User Forbidden!\"\n}"}],"_postman_id":"9e56ae80-92c2-4410-a6a5-6589d420714b"},{"name":"Fetch Drivers by Name","id":"16b48129-58f3-4779-8abd-ea81b18f78d8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"User-Authentication","value":"{{user_auth}}","type":"text"}],"url":"{{base_url}}/api/v1/drivers?name={{driver_name}}&reject_id={{reject_id}}&page={{page}}&per_page={{per_page}}","description":"<p>All params are optional.</p>\n<p>name param can be used to filter drivers based on name.</p>\n<p>reject_id can be used to remove a driver from the response based on id.</p>\n<p>Default values for page and per_page are 1 and 10.</p>\n","urlObject":{"path":["api","v1","drivers"],"host":["{{base_url}}"],"query":[{"description":{"content":"<p>Driver Name (type: String) (Optional) </p>\n","type":"text/plain"},"key":"name","value":"{{driver_name}}"},{"description":{"content":"<p>Driver Id, type: Integer (Optional) </p>\n","type":"text/plain"},"key":"reject_id","value":"{{reject_id}}"},{"description":{"content":"<p>Page index (type: Integer) (optional, default: 1)</p>\n","type":"text/plain"},"key":"page","value":"{{page}}"},{"description":{"content":"<p>No of items per page (type: Integer) (optional, default: 10)</p>\n","type":"text/plain"},"key":"per_page","value":"{{per_page}}"}],"variable":[]}},"response":[{"id":"1151b555-2fd7-461a-b2b2-cbf1d347e1ef","name":"Response: 200","originalRequest":{"method":"GET","header":[{"key":"User-Id","value":"{{user_id}}","type":"text","disabled":true},{"key":"Admin-Authentication","value":"{{admin_auth}}","type":"text","disabled":true},{"key":"User-Authentication","value":"{{user_auth}}","type":"text"}],"url":{"raw":"{{base_url}}/api/v1/drivers?name={{driver_name}}&ignore_id={{ignore_id}}&page={{page}}&per_page={{per_page}}","host":["{{base_url}}"],"path":["api","v1","drivers"],"query":[{"key":"name","value":"{{driver_name}}"},{"key":"ignore_id","value":"{{ignore_id}}"},{"key":"page","value":"{{page}}"},{"key":"per_page","value":"{{per_page}}"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 05 Jan 2022 10:17:50 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"vary","value":"accept-encoding"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"data\": [\n        {\n            \"id\": 131,\n            \"name\": \"Test\",\n            \"phone_number\": \"+918844555555\"\n        },\n        {\n            \"id\": 150,\n            \"name\": \"Test\",\n            \"phone_number\": \"+919876543201\"\n        },\n        {\n            \"id\": 136,\n            \"name\": \"test driver\",\n            \"phone_number\": \"+4998765432121231\"\n        },\n        {\n            \"id\": 149,\n            \"name\": \"Test\",\n            \"phone_number\": \"+919876543211\"\n        },\n        {\n            \"id\": 168,\n            \"name\": \"Test\",\n            \"phone_number\": \"+918765432001\"\n        }\n    ],\n    \"pagination\": {\n        \"per_page\": 10,\n        \"current_page\": 1\n    }\n}"},{"id":"13d5a3cf-4291-41f8-b6b2-4496b4fd45e2","name":"Response: 400","originalRequest":{"method":"GET","header":[{"key":"User-Id","value":"{{user_id}}","type":"text","disabled":true},{"key":"Admin-Authentication","value":"{{admin_auth}}","type":"text","disabled":true},{"key":"User-Authentication","value":"{{user_auth}}","type":"text"}],"url":{"raw":"{{base_url}}/api/v1/drivers?name={{driver_name}}&ignore_id={{ignore_id}}&page={{page}}&per_page={{per_page}}","host":["{{base_url}}"],"path":["api","v1","drivers"],"query":[{"key":"name","value":"{{driver_name}}"},{"key":"ignore_id","value":"{{ignore_id}}"},{"key":"page","value":"{{page}}"},{"key":"per_page","value":"{{per_page}}"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 05 Jan 2022 10:21:15 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"vary","value":"accept-encoding"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"timestamp\": 1641378075270,\n    \"status\": 400,\n    \"error\": \"Bad Request\",\n    \"path\": \"/api/v1/drivers\"\n}"},{"id":"cd8db6c8-8cbd-4dd6-a540-7bca60ec7aef","name":"Response: 401","originalRequest":{"method":"GET","header":[{"key":"Admin-Authentication","value":"{{admin_auth}}","disabled":true},{"key":"User-Id","value":"{{user_id}}","disabled":true}],"url":{"raw":"{{base_url}}/api/v1/drivers?name={{driver_name}}&ignore_id={{ignore_id}}&page={{page}}&per_page={{per_page}}","host":["{{base_url}}"],"path":["api","v1","drivers"],"query":[{"key":"name","value":"{{driver_name}}"},{"key":"ignore_id","value":"{{ignore_id}}"},{"key":"page","value":"{{page}}"},{"key":"per_page","value":"{{per_page}}"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 05 Jan 2022 10:19:48 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"vary","value":"accept-encoding"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": false,\n    \"error\": \"User not authorised!\"\n}"},{"id":"b313a413-e1eb-49ab-a495-3cb5da5b2868","name":"Response: 403","originalRequest":{"method":"GET","header":[{"key":"Admin-Authentication","value":"{{admin_auth}}"},{"key":"User-Id","value":"{{user_id}}","disabled":true}],"url":{"raw":"{{base_url}}/api/v1/drivers?name={{driver_name}}&ignore_id={{ignore_id}}&page={{page}}&per_page={{per_page}}","host":["{{base_url}}"],"path":["api","v1","drivers"],"query":[{"key":"name","value":"{{driver_name}}"},{"key":"ignore_id","value":"{{ignore_id}}"},{"key":"page","value":"{{page}}"},{"key":"per_page","value":"{{per_page}}"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 05 Jan 2022 10:20:26 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"vary","value":"accept-encoding"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": false,\n    \"error\": \"User Forbidden!\"\n}"}],"_postman_id":"16b48129-58f3-4779-8abd-ea81b18f78d8"},{"name":"Delete Driver","id":"ea72988c-d6e7-41b7-99f2-d59cf9d6be9f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Admin-Authentication","value":"{{admin_auth}}"},{"key":"User-Id","value":"{{user_id}}"}],"url":"{{base_url}}/api/v1/drivers?id={{driver_id}}","urlObject":{"path":["api","v1","drivers"],"host":["{{base_url}}"],"query":[{"key":"id","value":"{{driver_id}}"}],"variable":[]}},"response":[{"id":"a076ed41-1f4b-4381-9cde-49709c31a7a6","name":"Response: 200","originalRequest":{"method":"DELETE","header":[{"key":"User-Id","value":"{{user_id}}","type":"text","disabled":true},{"key":"Admin-Authentication","value":"{{admin_auth}}","type":"text","disabled":true},{"key":"User-Authentication","value":"{{user_auth}}","type":"text"}],"url":{"raw":"{{base_url}}/api/v1/drivers?id={{driver_id}}","host":["{{base_url}}"],"path":["api","v1","drivers"],"query":[{"key":"id","value":"{{driver_id}}"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 05 Jan 2022 10:26:52 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"vary","value":"accept-encoding"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"data\": \"Driver deleted successfully\"\n}"},{"id":"6b746bc0-a4a5-475b-a177-3a5401a54047","name":"Response: 400","originalRequest":{"method":"DELETE","header":[{"key":"Admin-Authentication","value":"{{admin_auth}}"},{"key":"User-Id","value":"{{user_id}}"}],"url":{"raw":"{{base_url}}/api/v1/drivers","host":["{{base_url}}"],"path":["api","v1","drivers"],"query":[{"key":"id","value":"{{driver_id}}","disabled":true}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 05 Jan 2022 10:28:48 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"vary","value":"accept-encoding"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": false,\n    \"error\": \"Required request parameter 'id' for method parameter type String is not present\"\n}"},{"id":"97286db3-15df-441d-96df-8ad2c45c7916","name":"Response: 401","originalRequest":{"method":"DELETE","header":[{"key":"Admin-Authentication","value":"{{admin_auth}}"},{"key":"User-Id","value":"{{user_id}}"}],"url":{"raw":"{{base_url}}/api/v1/drivers?id={{driver_id}}","host":["{{base_url}}"],"path":["api","v1","drivers"],"query":[{"key":"id","value":"{{driver_id}}"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 05 Jan 2022 10:27:56 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"vary","value":"accept-encoding"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": false,\n    \"error\": \"User not authorised!\"\n}"},{"id":"84b2f353-cc89-4e9a-9547-7de81fbe62b3","name":"Response: 403","originalRequest":{"method":"DELETE","header":[{"key":"Admin-Authentication","value":"{{admin_auth}}"},{"key":"User-Id","value":"{{user_id}}"}],"url":{"raw":"{{base_url}}/api/v1/drivers?id={{driver_id}}","host":["{{base_url}}"],"path":["api","v1","drivers"],"query":[{"key":"id","value":"{{driver_id}}"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 05 Jan 2022 10:28:12 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"vary","value":"accept-encoding"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": false,\n    \"error\": \"User Forbidden!\"\n}"},{"id":"81ad626b-6f33-4c01-9b7e-edfb15cbb0b5","name":"Response: 422","originalRequest":{"method":"DELETE","header":[{"key":"Admin-Authentication","value":"{{admin_auth}}"},{"key":"User-Id","value":"{{user_id}}"}],"url":{"raw":"{{base_url}}/api/v1/drivers?id={{driver_id}}","host":["{{base_url}}"],"path":["api","v1","drivers"],"query":[{"key":"id","value":"{{driver_id}}"}]}},"status":"Unprocessable Entity (WebDAV) (RFC 4918)","code":422,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 05 Jan 2022 10:29:27 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"vary","value":"accept-encoding"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": false,\n    \"error\": \"422 Unprocessable Entity: [{\\\"error\\\":\\\"Driver with ID not found\\\",\\\"success\\\":false}]\"\n}"}],"_postman_id":"ea72988c-d6e7-41b7-99f2-d59cf9d6be9f"},{"name":"Assign Driver","id":"86b5805f-0311-4388-bf1d-55685fc26460","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Admin-Authentication","value":"{{admin_auth}}","type":"text"},{"key":"User-Id","value":"{{user_id}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"vehicle_number\": \"VEH123\",\n    \"driver_id\": 15355,\n    \"action\": \"ASSIGN_VEHICLE\"\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/api/v1/drivers/action","description":"<p><strong>Purpose</strong></p>\n<p>Assign and Unassign Driver to a Vehicle.</p>\n<p><strong>Body</strong></p>\n<p>This api expects list of json objects.</p>\n<ol>\n<li>\"vehicle_id\" (DataType : Integer)</li>\n<li>\"vehicle_number\" (DataType : String)</li>\n<li>\"driver_id\" (DataType : Integer, Required)</li>\n<li>\"action\" (DataType : String, Required)</li>\n</ol>\n<p>One of vehicle_id or vehicle_number should be present.</p>\n<p>actions allowed: [ASSIGN_VEHICLE, UNASSIGN_VEHICLE]</p>\n","urlObject":{"path":["api","v1","drivers","action"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[{"id":"87691d1f-5626-4df8-a4de-0a6a0f9cedae","name":"Response: 200","originalRequest":{"method":"PUT","header":[{"key":"Admin-Authentication","value":"{{admin_auth}}","type":"text"},{"key":"User-Id","value":"{{user_id}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"vehicle_id\": 9045,\n    \"driver_id\": 15355,\n    \"action\": \"ASSIGN_VEHICLE\"\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/api/v1/drivers/action"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 12 Oct 2022 10:54:29 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"origin,access-control-request-method,access-control-request-headers,accept-encoding"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Expires","value":"0"},{"key":"X-Rate-Limit-Remaining","value":"14"},{"key":"X-Rate-Limit-Limit","value":"20"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"data\": {\n        \"driver_id\": 15355,\n        \"vehicle_id\": 9045,\n        \"driver_name\": \"Test 1\"\n    }\n}"},{"id":"ca9768a3-84aa-43af-ac7d-2f226a3da265","name":"Response: 422","originalRequest":{"method":"PUT","header":[{"key":"Admin-Authentication","value":"{{admin_auth}}","type":"text"},{"key":"User-Id","value":"{{user_id}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"driver_id\": 15355,\n    \"action\": \"ASSIGN_VEHICLE\"\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/api/v1/drivers/action"},"status":"Unprocessable Entity (WebDAV) (RFC 4918)","code":422,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 12 Oct 2022 10:56:18 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"origin,access-control-request-method,access-control-request-headers,accept-encoding"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Expires","value":"0"},{"key":"X-Rate-Limit-Remaining","value":"20"},{"key":"X-Rate-Limit-Limit","value":"20"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": false,\n    \"error\": \"Vehicle Not Found\"\n}"},{"id":"0d2c70d1-34a2-4f1d-9243-079c989c4038","name":"Response: 403","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"vehicle_number\": \"TESTING11\",\n    \"driver_id\": 15355,\n    \"action\": \"ASSIGN_VEHICLE\"\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/api/v1/drivers/action"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 12 Oct 2022 10:57:27 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"origin,access-control-request-method,access-control-request-headers,accept-encoding"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Expires","value":"0"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"timestamp\": 1665572247477,\n    \"status\": 403,\n    \"error\": \"Forbidden\",\n    \"path\": \"/api/v1/drivers/action\"\n}"},{"id":"777871a8-041e-4d28-90e0-10c15219254c","name":"Response: 401","originalRequest":{"method":"PUT","header":[{"key":"Admin-Authentication","value":"{{admin_auth}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"driver_id\": 15355,\n    \"action\": \"ASSIGN_VEHICLE\"\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/api/v1/drivers/action"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 12 Oct 2022 10:59:09 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"origin,access-control-request-method,access-control-request-headers,accept-encoding"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Expires","value":"0"},{"key":"X-Rate-Limit-Remaining","value":"20"},{"key":"X-Rate-Limit-Limit","value":"20"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": false,\n    \"error\": \"User not found!\"\n}"}],"_postman_id":"86b5805f-0311-4388-bf1d-55685fc26460"}],"id":"aba13c10-31fb-404b-b612-b9a1bd470d60","description":"<p>A fleet manager operating his fleet should be able to manage his drivers effectively. With LocoNav REST APIs, fleet manager can create drivers , update the details of the drivers , fetch the details of a driver by his name and can even delete a off record driver.</p>\n","_postman_id":"aba13c10-31fb-404b-b612-b9a1bd470d60"},{"name":"User","item":[{"name":"Create New User","id":"980f95cc-82c3-4a6b-bd3b-d252ac8b094d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Admin-Authentication","value":"{{admin_auth}}","type":"text"}],"body":{"mode":"raw","raw":"{\n   \"account\": {\n       \"id\": 123, //optional-> if not present new account will be created\n       \"name\": \"Prateek gupta test3\",\n       \"email\": \"email@domain.com\",\n       \"active\": true,\n       \"users\": [\n           {\n               \"name\": \"Prateek Gupta test32\",\n               \"email\": \"email@domain.com\",\n               \"phone_number\": \"8888888888\", //(Country code constraint)\n               \"active\": true,\n               \"password\": \"somepassword\",\n               \"role\": \"super_admin\",\n               \"external_id\" :\"1234\"\n           }\n       ]\n   }\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/api/v1/user","description":"<p>API to create a new User and set the role as per his role in your organization</p>\n<ul>\n<li><p>Name, email, must be unique for all accounts.</p>\n</li>\n<li><p>Roles must be based on details shared for the role.</p>\n</li>\n</ul>\n","urlObject":{"path":["api","v1","user"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[{"id":"514053a9-ed2a-46d7-8df5-affdfdb4ba1b","name":"Response: 200","originalRequest":{"method":"POST","header":[{"key":"Admin-Authentication","value":"{{admin_auth}}","type":"text","description":"franchise partner admin token"}],"body":{"mode":"raw","raw":"{\n   \"account\": {\n       \"id\": 123, //optional-> if not present new account will be created\n       \"name\": \"somename\",\n       \"email\": \"email@domain.com\",\n       \"active\": true,\n       \"users\": [\n           {\n               \"name\": \"somename\",\n               \"email\": \"email@domain.com\",\n               \"phone_number\": \"8888888888\", //(Country code constraint)\n               \"active\": true,\n               \"password\": \"somepassword\",\n               \"role\": \"super_admin\", // 5->super_admin, 6->admin, 7->fleet_manager\n               \"external_id\" :\"1234\"\n           }\n       ]\n   }\n}\n","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/api/v1/user"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"data\": {\n        \"account_id\": 123,\n        \"users\": [\n            {\n                \"id\": 124,\n                \"external_id\": \"1234\"\n            }\n        ]\n    }\n}"},{"id":"aeab6f78-99be-44c2-a666-caa353f8a41e","name":"Response: 422","originalRequest":{"method":"POST","header":[{"key":"Admin-Authentication","value":"{{admin_auth}}","type":"text"}],"body":{"mode":"raw","raw":"{\n   \"account\": {\n       \"id\": 123, //optional-> if not present new account will be created\n       \"name\": \"Prateek gupta test3\",\n       \"email\": \"email@domain.com\",\n       \"active\": true,\n       \"users\": [\n           {\n               \"name\": \"Prateek Gupta test32\",\n               \"email\": \"email@domain.com\",\n               \"country_code\": \"IN\", //(ISO)\n               \"phone_number\": \"8888888888\", //(Country code constraint)\n               \"active\": true,\n               \"password\": \"somepassword\",\n               \"role\": \"super_admin_invalid\",\n               \"external_id\" :\"1234\"\n           }\n       ]\n   }\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/api/v1/user"},"status":"Unprocessable Entity (WebDAV) (RFC 4918)","code":422,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"status\": false,\n    \"error\": \"Unable to process request, invalid role\"\n}"},{"id":"9d7753e6-28a2-4776-adcd-ab16158493a0","name":"Response : 401","originalRequest":{"method":"POST","header":[{"key":"Admin-Authentication","value":"{{admin_auth}}","type":"text"}],"body":{"mode":"raw","raw":"{\n   \"account\": {\n       \"id\": 123, //optional-> if not present new account will be created\n       \"name\": \"Prateek gupta test3\",\n       \"email\": \"email@domain.com\",\n       \"active\": true,\n       \"users\": [\n           {\n               \"name\": \"Prateek Gupta test32\",\n               \"email\": \"email@domain.com\",\n               \"country_code\": \"IN\", //(ISO)\n               \"phone_number\": \"8888888888\", //(Country code constraint)\n               \"active\": true,\n               \"password\": \"somepassword\",\n               \"role\": \"super_admin\",\n               \"external_id\" :\"1234\"\n           }\n       ]\n   }\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/api/v1/user"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"status\": false,\n    \"error\": \"Unauthorised!\"\n}"},{"id":"56cba670-6b24-414a-9625-aea8fbc1add0","name":"Response: 400","originalRequest":{"method":"POST","header":[{"key":"Admin-Authentication","value":"{{admin_auth}}","type":"text"}],"body":{"mode":"raw","raw":"{\n   \"account\": {\n       \"id\": 123, //optional-> if not present new account will be created\n       \"name\": \"Prateek gupta test3\",\n       \"email\": \"email@domain.com\",\n       \"active\": true,\n       \"users\": [\n           {\n               \"email\": \"email@domain.com\",\n               \"country_code\": \"IN\", //(ISO)\n               \"phone_number\": \"8888888888\", //(Country code constraint)\n               \"active\": true,\n               \"password\": \"somepassword\",\n               \"role\": \"super_admin\",\n               \"external_id\" :\"1234\"\n           }\n       ]\n   }\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/api/v1/user"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"status\": false,\n    \"error\": \"Required request parameter 'name' for method parameter type String is not present\"\n}"},{"id":"136bc5ac-2d92-4620-b13e-105131557bbc","name":"Response: 500","originalRequest":{"method":"POST","header":[{"key":"Admin-Authentication","value":"{{admin_auth}}","type":"text"}],"body":{"mode":"raw","raw":"{\n   \"account\": {\n       \"id\": 123, //optional-> if not present new account will be created\n       \"name\": \"Prateek gupta test3\",\n       \"email\": \"email@domain.com\",\n       \"active\": true,\n       \"users\": [\n           {\n               \"name\": \"Prateek Gupta test32\",\n               \"email\": \"email@domain.com\",\n               \"country_code\": \"IN\", //(ISO)\n               \"phone_number\": \"8888888888\", //(Country code constraint)\n               \"active\": true,\n               \"password\": \"somepassword\",\n               \"role\": \"super_admin\",\n               \"external_id\" :\"1234\"\n           }\n       ]\n   }\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/api/v1/user"},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"status\": false,\n    \"error\": \"Unable to process request\"\n}"}],"_postman_id":"980f95cc-82c3-4a6b-bd3b-d252ac8b094d"},{"name":"Delete User","id":"9bfd4bab-8832-4bac-90bc-4673ebc19f79","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Admin-Authentication","value":"{{admin_auth}}","type":"default"}],"url":"{{base_url}}/api/v1/user?id={{id}}","urlObject":{"path":["api","v1","user"],"host":["{{base_url}}"],"query":[{"description":{"content":"<p>required: user id (type: int)</p>\n","type":"text/plain"},"key":"id","value":"{{id}}"}],"variable":[]}},"response":[{"id":"c3f8c514-de96-43be-a5d6-f725875ddb32","name":"Response : 200","originalRequest":{"method":"DELETE","header":[{"key":"Admin-Authentication","value":"{{admin_auth}}","type":"default"}],"url":{"raw":"{{base_url}}/api/v1/user?id={{id}}","host":["{{base_url}}"],"path":["api","v1","user"],"query":[{"key":"id","value":"{{id}}","description":"required: user id (type: int)"}]}},"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"data\": {\n        \"success\": true\n    }\n}"},{"id":"7c9c633b-b03a-48c0-9960-eb847388357e","name":"Response : 401","originalRequest":{"method":"DELETE","header":[{"key":"Admin-Authentication","value":"{{admin_auth}}","type":"default"}],"url":{"raw":"{{base_url}}/api/v1/user?id={{id}}","host":["{{base_url}}"],"path":["api","v1","user"],"query":[{"key":"id","value":"{{id}}","description":"required: user id (type: int)"}]}},"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"status\": false,\n    \"errors\": \"User does not have sufficient privilege to delete user. Contact your system administrator.\"\n}"},{"id":"5ac495ee-fccd-4fe0-94c2-825f730f8e5a","name":"Response : 422","originalRequest":{"method":"DELETE","header":[{"key":"Admin-Authentication","value":"{{admin_auth}}","type":"default"}],"url":{"raw":"{{base_url}}/api/v1/user","host":["{{base_url}}"],"path":["api","v1","user"],"query":[{"key":"id","value":"{{id}}","description":"required: user id (type: int)","disabled":true}]}},"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"status\": false,\n    \"errors\": \"Insufficient params!\"\n}"},{"id":"252b056f-329d-40d6-8d9a-6dd30f9bff03","name":"Response : 500","originalRequest":{"method":"DELETE","header":[{"key":"Admin-Authentication","value":"{{admin_auth}}","type":"default"}],"url":{"raw":"{{base_url}}/api/v1/user?id={{id}}","host":["{{base_url}}"],"path":["api","v1","user"],"query":[{"key":"id","value":"{{id}}","description":"required: user id (type: int)"}]}},"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"status\": false,\n    \"error\": \"Unable to process request\"\n}"}],"_postman_id":"9bfd4bab-8832-4bac-90bc-4673ebc19f79"},{"name":"Delete Account","id":"cd04f0aa-6fc8-4eda-8b3a-025fb6ca8b42","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Admin-Authentication","value":"{{admin_auth}}","type":"default"}],"url":"{{base_url}}/api/v1/user/account?id={{id}}","urlObject":{"path":["api","v1","user","account"],"host":["{{base_url}}"],"query":[{"description":{"content":"<p>required: account id (type: int)</p>\n","type":"text/plain"},"key":"id","value":"{{id}}"}],"variable":[]}},"response":[{"id":"ed0eafe8-04c7-45e3-aa8c-add2c85952aa","name":"Response : 200","originalRequest":{"method":"DELETE","header":[{"key":"Admin-Authentication","value":"{{admin_auth}}","type":"default"}],"url":{"raw":"{{base_url}}/api/v1/user/account?id={{id}}","host":["{{base_url}}"],"path":["api","v1","user","account"],"query":[{"key":"id","value":"{{id}}","description":"required: account id (type: int)"}]}},"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"data\": {\n        \"success\": true\n    }\n}"},{"id":"04b5c462-6d04-4446-b856-72d2ad288ef7","name":"Response : 401","originalRequest":{"method":"DELETE","header":[{"key":"Admin-Authentication","value":"{{admin_auth}}","type":"default"}],"url":{"raw":"{{base_url}}/api/v1/user/account?id={{id}}","host":["{{base_url}}"],"path":["api","v1","user","account"],"query":[{"key":"id","value":"{{id}}","description":"required: account id (type: int)"}]}},"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"status\": false,\n    \"errors\": \"User does not have sufficient privilege to delete account. Contact your system administrator.\"\n}"},{"id":"ada54f9d-0d3e-41cd-a4ff-9b3bafa21675","name":"Response : 422","originalRequest":{"method":"DELETE","header":[{"key":"Admin-Authentication","value":"{{admin_auth}}","type":"default"}],"url":{"raw":"{{base_url}}/api/v1/user/account","host":["{{base_url}}"],"path":["api","v1","user","account"],"query":[{"key":"id","value":"{{id}}","description":"required: account id (type: int)","disabled":true}]}},"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"status\": false,\n    \"errors\": \"Insufficient params!\"\n}"},{"id":"b18dce53-8a51-499e-821c-3158f461a627","name":"Response : 500","originalRequest":{"method":"DELETE","header":[{"key":"Admin-Authentication","value":"{{admin_auth}}","type":"default"}],"url":{"raw":"{{base_url}}/api/v1/user/account?id={{id}}","host":["{{base_url}}"],"path":["api","v1","user","account"],"query":[{"key":"id","value":"{{id}}","description":"required: account id (type: int)"}]}},"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"status\": false,\n    \"error\": \"Unable to process request\"\n}"}],"_postman_id":"cd04f0aa-6fc8-4eda-8b3a-025fb6ca8b42"},{"name":"Fetch User Details by Phone Number","id":"65301bac-4890-49d9-b712-8a5413b844f9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Admin-Authentication","value":"{{admin_auth}}","type":"text"}],"url":"{{base_url}}/api/v1/user/user_details?phone_number={{phone_number}}","description":"<p>This API expects phone number of a User</p>\n<p>Example phone_number=919777777051</p>\n","urlObject":{"path":["api","v1","user","user_details"],"host":["{{base_url}}"],"query":[{"key":"phone_number","value":"{{phone_number}}"}],"variable":[]}},"response":[{"id":"0f0010fd-bb87-4e19-8460-ea277ce3d0bd","name":"Response: 200","originalRequest":{"method":"GET","header":[{"key":"Admin-Authentication","value":"{{admin_auth}}","type":"text"},{"key":"User-Id","value":"{{user_id}}","type":"text"}],"url":{"raw":"{{base_url}}/api/v1/user/user_details?phone_number={{phone_number}}","host":["{{base_url}}"],"path":["api","v1","user","user_details"],"query":[{"key":"phone_number","value":"{{phone_number}}"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"data\": {\n        \"user\": {\n            \"id\": 123,\n            \"name\": \"Prateek Gupta test32\",\n            \"email\": \"test3@partner.com\",\n            \"phone_numbers\": \"+918888888888\",\n            \"active\": true,\n            \"role\": \"super_admin\",\n            \"external_id\": \"1234\",\n            \"account\": {\n                \"id\": 123,\n                \"name\": \"Prateek gupta test3\",\n                \"email\": \"uuid@partner.com\",\n                \"active\": true\n            }\n        }\n    }\n}"},{"id":"a6594916-f832-4d4d-ba0a-29836ba8a17d","name":"Response: 401","originalRequest":{"method":"GET","header":[{"key":"Admin-Authentication","value":"{{admin_auth}}","type":"text"},{"key":"User-Id","value":"invalid-user-token","type":"text"}],"url":{"raw":"{{base_url}}/api/v1/user/user_details?phone_number={{phone_number}}","host":["{{base_url}}"],"path":["api","v1","user","user_details"],"query":[{"key":"phone_number","value":"{{phone_number}}"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"status\": false,\n    \"error\": \"Unauthorised!\"\n}"},{"id":"2b6f8b52-8a37-4ed8-a5c5-4f4f6cb16d26","name":"Response: 422","originalRequest":{"method":"GET","header":[{"key":"Admin-Authentication","value":"{{admin_auth}}","type":"text"},{"key":"User-Id","value":"{{user_id}}","type":"text"}],"url":{"raw":"{{base_url}}/api/v1/user/user_details?phone_number={{phone_number}}","host":["{{base_url}}"],"path":["api","v1","user","user_details"],"query":[{"key":"phone_number","value":"{{phone_number}}"}]}},"status":"Unprocessable Entity (WebDAV) (RFC 4918)","code":422,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"status\": false,\n    \"error\": \"422 Unprocessable Entity: [{\\\"message\\\":{\\\"success\\\":false,\\\"error\\\":\\\"User not found!\\\"}}]\"\n}"}],"_postman_id":"65301bac-4890-49d9-b712-8a5413b844f9"},{"name":"Fetch User by Vehicle Number","id":"b6fd8e9f-3691-498d-bb93-9dad7a460e74","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Admin-Authentication","value":"{{admin_auth}}"}],"url":"{{base_url}}/api/v1/user/info?vehicle_number={{vehicle_number}}","urlObject":{"path":["api","v1","user","info"],"host":["{{base_url}}"],"query":[{"key":"vehicle_number","value":"{{vehicle_number}}"}],"variable":[]}},"response":[{"id":"a75261c7-2dad-4444-8bad-546ebc84efcd","name":"Fetch User by Vehicle Number","originalRequest":{"method":"GET","header":[{"key":"Admin-Authentication","value":"{{admin_auth}}"}],"url":{"raw":"{{base_url}}/api/v1/user/info?vehicle_number={{vehicle_number}}","host":["{{base_url}}"],"path":["api","v1","user","info"],"query":[{"key":"vehicle_number","value":"{{vehicle_number}}"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","name":"Content-Type","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"data\": {\n        \"user\": {\n            \"id\": 123,\n            \"name\": \"Prateek Gupta test32\",\n            \"email\": \"test3@gomech.com\",\n            \"phone_numbers\": \"+918888888888\",\n            \"active\": true,\n            \"role\": \"super_admin\",\n            \"external_id\": \"1234\",\n            \"account\": {\n                \"id\": 123,\n                \"name\": \"Prateek gupta test3\",\n                \"email\": \"uuid@gomech.com\",\n                \"active\": true\n            }\n        }\n    }\n}"}],"_postman_id":"b6fd8e9f-3691-498d-bb93-9dad7a460e74"}],"id":"2d35ddb7-b488-438e-9d4c-e20eb312ec40","description":"<p>A user is the most granular entity that can view/ update assets. Users are associated with an account, an account can have multiple users, each user will have a role, based on assigned roles they can different privileges.</p>\n<p>We offer multiple roles to a user:</p>\n<ol>\n<li>readonly_admin</li>\n<li>readonly_fleet_manager</li>\n<li>company</li>\n<li>onlooker</li>\n<li>super_admin</li>\n<li>admin</li>\n<li>fleet_manager</li>\n</ol>\n","_postman_id":"2d35ddb7-b488-438e-9d4c-e20eb312ec40"}],"event":[{"listen":"prerequest","script":{"id":"d48c74e0-6432-4fcb-adf5-e23ccf00293d","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"7031304a-2f43-4d1c-b650-95d5a8615f9c","type":"text/javascript","exec":[""]}}],"variable":[{"key":"auth_value","value":"xxx"}]}