{"info":{"_postman_id":"276b03b6-e525-4293-bc0d-7b8c16df45aa","name":"full-stack-project(kiranaSetu)","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"50840766","collectionId":"276b03b6-e525-4293-bc0d-7b8c16df45aa","publishedId":"2sBXqKnzRN","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2026-05-01T15:36:14.000Z"},"item":[{"name":"Create a New Merchant Account (Signup)","id":"ae1369ab-6ccb-4d60-b489-6b12c765fb56","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"name\": \"Patel Mann\",\r\n  \"email\": \"mann@example.com\",\r\n  \"password\": \"password123\",\r\n  \"storeName\": \"Mann's kirana\",\r\n  \"phone\": \"9016775456\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/auth/signup","urlObject":{"protocol":"http","port":"5000","path":["api","auth","signup"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"0b584b25-5f91-4e56-8299-c1cbb3462750","name":"Create a New Merchant Account (Signup)","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"name\": \"test user\",\r\n  \"email\": \"user@example.com\",\r\n  \"password\": \"password12345\",\r\n  \"storeName\": \"User kirana\",\r\n  \"phone\": \"9016775456\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/auth/signup"},"status":"Created","code":201,"_postman_previewlanguage":null,"header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:5173"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Set-Cookie","value":"jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiI2OWY0OTdkNmQyZDhkZTgxMjUwYWM2M2QiLCJpYXQiOjE3Nzc2MzczMzQsImV4cCI6MTc4MDIyOTMzNH0._aV3ySQiEc0r4CQPLSPOGszZQ9Xl_66wZTxpUTla288; Max-Age=2592000; Path=/; Expires=Sun, 31 May 2026 12:08:54 GMT; HttpOnly; Secure; SameSite=Lax"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"368"},{"key":"ETag","value":"W/\"170-UG9XJCvnqYWnbEixufckAR3hX+Q\""},{"key":"Date","value":"Fri, 01 May 2026 12:08:54 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"Signup successful\",\n    \"data\": {\n        \"_id\": \"69f497d6d2d8de81250ac63d\",\n        \"name\": \"test user\",\n        \"email\": \"user@example.com\",\n        \"storeName\": \"User kirana\",\n        \"phone\": \"9016775456\",\n        \"token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiI2OWY0OTdkNmQyZDhkZTgxMjUwYWM2M2QiLCJpYXQiOjE3Nzc2MzczMzQsImV4cCI6MTc4MDIyOTMzNH0._aV3ySQiEc0r4CQPLSPOGszZQ9Xl_66wZTxpUTla288\"\n    }\n}"}],"_postman_id":"ae1369ab-6ccb-4d60-b489-6b12c765fb56"},{"name":"Authenticate Existing Merchant Session (Login)","id":"e0728e03-1bec-4f1c-8e60-20b7db110b88","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"url":"http://localhost:5000/api/auth/login","urlObject":{"protocol":"http","port":"5000","path":["api","auth","login"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"ebcecaf2-3068-4647-b296-ff7331e20974","name":"Authenticate Existing Merchant Session (Login)","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"email\": \"user@example.com\",\r\n  \"password\": \"password12345\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/auth/login"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:5173"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Set-Cookie","value":"jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiI2OWY0OTdkNmQyZDhkZTgxMjUwYWM2M2QiLCJpYXQiOjE3Nzc2MzczODgsImV4cCI6MTc4MDIyOTM4OH0.b_tdvjeAGoDjQ4oxC0junHHEonH-GWM33usdhpnta_E; Max-Age=2592000; Path=/; Expires=Sun, 31 May 2026 12:09:48 GMT; HttpOnly; Secure; SameSite=Lax"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"367"},{"key":"ETag","value":"W/\"16f-9yKJ4cpgNUlTYlEQOw/x8BGlKTM\""},{"key":"Date","value":"Fri, 01 May 2026 12:09:48 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"Login successful\",\n    \"data\": {\n        \"_id\": \"69f497d6d2d8de81250ac63d\",\n        \"name\": \"test user\",\n        \"email\": \"user@example.com\",\n        \"storeName\": \"User kirana\",\n        \"phone\": \"9016775456\",\n        \"token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiI2OWY0OTdkNmQyZDhkZTgxMjUwYWM2M2QiLCJpYXQiOjE3Nzc2MzczODgsImV4cCI6MTc4MDIyOTM4OH0.b_tdvjeAGoDjQ4oxC0junHHEonH-GWM33usdhpnta_E\"\n    }\n}"}],"_postman_id":"e0728e03-1bec-4f1c-8e60-20b7db110b88"},{"name":"Update Store Profile & Merchant Details (Profile Update)","id":"a6cf9502-81be-4327-ab03-46b80a852527","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n  \"name\": \"Mann Patel\",\r\n  \"storeName\": \"Patel's Mega Store\",\r\n  \"phone\": \"9998887776\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/auth/profile","urlObject":{"protocol":"http","port":"5000","path":["api","auth","profile"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"9ad11cb7-c997-42dd-a085-3f942c15e924","name":"Update Store Profile & Merchant Details (Profile Update)","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n  \"name\": \"Mann Patel\",\r\n  \"storeName\": \"Patel's Mega Store\",\r\n  \"phone\": \"9998887776\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/auth/profile"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:5173"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Set-Cookie","value":"jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiI2OWY0OTdkNmQyZDhkZTgxMjUwYWM2M2QiLCJpYXQiOjE3Nzc2Mzc0OTksImV4cCI6MTc4MDIyOTQ5OX0.Jwcpg2mB4ipzyFO59RW78fvje1Mdzw1s0pXU2VfAh58; Max-Age=2592000; Path=/; Expires=Sun, 31 May 2026 12:11:39 GMT; HttpOnly; Secure; SameSite=Lax"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"387"},{"key":"ETag","value":"W/\"183-Q9Hp5BpTpA4k0KPUUBBtsfycgxM\""},{"key":"Date","value":"Fri, 01 May 2026 12:11:39 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"Profile updated successfully\",\n    \"data\": {\n        \"_id\": \"69f497d6d2d8de81250ac63d\",\n        \"name\": \"Mann Patel\",\n        \"email\": \"user@example.com\",\n        \"storeName\": \"Patel's Mega Store\",\n        \"phone\": \"9998887776\",\n        \"token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiI2OWY0OTdkNmQyZDhkZTgxMjUwYWM2M2QiLCJpYXQiOjE3Nzc2Mzc0OTksImV4cCI6MTc4MDIyOTQ5OX0.Jwcpg2mB4ipzyFO59RW78fvje1Mdzw1s0pXU2VfAh58\"\n    }\n}"}],"_postman_id":"a6cf9502-81be-4327-ab03-46b80a852527"},{"name":"Fetch Real-time Dashboard Summary Statistics","id":"f53447ba-9be2-4aba-ade9-ab5a7034aae0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"urlObject":{"query":[],"variable":[]},"url":""},"response":[{"id":"92b209f4-7f6d-4846-8971-39150f532435","name":"Fetch Real-time Dashboard Summary Statistics","originalRequest":{"method":"GET","header":[],"url":"http://localhost:5000/api/dashboard/stats"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:5173"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"128"},{"key":"ETag","value":"W/\"80-P8dytNCFR7TBNgl4PSUopM0B1/M\""},{"key":"Date","value":"Fri, 01 May 2026 12:19:32 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"Dashboard stats fetched successfully\",\n    \"data\": {\n        \"totalProducts\": 1,\n        \"lowStockProducts\": 0,\n        \"totalSales\": 0\n    }\n}"}],"_postman_id":"f53447ba-9be2-4aba-ade9-ab5a7034aae0"},{"name":"Generate 7-Day Sales Performance Trends","id":"d794ab7a-41ab-476d-8f74-4244ef4d88e9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"urlObject":{"query":[],"variable":[]},"url":""},"response":[{"id":"7d8819e9-26f0-41da-840d-156f1746bae1","name":"Generate 7-Day Sales Performance Trends","originalRequest":{"method":"GET","header":[],"url":"http://localhost:5000/api/dashboard/sales-trend"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:5173"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"259"},{"key":"ETag","value":"W/\"103-FfqDZ9fVMnh2DLVLrDcNHUU49eE\""},{"key":"Date","value":"Fri, 01 May 2026 12:16:59 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"Sales trend fetched successfully\",\n    \"data\": [\n        {\n            \"date\": \"Sat\",\n            \"sales\": 744\n        },\n        {\n            \"date\": \"Sun\",\n            \"sales\": 862\n        },\n        {\n            \"date\": \"Mon\",\n            \"sales\": 559\n        },\n        {\n            \"date\": \"Tue\",\n            \"sales\": 928\n        },\n        {\n            \"date\": \"Wed\",\n            \"sales\": 854\n        },\n        {\n            \"date\": \"Thu\",\n            \"sales\": 680\n        },\n        {\n            \"date\": \"Fri\",\n            \"sales\": 529\n        }\n    ]\n}"}],"_postman_id":"d794ab7a-41ab-476d-8f74-4244ef4d88e9"},{"name":"Access AI-Powered Demand Forecasts","id":"a738eb58-f80e-4c0e-84f5-eea954faf23f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"urlObject":{"query":[],"variable":[]},"url":""},"response":[{"id":"c7c18a5d-a266-4b60-a94c-7926f8b1275e","name":"Access AI-Powered Demand Forecasts","originalRequest":{"method":"GET","header":[],"url":"http://localhost:5000/api/dashboard/forecast"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:5173"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"132"},{"key":"ETag","value":"W/\"84-4mCYzo6ivm7CRBEGwMV/pP4PHP0\""},{"key":"Date","value":"Fri, 01 May 2026 12:17:31 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"Forecast fetched successfully\",\n    \"data\": [\n        {\n            \"product\": \"Milk\",\n            \"demand\": 150\n        },\n        {\n            \"product\": \"Snacks\",\n            \"demand\": 80\n        }\n    ]\n}"}],"_postman_id":"a738eb58-f80e-4c0e-84f5-eea954faf23f"},{"name":"Retrieve Strategic Business Insights","id":"ee4e1c32-9e5b-479f-8b98-f8c13832043a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:5000/api/dashboard/insights","urlObject":{"protocol":"http","port":"5000","path":["api","dashboard","insights"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"91a0af5d-59a1-4b77-b0d7-85d4d1ab4742","name":"Retrieve Strategic Business Insights","originalRequest":{"method":"GET","header":[],"url":"http://localhost:5000/api/dashboard/insights"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:5173"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"160"},{"key":"ETag","value":"W/\"a0-5vJMq1+xK/X7ndN47Jvm7ThE2nw\""},{"key":"Date","value":"Fri, 01 May 2026 12:18:04 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"Insights fetched successfully\",\n    \"data\": [\n        \"Milk demand increasing by 15% this week\",\n        \"Snacks sales slowing down compared to last month\"\n    ]\n}"}],"_postman_id":"ee4e1c32-9e5b-479f-8b98-f8c13832043a"},{"name":"Retrieve Complete Store Product Catalog","id":"7102b4cc-ad35-46ff-b91c-f9fa2a20a030","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"urlObject":{"query":[],"variable":[]},"url":""},"response":[{"id":"82725dc7-e185-48a4-8745-ebddce586a5a","name":"Retrieve Complete Store Product Catalog","originalRequest":{"method":"GET","header":[],"url":"http://localhost:5000/api/products"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:5173"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"267"},{"key":"ETag","value":"W/\"10b-89rvh2fplwjzNQmJm6NVYz+fZ9o\""},{"key":"Date","value":"Fri, 01 May 2026 12:20:03 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"Products fetched successfully\",\n    \"data\": [\n        {\n            \"_id\": \"69f49a48d2d8de81250ac63e\",\n            \"user\": \"69f497d6d2d8de81250ac63d\",\n            \"name\": \"Basmati Rice 5kg\",\n            \"category\": \"Grains\",\n            \"stock\": 40,\n            \"maxStock\": 100,\n            \"price\": 650,\n            \"createdAt\": \"2026-05-01T12:19:20.391Z\",\n            \"__v\": 0\n        }\n    ]\n}"}],"_postman_id":"7102b4cc-ad35-46ff-b91c-f9fa2a20a030"},{"name":"Add New Product to Inventory","id":"dffce20d-2f03-4abd-aa74-f1a8571527a2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"url":"http://localhost:5000/api/products","urlObject":{"protocol":"http","port":"5000","path":["api","products"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"26954ccb-551a-4d63-8f8f-a39eaf934db8","name":"Add New Product to Inventory","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"name\": \"Basmati Rice 5kg\",\r\n  \"category\": \"Grains\",\r\n  \"stock\": 40,\r\n  \"maxStock\": 100,\r\n  \"price\": 650\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/products"},"status":"Created","code":201,"_postman_previewlanguage":null,"header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:5173"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"264"},{"key":"ETag","value":"W/\"108-OIn9ViiM65ldsGko7tC7elV64u0\""},{"key":"Date","value":"Fri, 01 May 2026 12:19:20 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"Product created successfully\",\n    \"data\": {\n        \"user\": \"69f497d6d2d8de81250ac63d\",\n        \"name\": \"Basmati Rice 5kg\",\n        \"category\": \"Grains\",\n        \"stock\": 40,\n        \"maxStock\": 100,\n        \"price\": 650,\n        \"_id\": \"69f49a48d2d8de81250ac63e\",\n        \"createdAt\": \"2026-05-01T12:19:20.391Z\",\n        \"__v\": 0\n    }\n}"},{"id":"2d25a812-d18b-4af0-8057-717d1818290f","name":"Add New Product to Inventory","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"name\": \"Lays Chips\",\r\n  \"category\": \"Snacks\",\r\n  \"stock\": 50,\r\n  \"maxStock\": 160,\r\n  \"price\": 30\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/products"},"status":"Created","code":201,"_postman_previewlanguage":null,"header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:5173"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"257"},{"key":"ETag","value":"W/\"101-VhkWONq49FEzERsxrjzBV4wYs8A\""},{"key":"Date","value":"Fri, 01 May 2026 12:22:22 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"Product created successfully\",\n    \"data\": {\n        \"user\": \"69f497d6d2d8de81250ac63d\",\n        \"name\": \"Lays Chips\",\n        \"category\": \"Snacks\",\n        \"stock\": 50,\n        \"maxStock\": 160,\n        \"price\": 30,\n        \"_id\": \"69f49afed2d8de81250ac63f\",\n        \"createdAt\": \"2026-05-01T12:22:22.850Z\",\n        \"__v\": 0\n    }\n}"}],"_postman_id":"dffce20d-2f03-4abd-aa74-f1a8571527a2"},{"name":"Modify Existing Product Specifications","id":"6507c094-2aa3-42b2-811c-cc75d46492c3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n  \"stock\": 35,\r\n  \"price\": 675\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/products/:id","urlObject":{"protocol":"http","port":"5000","path":["api","products",":id"],"host":["localhost"],"query":[],"variable":[{"type":"any","value":"69f49a48d2d8de81250ac63e","key":"id"}]}},"response":[{"id":"86262b1c-f11f-4070-aeb8-e6356a8f1aec","name":"Modify Existing Product Specifications","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n  \"stock\": 35,\r\n  \"price\": 675\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":{"raw":"http://localhost:5000/api/products/:id","protocol":"http","host":["localhost"],"port":"5000","path":["api","products",":id"],"variable":[{"key":"id","value":"69f49a48d2d8de81250ac63e"}]}},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:5173"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"264"},{"key":"ETag","value":"W/\"108-8qLi7+3oZ7W6P5i247o00lfrbS8\""},{"key":"Date","value":"Fri, 01 May 2026 12:21:30 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"Product updated successfully\",\n    \"data\": {\n        \"_id\": \"69f49a48d2d8de81250ac63e\",\n        \"user\": \"69f497d6d2d8de81250ac63d\",\n        \"name\": \"Basmati Rice 5kg\",\n        \"category\": \"Grains\",\n        \"stock\": 35,\n        \"maxStock\": 100,\n        \"price\": 675,\n        \"createdAt\": \"2026-05-01T12:19:20.391Z\",\n        \"__v\": 0\n    }\n}"}],"_postman_id":"6507c094-2aa3-42b2-811c-cc75d46492c3"},{"name":"Permanently Remove Product from System","id":"454aa634-7e7b-45b2-b338-6b02542dc6aa","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://localhost:5000/api/products/:id","urlObject":{"protocol":"http","port":"5000","path":["api","products",":id"],"host":["localhost"],"query":[],"variable":[{"type":"any","value":"","key":"id"}]}},"response":[{"id":"6bb95607-eb73-4b41-94c6-bcffb71ce6f8","name":"Permanently Remove Product from System","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"http://localhost:5000/api/products/:id","protocol":"http","host":["localhost"],"port":"5000","path":["api","products",":id"],"variable":[{"key":"id","value":"69f49afed2d8de81250ac63f"}]}},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:5173"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"99"},{"key":"ETag","value":"W/\"63-uJcjFknDCTz1O3c+qxFh1tVeGaY\""},{"key":"Date","value":"Fri, 01 May 2026 12:23:09 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"Product deleted successfully\",\n    \"data\": {\n        \"_id\": \"69f49afed2d8de81250ac63f\"\n    }\n}"}],"_postman_id":"454aa634-7e7b-45b2-b338-6b02542dc6aa"},{"name":"Process and Record New Store Sale","id":"a00c1bb6-bf5b-4190-9cb9-15bb3305cfdb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"productId\": \"\",\r\n  \"quantity\": 2\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/sales","urlObject":{"protocol":"http","port":"5000","path":["api","sales"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"007c0af6-18ca-41e6-8d2f-a3308ddd5b81","name":"Process and Record New Store Sale","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"productId\": \"69f49a48d2d8de81250ac63e\",\r\n  \"quantity\": 2\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/sales"},"status":"Created","code":201,"_postman_previewlanguage":null,"header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:5173"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"247"},{"key":"ETag","value":"W/\"f7-DQys0Vu+YE502GSxFiEXj+QWrC8\""},{"key":"Date","value":"Fri, 01 May 2026 12:24:21 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"Sale created successfully\",\n    \"data\": {\n        \"user\": \"69f497d6d2d8de81250ac63d\",\n        \"productId\": \"69f49a48d2d8de81250ac63e\",\n        \"quantity\": 2,\n        \"totalPrice\": 1350,\n        \"_id\": \"69f49b75d2d8de81250ac640\",\n        \"createdAt\": \"2026-05-01T12:24:21.394Z\",\n        \"__v\": 0\n    }\n}"}],"_postman_id":"a00c1bb6-bf5b-4190-9cb9-15bb3305cfdb"},{"name":"Retrieve Historic Transaction Records","id":"7d6547a1-c5ab-431f-8790-cf9187776b74","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:5000/api/sales","urlObject":{"protocol":"http","port":"5000","path":["api","sales"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"80a65071-e02b-4e3b-ae15-b2ac4388174e","name":"Retrieve Historic Transaction Records","originalRequest":{"method":"GET","header":[],"url":"http://localhost:5000/api/sales"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:5173"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"296"},{"key":"ETag","value":"W/\"128-/aGM93vOEVmTIG1FMGKjfOyj8Mc\""},{"key":"Date","value":"Fri, 01 May 2026 12:26:45 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"Sales fetched successfully\",\n    \"data\": [\n        {\n            \"_id\": \"69f49b75d2d8de81250ac640\",\n            \"user\": \"69f497d6d2d8de81250ac63d\",\n            \"productId\": {\n                \"_id\": \"69f49a48d2d8de81250ac63e\",\n                \"name\": \"Basmati Rice 5kg\",\n                \"price\": 675\n            },\n            \"quantity\": 2,\n            \"totalPrice\": 1350,\n            \"createdAt\": \"2026-05-01T12:24:21.394Z\",\n            \"__v\": 0\n        }\n    ]\n}"}],"_postman_id":"7d6547a1-c5ab-431f-8790-cf9187776b74"}]}