{"info":{"_postman_id":"ca5ab75f-ff62-45d9-a7f4-b44d6488a16f","name":"Smartpark","description":"<html><head></head><body><h2 id=\"smartpark-api\">Smartpark API</h2>\n<p>This collection contains the backend API endpoints for the <strong>Smartpark</strong> smart parking management system, running locally at <code>http://localhost:5000</code>.</p>\n<h3 id=\"what-this-collection-covers\">What this collection covers</h3>\n<p><strong>Server Health</strong></p>\n<ul>\n<li>Check the health/status of the server.</li>\n</ul>\n<p><strong>Zones</strong></p>\n<ul>\n<li><p>Retrieve all parking zones</p>\n</li>\n<li><p>Fetch a specific zone by ID</p>\n</li>\n<li><p>Create a new parking zone</p>\n</li>\n<li><p>Update an existing zone by ID</p>\n</li>\n</ul>\n<p><strong>Bookings</strong></p>\n<ul>\n<li><p>Create a new parking booking</p>\n</li>\n<li><p>Retrieve all bookings</p>\n</li>\n<li><p>Fetch a specific booking by ID</p>\n</li>\n<li><p>Get all bookings for a specific user</p>\n</li>\n<li><p>Update the status of a booking</p>\n</li>\n</ul>\n<p><strong>Valet</strong></p>\n<ul>\n<li><p>Create a valet request for a booking</p>\n</li>\n<li><p>Get the current valet status for a booking</p>\n</li>\n<li><p>Update the valet status for a booking</p>\n</li>\n</ul>\n<p><strong>Users</strong></p>\n<ul>\n<li><p>Sync a user (e.g., from Firebase authentication)</p>\n</li>\n<li><p>Retrieve a user's profile by Firebase UID</p>\n</li>\n</ul>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"50840636","collectionId":"ca5ab75f-ff62-45d9-a7f4-b44d6488a16f","publishedId":"2sBXqKnzC8","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2026-05-01T13:33:58.000Z"},"item":[{"name":"server health","id":"32a647a7-5f9d-4aff-80bb-60a4bacff43c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:5000/api/zones","urlObject":{"protocol":"http","port":"5000","path":["api","zones"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"1851ee70-b8a2-4e8e-be81-5e20d2b0de01","name":"server health","originalRequest":{"method":"GET","header":[],"url":"http://localhost:5000/api/zones"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1075"},{"key":"ETag","value":"W/\"433-FJ2LUYe2xB3RANW5kpV40+tXLWI\""},{"key":"Date","value":"Fri, 01 May 2026 12:24:35 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": [\n        {\n            \"location\": {\n                \"lat\": 28.6139,\n                \"lng\": 77.209\n            },\n            \"_id\": \"69f0a390d9d3195f6439d26a\",\n            \"name\": \"Zone A - Ground Level\",\n            \"type\": \"standard\",\n            \"totalSpots\": 50,\n            \"availableSpots\": 38,\n            \"pricePerHour\": 50,\n            \"__v\": 0,\n            \"createdAt\": \"2026-04-28T12:09:52.825Z\",\n            \"updatedAt\": \"2026-04-28T12:09:52.825Z\"\n        },\n        {\n            \"location\": {\n                \"lat\": 28.6145,\n                \"lng\": 77.2095\n            },\n            \"_id\": \"69f0a390d9d3195f6439d26b\",\n            \"name\": \"Zone B - Basement 1\",\n            \"type\": \"standard\",\n            \"totalSpots\": 40,\n            \"availableSpots\": 22,\n            \"pricePerHour\": 50,\n            \"__v\": 0,\n            \"createdAt\": \"2026-04-28T12:09:52.826Z\",\n            \"updatedAt\": \"2026-04-28T12:09:52.826Z\"\n        },\n        {\n            \"location\": {\n                \"lat\": 28.613,\n                \"lng\": 77.2085\n            },\n            \"_id\": \"69f0a390d9d3195f6439d26c\",\n            \"name\": \"Premium Covered - Level 2\",\n            \"type\": \"premium\",\n            \"totalSpots\": 30,\n            \"availableSpots\": 15,\n            \"pricePerHour\": 150,\n            \"__v\": 0,\n            \"createdAt\": \"2026-04-28T12:09:52.826Z\",\n            \"updatedAt\": \"2026-04-28T12:09:52.826Z\"\n        },\n        {\n            \"location\": {\n                \"lat\": 28.6135,\n                \"lng\": 77.2092\n            },\n            \"_id\": \"69f0a390d9d3195f6439d26d\",\n            \"name\": \"VIP Valet Zone\",\n            \"type\": \"valet\",\n            \"totalSpots\": 10,\n            \"availableSpots\": 6,\n            \"pricePerHour\": 300,\n            \"__v\": 0,\n            \"createdAt\": \"2026-04-28T12:09:52.826Z\",\n            \"updatedAt\": \"2026-04-28T12:09:52.826Z\"\n        }\n    ]\n}"}],"_postman_id":"32a647a7-5f9d-4aff-80bb-60a4bacff43c"},{"name":"get all zones","id":"3b93fcbf-52f7-493f-8ab6-34dbf2ad4cf5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:5000/api/zones","urlObject":{"protocol":"http","port":"5000","path":["api","zones"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"d31965ed-c0f3-4e09-858a-c0fea8d80c3e","name":"get all zones","originalRequest":{"method":"GET","header":[],"url":"http://localhost:5000/api/zones"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1075"},{"key":"ETag","value":"W/\"433-FJ2LUYe2xB3RANW5kpV40+tXLWI\""},{"key":"Date","value":"Fri, 01 May 2026 12:24:05 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": [\n        {\n            \"location\": {\n                \"lat\": 28.6139,\n                \"lng\": 77.209\n            },\n            \"_id\": \"69f0a390d9d3195f6439d26a\",\n            \"name\": \"Zone A - Ground Level\",\n            \"type\": \"standard\",\n            \"totalSpots\": 50,\n            \"availableSpots\": 38,\n            \"pricePerHour\": 50,\n            \"__v\": 0,\n            \"createdAt\": \"2026-04-28T12:09:52.825Z\",\n            \"updatedAt\": \"2026-04-28T12:09:52.825Z\"\n        },\n        {\n            \"location\": {\n                \"lat\": 28.6145,\n                \"lng\": 77.2095\n            },\n            \"_id\": \"69f0a390d9d3195f6439d26b\",\n            \"name\": \"Zone B - Basement 1\",\n            \"type\": \"standard\",\n            \"totalSpots\": 40,\n            \"availableSpots\": 22,\n            \"pricePerHour\": 50,\n            \"__v\": 0,\n            \"createdAt\": \"2026-04-28T12:09:52.826Z\",\n            \"updatedAt\": \"2026-04-28T12:09:52.826Z\"\n        },\n        {\n            \"location\": {\n                \"lat\": 28.613,\n                \"lng\": 77.2085\n            },\n            \"_id\": \"69f0a390d9d3195f6439d26c\",\n            \"name\": \"Premium Covered - Level 2\",\n            \"type\": \"premium\",\n            \"totalSpots\": 30,\n            \"availableSpots\": 15,\n            \"pricePerHour\": 150,\n            \"__v\": 0,\n            \"createdAt\": \"2026-04-28T12:09:52.826Z\",\n            \"updatedAt\": \"2026-04-28T12:09:52.826Z\"\n        },\n        {\n            \"location\": {\n                \"lat\": 28.6135,\n                \"lng\": 77.2092\n            },\n            \"_id\": \"69f0a390d9d3195f6439d26d\",\n            \"name\": \"VIP Valet Zone\",\n            \"type\": \"valet\",\n            \"totalSpots\": 10,\n            \"availableSpots\": 6,\n            \"pricePerHour\": 300,\n            \"__v\": 0,\n            \"createdAt\": \"2026-04-28T12:09:52.826Z\",\n            \"updatedAt\": \"2026-04-28T12:09:52.826Z\"\n        }\n    ]\n}"}],"_postman_id":"3b93fcbf-52f7-493f-8ab6-34dbf2ad4cf5"},{"name":"get zone by ID","id":"798b590e-44ce-4bd6-9bd2-8c9f7eded156","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:5000/api/zones/:id","urlObject":{"protocol":"http","port":"5000","path":["api","zones",":id"],"host":["localhost"],"query":[],"variable":[{"type":"any","value":"69f0a390d9d3195f6439d26a","key":"id"}]}},"response":[{"id":"b0690c12-760b-4da5-8f33-f1a32327a766","name":"get zone by ID","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://localhost:5000/api/zones/:id","protocol":"http","host":["localhost"],"port":"5000","path":["api","zones",":id"],"variable":[{"key":"id","value":"69f0a390d9d3195f6439d26a"}]}},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"287"},{"key":"ETag","value":"W/\"11f-Jd3495PHTftp9O7VgrS9F3kqE9c\""},{"key":"Date","value":"Fri, 01 May 2026 12:27:05 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": {\n        \"location\": {\n            \"lat\": 28.6139,\n            \"lng\": 77.209\n        },\n        \"_id\": \"69f0a390d9d3195f6439d26a\",\n        \"name\": \"Zone A - Ground Level\",\n        \"type\": \"standard\",\n        \"totalSpots\": 50,\n        \"availableSpots\": 38,\n        \"pricePerHour\": 50,\n        \"__v\": 0,\n        \"createdAt\": \"2026-04-28T12:09:52.825Z\",\n        \"updatedAt\": \"2026-04-28T12:09:52.825Z\"\n    }\n}"}],"_postman_id":"798b590e-44ce-4bd6-9bd2-8c9f7eded156"},{"name":"create zone","id":"d7f0cf9e-f026-4f54-a7aa-90ab13a1e8bb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"name\": \"Connaught Place - Block A\",\r\n  \"type\": \"standard\",\r\n  \"totalSpots\": 150,\r\n  \"availableSpots\": 42,\r\n  \"pricePerHour\": 50,\r\n  \"location\": {\r\n    \"lat\": 28.6315,\r\n    \"lng\": 77.2167\r\n  }\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/zones","urlObject":{"protocol":"http","port":"5000","path":["api","zones"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"7a93f997-bc32-429d-ad64-6b69392560c6","name":"create zone","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"name\": \"Connaught Place - Block A\",\r\n  \"type\": \"standard\",\r\n  \"totalSpots\": 150,\r\n  \"availableSpots\": 42,\r\n  \"pricePerHour\": 50,\r\n  \"location\": {\r\n    \"lat\": 28.6315,\r\n    \"lng\": 77.2167\r\n  }\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/zones"},"status":"Created","code":201,"_postman_previewlanguage":null,"header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"293"},{"key":"ETag","value":"W/\"125-LyeJ4a0C/DSON9mhCpgUp5p9+lc\""},{"key":"Date","value":"Fri, 01 May 2026 12:26:04 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": {\n        \"name\": \"Connaught Place - Block A\",\n        \"type\": \"standard\",\n        \"totalSpots\": 150,\n        \"availableSpots\": 42,\n        \"pricePerHour\": 50,\n        \"location\": {\n            \"lat\": 28.6315,\n            \"lng\": 77.2167\n        },\n        \"_id\": \"69f49bdcb28f7e37d9b1bf77\",\n        \"createdAt\": \"2026-05-01T12:26:04.254Z\",\n        \"updatedAt\": \"2026-05-01T12:26:04.254Z\",\n        \"__v\": 0\n    }\n}"}],"_postman_id":"d7f0cf9e-f026-4f54-a7aa-90ab13a1e8bb"},{"name":"update zone by id","id":"10d4c422-4fee-4f95-9a20-d052ff25a6f0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n  \"name\": \"Aditya Place - Block A\"\r\n  \r\n  \r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/zones/:id","urlObject":{"protocol":"http","port":"5000","path":["api","zones",":id"],"host":["localhost"],"query":[],"variable":[{"type":"any","value":"69f0a390d9d3195f6439d26a","key":"id"}]}},"response":[{"id":"babdc170-d20e-4afa-ad38-de0ca2b8727b","name":"update zone by id","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n  \"name\": \"Aditya Place - Block A\"\r\n  \r\n  \r\n}\r\n","options":{"raw":{"language":"json"}}},"url":{"raw":"http://localhost:5000/api/zones/:id","protocol":"http","host":["localhost"],"port":"5000","path":["api","zones",":id"],"variable":[{"key":"id","value":"69f0a390d9d3195f6439d26a"}]}},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"288"},{"key":"ETag","value":"W/\"120-howmUh7Cecfg9WkFuG0x4ddfjCg\""},{"key":"Date","value":"Fri, 01 May 2026 12:28:19 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": {\n        \"location\": {\n            \"lat\": 28.6139,\n            \"lng\": 77.209\n        },\n        \"_id\": \"69f0a390d9d3195f6439d26a\",\n        \"name\": \"Aditya Place - Block A\",\n        \"type\": \"standard\",\n        \"totalSpots\": 50,\n        \"availableSpots\": 38,\n        \"pricePerHour\": 50,\n        \"__v\": 0,\n        \"createdAt\": \"2026-04-28T12:09:52.825Z\",\n        \"updatedAt\": \"2026-05-01T12:28:19.014Z\"\n    }\n}"}],"_postman_id":"10d4c422-4fee-4f95-9a20-d052ff25a6f0"},{"name":"create booking","id":"b79faabd-2f4a-4345-a67b-47fc18a9c3b1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"zoneId\": \"69f0a390d9d3195f6439d26a\", \r\n  \"userId\": \"69f201c4bff395bc92ff23f3\", \r\n  \"licensePlate\": \"DL-04-AB-1234\",\r\n  \"date\": \"2026-05-15\",\r\n  \"time\": \"14:30\",\r\n  \"duration\": 3,\r\n  \"totalAmount\": 150\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/bookings","urlObject":{"protocol":"http","port":"5000","path":["api","bookings"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"c2bd4523-2d75-4495-b551-76a38d37f928","name":"create booking","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"zoneId\": \"69f0a390d9d3195f6439d26a\", \r\n  \"userId\": \"69f201c4bff395bc92ff23f3\", \r\n  \"licensePlate\": \"DL-04-AB-1234\",\r\n  \"date\": \"2026-05-15\",\r\n  \"time\": \"14:30\",\r\n  \"duration\": 3,\r\n  \"totalAmount\": 150\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/bookings"},"status":"Created","code":201,"_postman_previewlanguage":null,"header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"353"},{"key":"ETag","value":"W/\"161-LlS0mwTfsxTRTwLmNV2RxXsrpYs\""},{"key":"Date","value":"Fri, 01 May 2026 13:13:11 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": {\n        \"userId\": \"69f201c4bff395bc92ff23f3\",\n        \"zoneId\": \"69f0a390d9d3195f6439d26a\",\n        \"licensePlate\": \"DL-04-AB-1234\",\n        \"date\": \"2026-05-15\",\n        \"time\": \"14:30\",\n        \"duration\": 3,\n        \"totalAmount\": 150,\n        \"status\": \"pending\",\n        \"transactionId\": null,\n        \"_id\": \"69f4a6e7c674b082901de975\",\n        \"createdAt\": \"2026-05-01T13:13:11.630Z\",\n        \"updatedAt\": \"2026-05-01T13:13:11.630Z\",\n        \"__v\": 0\n    }\n}"}],"_postman_id":"b79faabd-2f4a-4345-a67b-47fc18a9c3b1"},{"name":"get all bookings","id":"85518c8f-0e06-43ab-b8c7-58103e3c8877","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"{\r\n  \"zoneId\": \"69f0a390d9d3195f6439d26a\", \r\n  \"userId\": \"69f201c4bff395bc92ff23f3\", \r\n  \"licensePlate\": \"DL-04-AB-1234\",\r\n  \"date\": \"2026-05-15\",\r\n  \"time\": \"14:30\",\r\n  \"duration\": 3,\r\n  \"totalAmount\": 150\r\n}\r\n"},"url":"http://localhost:5000/api/bookings","urlObject":{"protocol":"http","port":"5000","path":["api","bookings"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"feac625b-9d31-4185-b66b-587edf567fcb","name":"get all bookings","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"{\r\n  \"zoneId\": \"69f0a390d9d3195f6439d26a\", \r\n  \"userId\": \"69f201c4bff395bc92ff23f3\", \r\n  \"licensePlate\": \"DL-04-AB-1234\",\r\n  \"date\": \"2026-05-15\",\r\n  \"time\": \"14:30\",\r\n  \"duration\": 3,\r\n  \"totalAmount\": 150\r\n}\r\n"},"url":"http://localhost:5000/api/bookings"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"493"},{"key":"ETag","value":"W/\"1ed-vpDQdK2oeX25lTTwV7CjUS6bvQc\""},{"key":"Date","value":"Fri, 01 May 2026 13:14:10 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": [\n        {\n            \"_id\": \"69f4a6e7c674b082901de975\",\n            \"userId\": {\n                \"_id\": \"69f201c4bff395bc92ff23f3\",\n                \"email\": \"nishit.g.doshi.cg@gmail.com\",\n                \"displayName\": \"nishit.g.doshi.cg\"\n            },\n            \"zoneId\": {\n                \"_id\": \"69f0a390d9d3195f6439d26a\",\n                \"name\": \"Aditya Place - Block A\",\n                \"type\": \"standard\"\n            },\n            \"licensePlate\": \"DL-04-AB-1234\",\n            \"date\": \"2026-05-15\",\n            \"time\": \"14:30\",\n            \"duration\": 3,\n            \"totalAmount\": 150,\n            \"status\": \"pending\",\n            \"transactionId\": null,\n            \"createdAt\": \"2026-05-01T13:13:11.630Z\",\n            \"updatedAt\": \"2026-05-01T13:13:11.630Z\",\n            \"__v\": 0\n        }\n    ]\n}"}],"_postman_id":"85518c8f-0e06-43ab-b8c7-58103e3c8877"},{"name":"get bookings by id","id":"cacba991-8046-484c-a801-723a26707df4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"{\r\n  \"zoneId\": \"69f0a390d9d3195f6439d26a\", \r\n  \"userId\": \"69f201c4bff395bc92ff23f3\", \r\n  \"licensePlate\": \"DL-04-AB-1234\",\r\n  \"date\": \"2026-05-15\",\r\n  \"time\": \"14:30\",\r\n  \"duration\": 3,\r\n  \"totalAmount\": 150\r\n}\r\n"},"url":"http://localhost:5000/api/bookings/:id","urlObject":{"protocol":"http","port":"5000","path":["api","bookings",":id"],"host":["localhost"],"query":[],"variable":[{"type":"any","value":"69f4a6e7c674b082901de975","key":"id"}]}},"response":[{"id":"9b99ab77-b716-460f-b446-e98bf049f098","name":"get bookings by id","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"{\r\n  \"zoneId\": \"69f0a390d9d3195f6439d26a\", \r\n  \"userId\": \"69f201c4bff395bc92ff23f3\", \r\n  \"licensePlate\": \"DL-04-AB-1234\",\r\n  \"date\": \"2026-05-15\",\r\n  \"time\": \"14:30\",\r\n  \"duration\": 3,\r\n  \"totalAmount\": 150\r\n}\r\n"},"url":{"raw":"http://localhost:5000/api/bookings/:id","protocol":"http","host":["localhost"],"port":"5000","path":["api","bookings",":id"],"variable":[{"key":"id","value":"69f4a6e7c674b082901de975"}]}},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"817"},{"key":"ETag","value":"W/\"331-eeCYxjCsbqbpgIAEQGuf2lMktwE\""},{"key":"Date","value":"Fri, 01 May 2026 13:14:51 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": {\n        \"_id\": \"69f4a6e7c674b082901de975\",\n        \"userId\": {\n            \"_id\": \"69f201c4bff395bc92ff23f3\",\n            \"firebaseUid\": \"5Hfvs080pZPX2ioBBRPgSkGY3Qk2\",\n            \"email\": \"nishit.g.doshi.cg@gmail.com\",\n            \"displayName\": \"nishit.g.doshi.cg\",\n            \"role\": \"admin\",\n            \"createdAt\": \"2026-04-29T13:04:04.307Z\",\n            \"updatedAt\": \"2026-04-29T13:34:17.837Z\",\n            \"__v\": 0\n        },\n        \"zoneId\": {\n            \"location\": {\n                \"lat\": 28.6139,\n                \"lng\": 77.209\n            },\n            \"_id\": \"69f0a390d9d3195f6439d26a\",\n            \"name\": \"Aditya Place - Block A\",\n            \"type\": \"standard\",\n            \"totalSpots\": 50,\n            \"availableSpots\": 33,\n            \"pricePerHour\": 50,\n            \"__v\": 0,\n            \"createdAt\": \"2026-04-28T12:09:52.825Z\",\n            \"updatedAt\": \"2026-05-01T13:13:11.579Z\"\n        },\n        \"licensePlate\": \"DL-04-AB-1234\",\n        \"date\": \"2026-05-15\",\n        \"time\": \"14:30\",\n        \"duration\": 3,\n        \"totalAmount\": 150,\n        \"status\": \"pending\",\n        \"transactionId\": null,\n        \"createdAt\": \"2026-05-01T13:13:11.630Z\",\n        \"updatedAt\": \"2026-05-01T13:13:11.630Z\",\n        \"__v\": 0\n    }\n}"}],"_postman_id":"cacba991-8046-484c-a801-723a26707df4"},{"name":"get user bookings","id":"24510cf1-448b-42e7-a6c7-ef64fa1f0f59","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"{\r\n  \"zoneId\": \"69f0a390d9d3195f6439d26a\", \r\n  \"userId\": \"69f201c4bff395bc92ff23f3\", \r\n  \"licensePlate\": \"DL-04-AB-1234\",\r\n  \"date\": \"2026-05-15\",\r\n  \"time\": \"14:30\",\r\n  \"duration\": 3,\r\n  \"totalAmount\": 150\r\n}\r\n"},"url":"http://localhost:5000/api/bookings/user/:userID","urlObject":{"protocol":"http","port":"5000","path":["api","bookings","user",":userID"],"host":["localhost"],"query":[],"variable":[{"type":"any","value":"69f201c4bff395bc92ff23f3","key":"userID"}]}},"response":[{"id":"e626787d-7334-41b5-9ce5-78d9ef55e739","name":"get user bookings","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"{\r\n  \"zoneId\": \"69f0a390d9d3195f6439d26a\", \r\n  \"userId\": \"69f201c4bff395bc92ff23f3\", \r\n  \"licensePlate\": \"DL-04-AB-1234\",\r\n  \"date\": \"2026-05-15\",\r\n  \"time\": \"14:30\",\r\n  \"duration\": 3,\r\n  \"totalAmount\": 150\r\n}\r\n"},"url":{"raw":"http://localhost:5000/api/bookings/user/:userID","protocol":"http","host":["localhost"],"port":"5000","path":["api","bookings","user",":userID"],"variable":[{"key":"userID","value":"69f201c4bff395bc92ff23f3"}]}},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"593"},{"key":"ETag","value":"W/\"251-V6A3aITCggr9fr0peCNQAfZqzK0\""},{"key":"Date","value":"Fri, 01 May 2026 13:15:43 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": [\n        {\n            \"_id\": \"69f4a6e7c674b082901de975\",\n            \"userId\": \"69f201c4bff395bc92ff23f3\",\n            \"zoneId\": {\n                \"location\": {\n                    \"lat\": 28.6139,\n                    \"lng\": 77.209\n                },\n                \"_id\": \"69f0a390d9d3195f6439d26a\",\n                \"name\": \"Aditya Place - Block A\",\n                \"type\": \"standard\",\n                \"totalSpots\": 50,\n                \"availableSpots\": 33,\n                \"pricePerHour\": 50,\n                \"__v\": 0,\n                \"createdAt\": \"2026-04-28T12:09:52.825Z\",\n                \"updatedAt\": \"2026-05-01T13:13:11.579Z\"\n            },\n            \"licensePlate\": \"DL-04-AB-1234\",\n            \"date\": \"2026-05-15\",\n            \"time\": \"14:30\",\n            \"duration\": 3,\n            \"totalAmount\": 150,\n            \"status\": \"pending\",\n            \"transactionId\": null,\n            \"createdAt\": \"2026-05-01T13:13:11.630Z\",\n            \"updatedAt\": \"2026-05-01T13:13:11.630Z\",\n            \"__v\": 0\n        }\n    ]\n}"}],"_postman_id":"24510cf1-448b-42e7-a6c7-ef64fa1f0f59"},{"name":"update booking status","id":"ea9a23d1-2dcf-4486-b724-912c7e9cdb54","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n  \"zoneId\": \"69f0a390d9d3195f6439d26a\", \r\n  \"userId\": \"69f201c4bff395bc92ff23f3\", \r\n  \"licensePlate\": \"DL-04-AB-1234\",\r\n  \"date\": \"2026-05-15\",\r\n  \"time\": \"14:30\",\r\n  \"duration\": 3,\r\n  \"totalAmount\": 150\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/bookings/:id/status","urlObject":{"protocol":"http","port":"5000","path":["api","bookings",":id","status"],"host":["localhost"],"query":[],"variable":[{"type":"any","value":"","key":"id"}]}},"response":[{"id":"45bb4acc-85dd-48f9-848e-257a27fd35d2","name":"update booking status","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n  \"status\": \"confirmed\",\r\n  \"transactionId\": \"TXN_123456789\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":{"raw":"http://localhost:5000/api/bookings/:id/status","protocol":"http","host":["localhost"],"port":"5000","path":["api","bookings",":id","status"],"variable":[{"key":"id","value":"69f4a6e7c674b082901de975"}]}},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"366"},{"key":"ETag","value":"W/\"16e-Uz/I0Kl2+MrSYa/Gmcw7drInkK8\""},{"key":"Date","value":"Fri, 01 May 2026 13:18:20 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": {\n        \"_id\": \"69f4a6e7c674b082901de975\",\n        \"userId\": \"69f201c4bff395bc92ff23f3\",\n        \"zoneId\": \"69f0a390d9d3195f6439d26a\",\n        \"licensePlate\": \"DL-04-AB-1234\",\n        \"date\": \"2026-05-15\",\n        \"time\": \"14:30\",\n        \"duration\": 3,\n        \"totalAmount\": 150,\n        \"status\": \"confirmed\",\n        \"transactionId\": \"TXN_123456789\",\n        \"createdAt\": \"2026-05-01T13:13:11.630Z\",\n        \"updatedAt\": \"2026-05-01T13:18:20.233Z\",\n        \"__v\": 0\n    }\n}"}],"_postman_id":"ea9a23d1-2dcf-4486-b724-912c7e9cdb54"},{"name":"create valet request","id":"d4386cd4-f795-4ffc-8952-816437103d35","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"bookingId\": \"69f4a6e7c674b082901de975\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/valet","urlObject":{"protocol":"http","port":"5000","path":["api","valet"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"d29168e9-a024-4da6-986e-1d563f922915","name":"create valet request","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"bookingId\": \"69f4a6e7c674b082901de975\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/valet"},"status":"Created","code":201,"_postman_previewlanguage":null,"header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"256"},{"key":"ETag","value":"W/\"100-cJW6J0QTtiQ7DECt7SUb3XY5oCI\""},{"key":"Date","value":"Fri, 01 May 2026 13:22:07 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": {\n        \"bookingId\": \"69f4a6e7c674b082901de975\",\n        \"valetName\": \"Rahul Sharma\",\n        \"valetRating\": 4.9,\n        \"status\": \"received\",\n        \"eta\": 5,\n        \"_id\": \"69f4a8ffc674b082901de976\",\n        \"createdAt\": \"2026-05-01T13:22:07.368Z\",\n        \"updatedAt\": \"2026-05-01T13:22:07.368Z\",\n        \"__v\": 0\n    }\n}"}],"_postman_id":"d4386cd4-f795-4ffc-8952-816437103d35"},{"name":"get valet status","id":"75702382-d51b-4174-90fb-a061090873c9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:5000/api/valet/:bookingId","urlObject":{"protocol":"http","port":"5000","path":["api","valet",":bookingId"],"host":["localhost"],"query":[],"variable":[{"type":"any","value":"69f4a6e7c674b082901de975","key":"bookingId"}]}},"response":[{"id":"d71823eb-f27c-43b3-8d2f-4e641e22008c","name":"get valet status","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"{\r\n  \"bookingId\": \"69f4a6e7c674b082901de975\"\r\n}\r\n"},"url":{"raw":"http://localhost:5000/api/valet/:bookingId","protocol":"http","host":["localhost"],"port":"5000","path":["api","valet",":bookingId"],"variable":[{"key":"bookingId","value":"69f4a6e7c674b082901de975"}]}},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"572"},{"key":"ETag","value":"W/\"23c-rcmAgJTOZT8L6qk660+wfl1z6t4\""},{"key":"Date","value":"Fri, 01 May 2026 13:24:17 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": {\n        \"_id\": \"69f4a8ffc674b082901de976\",\n        \"bookingId\": {\n            \"_id\": \"69f4a6e7c674b082901de975\",\n            \"userId\": \"69f201c4bff395bc92ff23f3\",\n            \"zoneId\": \"69f0a390d9d3195f6439d26a\",\n            \"licensePlate\": \"DL-04-AB-1234\",\n            \"date\": \"2026-05-15\",\n            \"time\": \"14:30\",\n            \"duration\": 3,\n            \"totalAmount\": 150,\n            \"status\": \"confirmed\",\n            \"transactionId\": \"TXN_123456789\",\n            \"createdAt\": \"2026-05-01T13:13:11.630Z\",\n            \"updatedAt\": \"2026-05-01T13:18:20.233Z\",\n            \"__v\": 0\n        },\n        \"valetName\": \"Rahul Sharma\",\n        \"valetRating\": 4.9,\n        \"status\": \"received\",\n        \"eta\": 5,\n        \"createdAt\": \"2026-05-01T13:22:07.368Z\",\n        \"updatedAt\": \"2026-05-01T13:22:07.368Z\",\n        \"__v\": 0\n    }\n}"}],"_postman_id":"75702382-d51b-4174-90fb-a061090873c9"},{"name":"update valet status","id":"3cb87730-4c71-46fd-b1da-ad8d0327e1e1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n  \"status\": \"picked_up\",\r\n  \"eta\": 3\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/valet/:bookingId/status","urlObject":{"protocol":"http","port":"5000","path":["api","valet",":bookingId","status"],"host":["localhost"],"query":[],"variable":[{"type":"any","value":"69f4a6e7c674b082901de975","key":"bookingId"}]}},"response":[{"id":"d30f0929-ef27-44aa-bae8-b2bdece984d0","name":"update valet status","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n  \"status\": \"picked_up\",\r\n  \"eta\": 3\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":{"raw":"http://localhost:5000/api/valet/:bookingId/status","protocol":"http","host":["localhost"],"port":"5000","path":["api","valet",":bookingId","status"],"variable":[{"key":"bookingId","value":"69f4a6e7c674b082901de975"}]}},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"257"},{"key":"ETag","value":"W/\"101-qXFM/SFAYJnMfJ7wIX1wCSzxZUw\""},{"key":"Date","value":"Fri, 01 May 2026 13:25:40 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": {\n        \"_id\": \"69f4a8ffc674b082901de976\",\n        \"bookingId\": \"69f4a6e7c674b082901de975\",\n        \"valetName\": \"Rahul Sharma\",\n        \"valetRating\": 4.9,\n        \"status\": \"picked_up\",\n        \"eta\": 3,\n        \"createdAt\": \"2026-05-01T13:22:07.368Z\",\n        \"updatedAt\": \"2026-05-01T13:25:40.120Z\",\n        \"__v\": 0\n    }\n}"}],"_postman_id":"3cb87730-4c71-46fd-b1da-ad8d0327e1e1"},{"name":"sync user","id":"9c34dfb9-3766-4f9f-8f16-41a424cebee1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"firebaseUid\": \"5Hfvs080pZPX2ioBBRPgSkGY3Qk2\",\r\n  \"email\": \"nishit.g.doshi.cg@gmail.com\",\r\n  \"displayName\": \"Nishit\",\r\n  \"role\": \"user\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/users/sync","urlObject":{"protocol":"http","port":"5000","path":["api","users","sync"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"015b7464-d13e-46cd-8272-9e38fa876188","name":"sync user","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"firebaseUid\": \"5Hfvs080pZPX2ioBBRPgSkGY3Qk2\",\r\n  \"email\": \"nishit.g.doshi.cg@gmail.com\",\r\n  \"displayName\": \"Nishit\",\r\n  \"role\": \"user\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/users/sync"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"265"},{"key":"ETag","value":"W/\"109-i+gweBdDeNDlEsMzfF60JdZ6uoA\""},{"key":"Date","value":"Fri, 01 May 2026 13:28:09 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": {\n        \"_id\": \"69f201c4bff395bc92ff23f3\",\n        \"firebaseUid\": \"5Hfvs080pZPX2ioBBRPgSkGY3Qk2\",\n        \"email\": \"nishit.g.doshi.cg@gmail.com\",\n        \"displayName\": \"Nishit\",\n        \"role\": \"admin\",\n        \"createdAt\": \"2026-04-29T13:04:04.307Z\",\n        \"updatedAt\": \"2026-05-01T13:28:08.921Z\",\n        \"__v\": 0\n    }\n}"}],"_postman_id":"9c34dfb9-3766-4f9f-8f16-41a424cebee1"},{"name":"get user profile","id":"30b67730-eacc-4e6c-bbe4-e16c01414c22","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:5000/api/users/:firebaseUid","urlObject":{"protocol":"http","port":"5000","path":["api","users",":firebaseUid"],"host":["localhost"],"query":[],"variable":[{"type":"any","value":"Tv6de04pUfhY7sfw9lK7Mj9bqi12","key":"firebaseUid"}]}},"response":[{"id":"b3508c61-010f-43b8-b87f-08e345f2c99f","name":"get user profile","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"{\r\n  \"firebaseUid\": \"5Hfvs080pZPX2ioBBRPgSkGY3Qk2\",\r\n  \"email\": \"nishit.g.doshi.cg@gmail.com\",\r\n  \"displayName\": \"Nishit\",\r\n  \"role\": \"user\"\r\n}\r\n"},"url":{"raw":"http://localhost:5000/api/users/:firebaseUid","protocol":"http","host":["localhost"],"port":"5000","path":["api","users",":firebaseUid"],"variable":[{"key":"firebaseUid","value":"Tv6de04pUfhY7sfw9lK7Mj9bqi12"}]}},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"267"},{"key":"ETag","value":"W/\"10b-ONlz51ykLqq/Imz7rUr4AxdtTa8\""},{"key":"Date","value":"Fri, 01 May 2026 13:29:26 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": {\n        \"_id\": \"69f0a6fd45a848b9f94bbd7c\",\n        \"firebaseUid\": \"Tv6de04pUfhY7sfw9lK7Mj9bqi12\",\n        \"email\": \"nishitdoshi666@gmail.com\",\n        \"displayName\": \"Nishit Doshi\",\n        \"role\": \"user\",\n        \"createdAt\": \"2026-04-28T12:24:29.441Z\",\n        \"updatedAt\": \"2026-04-28T12:24:29.441Z\",\n        \"__v\": 0\n    }\n}"}],"_postman_id":"30b67730-eacc-4e6c-bbe4-e16c01414c22"}]}