{"info":{"_postman_id":"2c648b30-ba5e-4a24-8513-e52081e95cb4","name":"SIMS","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"32326364","collectionId":"2c648b30-ba5e-4a24-8513-e52081e95cb4","publishedId":"2sB2cUANcX","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2025-05-01T15:31:16.000Z"},"item":[{"name":"Home","item":[{"name":"/ Home","id":"21b0da5f-e987-43f9-b32b-b7d868181e5e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:5000/","urlObject":{"host":["http://localhost:5000/"],"query":[],"variable":[]}},"response":[{"id":"6a3685e7-c513-445c-92e7-85ebda44b1e3","name":"/ Home","originalRequest":{"method":"GET","header":[],"url":"http://localhost:5000//"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"RateLimit-Policy","value":"100;w=900"},{"key":"RateLimit-Limit","value":"100"},{"key":"RateLimit-Remaining","value":"79"},{"key":"RateLimit-Reset","value":"277"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"185"},{"key":"ETag","value":"W/\"b9-6cpF22Vd/XX7JnQZ7+y96W7vT6A\""},{"key":"Date","value":"Thu, 10 Apr 2025 13:06:33 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"working\",\n    \"status\": \"200\",\n    \"uptime\": \"0d 0h 11m 1s\",\n    \"endpointsList\": \"http://localhost:5000/endpoints.txt\",\n    \"API_DOC\": \"https://documenter.getpostman.com/view/32326364/2sB2cUANcX\"\n}"}],"_postman_id":"21b0da5f-e987-43f9-b32b-b7d868181e5e"},{"name":"check endpoint","id":"8aae2083-ab81-4718-ba04-b617f1e0f8bc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[],"url":"http://localhost:5000//endpoints.txt","urlObject":{"path":["endpoints.txt"],"host":["http://localhost:5000/"],"query":[],"variable":[]}},"response":[],"_postman_id":"8aae2083-ab81-4718-ba04-b617f1e0f8bc"}],"id":"7d1ea7da-e702-4ee6-ad2b-0a0f87f40a1f","_postman_id":"7d1ea7da-e702-4ee6-ad2b-0a0f87f40a1f","description":""},{"name":"Customers","item":[{"name":"Get Customers","id":"6438857a-082b-4de6-82c3-3016524c3dd6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{customerToken}}"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:5000//api/customer","urlObject":{"path":["api","customer"],"host":["http://localhost:5000/"],"query":[],"variable":[]}},"response":[{"id":"66622984-7b39-4df3-9653-27d5d887a5c1","name":"Get Customers","originalRequest":{"method":"GET","header":[],"url":"http://localhost:5000//api/customer"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"RateLimit-Policy","value":"100;w=900"},{"key":"RateLimit-Limit","value":"100"},{"key":"RateLimit-Remaining","value":"98"},{"key":"RateLimit-Reset","value":"896"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"526"},{"key":"ETag","value":"W/\"20e-iQUzLaDIQqoZNa7nz0KMNHM7O88\""},{"key":"Date","value":"Wed, 30 Apr 2025 18:06:05 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"2 were found\",\n    \"success\": true,\n    \"statusCode\": 200,\n    \"data\": [\n        {\n            \"_id\": \"67f7bfea7e6554a5dbb3e2d8\",\n            \"name\": \"sabbu\",\n            \"email\": \"sabbu@gmail.com\",\n            \"phone\": \"9746527459\",\n            \"address\": \"Perumbavor, Kannur, Kerala\",\n            \"createdAt\": \"2025-04-10T12:56:10.167Z\",\n            \"updatedAt\": \"2025-04-10T12:56:10.167Z\"\n        },\n        {\n            \"_id\": \"680913dad6c535a43cb0689b\",\n            \"name\": \"Hashiq\",\n            \"email\": \"hashiq@gmail.com\",\n            \"phone\": \"9734652259\",\n            \"address\": \"Perumbavor, Kannur, Kerala\",\n            \"paymentPreference\": \"weekly\",\n            \"createdAt\": \"2025-04-23T16:22:50.539Z\",\n            \"updatedAt\": \"2025-04-23T16:22:50.539Z\"\n        }\n    ]\n}"}],"_postman_id":"6438857a-082b-4de6-82c3-3016524c3dd6"},{"name":"Get Customer By Email","id":"907c9204-4794-40ce-9251-eba9b2a5e570","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{customerToken}}"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:5000//api/customer/customer/sabbu@gmail.com","urlObject":{"path":["api","customer","customer","sabbu@gmail.com"],"host":["http://localhost:5000/"],"query":[],"variable":[]}},"response":[{"id":"d481f617-9ac3-4ee7-a1c7-2377107a30e2","name":"Get Customers Copy","originalRequest":{"method":"GET","header":[],"url":"http://localhost:5000//api/customer/customer/sabbu@gmail.com"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"RateLimit-Policy","value":"100;w=900"},{"key":"RateLimit-Limit","value":"100"},{"key":"RateLimit-Remaining","value":"97"},{"key":"RateLimit-Reset","value":"854"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"135"},{"key":"ETag","value":"W/\"87-kufU+Awn8TuCkpmqxELka4Sq6n4\""},{"key":"Date","value":"Wed, 30 Apr 2025 18:06:47 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Customer found succesfully\",\n    \"success\": true,\n    \"statusCode\": 200,\n    \"customer\": {\n        \"isActive\": false,\n        \"_id\": \"67f7bfea7e6554a5dbb3e2d8\"\n    }\n}"}],"_postman_id":"907c9204-4794-40ce-9251-eba9b2a5e570"},{"name":"Get Customer filter","event":[{"listen":"test","script":{"id":"59480eeb-96c5-466e-ab56-16d354a84af9","exec":["var template = `","<style type=\"text/css\">","    .tftable {font-size:14px;color:#333333;width:100%;border-width: 1px;border-color: #87ceeb;border-collapse: collapse;}","    .tftable th {font-size:18px;background-color:#87ceeb;border-width: 1px;padding: 8px;border-style: solid;border-color: #87ceeb;text-align:left;}","    .tftable tr {background-color:#ffffff;}","    .tftable td {font-size:14px;border-width: 1px;padding: 8px;border-style: solid;border-color: #87ceeb;}","    .tftable tr:hover {background-color:#e0ffff;}","</style>","","<table class=\"tftable\" border=\"1\">","    <tr>","        <th>ID</th>","        <th>Name</th>","        <th>Email</th>","        <th>Created At</th>","        <th>Updated At</th>","    </tr>","    ","    {{#each response.data}}","        <tr>","            <td>{{_id}}</td>","            <td>{{name}}</td>","            <td>{{email}}</td>","            <td>{{createdAt}}</td>","            <td>{{updatedAt}}</td>","        </tr>","    {{/each}}","</table>","`;","","function constructVisualizerPayload() {","    return {response: pm.response.json()}","}","","pm.visualizer.set(template, constructVisualizerPayload());"],"type":"text/javascript","packages":{}}}],"id":"92db3101-b308-4416-839b-11569084215e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{customerToken}}"}]},"isInherited":false},"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000//api/customer?sort=name&order=desc&limit=7","urlObject":{"path":["api","customer"],"host":["http://localhost:5000/"],"query":[{"key":"sort","value":"name"},{"key":"order","value":"desc"},{"key":"limit","value":"7"}],"variable":[]}},"response":[{"id":"1d6a6366-39bf-4ee3-8857-98b36e0e4360","name":"Get Customer filter","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":{"raw":"http://localhost:5000//api/customer?sort=name&order=desc&limit=7","host":["http://localhost:5000/"],"path":["api","customer"],"query":[{"key":"sort","value":"name"},{"key":"order","value":"desc"},{"key":"limit","value":"7"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"RateLimit-Policy","value":"100;w=900"},{"key":"RateLimit-Limit","value":"100"},{"key":"RateLimit-Remaining","value":"89"},{"key":"RateLimit-Reset","value":"614"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"676"},{"key":"ETag","value":"W/\"2a4-eqTZA//bI23Wp6Y16GWfsVMDmEw\""},{"key":"Date","value":"Thu, 10 Apr 2025 13:00:55 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"2 were found\",\n    \"success\": true,\n    \"statusCode\": 200,\n    \"data\": [\n        {\n            \"_id\": \"67f7bfea7e6554a5dbb3e2d8\",\n            \"name\": \"sabbu\",\n            \"email\": \"sabbu@gmail.com\",\n            \"phone\": \"9746527459\",\n            \"address\": \"Perumbavor, Kannur, Kerala\",\n            \"password\": \"$2b$10$VBH8RqwwUlfKzZs9cH5HjOxMGRFRwZ9MOlPzC/RHPv.rT/hYxO4tm\",\n            \"createdAt\": \"2025-04-10T12:56:10.167Z\",\n            \"updatedAt\": \"2025-04-10T12:56:10.167Z\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"67f7c03c7e6554a5dbb3e2e2\",\n            \"name\": \"Hashiq Abdul Hameed\",\n            \"email\": \"carlie@gmail.caoma\",\n            \"phone\": \"9734652259\",\n            \"address\": \"Perumbavor, Kannur, Kerala\",\n            \"password\": \"$2b$10$4V4vkoRj0wbpA2AbqyHH2uQYq4MK006SRz2naGTcUMEvxM8kumP4i\",\n            \"createdAt\": \"2025-04-10T12:57:32.144Z\",\n            \"updatedAt\": \"2025-04-10T12:59:01.768Z\",\n            \"__v\": 0\n        }\n    ]\n}"}],"_postman_id":"92db3101-b308-4416-839b-11569084215e"},{"name":"Get customer sort by name","event":[{"listen":"test","script":{"id":"59480eeb-96c5-466e-ab56-16d354a84af9","exec":["var template = `","<style type=\"text/css\">","    .tftable {font-size:14px;color:#333333;width:100%;border-width: 1px;border-color: #87ceeb;border-collapse: collapse;}","    .tftable th {font-size:18px;background-color:#87ceeb;border-width: 1px;padding: 8px;border-style: solid;border-color: #87ceeb;text-align:left;}","    .tftable tr {background-color:#ffffff;}","    .tftable td {font-size:14px;border-width: 1px;padding: 8px;border-style: solid;border-color: #87ceeb;}","    .tftable tr:hover {background-color:#e0ffff;}","</style>","","<table class=\"tftable\" border=\"1\">","    <tr>","        <th>ID</th>","        <th>Name</th>","        <th>Email</th>","        <th>Created At</th>","        <th>Updated At</th>","    </tr>","    ","    {{#each response.data}}","        <tr>","            <td>{{_id}}</td>","            <td>{{name}}</td>","            <td>{{email}}</td>","            <td>{{createdAt}}</td>","            <td>{{updatedAt}}</td>","        </tr>","    {{/each}}","</table>","`;","","function constructVisualizerPayload() {","    return {response: pm.response.json()}","}","","pm.visualizer.set(template, constructVisualizerPayload());"],"type":"text/javascript","packages":{}}}],"id":"8ef48ce7-c3e4-4637-adbf-a34570a96107","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{customerToken}}"}]},"isInherited":false},"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000//api/customer?search=sabbu&order=desc","urlObject":{"path":["api","customer"],"host":["http://localhost:5000/"],"query":[{"key":"search","value":"sabbu"},{"key":"order","value":"desc"}],"variable":[]}},"response":[{"id":"4cd8f325-ea45-4ca6-9d6e-9a8baa76e1a8","name":"Get Customer sort by name","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":{"raw":"http://localhost:5000//api/customer?search=sabbu&order=desc","host":["http://localhost:5000/"],"path":["api","customer"],"query":[{"key":"search","value":"sabbu"},{"key":"order","value":"desc"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"RateLimit-Policy","value":"100;w=900"},{"key":"RateLimit-Limit","value":"100"},{"key":"RateLimit-Remaining","value":"90"},{"key":"RateLimit-Reset","value":"646"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"363"},{"key":"ETag","value":"W/\"16b-oqNIy9gKfuCxTR5g7sbhwTyjfcA\""},{"key":"Date","value":"Thu, 10 Apr 2025 13:00:24 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"1 were found\",\n    \"success\": true,\n    \"statusCode\": 200,\n    \"data\": [\n        {\n            \"_id\": \"67f7bfea7e6554a5dbb3e2d8\",\n            \"name\": \"sabbu\",\n            \"email\": \"sabbu@gmail.com\",\n            \"phone\": \"9746527459\",\n            \"address\": \"Perumbavor, Kannur, Kerala\",\n            \"password\": \"$2b$10$VBH8RqwwUlfKzZs9cH5HjOxMGRFRwZ9MOlPzC/RHPv.rT/hYxO4tm\",\n            \"createdAt\": \"2025-04-10T12:56:10.167Z\",\n            \"updatedAt\": \"2025-04-10T12:56:10.167Z\",\n            \"__v\": 0\n        }\n    ]\n}"}],"_postman_id":"8ef48ce7-c3e4-4637-adbf-a34570a96107"},{"name":"Sort customer by limit","id":"ab1f5011-a912-4951-b7c2-2fef59fc8bbb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{customerToken}}"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:5000//api/customer?limit=1","urlObject":{"path":["api","customer"],"host":["http://localhost:5000/"],"query":[{"key":"limit","value":"1"}],"variable":[]}},"response":[{"id":"a53feef9-4f52-4881-9898-ef457e21f768","name":"Sort Customer by limit","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://localhost:5000//api/customer?limit=1","host":["http://localhost:5000/"],"path":["api","customer"],"query":[{"key":"limit","value":"1"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"RateLimit-Policy","value":"100;w=900"},{"key":"RateLimit-Limit","value":"100"},{"key":"RateLimit-Remaining","value":"87"},{"key":"RateLimit-Reset","value":"527"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"363"},{"key":"ETag","value":"W/\"16b-oqNIy9gKfuCxTR5g7sbhwTyjfcA\""},{"key":"Date","value":"Thu, 10 Apr 2025 13:02:23 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"1 were found\",\n    \"success\": true,\n    \"statusCode\": 200,\n    \"data\": [\n        {\n            \"_id\": \"67f7bfea7e6554a5dbb3e2d8\",\n            \"name\": \"sabbu\",\n            \"email\": \"sabbu@gmail.com\",\n            \"phone\": \"9746527459\",\n            \"address\": \"Perumbavor, Kannur, Kerala\",\n            \"password\": \"$2b$10$VBH8RqwwUlfKzZs9cH5HjOxMGRFRwZ9MOlPzC/RHPv.rT/hYxO4tm\",\n            \"createdAt\": \"2025-04-10T12:56:10.167Z\",\n            \"updatedAt\": \"2025-04-10T12:56:10.167Z\",\n            \"__v\": 0\n        }\n    ]\n}"}],"_postman_id":"ab1f5011-a912-4951-b7c2-2fef59fc8bbb"},{"name":"Get a single Customer by ID","id":"40b9a8ad-9ab0-4db3-8226-ea51719576ea","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[],"url":"http://localhost:5000//api/customer/67f7bfea7e6554a5dbb3e2d8","urlObject":{"path":["api","customer","67f7bfea7e6554a5dbb3e2d8"],"host":["http://localhost:5000/"],"query":[],"variable":[]}},"response":[{"id":"a3fe08e6-44a0-457b-923f-457a3c8ef75a","name":"Get a single Customer by ID","originalRequest":{"method":"GET","header":[],"url":"http://localhost:5000//api/customer/67f7c03c7e6554a5dbb3e2e2"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"RateLimit-Policy","value":"100;w=900"},{"key":"RateLimit-Limit","value":"100"},{"key":"RateLimit-Remaining","value":"85"},{"key":"RateLimit-Reset","value":"466"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"415"},{"key":"ETag","value":"W/\"19f-cijBk8asSts9iBaYfQXwkfwPM9I\""},{"key":"Date","value":"Thu, 10 Apr 2025 13:03:24 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Customer with ID: 67f7c03c7e6554a5dbb3e2e2 found!\",\n    \"success\": true,\n    \"statusCode\": 200,\n    \"data\": {\n        \"_id\": \"67f7c03c7e6554a5dbb3e2e2\",\n        \"name\": \"Hashiq Abdul Hameed\",\n        \"email\": \"carlie@gmail.caoma\",\n        \"phone\": \"9734652259\",\n        \"address\": \"Perumbavor, Kannur, Kerala\",\n        \"password\": \"$2b$10$4V4vkoRj0wbpA2AbqyHH2uQYq4MK006SRz2naGTcUMEvxM8kumP4i\",\n        \"createdAt\": \"2025-04-10T12:57:32.144Z\",\n        \"updatedAt\": \"2025-04-10T12:59:01.768Z\",\n        \"__v\": 0\n    }\n}"}],"_postman_id":"40b9a8ad-9ab0-4db3-8226-ea51719576ea"},{"name":"create Customer","id":"162faa10-6efd-49a2-a0cf-f1e16e0b9b1d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\" : \"Nihal\",\n    \"email\": \"nihal@gmail.com\",\n    \"phone\": \"0213456789\",\n    \"address\": \"Kotikulam, Kasaragod, Kerala\",\n    \"paymentPreference\": \"weekly\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000//api/customer","urlObject":{"path":["api","customer"],"host":["http://localhost:5000/"],"query":[],"variable":[]}},"response":[{"id":"bfb3021d-9aa8-4f7e-bf30-fedd390f5c2d","name":"create Customer","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\" : \"Nihal\",\n    \"email\": \"nihal@gmail.com\",\n    \"phone\": \"0213456789\",\n    \"address\": \"Kotikulam, Kasaragod, Kerala\",\n    \"paymentPreference\": \"weekly\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000//api/customer"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"RateLimit-Policy","value":"100;w=900"},{"key":"RateLimit-Limit","value":"100"},{"key":"RateLimit-Remaining","value":"98"},{"key":"RateLimit-Reset","value":"889"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"373"},{"key":"ETag","value":"W/\"175-VouoEsuckXi0kq1+mfk0eZ5q19A\""},{"key":"Date","value":"Wed, 30 Apr 2025 18:45:38 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Customer created successfully\",\n    \"success\": true,\n    \"statusCode\": 201,\n    \"customers\": {\n        \"name\": \"Nihal\",\n        \"email\": \"nihal@gmail.com\",\n        \"phone\": \"0213456789\",\n        \"address\": \"Kotikulam, Kasaragod, Kerala\",\n        \"password\": null,\n        \"paymentPreference\": \"weekly\",\n        \"isActive\": false,\n        \"_id\": \"68126fd211fc8e0dbc2d8f23\",\n        \"createdAt\": \"2025-04-30T18:45:38.080Z\",\n        \"updatedAt\": \"2025-04-30T18:45:38.080Z\",\n        \"__v\": 0\n    }\n}"}],"_postman_id":"162faa10-6efd-49a2-a0cf-f1e16e0b9b1d"},{"name":"Update Customer Password","id":"81d3283d-d2f3-47b1-8d40-ae4999a6ad49","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"password\": \"RGVtb0AxMjM0MiM=\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000//api/customer/update/68126fd211fc8e0dbc2d8f23","urlObject":{"path":["api","customer","update","68126fd211fc8e0dbc2d8f23"],"host":["http://localhost:5000/"],"query":[],"variable":[]}},"response":[{"id":"aa740acd-457a-4ef6-8504-7b4682cc113f","name":"Update Customer Password","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"password\": \"Demo@12342#\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000//api/customer/update/68126fd211fc8e0dbc2d8f23"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"RateLimit-Policy","value":"100;w=900"},{"key":"RateLimit-Limit","value":"100"},{"key":"RateLimit-Remaining","value":"99"},{"key":"RateLimit-Reset","value":"900"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"354"},{"key":"ETag","value":"W/\"162-dMku/6PJNtljgEq645Roex5Rl94\""},{"key":"Date","value":"Wed, 30 Apr 2025 21:30:54 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Customer status updated successfully\",\n    \"success\": true,\n    \"statusCode\": 200,\n    \"customer\": {\n        \"_id\": \"68126fd211fc8e0dbc2d8f23\",\n        \"name\": \"Nihal\",\n        \"email\": \"nihal@gmail.com\",\n        \"phone\": \"0213456789\",\n        \"address\": \"Kotikulam, Kasaragod, Kerala\",\n        \"paymentPreference\": \"weekly\",\n        \"isActive\": true,\n        \"createdAt\": \"2025-04-30T18:45:38.080Z\",\n        \"updatedAt\": \"2025-04-30T21:30:54.126Z\"\n    }\n}"}],"_postman_id":"81d3283d-d2f3-47b1-8d40-ae4999a6ad49"},{"name":"Reset Password","id":"1e2adb02-3b6c-4e68-9cf0-5bf305c310a1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{customerToken}}"}]},"isInherited":false},"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"password\": \"RGVtb0AxMjM0MiM=\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000//api/customer/reset/68126fd211fc8e0dbc2d8f23","urlObject":{"path":["api","customer","reset","68126fd211fc8e0dbc2d8f23"],"host":["http://localhost:5000/"],"query":[],"variable":[]}},"response":[{"id":"7c438df8-9cea-4c0c-83fc-90cacdd6d864","name":"Reset Password","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"password\": \"RGVtb0AxMjM0MiM=\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000//api/customer/reset/68126fd211fc8e0dbc2d8f23"},"status":"No Content","code":204,"_postman_previewlanguage":"plain","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Date","value":"Mon, 05 May 2025 16:09:48 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"1e2adb02-3b6c-4e68-9cf0-5bf305c310a1"},{"name":"Update Customer","id":"611f1641-835f-4040-8ea0-3e65eef89184","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"password\": \"Demo@12342#\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000//api/customer/68126fd211fc8e0dbc2d8f23","urlObject":{"path":["api","customer","68126fd211fc8e0dbc2d8f23"],"host":["http://localhost:5000/"],"query":[],"variable":[]}},"response":[{"id":"b9c5a127-2a6c-43db-8f88-1ebb0a059082","name":"Update Customer","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"password\" : \"Demo@12342#\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000//api/customer/68126fd211fc8e0dbc2d8f23"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"RateLimit-Policy","value":"100;w=900"},{"key":"RateLimit-Limit","value":"100"},{"key":"RateLimit-Remaining","value":"98"},{"key":"RateLimit-Reset","value":"886"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"122"},{"key":"ETag","value":"W/\"7a-YibIA/OHfeAJfjMTHvawYOH61Pc\""},{"key":"Date","value":"Wed, 30 Apr 2025 20:00:51 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Customers data updated successfully\",\n    \"success\": true,\n    \"statusCode\": 200,\n    \"columnsUpdated\": [\n        \"password\",\n        \"isActive\"\n    ]\n}"}],"_postman_id":"611f1641-835f-4040-8ea0-3e65eef89184"},{"name":"Update Customer Copy","id":"95391dbb-c994-45b6-bc96-4c2a16b7cfbd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"DELETE","header":[],"url":"http://localhost:5000//api/customer/67f7c03c7e6554a5dbb3e2e2","urlObject":{"path":["api","customer","67f7c03c7e6554a5dbb3e2e2"],"host":["http://localhost:5000/"],"query":[],"variable":[]}},"response":[{"id":"0a7db52b-472b-4586-ba48-94c06d12bb91","name":"Update User Copy","originalRequest":{"method":"DELETE","header":[],"url":"http://localhost:5000//api/customer/67f7c03c7e6554a5dbb3e2e2"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"RateLimit-Policy","value":"100;w=900"},{"key":"RateLimit-Limit","value":"100"},{"key":"RateLimit-Remaining","value":"84"},{"key":"RateLimit-Reset","value":"420"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"109"},{"key":"ETag","value":"W/\"6d-Q1ZZzA6JHUZN27OvzbMIOsIzWXU\""},{"key":"Date","value":"Thu, 10 Apr 2025 13:04:10 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Customer with Id: 67f7c03c7e6554a5dbb3e2e2 deleted successfully\",\n    \"success\": true,\n    \"statusCode\": 200\n}"}],"_postman_id":"95391dbb-c994-45b6-bc96-4c2a16b7cfbd"}],"id":"2a818542-0a39-435a-b4a7-e9f93dbc6585","description":"<p>This section have customers work and all</p>\n","_postman_id":"2a818542-0a39-435a-b4a7-e9f93dbc6585"},{"name":"Admin","item":[{"name":"getAdmin","id":"2528638c-6425-4f43-b507-9dee77e037d6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"name","value":"shahabas","type":"text","uuid":"a73fc4e4-ce5c-4705-8874-abbc49bddaf9"},{"key":"email","value":"shahabas@gmail.com","type":"text","uuid":"dcf79de0-5651-4d74-9ec3-62edb377e69e"},{"key":"phone","value":"946823184","type":"text","uuid":"8f75bd2c-8615-403d-a0c3-a4aab3c9d396"},{"key":"password","value":"Shahabas@12","type":"text","uuid":"ba7e68df-b532-4724-a556-532763e363ef"}]},"url":"http://localhost:5000/api/admin","urlObject":{"path":["admin"],"host":["http://localhost:5000/api"],"query":[],"variable":[]}},"response":[{"id":"9d91f505-3e93-4841-9539-993a6dee3db3","name":"create Admin","originalRequest":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"name","value":"shahabas","type":"text","uuid":"a73fc4e4-ce5c-4705-8874-abbc49bddaf9"},{"key":"email","value":"shahabas@gmail.com","type":"text","uuid":"dcf79de0-5651-4d74-9ec3-62edb377e69e"},{"key":"phone","value":"946823184","type":"text","uuid":"8f75bd2c-8615-403d-a0c3-a4aab3c9d396"},{"key":"password","value":"Shahabas@12","type":"text","uuid":"ba7e68df-b532-4724-a556-532763e363ef"}]},"url":"http://localhost:5000//api/admin"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"RateLimit-Policy","value":"100;w=900"},{"key":"RateLimit-Limit","value":"100"},{"key":"RateLimit-Remaining","value":"96"},{"key":"RateLimit-Reset","value":"861"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"61"},{"key":"ETag","value":"W/\"3d-rDUrNHK1pCKW9EV3oog5qaOUuR4\""},{"key":"Date","value":"Thu, 10 Apr 2025 13:10:07 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Admin account created successfully\",\n    \"status\": 201\n}"}],"_postman_id":"2528638c-6425-4f43-b507-9dee77e037d6"},{"name":"create Admin ","id":"174675cb-9646-4b74-b554-4eb1411cdc65","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"name","value":"Admin","type":"text","uuid":"a73fc4e4-ce5c-4705-8874-abbc49bddaf9"},{"key":"email","value":"admin@gmail.com","type":"text","uuid":"dcf79de0-5651-4d74-9ec3-62edb377e69e"},{"key":"phone","value":"946823184","type":"text","uuid":"8f75bd2c-8615-403d-a0c3-a4aab3c9d396"},{"key":"password","value":"admin123#","type":"text","uuid":"ba7e68df-b532-4724-a556-532763e363ef"}]},"url":"http://localhost:5000//api/admin","urlObject":{"path":["api","admin"],"host":["http://localhost:5000/"],"query":[],"variable":[]}},"response":[{"id":"f525a4eb-c67c-434c-ba3c-94c4a5e1eff2","name":"create Admin","originalRequest":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"name","value":"shahabas","type":"text","uuid":"a73fc4e4-ce5c-4705-8874-abbc49bddaf9"},{"key":"email","value":"shahabas@gmail.com","type":"text","uuid":"dcf79de0-5651-4d74-9ec3-62edb377e69e"},{"key":"phone","value":"946823184","type":"text","uuid":"8f75bd2c-8615-403d-a0c3-a4aab3c9d396"},{"key":"password","value":"Shahabas@12","type":"text","uuid":"ba7e68df-b532-4724-a556-532763e363ef"}]},"url":"http://localhost:5000//api/admin"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"RateLimit-Policy","value":"100;w=900"},{"key":"RateLimit-Limit","value":"100"},{"key":"RateLimit-Remaining","value":"96"},{"key":"RateLimit-Reset","value":"861"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"61"},{"key":"ETag","value":"W/\"3d-rDUrNHK1pCKW9EV3oog5qaOUuR4\""},{"key":"Date","value":"Thu, 10 Apr 2025 13:10:07 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Admin account created successfully\",\n    \"status\": 201\n}"}],"_postman_id":"174675cb-9646-4b74-b554-4eb1411cdc65"},{"name":"UpdateAdmin","id":"7521bc06-f0e7-4a22-9d91-4e7e50a5e9d6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"// name : Shahabas Abdul Hameed\n// email: Shahabassabbu12@gmail.com\n// password: Shahabas@12\n// phone: 9746527459\n\n{\n    \"name\" : \"U2hhaGFiYXMgQWJkdWwgSGFtZWVk\",\n    \"email\" : \"c2hhaGFiYXNzYWJidTEyQGdtYWlsLmNvbQ==\",\n    \"password\" : \"U2hhaGFiYXNAMTI=\",\n    \"phone\": \"OTc0NjUyNzQ1OQ==\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/admin","urlObject":{"path":["admin"],"host":["http://localhost:5000/api"],"query":[],"variable":[]}},"response":[{"id":"93cae65c-d42e-4fa9-ae26-ad67dc1d2cc5","name":"UpdateAdmin","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"// name : Shahabas Abdul Hameed\n// email: Shahabassabbu12@gmail.com\n// password: Shahabas@12\n// phone: 9746527459\n\n{\n    \"name\" : \"U2hhaGFiYXMgQWJkdWwgSGFtZWVk\",\n    \"email\" : \"c2hhaGFiYXNzYWJidTEyQGdtYWlsLmNvbQ==\",\n    \"password\" : \"U2hhaGFiYXNAMTI=\",\n    \"phone\": \"OTc0NjUyNzQ1OQ==\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/admin"},"status":"OK","code":200,"_postman_previewlanguage":"JSON","header":[{"key":"X-Powered-By","value":"Express","type":"text"},{"key":"Access-Control-Allow-Origin","value":"*","type":"text"},{"key":"RateLimit-Policy","value":"100;w=900","type":"text"},{"key":"RateLimit-Limit","value":"100","type":"text"},{"key":"RateLimit-Remaining","value":"92","type":"text"},{"key":"RateLimit-Reset","value":"627","type":"text"},{"key":"Content-Type","value":"application/json; charset=utf-8","type":"text"},{"key":"Content-Length","value":"40","type":"text"},{"key":"ETag","value":"W/\"28-0KyVkymFkcpokysAO9f5aWi1ymY\"","type":"text"},{"key":"Date","value":"Sun, 27 Apr 2025 17:26:03 GMT","type":"text"},{"key":"Connection","value":"keep-alive","type":"text"},{"key":"Keep-Alive","value":"timeout=5","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Admin updated successfully\"\n}"}],"_postman_id":"7521bc06-f0e7-4a22-9d91-4e7e50a5e9d6"}],"id":"3fa5faf1-bea4-4beb-9d55-86151cd37d40","description":"<p>This is a Administrator account create and manage sections.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-bash\">GET /api/admin\nPOST /api/admin\nPATCH /api/admin\n\n</code></pre>\n","_postman_id":"3fa5faf1-bea4-4beb-9d55-86151cd37d40"},{"name":"Authentication","item":[{"name":"getTokenInfo","id":"1c37e7cd-346b-4381-a501-d479021d33e8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"GET","header":[],"body":{"mode":"raw","raw":"{\n    \"email\": \"nihal@gmail.com\",\n    \"password\": \"Demo@12342#\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000//login","urlObject":{"path":["login"],"host":["http://localhost:5000/"],"query":[],"variable":[]}},"response":[{"id":"e6a7e6d7-47ce-423c-83e8-69fea63b591d","name":"getTokenInfo","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"{\n    \"email\": \"nihal@gmail.com\",\n    \"password\": \"Demo@12342#\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000//login"},"status":"OK","code":200,"_postman_previewlanguage":"json","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":"249"},{"key":"ETag","value":"W/\"f9-0NF6qRRZ78KTG4BrvTmHeAq5vjI\""},{"key":"Date","value":"Sat, 03 May 2025 19:27:33 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"customer\": null,\n    \"admin\": {\n        \"_id\": \"680e660e483c29bf725ebd93\",\n        \"name\": \"Shahabas Abdul Hameed\",\n        \"email\": \"shahabassabbu12@gmail.com\",\n        \"phone\": \"9746527459\",\n        \"createdAt\": \"2025-04-27T17:14:55.003Z\",\n        \"updatedAt\": \"2025-04-28T15:56:59.841Z\",\n        \"__v\": 0\n    },\n    \"isAdmin\": true\n}"}],"_postman_id":"1c37e7cd-346b-4381-a501-d479021d33e8"},{"name":"Customer Login","id":"84350ebe-1838-4e93-9882-9fcb4ff24b3b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\": \"nihal@gmail.com\",\n    \"password\": \"Demo@12342#\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000//login","urlObject":{"path":["login"],"host":["http://localhost:5000/"],"query":[],"variable":[]}},"response":[{"id":"ec4bd53c-15d3-484c-94ca-293506d8a98c","name":"Customer Login","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\": \"nihal@gmail.com\",\n    \"password\": \"Demo@12342#\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000//login"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"RateLimit-Policy","value":"100;w=900"},{"key":"RateLimit-Limit","value":"100"},{"key":"RateLimit-Remaining","value":"95"},{"key":"RateLimit-Reset","value":"791"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"393"},{"key":"ETag","value":"W/\"189-3gYmRfJaY5ZqZZ/FhilzRpJcZJ8\""},{"key":"Date","value":"Thu, 01 May 2025 20:50:30 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Login Successful\",\n    \"token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY4MTI2ZmQyMTFmYzhlMGRiYzJkOGYyMyIsImlzQWRtaW4iOmZhbHNlLCJpYXQiOjE3NDYxMzI2MzAsImV4cCI6MTc0NjczNzQzMH0.mLBja6FofxHX1Y3ELmlJsK4Tkm6F39BFjCEmQmOei80\",\n    \"user\": {\n        \"id\": \"68126fd211fc8e0dbc2d8f23\",\n        \"name\": \"Nihal\",\n        \"email\": \"nihal@gmail.com\",\n        \"phone\": \"0213456789\",\n        \"isAdmin\": false,\n        \"address\": \"Kotikulam, Kasaragod, Kerala\"\n    }\n}"}],"_postman_id":"84350ebe-1838-4e93-9882-9fcb4ff24b3b"},{"name":"Admin Login","id":"e8828634-c26c-4fb2-b182-73f57470ff5b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\": \"admin@gmail.com\",\n    \"password\": \"admin123#\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000//login","urlObject":{"path":["login"],"host":["http://localhost:5000/"],"query":[],"variable":[]}},"response":[{"id":"2d2f7986-97eb-4466-bd33-545fefe3fdd8","name":"Login","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\": \"newbelikebu@gmail.com\",\n    \"password\": \"Shahabas@12\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000//login"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"RateLimit-Policy","value":"100;w=900"},{"key":"RateLimit-Limit","value":"100"},{"key":"RateLimit-Remaining","value":"99"},{"key":"RateLimit-Reset","value":"900"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"344"},{"key":"ETag","value":"W/\"158-dOtXTXXLRcgoRi35lyw9dBLVJgc\""},{"key":"Date","value":"Fri, 28 Mar 2025 19:23:34 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Login Successful\",\n    \"token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY3ZTZjMGY4NjA1MTM2ZDY3ZjUzNzRiNiIsImlzQWRtaW4iOnRydWUsImlhdCI6MTc0MzE4OTgxNCwiZXhwIjoxNzQzNzk0NjE0fQ.DrFt_VUGWApfSPXHYpyL2plDxq0bIcVQlSBEyVP0dgc\",\n    \"user\": {\n        \"id\": \"67e6c0f8605136d67f5374b6\",\n        \"name\": \"shahabas sabbu\",\n        \"email\": \"newbelikebu@gmail.com\",\n        \"isAdmin\": true\n    }\n}"}],"_postman_id":"e8828634-c26c-4fb2-b182-73f57470ff5b"}],"id":"593d7dcd-bd22-4dd4-b525-6b84437bb3ab","_postman_id":"593d7dcd-bd22-4dd4-b525-6b84437bb3ab","description":""},{"name":"Suppliers","item":[{"name":"GetSuppliers","id":"80fe1eb0-f3ba-492f-80ca-3bddf35176cd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{customerToken}}"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:5000//api/supplier","urlObject":{"path":["api","supplier"],"host":["http://localhost:5000/"],"query":[],"variable":[]}},"response":[{"id":"34846508-770e-4e24-8a5a-92006bf1aabd","name":"GetSuppliers","originalRequest":{"method":"GET","header":[],"url":"http://localhost:5000//api/supplier/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"RateLimit-Policy","value":"100;w=900"},{"key":"RateLimit-Limit","value":"100"},{"key":"RateLimit-Remaining","value":"94"},{"key":"RateLimit-Reset","value":"617"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"329"},{"key":"ETag","value":"W/\"149-K+kdBTYWZJdsoP9H1SDbUKPXRMs\""},{"key":"Date","value":"Thu, 10 Apr 2025 13:14:11 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Suppliers found\",\n    \"success\": true,\n    \"statusCode\": 200,\n    \"supplier\": [\n        {\n            \"_id\": \"67ec16cd40ae3fd88a8232d0\",\n            \"name\": \"Jhon Abraham\",\n            \"email\": \"jhonabraham12@mail.com\",\n            \"phone\": \"0123456789\",\n            \"address\": \"Eastern Pvt Ltd, church Street, Kerala, India\",\n            \"createdAt\": \"2025-04-01T16:39:41.293Z\",\n            \"updatedAt\": \"2025-04-01T17:11:36.574Z\",\n            \"__v\": 0\n        }\n    ]\n}"}],"_postman_id":"80fe1eb0-f3ba-492f-80ca-3bddf35176cd"},{"name":"GetSingleSuppliers","id":"57ee627f-b260-47a5-88d0-de9aea183d53","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{customerToken}}"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:5000//api/supplier/67fd77a062c82ea861d796d3","urlObject":{"path":["api","supplier","67fd77a062c82ea861d796d3"],"host":["http://localhost:5000/"],"query":[],"variable":[]}},"response":[{"id":"ed096df8-4004-4f07-80f6-c6a39787c9f6","name":"GetSingleSuppliers","originalRequest":{"method":"GET","header":[],"url":"http://localhost:5000//api/supplier/67ec16cd40ae3fd88a8232d0"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"RateLimit-Policy","value":"100;w=900"},{"key":"RateLimit-Limit","value":"100"},{"key":"RateLimit-Remaining","value":"93"},{"key":"RateLimit-Reset","value":"607"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"339"},{"key":"ETag","value":"W/\"153-dC4yI2jJl5C5KeQO6mOGhszl1PE\""},{"key":"Date","value":"Thu, 10 Apr 2025 13:14:21 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Supplier found successfully\",\n    \"success\": true,\n    \"statusCode\": 200,\n    \"supplier\": {\n        \"_id\": \"67ec16cd40ae3fd88a8232d0\",\n        \"name\": \"Jhon Abraham\",\n        \"email\": \"jhonabraham12@mail.com\",\n        \"phone\": \"0123456789\",\n        \"address\": \"Eastern Pvt Ltd, church Street, Kerala, India\",\n        \"createdAt\": \"2025-04-01T16:39:41.293Z\",\n        \"updatedAt\": \"2025-04-01T17:11:36.574Z\",\n        \"__v\": 0\n    }\n}"}],"_postman_id":"57ee627f-b260-47a5-88d0-de9aea183d53"},{"name":"addSuppliers","id":"f0e6e181-cc4d-4833-b5cf-d208e08d4076","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"Milma Co\",\n    \"email\": \"milmaco@mail.com\",\n    \"phone\": \"9746654539\",\n    \"address\": \"Milma Co, Kasaragod, Kerala\",\n    \"products\": [\n        {\n            \"name\": \"Milma Milk\",\n            \"category\": \"Diary\",\n            \"pricePerItem\": 28\n        },\n        {\n            \"name\": \"Ghee\",\n            \"category\": \"Diary\",\n            \"pricePerItem\": 28\n        },\n        {\n            \"name\": \"Milma Curd\",\n            \"category\": \"Diary\",\n            \"pricePerItem\": 28\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000//api/supplier","urlObject":{"path":["api","supplier"],"host":["http://localhost:5000/"],"query":[],"variable":[]}},"response":[{"id":"c11594cc-3867-49d1-8469-47a28096eab3","name":"addSuppliers","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"Milma Co\",\n    \"email\": \"milmaco@mail.com\",\n    \"phone\": \"9746654539\",\n    \"address\": \"Milma Co, Kasaragod, Kerala\",\n    \"products\": [\n        {\n            \"name\": \"Milma Milk\",\n            \"category\": \"Diary\",\n            \"pricePerItem\": 28\n        },\n        {\n            \"name\": \"Ghee\",\n            \"category\": \"Diary\",\n            \"pricePerItem\": 28\n        },\n        {\n            \"name\": \"Milma Curd\",\n            \"category\": \"Diary\",\n            \"pricePerItem\": 28\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000//api/supplier"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"RateLimit-Policy","value":"100;w=900"},{"key":"RateLimit-Limit","value":"100"},{"key":"RateLimit-Remaining","value":"89"},{"key":"RateLimit-Reset","value":"681"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"586"},{"key":"ETag","value":"W/\"24a-eFdTOJR1BGaxesWGuaeTLM2a4lY\""},{"key":"Date","value":"Sun, 13 Apr 2025 20:55:18 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Supplier added successfully\",\n    \"success\": true,\n    \"statusCode\": 201,\n    \"supplier\": {\n        \"name\": \"milma co\",\n        \"email\": \"milmaco@mail.com\",\n        \"phone\": \"9746654539\",\n        \"address\": \"Milma Co, Kasaragod, Kerala\",\n        \"products\": [\n            {\n                \"name\": \"milma milk\",\n                \"category\": \"diary\",\n                \"pricePerItem\": 28,\n                \"_id\": \"67fc24b64839d0687eb5ba86\"\n            },\n            {\n                \"name\": \"ghee\",\n                \"category\": \"diary\",\n                \"pricePerItem\": 28,\n                \"_id\": \"67fc24b64839d0687eb5ba87\"\n            },\n            {\n                \"name\": \"milma curd\",\n                \"category\": \"diary\",\n                \"pricePerItem\": 28,\n                \"_id\": \"67fc24b64839d0687eb5ba88\"\n            }\n        ],\n        \"_id\": \"67fc24b64839d0687eb5ba85\",\n        \"createdAt\": \"2025-04-13T20:55:18.805Z\",\n        \"updatedAt\": \"2025-04-13T20:55:18.805Z\"\n    }\n}"}],"_postman_id":"f0e6e181-cc4d-4833-b5cf-d208e08d4076"},{"name":"update supplier and products and products","id":"70d8fddd-b398-4b33-9386-97256c4bca14","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"Milma Co\",\n    \"email\": \"milmaco@mail.com\",\n    \"phone\": \"9746654539\",\n    \"address\": \"Milma Co, Kasaragod, Kerala\",\n    \"products\": [\n        {\n            \"productId\": \"67fd8011c3bca088ff4b6985\",\n            \"name\": \"Milma Milk\",\n            \"category\": \"Diary\",\n            \"pricePerItem\": 28\n        },\n        {\n            \"productId\": \"67fd8011c3bca088ff4b6986\",\n            \"name\": \"Ghee\",\n            \"category\": \"Diary\",\n            \"pricePerItem\": 28\n        },\n        {\n            \"name\": \"Milma Paneer\",\n            \"category\": \"Diary\",\n            \"pricePerItem\": 75\n        }\n    ],\n    \"deleteProducts\": [\n        \"67fd8011c3bca088ff4b6987\"\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000//api/supplier/67fd8011c3bca088ff4b6984","urlObject":{"path":["api","supplier","67fd8011c3bca088ff4b6984"],"host":["http://localhost:5000/"],"query":[],"variable":[]}},"response":[{"id":"4f6ceb02-218c-4c06-8a4e-f233b1703eee","name":"udpate supplier and products","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"Milma Co\",\n    \"email\": \"milmaco@mail.com\",\n    \"phone\": \"9746654539\",\n    \"address\": \"Milma Co, Kasaragod, Kerala\",\n    \"products\": [\n        {\n            \"productId\": \"67fd8011c3bca088ff4b6985\",\n            \"name\": \"Milma Milk\",\n            \"category\": \"Diary\",\n            \"pricePerItem\": 28\n        },\n        {\n            \"productId\": \"67fd8011c3bca088ff4b6986\",\n            \"name\": \"Ghee\",\n            \"category\": \"Diary\",\n            \"pricePerItem\": 28\n        },\n        {\n            \"name\": \"Milma Paneer\",\n            \"category\": \"Diary\",\n            \"pricePerItem\": 75\n        }\n    ],\n    \"deleteProducts\": [\n        \"67fd8011c3bca088ff4b6987\"\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000//api/supplier/67fd8011c3bca088ff4b6984"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"RateLimit-Policy","value":"100;w=900"},{"key":"RateLimit-Limit","value":"100"},{"key":"RateLimit-Remaining","value":"99"},{"key":"RateLimit-Reset","value":"900"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"688"},{"key":"ETag","value":"W/\"2b0-MHLFaP8lglwTjJnlb9njk6pJ9LE\""},{"key":"Date","value":"Mon, 14 Apr 2025 21:46:54 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"Supplier updated successfully\",\n    \"statusCode\": 200,\n    \"data\": {\n        \"_id\": \"67fd8011c3bca088ff4b6984\",\n        \"name\": \"milma co\",\n        \"email\": \"milmaco@mail.com\",\n        \"phone\": \"9746654539\",\n        \"address\": \"Milma Co, Kasaragod, Kerala\",\n        \"products\": [\n            {\n                \"name\": \"milma milk\",\n                \"category\": \"diary\",\n                \"pricePerItem\": 28,\n                \"_id\": \"67fd8011c3bca088ff4b6985\"\n            },\n            {\n                \"name\": \"ghee\",\n                \"category\": \"diary\",\n                \"pricePerItem\": 28,\n                \"_id\": \"67fd8011c3bca088ff4b6986\"\n            },\n            {\n                \"name\": \"milma paneer\",\n                \"category\": \"diary\",\n                \"pricePerItem\": 75,\n                \"_id\": \"67fd821bc3bca088ff4b69b2\"\n            },\n            {\n                \"name\": \"milma paneer\",\n                \"category\": \"diary\",\n                \"pricePerItem\": 75,\n                \"_id\": \"67fd824eb09879e4f1fb7d99\"\n            }\n        ],\n        \"createdAt\": \"2025-04-14T21:37:21.759Z\",\n        \"updatedAt\": \"2025-04-14T21:46:54.522Z\",\n        \"__v\": 2\n    }\n}"}],"_postman_id":"70d8fddd-b398-4b33-9386-97256c4bca14"},{"name":"delete products","id":"333ac6d3-f23b-4a2e-8b60-abb39e28e070","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"deleteProducts\": [\n        \"67fd77a062c82ea861d796d4\"\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000//api/supplier/67fd77a062c82ea861d796d3","urlObject":{"path":["api","supplier","67fd77a062c82ea861d796d3"],"host":["http://localhost:5000/"],"query":[],"variable":[]}},"response":[{"id":"8e270765-df10-4d89-acae-fb0771fb9df0","name":"delete products","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"deleteProducts\": [\n        \"67fd77a062c82ea861d796d4\"\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000//api/supplier/67fd77a062c82ea861d796d3"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"RateLimit-Policy","value":"100;w=900"},{"key":"RateLimit-Limit","value":"100"},{"key":"RateLimit-Remaining","value":"88"},{"key":"RateLimit-Reset","value":"520"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"653"},{"key":"ETag","value":"W/\"28d-pGEblrltnmhaPqPfIQa9W7DwDOE\""},{"key":"Date","value":"Mon, 14 Apr 2025 21:35:22 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"Supplier updated successfully ✅\",\n    \"data\": {\n        \"_id\": \"67fd77a062c82ea861d796d3\",\n        \"name\": \"milma co\",\n        \"email\": \"milmaco@mail.com\",\n        \"phone\": \"9746654539\",\n        \"address\": \"Milma Co, Kasaragod, Kerala\",\n        \"products\": [\n            {\n                \"name\": \"ghee\",\n                \"category\": \"diary\",\n                \"pricePerItem\": 28,\n                \"_id\": \"67fd77a062c82ea861d796d5\"\n            },\n            {\n                \"name\": \"demo\",\n                \"category\": \"diary\",\n                \"pricePerItem\": 28,\n                \"_id\": \"67fd7ee7495476772ced87a4\"\n            },\n            {\n                \"name\": \"demo\",\n                \"category\": \"diary\",\n                \"pricePerItem\": 28,\n                \"_id\": \"67fd7f05495476772ced87aa\"\n            },\n            {\n                \"name\": \"demo\",\n                \"category\": \"diary\",\n                \"pricePerItem\": 28,\n                \"_id\": \"67fd7f3d495476772ced87b1\"\n            }\n        ],\n        \"createdAt\": \"2025-04-14T21:01:20.870Z\",\n        \"updatedAt\": \"2025-04-14T21:35:22.153Z\",\n        \"__v\": 5\n    }\n}"}],"_postman_id":"333ac6d3-f23b-4a2e-8b60-abb39e28e070"},{"name":"updateSupplierColumn","id":"fea6c181-c948-4f09-ae7a-05091f39b6c0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"PATCH","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"name","value":"Jhon Abraham","type":"text","uuid":"8cb6625a-2a96-45c5-9eac-f593ef17e876"},{"key":"address","value":"Eastern Pvt Ltd, church Street, Kerala, India","type":"text","uuid":"e6ad5f9c-18c1-4790-8a1c-e027bbfeb0e9"}]},"url":"http://localhost:5000//api/supplier/67ec16cd40ae3fd88a8232d0","urlObject":{"path":["api","supplier","67ec16cd40ae3fd88a8232d0"],"host":["http://localhost:5000/"],"query":[],"variable":[]}},"response":[{"id":"80bd7d68-9670-4942-b141-8779186a1073","name":"updateSupplierColumn","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"name","value":"Jhon Abraham","type":"text","uuid":"8cb6625a-2a96-45c5-9eac-f593ef17e876"},{"key":"address","value":"Eastern Pvt Ltd, church Street, Kerala, India","type":"text","uuid":"e6ad5f9c-18c1-4790-8a1c-e027bbfeb0e9"}]},"url":"http://localhost:5000//api/supplier/67ec16cd40ae3fd88a8232d0"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"RateLimit-Policy","value":"100;w=900"},{"key":"RateLimit-Limit","value":"100"},{"key":"RateLimit-Remaining","value":"91"},{"key":"RateLimit-Reset","value":"585"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"341"},{"key":"ETag","value":"W/\"155-1cGICGYdplNcznUe8sxvb281w2E\""},{"key":"Date","value":"Thu, 10 Apr 2025 13:14:43 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Supplier Updated successfully\",\n    \"success\": true,\n    \"statusCode\": 200,\n    \"supplier\": {\n        \"_id\": \"67ec16cd40ae3fd88a8232d0\",\n        \"name\": \"Jhon Abraham\",\n        \"email\": \"jhonabraham12@mail.com\",\n        \"phone\": \"0123456789\",\n        \"address\": \"Eastern Pvt Ltd, church Street, Kerala, India\",\n        \"createdAt\": \"2025-04-01T16:39:41.293Z\",\n        \"updatedAt\": \"2025-04-10T13:14:43.812Z\",\n        \"__v\": 0\n    }\n}"}],"_postman_id":"fea6c181-c948-4f09-ae7a-05091f39b6c0"},{"name":"deleteSupplier","id":"7df3d636-1b93-4613-9bb6-b3cc95ad0f64","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"DELETE","header":[],"url":"http://localhost:5000//api/supplier/67ec1fde5ce1fb93716bf55d","urlObject":{"path":["api","supplier","67ec1fde5ce1fb93716bf55d"],"host":["http://localhost:5000/"],"query":[],"variable":[]}},"response":[{"id":"ed934d92-b16f-432e-b97b-db8f56cd0fbc","name":"deleteSupplier","originalRequest":{"method":"DELETE","header":[],"url":"http://localhost:5000//api/supplier/67ec1fde5ce1fb93716bf55d"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"RateLimit-Policy","value":"100;w=900"},{"key":"RateLimit-Limit","value":"100"},{"key":"RateLimit-Remaining","value":"89"},{"key":"RateLimit-Reset","value":"533"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"114"},{"key":"ETag","value":"W/\"72-tNvGnO+rQqJx6A50bgHhw5PkBV0\""},{"key":"Date","value":"Thu, 10 Apr 2025 13:15:35 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": false,\n    \"error\": {\n        \"statusCode\": 400,\n        \"message\": \"Supplier with id: 67ec1fde5ce1fb93716bf55d does not found\"\n    }\n}"}],"_postman_id":"7df3d636-1b93-4613-9bb6-b3cc95ad0f64"}],"id":"02f95fa5-b862-45d2-ad5e-675cab3d41c4","description":"<p>All GET routes in supplier can accessible by customers and admin.</p>\n<p>Rest of all the routes are only accessible for Admin.</p>\n","_postman_id":"02f95fa5-b862-45d2-ad5e-675cab3d41c4"},{"name":"Products","item":[{"name":"GetAllProducts","id":"ae488137-b6df-483e-a0e6-0d1b9b8a19d4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:5000//api/products","urlObject":{"path":["api","products"],"host":["http://localhost:5000/"],"query":[],"variable":[]}},"response":[{"id":"65ef7822-252e-4831-8717-a581163b6085","name":"New Request","originalRequest":{"method":"GET","header":[],"url":"{{host}}api/products"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"RateLimit-Policy","value":"100;w=900"},{"key":"RateLimit-Limit","value":"100"},{"key":"RateLimit-Remaining","value":"97"},{"key":"RateLimit-Reset","value":"856"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1489"},{"key":"ETag","value":"W/\"5d1-gpseiPn3hR26ulxBs1sR04D9jcA\""},{"key":"Date","value":"Thu, 10 Apr 2025 21:35:48 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"There are 6 were found\",\n    \"success\": true,\n    \"statusCode\": 200,\n    \"products\": [\n        {\n            \"_id\": \"67f81f96ebab267d99d6a2cf\",\n            \"supplierId\": \"67ec16cd40ae3fd88a8232d0\",\n            \"name\": \"onion\",\n            \"categoryId\": \"67f7c50199071d8d94390f2c\",\n            \"pricePerItem\": 24,\n            \"__v\": 0,\n            \"createdAt\": \"2025-04-10T19:44:22.060Z\",\n            \"updatedAt\": \"2025-04-10T21:17:46.722Z\"\n        },\n        {\n            \"_id\": \"67f81f96ebab267d99d6a2d0\",\n            \"supplierId\": \"67ec16cd40ae3fd88a8232d0\",\n            \"name\": \"tomato\",\n            \"categoryId\": \"67f7c50199071d8d94390f2c\",\n            \"pricePerItem\": 200,\n            \"__v\": 0,\n            \"createdAt\": \"2025-04-10T19:44:22.062Z\",\n            \"updatedAt\": \"2025-04-10T21:17:46.722Z\"\n        },\n        {\n            \"_id\": \"67f8362d8bee350350d76a06\",\n            \"supplierId\": \"67f7c4685b6ecb1e2f03f37e\",\n            \"name\": \"milk\",\n            \"categoryId\": \"67eedf93b6798df2975bffe0\",\n            \"pricePerItem\": 28,\n            \"__v\": 0,\n            \"createdAt\": \"2025-04-10T21:20:45.326Z\",\n            \"updatedAt\": \"2025-04-10T21:20:45.326Z\"\n        },\n        {\n            \"_id\": \"67f8362d8bee350350d76a07\",\n            \"supplierId\": \"67f7c4685b6ecb1e2f03f37e\",\n            \"name\": \"butter\",\n            \"categoryId\": \"67eedf93b6798df2975bffe0\",\n            \"pricePerItem\": 60,\n            \"__v\": 0,\n            \"createdAt\": \"2025-04-10T21:20:45.327Z\",\n            \"updatedAt\": \"2025-04-10T21:20:45.327Z\"\n        },\n        {\n            \"_id\": \"67f8362d8bee350350d76a08\",\n            \"supplierId\": \"67ec16cd40ae3fd88a8232d0\",\n            \"name\": \"banana\",\n            \"categoryId\": \"67f7c50199071d8d94390f2c\",\n            \"pricePerItem\": 65,\n            \"__v\": 0,\n            \"createdAt\": \"2025-04-10T21:20:45.327Z\",\n            \"updatedAt\": \"2025-04-10T21:20:45.327Z\"\n        },\n        {\n            \"_id\": \"67f8362d8bee350350d76a09\",\n            \"supplierId\": \"67ec16cd40ae3fd88a8232d0\",\n            \"name\": \"mango\",\n            \"categoryId\": \"67f7c50199071d8d94390f2c\",\n            \"pricePerItem\": 150,\n            \"__v\": 0,\n            \"createdAt\": \"2025-04-10T21:20:45.327Z\",\n            \"updatedAt\": \"2025-04-10T21:20:45.327Z\"\n        }\n    ]\n}"}],"_postman_id":"ae488137-b6df-483e-a0e6-0d1b9b8a19d4"},{"name":"Get Single Product","id":"fc0bd0d3-715b-4c22-88c5-d3a7e8482880","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:5000//api/products/67f8362d8bee350350d76a06","urlObject":{"path":["api","products","67f8362d8bee350350d76a06"],"host":["http://localhost:5000/"],"query":[],"variable":[]}},"response":[{"id":"b4625c79-5340-4c73-a401-4739b4c43a74","name":"ProductsBySupplierOrCategory Copy","originalRequest":{"method":"GET","header":[],"url":"{{host}}api/products/67f8362d8bee350350d76a06"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"RateLimit-Policy","value":"100;w=900"},{"key":"RateLimit-Limit","value":"100"},{"key":"RateLimit-Remaining","value":"99"},{"key":"RateLimit-Reset","value":"900"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"220"},{"key":"ETag","value":"W/\"dc-Jo7YuoNbSlQUKxRNHbmLEr3zkHc\""},{"key":"Date","value":"Thu, 10 Apr 2025 21:57:34 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Products is found\",\n    \"success\": true,\n    \"statusCode\": 200,\n    \"product\": {\n        \"_id\": \"67f8362d8bee350350d76a06\",\n        \"supplierId\": \"67f7c4685b6ecb1e2f03f37e\",\n        \"name\": \"milk\",\n        \"categoryId\": \"67eedf93b6798df2975bffe0\",\n        \"pricePerItem\": 28\n    }\n}"}],"_postman_id":"fc0bd0d3-715b-4c22-88c5-d3a7e8482880"},{"name":"get Supplier Based Product","id":"624ef66a-3a7c-4fd2-b2fb-d6e539b061ae","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:5000//api/products/get?supplier=67ec16cd40ae3fd88a8232d0","urlObject":{"path":["api","products","get"],"host":["http://localhost:5000/"],"query":[{"key":"supplier","value":"67ec16cd40ae3fd88a8232d0"}],"variable":[]}},"response":[{"id":"11b24ca2-b3ee-44b6-973b-4e0fccd80883","name":"get Supplier Based Product","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://localhost:5000//api/products/get?supplier=67ec16cd40ae3fd88a8232d0","host":["http://localhost:5000/"],"path":["api","products","get"],"query":[{"key":"supplier","value":"67ec16cd40ae3fd88a8232d0"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"RateLimit-Policy","value":"100;w=900"},{"key":"RateLimit-Limit","value":"100"},{"key":"RateLimit-Remaining","value":"98"},{"key":"RateLimit-Reset","value":"867"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"516"},{"key":"ETag","value":"W/\"204-Rr2BVNJtZokLVKfqzpwg2KmuOVQ\""},{"key":"Date","value":"Sat, 12 Apr 2025 15:04:19 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"There are 2 products found in this supplier\",\n    \"success\": true,\n    \"statusCode\": 200,\n    \"products\": [\n        {\n            \"_id\": \"67fa77b3842b7ea43c3617f2\",\n            \"supplierId\": \"67ec16cd40ae3fd88a8232d0\",\n            \"name\": \"amul cool\",\n            \"category\": \"diary\",\n            \"pricePerItem\": 24,\n            \"createdAt\": \"2025-04-12T14:24:51.418Z\",\n            \"updatedAt\": \"2025-04-12T14:34:51.446Z\"\n        },\n        {\n            \"_id\": \"67fa77b3842b7ea43c3617f3\",\n            \"supplierId\": \"67ec16cd40ae3fd88a8232d0\",\n            \"name\": \"ghee\",\n            \"category\": \"diary\",\n            \"pricePerItem\": 200,\n            \"createdAt\": \"2025-04-12T14:24:51.419Z\",\n            \"updatedAt\": \"2025-04-12T14:34:51.446Z\"\n        }\n    ]\n}"}],"_postman_id":"624ef66a-3a7c-4fd2-b2fb-d6e539b061ae"},{"name":"Add Products","id":"af48b1e8-3e30-4251-85e1-970e0d3e6841","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"products\": [\n        {\n            \"supplierId\": \"67ec16cd40ae3fd88a8232d0\",\n            \"category\": \"Diary\",\n            \"name\": \"Amul cool\",\n            \"pricePerItem\": 25\n        },\n        {\n            \"supplierId\": \"67ec16cd40ae3fd88a8232d0\",\n            \"category\": \"Diary\",\n            \"name\": \"Ghee\",\n            \"pricePerItem\": 565\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000//api/products","urlObject":{"path":["api","products"],"host":["http://localhost:5000/"],"query":[],"variable":[]}},"response":[{"id":"a5c1085f-dfa7-41c0-bcd0-c8ffbe8e8e78","name":"Add Products","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"products\": [\n        {\n            \"supplierId\": \"67ec16cd40ae3fd88a8232d0\",\n            \"category\": \"Diary\",\n            \"name\": \"Amul cool\",\n            \"pricePerItem\": 25\n        },\n        {\n            \"supplierId\": \"67ec16cd40ae3fd88a8232d0\",\n            \"category\": \"Diary\",\n            \"name\": \"Ghee\",\n            \"pricePerItem\": 565\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000//api/products"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"RateLimit-Policy","value":"100;w=900"},{"key":"RateLimit-Limit","value":"100"},{"key":"RateLimit-Remaining","value":"99"},{"key":"RateLimit-Reset","value":"900"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"518"},{"key":"ETag","value":"W/\"206-dsJOQG1O9D4Z5lBQI2t+JFAtn+4\""},{"key":"Date","value":"Sat, 12 Apr 2025 14:24:51 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Product Inserted Successfully\",\n    \"success\": true,\n    \"statusCode\": 201,\n    \"products\": [\n        {\n            \"supplierId\": \"67ec16cd40ae3fd88a8232d0\",\n            \"name\": \"amul cool\",\n            \"category\": \"diary\",\n            \"pricePerItem\": 25,\n            \"_id\": \"67fa77b3842b7ea43c3617f2\",\n            \"__v\": 0,\n            \"createdAt\": \"2025-04-12T14:24:51.418Z\",\n            \"updatedAt\": \"2025-04-12T14:24:51.418Z\"\n        },\n        {\n            \"supplierId\": \"67ec16cd40ae3fd88a8232d0\",\n            \"name\": \"ghee\",\n            \"category\": \"diary\",\n            \"pricePerItem\": 565,\n            \"_id\": \"67fa77b3842b7ea43c3617f3\",\n            \"__v\": 0,\n            \"createdAt\": \"2025-04-12T14:24:51.419Z\",\n            \"updatedAt\": \"2025-04-12T14:24:51.419Z\"\n        }\n    ]\n}"}],"_postman_id":"af48b1e8-3e30-4251-85e1-970e0d3e6841"},{"name":"updateSupplier Product","id":"c47aa211-04a7-4cdc-99e1-64cd51528aa5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"products\": [\n        {\n            \"supplierId\": \"67ec16cd40ae3fd88a8232d0\",\n            \"categoryId\": \"67f7c50199071d8d94390f2c\",\n            \"name\": \"Onion\",\n            \"pricePerItem\": 24\n        },\n        {\n            \"supplierId\": \"67ec16cd40ae3fd88a8232d0\",\n            \"categoryId\": \"67f7c50199071d8d94390f2c\",\n            \"name\": \"Tomato\",\n            \"pricePerItem\": 200\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"{{hostaddr}}api/products","urlObject":{"path":["products"],"host":["{{hostaddr}}api"],"query":[],"variable":[]}},"response":[{"id":"223a6049-29c9-4240-ae13-08292ade8036","name":"UpdateSupplierProducts","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"products\": [\n        {\n            \"supplierId\":\"67ec16cd40ae3fd88a8232d0\",\n            \"categoryId\": \"67f7c50199071d8d94390f2c\",\n            \"name\": \"Onion\",\n            \"pricePerItem\": 24\n        },\n        {\n            \"supplierId\":\"67ec16cd40ae3fd88a8232d0\",\n            \"categoryId\": \"67f7c50199071d8d94390f2c\",\n            \"name\": \"Tomato\",\n            \"pricePerItem\": 200\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}api/products"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"RateLimit-Policy","value":"100;w=900"},{"key":"RateLimit-Limit","value":"100"},{"key":"RateLimit-Remaining","value":"99"},{"key":"RateLimit-Reset","value":"900"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"92"},{"key":"ETag","value":"W/\"5c-wNU2uZEFEoeeWI1HUOGkRYJMIAA\""},{"key":"Date","value":"Thu, 10 Apr 2025 21:17:46 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Product Updated Successfully\",\n    \"success\": true,\n    \"statusCode\": 200,\n    \"modifiedCount\": 2\n}"}],"_postman_id":"c47aa211-04a7-4cdc-99e1-64cd51528aa5"},{"name":"Delete Products","id":"3ab98f50-6e35-47be-bd09-c5f03d28aa7c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"body":{"mode":"raw","raw":"{\n    \"products\": [\n        \"67f8362d8bee350350d76a08\",\n        \"67f83af5a388c62c6ac800dd\"\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000//api/products/","urlObject":{"path":["api","products",""],"host":["http://localhost:5000/"],"query":[],"variable":[]}},"response":[{"id":"dbbd0bb7-dfc9-4ec4-8ced-ff1ce9975201","name":"Delete Products","originalRequest":{"method":"DELETE","header":[],"body":{"mode":"raw","raw":"{\n    \"products\": [\n        \"67f8362d8bee350350d76a09\"\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"{{hostaddr}}api/products/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"RateLimit-Policy","value":"100;w=900"},{"key":"RateLimit-Limit","value":"100"},{"key":"RateLimit-Remaining","value":"99"},{"key":"RateLimit-Reset","value":"900"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"116"},{"key":"ETag","value":"W/\"74-6h9wv1D3fCm6fnrOhMLusnmRKVU\""},{"key":"Date","value":"Thu, 10 Apr 2025 23:13:37 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Product deleted successfully\",\n    \"success\": true,\n    \"statusCode\": 200,\n    \"deletedProducts\": [],\n    \"failedDeletions\": []\n}"}],"_postman_id":"3ab98f50-6e35-47be-bd09-c5f03d28aa7c"}],"id":"fdf06a24-6ae7-4941-86f0-01059556aa08","description":"<p><strong>Not Used for Project</strong></p>\n","_postman_id":"fdf06a24-6ae7-4941-86f0-01059556aa08"},{"name":"Inventory","item":[{"name":"getInventory","id":"870c59d4-7152-4755-9523-3e4ea661f127","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:5000//api/inventory","urlObject":{"path":["api","inventory"],"host":["http://localhost:5000/"],"query":[],"variable":[]}},"response":[{"id":"ab2e4f7a-d0b4-4cdb-b711-7804778f7173","name":"getInventory","originalRequest":{"method":"GET","header":[],"url":"http://localhost:5000//api/inventory"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"RateLimit-Policy","value":"100;w=900"},{"key":"RateLimit-Limit","value":"100"},{"key":"RateLimit-Remaining","value":"96"},{"key":"RateLimit-Reset","value":"812"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"392"},{"key":"ETag","value":"W/\"188-ikjp6Ml94nZmroP+I2qyzYgxxNA\""},{"key":"Date","value":"Thu, 17 Apr 2025 19:56:30 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"In inventory 1 were found\",\n    \"success\": true,\n    \"statusCode\": 200,\n    \"inventory\": [\n        {\n            \"_id\": \"680159cbfbedbc4949528ec5\",\n            \"supplierId\": \"67fd8011c3bca088ff4b6984\",\n            \"supplierName\": \"milma co\",\n            \"productId\": \"67fd8011c3bca088ff4b6986\",\n            \"productName\": \"ghee\",\n            \"category\": \"diary\",\n            \"quantity\": 44,\n            \"threshold\": 40,\n            \"status\": \"in_stock\",\n            \"createdAt\": \"2025-04-17T19:43:07.833Z\",\n            \"updatedAt\": \"2025-04-17T19:43:07.833Z\"\n        }\n    ]\n}"}],"_postman_id":"870c59d4-7152-4755-9523-3e4ea661f127"},{"name":"getSingleInventory","id":"1968665e-5452-4d35-8c4d-e7b4ff27f5c3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{customerToken}}"}]},"isInherited":false},"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000//api/inventory/680233efbbd4eb37c8740e35","urlObject":{"path":["api","inventory","680233efbbd4eb37c8740e35"],"host":["http://localhost:5000/"],"query":[],"variable":[]}},"response":[{"id":"e346f9e0-afe5-44a4-b7da-79aa022b2dca","name":"getSingleInventory","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000//api/inventory/680159cbfbedbc4949528ec5"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"RateLimit-Policy","value":"100;w=900"},{"key":"RateLimit-Limit","value":"100"},{"key":"RateLimit-Remaining","value":"97"},{"key":"RateLimit-Reset","value":"853"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"380"},{"key":"ETag","value":"W/\"17c-SxjmSVQ6H1xuvearn++LVjsLL3I\""},{"key":"Date","value":"Thu, 17 Apr 2025 19:55:48 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Inventory found\",\n    \"success\": true,\n    \"statusCode\": 200,\n    \"inventory\": {\n        \"_id\": \"680159cbfbedbc4949528ec5\",\n        \"supplierId\": \"67fd8011c3bca088ff4b6984\",\n        \"supplierName\": \"milma co\",\n        \"productId\": \"67fd8011c3bca088ff4b6986\",\n        \"productName\": \"ghee\",\n        \"category\": \"diary\",\n        \"quantity\": 44,\n        \"threshold\": 40,\n        \"status\": \"in_stock\",\n        \"createdAt\": \"2025-04-17T19:43:07.833Z\",\n        \"updatedAt\": \"2025-04-17T19:43:07.833Z\"\n    }\n}"}],"_postman_id":"1968665e-5452-4d35-8c4d-e7b4ff27f5c3"},{"name":"getInventoryByCustomer","id":"3c2da7a7-5312-4dc1-8136-475b29e6a7a4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{customerToken}}"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:5000//api/inventory/customer/","urlObject":{"path":["api","inventory","customer",""],"host":["http://localhost:5000/"],"query":[],"variable":[]}},"response":[{"id":"4bedba3b-d345-4784-8a12-7363b5a0061a","name":"getInventoryByCustomer","originalRequest":{"method":"GET","header":[],"url":"http://localhost:5000//api/inventory/customer/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"RateLimit-Policy","value":"100;w=900"},{"key":"RateLimit-Limit","value":"100"},{"key":"RateLimit-Remaining","value":"99"},{"key":"RateLimit-Reset","value":"900"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"287"},{"key":"ETag","value":"W/\"11f-lAHHqsimFgRk8QhuaMWQu+NXPjI\""},{"key":"Date","value":"Thu, 17 Apr 2025 19:55:01 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"In inventory 1 were found\",\n    \"success\": true,\n    \"statusCode\": 200,\n    \"inventory\": [\n        {\n            \"_id\": \"680159cbfbedbc4949528ec5\",\n            \"productName\": \"ghee\",\n            \"category\": \"diary\",\n            \"quantity\": 44,\n            \"threshold\": 40,\n            \"status\": \"in_stock\",\n            \"createdAt\": \"2025-04-17T19:43:07.833Z\",\n            \"updatedAt\": \"2025-04-17T19:43:07.833Z\"\n        }\n    ]\n}"}],"_postman_id":"3c2da7a7-5312-4dc1-8136-475b29e6a7a4"},{"name":"addInventory","id":"f1b2da70-01ab-4d69-845c-2874a18ebe87","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"supplierId\": \"67fd8011c3bca088ff4b6984\",\n    \"productId\": \"67fd821bc3bca088ff4b69b2\",\n    \"quantity\": 44,\n    \"threshold\": 40\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000//api/inventory","urlObject":{"path":["api","inventory"],"host":["http://localhost:5000/"],"query":[],"variable":[]}},"response":[{"id":"b57264a5-7c1b-480a-89cc-c8c4a6d3d234","name":"addInventory","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"supplierId\": \"67fd8011c3bca088ff4b6984\",\n    \"productId\": \"67fd821bc3bca088ff4b69b2\",\n    \"quantity\": 44,\n    \"threshold\": 40\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000//api/inventory"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"RateLimit-Policy","value":"100;w=900"},{"key":"RateLimit-Limit","value":"100"},{"key":"RateLimit-Remaining","value":"96"},{"key":"RateLimit-Reset","value":"715"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"427"},{"key":"ETag","value":"W/\"1ab-OcOfRoIqf72AvgIZTb61bTJ8Em4\""},{"key":"Date","value":"Fri, 18 Apr 2025 11:13:51 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Inventory added successfully\",\n    \"success\": true,\n    \"statusCode\": 201,\n    \"inventory\": {\n        \"supplierId\": \"67fd8011c3bca088ff4b6984\",\n        \"supplierName\": \"milma co\",\n        \"productId\": \"67fd821bc3bca088ff4b69b2\",\n        \"productName\": \"milma paneer\",\n        \"productPrice\": 75,\n        \"category\": \"diary\",\n        \"quantity\": 44,\n        \"threshold\": 40,\n        \"status\": \"in_stock\",\n        \"_id\": \"680233efbbd4eb37c8740e35\",\n        \"createdAt\": \"2025-04-18T11:13:51.137Z\",\n        \"updatedAt\": \"2025-04-18T11:13:51.137Z\",\n        \"__v\": 0\n    }\n}"}],"_postman_id":"f1b2da70-01ab-4d69-845c-2874a18ebe87"},{"name":"updateInventoryColumn","id":"819fded5-89b4-48f6-b3f2-70d5b35f48f3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"quantity\": 45\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000//api/inventory/67ffe42ddd59b06ca9978c41","urlObject":{"path":["api","inventory","67ffe42ddd59b06ca9978c41"],"host":["http://localhost:5000/"],"query":[],"variable":[]}},"response":[{"id":"8cbe7865-7b65-4bd3-b38b-ee9508ccba1b","name":"updateInventoryColumn","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"quantity\": 45\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000//api/inventory/67ffcaf57fbf4faf336cccce"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"RateLimit-Policy","value":"100;w=900"},{"key":"RateLimit-Limit","value":"100"},{"key":"RateLimit-Remaining","value":"95"},{"key":"RateLimit-Reset","value":"879"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"323"},{"key":"ETag","value":"W/\"143-c/y3X+EDkF36/ADkgV71D1VazJQ\""},{"key":"Date","value":"Wed, 16 Apr 2025 15:46:28 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Inventory updated successfully\",\n    \"success\": true,\n    \"statusCode\": 200,\n    \"inventory\": {\n        \"_id\": \"67ffcaf57fbf4faf336cccce\",\n        \"supplierId\": \"67fd8011c3bca088ff4b6984\",\n        \"productId\": \"67fd8011c3bca088ff4b6986\",\n        \"quantity\": 45,\n        \"status\": \"low_stock\",\n        \"createdAt\": \"2025-04-16T15:21:25.290Z\",\n        \"updatedAt\": \"2025-04-16T15:46:28.623Z\",\n        \"__v\": 0\n    }\n}"}],"_postman_id":"819fded5-89b4-48f6-b3f2-70d5b35f48f3"},{"name":"deleteInventory","id":"53a586a9-a817-4f78-ae7b-927cace0e8f5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"DELETE","header":[],"url":"http://localhost:5000//api/inventory/67ffe78dfa13ecf68a509b8a","urlObject":{"path":["api","inventory","67ffe78dfa13ecf68a509b8a"],"host":["http://localhost:5000/"],"query":[],"variable":[]}},"response":[{"id":"079c8bb5-9a10-4a08-8eca-e0f81d40fe41","name":"deleteInventory","originalRequest":{"method":"DELETE","header":[],"url":"http://localhost:5000//api/inventory/67ffe78dfa13ecf68a509b8a"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"RateLimit-Policy","value":"100;w=900"},{"key":"RateLimit-Limit","value":"100"},{"key":"RateLimit-Remaining","value":"97"},{"key":"RateLimit-Reset","value":"880"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"76"},{"key":"ETag","value":"W/\"4c-I9xeUh7hQs56qjkny7F3zZuJ9mU\""},{"key":"Date","value":"Wed, 16 Apr 2025 18:50:09 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Inventory deleted successfully\",\n    \"success\": true,\n    \"statusCode\": 200\n}"}],"_postman_id":"53a586a9-a817-4f78-ae7b-927cace0e8f5"}],"id":"cd61ebc6-f8de-4c6b-97b5-fb703fc2b33c","_postman_id":"cd61ebc6-f8de-4c6b-97b5-fb703fc2b33c","description":""},{"name":"Order","item":[{"name":"getAllOrder","id":"db675a92-ac18-43af-ae36-9c98b5eaba2d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://suims.vercel.app/api/orders","urlObject":{"protocol":"https","path":["api","orders"],"host":["suims","vercel","app"],"query":[],"variable":[]}},"response":[{"id":"61b1e186-6a10-4c26-82be-2aeac622b084","name":"getAllOrder","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000//api/orders/order"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"RateLimit-Policy","value":"100;w=900"},{"key":"RateLimit-Limit","value":"100"},{"key":"RateLimit-Remaining","value":"99"},{"key":"RateLimit-Reset","value":"900"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1090"},{"key":"ETag","value":"W/\"442-MlRKI7CL59a8jrhRCmLB0k6P4RE\""},{"key":"Date","value":"Sat, 19 Apr 2025 20:40:44 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"2 Orders found successfully\",\n    \"success\": true,\n    \"statusCode\": 200,\n    \"orders\": [\n        {\n            \"_id\": \"6803fb5016fa1232e5e6a4be\",\n            \"customerId\": {\n                \"_id\": \"67f7bfea7e6554a5dbb3e2d8\",\n                \"name\": \"sabbu\",\n                \"email\": \"sabbu@gmail.com\",\n                \"phone\": \"9746527459\",\n                \"address\": \"Perumbavor, Kannur, Kerala\"\n            },\n            \"orderProducts\": [\n                {\n                    \"inventoryId\": {\n                        \"_id\": \"680233efbbd4eb37c8740e35\",\n                        \"productName\": \"milma paneer\",\n                        \"category\": \"diary\"\n                    },\n                    \"quantity\": 24,\n                    \"category\": \"diary\",\n                    \"price\": 40,\n                    \"_id\": \"6803fb5016fa1232e5e6a4bf\"\n                }\n            ],\n            \"totalAmount\": 3521,\n            \"status\": \"pending\",\n            \"createdAt\": \"2025-04-19T19:36:48.953Z\",\n            \"updatedAt\": \"2025-04-19T19:36:48.953Z\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"6803fa0416fa1232e5e6a4af\",\n            \"customerId\": {\n                \"_id\": \"67f7bfea7e6554a5dbb3e2d8\",\n                \"name\": \"sabbu\",\n                \"email\": \"sabbu@gmail.com\",\n                \"phone\": \"9746527459\",\n                \"address\": \"Perumbavor, Kannur, Kerala\"\n            },\n            \"orderProducts\": [\n                {\n                    \"inventoryId\": {\n                        \"_id\": \"680233efbbd4eb37c8740e35\",\n                        \"productName\": \"milma paneer\",\n                        \"category\": \"diary\"\n                    },\n                    \"quantity\": 24,\n                    \"category\": \"diary\",\n                    \"price\": 40,\n                    \"_id\": \"6803fa0416fa1232e5e6a4b0\"\n                }\n            ],\n            \"totalAmount\": 3521,\n            \"status\": \"confirmed\",\n            \"createdAt\": \"2025-04-19T19:31:16.912Z\",\n            \"updatedAt\": \"2025-04-19T19:58:06.039Z\",\n            \"__v\": 0\n        }\n    ]\n}"}],"_postman_id":"db675a92-ac18-43af-ae36-9c98b5eaba2d"},{"name":"getAllOrderByCustomer","id":"f96c360d-def0-41e9-844a-19547a1254b9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{customerToken}}"}]},"isInherited":false},"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000//api/orders?customerId=680913dad6c535a43cb0689b","urlObject":{"path":["api","orders"],"host":["http://localhost:5000/"],"query":[{"key":"customerId","value":"680913dad6c535a43cb0689b"}],"variable":[]}},"response":[{"id":"c05e4c26-ec23-4143-a398-887caaa3049f","name":"getOrders","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":{"raw":"http://localhost:5000//api/orders/order?customerId=67f7bfea7e6554a5dbb3e2d8","host":["http://localhost:5000/"],"path":["api","orders","order"],"query":[{"key":"customerId","value":"67f7bfea7e6554a5dbb3e2d8"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"RateLimit-Policy","value":"100;w=900"},{"key":"RateLimit-Limit","value":"100"},{"key":"RateLimit-Remaining","value":"97"},{"key":"RateLimit-Reset","value":"738"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"586"},{"key":"ETag","value":"W/\"24a-RbswsRCtGcpB6TGjPXH81EuNgHw\""},{"key":"Date","value":"Sat, 19 Apr 2025 19:33:59 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Orders fetched successfully\",\n    \"success\": true,\n    \"statusCode\": 200,\n    \"orders\": [\n        {\n            \"_id\": \"6803fa0416fa1232e5e6a4af\",\n            \"customerId\": {\n                \"_id\": \"67f7bfea7e6554a5dbb3e2d8\",\n                \"name\": \"sabbu\",\n                \"email\": \"sabbu@gmail.com\",\n                \"phone\": \"9746527459\",\n                \"address\": \"Perumbavor, Kannur, Kerala\"\n            },\n            \"orderProducts\": [\n                {\n                    \"inventoryId\": {\n                        \"_id\": \"680233efbbd4eb37c8740e35\",\n                        \"productName\": \"milma paneer\",\n                        \"category\": \"diary\"\n                    },\n                    \"quantity\": 24,\n                    \"category\": \"diary\",\n                    \"price\": 40,\n                    \"_id\": \"6803fa0416fa1232e5e6a4b0\"\n                }\n            ],\n            \"totalAmount\": 3521,\n            \"status\": \"pending\",\n            \"createdAt\": \"2025-04-19T19:31:16.912Z\",\n            \"updatedAt\": \"2025-04-19T19:31:16.912Z\",\n            \"__v\": 0\n        }\n    ]\n}"}],"_postman_id":"f96c360d-def0-41e9-844a-19547a1254b9"},{"name":"getSpecifiOrderOfCustomer","id":"0d384a97-6716-4c80-9657-bca78aa54314","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000//api/orders?customerId=67f7bfea7e6554a5dbb3e2d8&orderId=6803fa0416fa1232e5e6a4af","urlObject":{"path":["api","orders"],"host":["http://localhost:5000/"],"query":[{"key":"customerId","value":"67f7bfea7e6554a5dbb3e2d8"},{"key":"orderId","value":"6803fa0416fa1232e5e6a4af"}],"variable":[]}},"response":[{"id":"eb59eff0-e592-4915-ba9e-98c268acf6a8","name":"getSpecificOrderOfCustomer","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":{"raw":"http://localhost:5000//api/orders/order?customerId=67f7bfea7e6554a5dbb3e2d8&orderId=6803fa0416fa1232e5e6a4af","host":["http://localhost:5000/"],"path":["api","orders","order"],"query":[{"key":"customerId","value":"67f7bfea7e6554a5dbb3e2d8"},{"key":"orderId","value":"6803fa0416fa1232e5e6a4af"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"RateLimit-Policy","value":"100;w=900"},{"key":"RateLimit-Limit","value":"100"},{"key":"RateLimit-Remaining","value":"96"},{"key":"RateLimit-Reset","value":"612"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"586"},{"key":"ETag","value":"W/\"24a-RbswsRCtGcpB6TGjPXH81EuNgHw\""},{"key":"Date","value":"Sat, 19 Apr 2025 19:36:05 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Orders fetched successfully\",\n    \"success\": true,\n    \"statusCode\": 200,\n    \"orders\": [\n        {\n            \"_id\": \"6803fa0416fa1232e5e6a4af\",\n            \"customerId\": {\n                \"_id\": \"67f7bfea7e6554a5dbb3e2d8\",\n                \"name\": \"sabbu\",\n                \"email\": \"sabbu@gmail.com\",\n                \"phone\": \"9746527459\",\n                \"address\": \"Perumbavor, Kannur, Kerala\"\n            },\n            \"orderProducts\": [\n                {\n                    \"inventoryId\": {\n                        \"_id\": \"680233efbbd4eb37c8740e35\",\n                        \"productName\": \"milma paneer\",\n                        \"category\": \"diary\"\n                    },\n                    \"quantity\": 24,\n                    \"category\": \"diary\",\n                    \"price\": 40,\n                    \"_id\": \"6803fa0416fa1232e5e6a4b0\"\n                }\n            ],\n            \"totalAmount\": 3521,\n            \"status\": \"pending\",\n            \"createdAt\": \"2025-04-19T19:31:16.912Z\",\n            \"updatedAt\": \"2025-04-19T19:31:16.912Z\",\n            \"__v\": 0\n        }\n    ]\n}"}],"_postman_id":"0d384a97-6716-4c80-9657-bca78aa54314"},{"name":"placeOrder","id":"b0dd6132-1ac4-48d1-8db6-c70d38439851","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{customerToken}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"customerId\": \"680913dad6c535a43cb0689b\",\n    \"orderProducts\": [\n        {\n            \"inventoryId\": \"68023366bbd4eb37c8740e26\",\n            \"quantity\": 35\n        },\n        {\n            \"inventoryId\": \"680233efbbd4eb37c8740e35\",\n            \"quantity\": 20\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000//api/orders","urlObject":{"path":["api","orders"],"host":["http://localhost:5000/"],"query":[{"disabled":true,"key":"customerId","value":"67f7bfea7e6554a5dbb3e2d8"}],"variable":[]}},"response":[{"id":"952ea05a-6c69-4583-ad1f-41afc49a6d1a","name":"placeOrder","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"customerId\": \"67f7bfea7e6554a5dbb3e2d8\",\n    \"totalAmount\": 3521,\n    \"orderProducts\": [\n        {\n            \"inventoryId\": \"680233efbbd4eb37c8740e35\",\n            \"quantity\": 24,\n            \"category\": \"diary\",\n            \"price\": 40\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"http://localhost:5000//api/orders","host":["http://localhost:5000/"],"path":["api","orders"],"query":[{"key":"customerId","value":"67f7bfea7e6554a5dbb3e2d8","disabled":true}]}},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"RateLimit-Policy","value":"100;w=900"},{"key":"RateLimit-Limit","value":"100"},{"key":"RateLimit-Remaining","value":"95"},{"key":"RateLimit-Reset","value":"568"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"416"},{"key":"ETag","value":"W/\"1a0-U2tt0VrDXzBr6s1O331BzLnEU/Y\""},{"key":"Date","value":"Sat, 19 Apr 2025 19:36:48 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Order placed successfully\",\n    \"success\": true,\n    \"statusCode\": 201,\n    \"order\": {\n        \"customerId\": \"67f7bfea7e6554a5dbb3e2d8\",\n        \"orderProducts\": [\n            {\n                \"inventoryId\": \"680233efbbd4eb37c8740e35\",\n                \"quantity\": 24,\n                \"category\": \"diary\",\n                \"price\": 40,\n                \"_id\": \"6803fb5016fa1232e5e6a4bf\"\n            }\n        ],\n        \"totalAmount\": 3521,\n        \"status\": \"pending\",\n        \"_id\": \"6803fb5016fa1232e5e6a4be\",\n        \"createdAt\": \"2025-04-19T19:36:48.953Z\",\n        \"updatedAt\": \"2025-04-19T19:36:48.953Z\",\n        \"__v\": 0\n    }\n}"}],"_postman_id":"b0dd6132-1ac4-48d1-8db6-c70d38439851"},{"name":"UpdateOrderStatus","id":"173b04ea-30f6-45ed-b5f6-42f3fbf6acfd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"PATCH","header":[],"body":{"mode":"raw","raw":"// [\"pending\", \"confirmed\", \"shipped\", \"delivered\", \"cancelled\"]\n{\n    \"status\": \"delivered\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000//api/orders/6813d86a1a9c5fd4cabecf02","urlObject":{"path":["api","orders","6813d86a1a9c5fd4cabecf02"],"host":["http://localhost:5000/"],"query":[],"variable":[]}},"response":[{"id":"3fd0dc53-0075-4a4f-9f76-e7431434057f","name":"updateOrderStatus","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"// [\"pending\", \"confirmed\", \"shipped\", \"delivered\", \"cancelled\"]\n{\n    \"status\": \"confirmed\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000//api/orders/6803fa0416fa1232e5e6a4af"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"RateLimit-Policy","value":"100;w=900"},{"key":"RateLimit-Limit","value":"100"},{"key":"RateLimit-Remaining","value":"99"},{"key":"RateLimit-Reset","value":"900"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"426"},{"key":"ETag","value":"W/\"1aa-dL9dKSS0Rwxv94USiLCXVK5z0b4\""},{"key":"Date","value":"Sat, 19 Apr 2025 19:58:38 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Order status updated successfully\",\n    \"success\": true,\n    \"statusCode\": 200,\n    \"order\": {\n        \"_id\": \"6803fa0416fa1232e5e6a4af\",\n        \"customerId\": \"67f7bfea7e6554a5dbb3e2d8\",\n        \"orderProducts\": [\n            {\n                \"inventoryId\": \"680233efbbd4eb37c8740e35\",\n                \"quantity\": 24,\n                \"category\": \"diary\",\n                \"price\": 40,\n                \"_id\": \"6803fa0416fa1232e5e6a4b0\"\n            }\n        ],\n        \"totalAmount\": 3521,\n        \"status\": \"confirmed\",\n        \"createdAt\": \"2025-04-19T19:31:16.912Z\",\n        \"updatedAt\": \"2025-04-19T19:58:06.039Z\",\n        \"__v\": 0\n    }\n}"}],"_postman_id":"173b04ea-30f6-45ed-b5f6-42f3fbf6acfd"},{"name":"cancelOrder","id":"e12f0bda-bcea-46b1-96ab-c211b7a03fec","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{customerToken}}"}]},"isInherited":false},"method":"PATCH","header":[],"url":"http://localhost:5000//api/orders/cancel/6813d86a1a9c5fd4cabecf02","urlObject":{"path":["api","orders","cancel","6813d86a1a9c5fd4cabecf02"],"host":["http://localhost:5000/"],"query":[],"variable":[]}},"response":[{"id":"2ed4623a-1a5d-41cd-841d-e0c8d444b97d","name":"cancelOrder","originalRequest":{"method":"PATCH","header":[],"url":"http://localhost:5000//api/orders/cancel/6813d86a1a9c5fd4cabecf02"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"RateLimit-Policy","value":"100;w=900"},{"key":"RateLimit-Limit","value":"100"},{"key":"RateLimit-Remaining","value":"96"},{"key":"RateLimit-Reset","value":"797"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"606"},{"key":"ETag","value":"W/\"25e-nNm20oNfiF8iyCAWihbNmP5ltjk\""},{"key":"Date","value":"Thu, 01 May 2025 20:24:49 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Order cancelled successfully\",\n    \"success\": true,\n    \"statusCode\": 200,\n    \"order\": {\n        \"_id\": \"6813d86a1a9c5fd4cabecf02\",\n        \"customerId\": \"680913dad6c535a43cb0689b\",\n        \"orderProducts\": [\n            {\n                \"inventoryId\": \"68023366bbd4eb37c8740e26\",\n                \"name\": \"rice 500kg - / .\",\n                \"quantity\": 35,\n                \"category\": \"diary\",\n                \"price\": 28,\n                \"_id\": \"6813d86a1a9c5fd4cabecf03\"\n            },\n            {\n                \"inventoryId\": \"680233efbbd4eb37c8740e35\",\n                \"name\": \"milma paneer\",\n                \"quantity\": 20,\n                \"category\": \"diary\",\n                \"price\": 75,\n                \"_id\": \"6813d86a1a9c5fd4cabecf04\"\n            }\n        ],\n        \"totalAmount\": 2480,\n        \"status\": \"cancelled\",\n        \"invoiceId\": null,\n        \"createdAt\": \"2025-05-01T20:24:10.910Z\",\n        \"updatedAt\": \"2025-05-01T20:24:49.058Z\",\n        \"__v\": 0\n    }\n}"}],"_postman_id":"e12f0bda-bcea-46b1-96ab-c211b7a03fec"},{"name":"deleteOrder","id":"7393b471-aaf9-4a41-9ad4-c14a877f4a0c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"DELETE","header":[],"url":"http://localhost:5000//api/orders/68040eb07e7543f3b9571bbc","urlObject":{"path":["api","orders","68040eb07e7543f3b9571bbc"],"host":["http://localhost:5000/"],"query":[],"variable":[]}},"response":[{"id":"2762f3d8-12f2-400e-a258-464dc42404da","name":"deleteOrder","originalRequest":{"method":"DELETE","header":[],"url":"http://localhost:5000//api/orders/6803fb5016fa1232e5e6a4be"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"RateLimit-Policy","value":"100;w=900"},{"key":"RateLimit-Limit","value":"100"},{"key":"RateLimit-Remaining","value":"99"},{"key":"RateLimit-Reset","value":"900"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"72"},{"key":"ETag","value":"W/\"48-+TCLHEnvRg20Pkgd7CEzRGM+ucY\""},{"key":"Date","value":"Sat, 19 Apr 2025 20:55:10 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"//order will reduce if the order is cancelled\n{\n    \"message\": \"Order deleted successfully\",\n    \"success\": true,\n    \"statusCode\": 200\n}"}],"_postman_id":"7393b471-aaf9-4a41-9ad4-c14a877f4a0c"}],"id":"f7a30e7f-e279-45dd-b376-d6189aae8fdb","_postman_id":"f7a30e7f-e279-45dd-b376-d6189aae8fdb","description":""},{"name":"Feedback","item":[{"name":"getAllFeedback","id":"b1226071-3a8a-48aa-9ef5-3d557a8a7478","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:5000//api/feedback","urlObject":{"path":["api","feedback"],"host":["http://localhost:5000/"],"query":[],"variable":[]}},"response":[{"id":"40f2f5fd-4668-4bb8-9f54-2e7d1c48ca11","name":"getAllFeedback","originalRequest":{"method":"GET","header":[],"url":"http://localhost:5000//api/feedback"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"RateLimit-Policy","value":"100;w=900"},{"key":"RateLimit-Limit","value":"100"},{"key":"RateLimit-Remaining","value":"99"},{"key":"RateLimit-Reset","value":"900"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"468"},{"key":"ETag","value":"W/\"1d4-1qjb1vUl4hc00Svl9UGQYFX0G5s\""},{"key":"Date","value":"Mon, 21 Apr 2025 17:10:28 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"2 feedbacks found\",\n    \"success\": true,\n    \"statusCode\": 200,\n    \"feedback\": [\n        {\n            \"_id\": \"68041f56a6d15df6b96c4904\",\n            \"customerId\": \"67f7bfea7e6554a5dbb3e2d8\",\n            \"senderType\": \"customer\",\n            \"message\": \"asdasd\",\n            \"createdAt\": \"2025-04-19T22:10:30.967Z\",\n            \"updatedAt\": \"2025-04-19T22:10:30.967Z\"\n        },\n        {\n            \"_id\": \"68067a6ba01adf77a4e0996a\",\n            \"customerId\": \"67f7bfea7e6554a5dbb3e2d8\",\n            \"senderType\": \"customer\",\n            \"message\": \"asdasd\",\n            \"createdAt\": \"2025-04-21T17:03:39.146Z\",\n            \"updatedAt\": \"2025-04-21T17:03:39.146Z\"\n        }\n    ]\n}"}],"_postman_id":"b1226071-3a8a-48aa-9ef5-3d557a8a7478"},{"name":"getFeebacksforCustomerOrStaff","id":"33c95166-4194-4492-b2fe-e6942679eca1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{customerToken}}"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:5000//api/feedback/user?customerId=67f7bfea7e6554a5dbb3e2d8","urlObject":{"path":["api","feedback","user"],"host":["http://localhost:5000/"],"query":[{"key":"customerId","value":"67f7bfea7e6554a5dbb3e2d8"}],"variable":[]}},"response":[{"id":"ef39ff64-0641-4967-b025-c13da19f620e","name":"getFeebacksforCustomerOrStaff","originalRequest":{"method":"GET","header":[],"url":"http://localhost:5000//api/feedback"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"RateLimit-Policy","value":"100;w=900"},{"key":"RateLimit-Limit","value":"100"},{"key":"RateLimit-Remaining","value":"94"},{"key":"RateLimit-Reset","value":"802"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"665"},{"key":"ETag","value":"W/\"299-A3WRLgGE/EDNt5ILSwbjRvZiS2A\""},{"key":"Date","value":"Mon, 21 Apr 2025 17:52:42 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"3 feedbacks found\",\n    \"success\": true,\n    \"statusCode\": 200,\n    \"feedbacks\": [\n        {\n            \"_id\": \"68041f56a6d15df6b96c4904\",\n            \"customerId\": \"67f7bfea7e6554a5dbb3e2d8\",\n            \"senderType\": \"customer\",\n            \"message\": \"asdasd\",\n            \"createdAt\": \"2025-04-19T22:10:30.967Z\",\n            \"updatedAt\": \"2025-04-19T22:10:30.967Z\"\n        },\n        {\n            \"_id\": \"68067a6ba01adf77a4e0996a\",\n            \"customerId\": \"67f7bfea7e6554a5dbb3e2d8\",\n            \"senderType\": \"customer\",\n            \"message\": \"asdasd\",\n            \"createdAt\": \"2025-04-21T17:03:39.146Z\",\n            \"updatedAt\": \"2025-04-21T17:03:39.146Z\"\n        },\n        {\n            \"_id\": \"68067f433463de781bd7e874\",\n            \"customerId\": \"67f7bfea7e6554a5dbb3e2d8\",\n            \"senderType\": \"customer\",\n            \"message\": \"asdasd\",\n            \"createdAt\": \"2025-04-21T17:24:19.891Z\",\n            \"updatedAt\": \"2025-04-21T17:24:19.891Z\"\n        }\n    ]\n}"}],"_postman_id":"33c95166-4194-4492-b2fe-e6942679eca1"},{"name":"sendFeedback","id":"4faa06be-cacd-4e78-96b0-7d25204ad806","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{customerToken}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{ \n    \"customerId\": \"67f7bfea7e6554a5dbb3e2d8\",\n    \"senderType\": \"customer\",\n    \"message\" : \"asdasd\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000//api/feedback","urlObject":{"path":["api","feedback"],"host":["http://localhost:5000/"],"query":[],"variable":[]}},"response":[{"id":"77f1dc58-ad8f-4fe8-9cbb-bff80e468ff9","name":"sendFeedback","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{ \n    \"customerId\": \"67f7bfea7e6554a5dbb3e2d8\",\n    \"senderType\": \"customer\",\n    \"message\" : \"asdasd\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000//api/feedback"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"RateLimit-Policy","value":"100;w=900"},{"key":"RateLimit-Limit","value":"100"},{"key":"RateLimit-Remaining","value":"99"},{"key":"RateLimit-Reset","value":"900"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"288"},{"key":"ETag","value":"W/\"120-F8rw86z43QxbOtR+SSKeuE3+p7c\""},{"key":"Date","value":"Sat, 19 Apr 2025 22:10:30 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Feedback added successfully\",\n    \"success\": true,\n    \"statusCode\": 201,\n    \"feedback\": {\n        \"customerId\": \"67f7bfea7e6554a5dbb3e2d8\",\n        \"senderType\": \"customer\",\n        \"message\": \"asdasd\",\n        \"_id\": \"68041f56a6d15df6b96c4904\",\n        \"createdAt\": \"2025-04-19T22:10:30.967Z\",\n        \"updatedAt\": \"2025-04-19T22:10:30.967Z\",\n        \"__v\": 0\n    }\n}"}],"_postman_id":"4faa06be-cacd-4e78-96b0-7d25204ad806"},{"name":"deleteFeedback","id":"4bdbc193-b872-4850-bba8-d242bfdb2c0b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"DELETE","header":[],"url":"http://localhost:5000//api/feedback/68041f56a6d15df6b96c4904","urlObject":{"path":["api","feedback","68041f56a6d15df6b96c4904"],"host":["http://localhost:5000/"],"query":[],"variable":[]}},"response":[{"id":"bdd00bb6-e011-4833-a86c-443dce4f0d55","name":"deleteFeedback","originalRequest":{"method":"DELETE","header":[],"url":"http://localhost:5000//api/feedback/68041f56a6d15df6b96c4904"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"RateLimit-Policy","value":"100;w=900"},{"key":"RateLimit-Limit","value":"100"},{"key":"RateLimit-Remaining","value":"99"},{"key":"RateLimit-Reset","value":"900"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"75"},{"key":"ETag","value":"W/\"4b-0w7ZV9r3n7DWm7g45et2aR5gdss\""},{"key":"Date","value":"Mon, 21 Apr 2025 18:07:23 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Feedback deleted successfully\",\n    \"success\": true,\n    \"statusCode\": 200\n}"}],"_postman_id":"4bdbc193-b872-4850-bba8-d242bfdb2c0b"}],"id":"9108a452-baf6-4fe5-8303-917e3a712cbc","_postman_id":"9108a452-baf6-4fe5-8303-917e3a712cbc","description":""},{"name":"Invoice","item":[{"name":"getAllInvoice","id":"4975c4f6-d212-40d3-87ff-24c2c18f29d3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:5000//api/invoice","urlObject":{"path":["api","invoice"],"host":["http://localhost:5000/"],"query":[],"variable":[]}},"response":[{"id":"567c236b-f80d-4e14-8264-858ae09ec7f5","name":"getAllInvoice","originalRequest":{"method":"GET","header":[],"url":"http://localhost:5000//api/invoice"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"RateLimit-Policy","value":"100;w=900"},{"key":"RateLimit-Limit","value":"100"},{"key":"RateLimit-Remaining","value":"99"},{"key":"RateLimit-Reset","value":"900"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"433"},{"key":"ETag","value":"W/\"1b1-NTpXf0xhkESI1/X9YrI0u7jP1uc\""},{"key":"Date","value":"Wed, 23 Apr 2025 21:17:09 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"1 Invoices found\",\n    \"success\": true,\n    \"statusCode\": 200,\n    \"invoice\": [\n        {\n            \"_id\": \"680956d6473aeac10a13af57\",\n            \"customerId\": \"67f7bfea7e6554a5dbb3e2d8\",\n            \"orders\": [\n                \"6803fa0416fa1232e5e6a4af\",\n                \"68080d18be2cc3fbf123f1a7\"\n            ],\n            \"draft\": true,\n            \"status\": \"pending\",\n            \"amount\": 6001,\n            \"dueDate\": \"2025-04-30T21:08:38.096Z\",\n            \"method\": null,\n            \"transactionId\": null,\n            \"transactionDate\": null,\n            \"createdAt\": \"2025-04-23T21:08:38.108Z\",\n            \"updatedAt\": \"2025-04-23T21:08:38.108Z\"\n        }\n    ]\n}"}],"_postman_id":"4975c4f6-d212-40d3-87ff-24c2c18f29d3"},{"name":"getInvoiceByCustomer","id":"6df0c88a-94c3-431c-9620-0bc822ecb82d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{customerToken}}"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:5000//api/invoice/customer/67f7bfea7e6554a5dbb3e2d8","urlObject":{"path":["api","invoice","customer","67f7bfea7e6554a5dbb3e2d8"],"host":["http://localhost:5000/"],"query":[],"variable":[]}},"response":[{"id":"f51bf97e-8a8c-40eb-8897-fafc0d7b311f","name":"getInvoiceByCustomer","originalRequest":{"method":"GET","header":[],"url":"http://localhost:5000//api/invoice/customer/67f7bfea7e6554a5dbb3e2d8"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"RateLimit-Policy","value":"100;w=900"},{"key":"RateLimit-Limit","value":"100"},{"key":"RateLimit-Remaining","value":"96"},{"key":"RateLimit-Reset","value":"839"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"527"},{"key":"ETag","value":"W/\"20f-KF449ifoki55+zw1tkRGO3yYr+s\""},{"key":"Date","value":"Thu, 01 May 2025 17:34:50 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Invoices found in this customer 67f7bfea7e6554a5dbb3e2d8\",\n    \"success\": true,\n    \"statusCode\": 200,\n    \"invoice\": [\n        {\n            \"_id\": \"680b6066ba372e04677013bf\",\n            \"customerId\": \"67f7bfea7e6554a5dbb3e2d8\",\n            \"orders\": [\n                \"6803fa0416fa1232e5e6a4af\",\n                \"68080d18be2cc3fbf123f1a7\"\n            ],\n            \"status\": \"pending\",\n            \"amount\": 6001,\n            \"dueDate\": \"2025-05-02T10:13:58.552Z\",\n            \"method\": \"upi\",\n            \"transactionId\": \"asd23asdsd4243324a324sdasjdhjasd\",\n            \"transactionDate\": \"2025-04-25T14:44:00.000Z\",\n            \"createdAt\": \"2025-04-25T10:13:58.574Z\",\n            \"updatedAt\": \"2025-05-01T17:09:23.949Z\",\n            \"draft\": false\n        }\n    ]\n}"}],"_postman_id":"6df0c88a-94c3-431c-9620-0bc822ecb82d"},{"name":"getSingleInvoice","id":"43bd1546-b116-499d-8e53-883d41196f23","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:5000//api/invoice/680bac36cff8fe7ec4eb5fcf","urlObject":{"path":["api","invoice","680bac36cff8fe7ec4eb5fcf"],"host":["http://localhost:5000/"],"query":[],"variable":[]}},"response":[{"id":"83a1b791-4743-49c5-b2eb-d3ac4e6d3943","name":"getSingleInvoice","originalRequest":{"method":"GET","header":[],"url":"http://localhost:5000//api/invoice/680956d6473aeac10a13af57"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"RateLimit-Policy","value":"100;w=900"},{"key":"RateLimit-Limit","value":"100"},{"key":"RateLimit-Remaining","value":"96"},{"key":"RateLimit-Reset","value":"760"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"443"},{"key":"ETag","value":"W/\"1bb-RZwVsR+Yj9ZfuTn3hPpskLiLmUU\""},{"key":"Date","value":"Wed, 23 Apr 2025 21:50:41 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Invoice founded successfully\",\n    \"success\": true,\n    \"statusCode\": 200,\n    \"invoice\": {\n        \"_id\": \"680956d6473aeac10a13af57\",\n        \"customerId\": \"67f7bfea7e6554a5dbb3e2d8\",\n        \"orders\": [\n            \"6803fa0416fa1232e5e6a4af\",\n            \"68080d18be2cc3fbf123f1a7\"\n        ],\n        \"draft\": true,\n        \"status\": \"pending\",\n        \"amount\": 6001,\n        \"dueDate\": \"2025-04-30T21:08:38.096Z\",\n        \"method\": null,\n        \"transactionId\": null,\n        \"transactionDate\": null,\n        \"createdAt\": \"2025-04-23T21:08:38.108Z\",\n        \"updatedAt\": \"2025-04-23T21:08:38.108Z\"\n    }\n}"}],"_postman_id":"43bd1546-b116-499d-8e53-883d41196f23"},{"name":"generateInvoice","id":"b42fdbf3-b08a-4bfd-92ef-9f7806350944","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"customers\": [\n        \"680913dad6c535a43cb0689b\"\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000//api/invoice","urlObject":{"path":["api","invoice"],"host":["http://localhost:5000/"],"query":[],"variable":[]}},"response":[{"id":"1fefab64-97d2-4680-ad8c-7a349d68141e","name":"generateInvoice","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"customers\": [\n        \"67f7bfea7e6554a5dbb3e2d8\"\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000//api/invoice"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"RateLimit-Policy","value":"100;w=900"},{"key":"RateLimit-Limit","value":"100"},{"key":"RateLimit-Remaining","value":"98"},{"key":"RateLimit-Reset","value":"839"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"91"},{"key":"ETag","value":"W/\"5b-lAKDvlzaxPdyrgSDPNRrZ8HTXMQ\""},{"key":"Date","value":"Fri, 25 Apr 2025 10:13:58 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"1 Invoice generated successfully based on IST\",\n    \"success\": true,\n    \"statusCode\": 201\n}"}],"_postman_id":"b42fdbf3-b08a-4bfd-92ef-9f7806350944"},{"name":"approveInvoice","id":"28a502f6-9726-43df-a559-fa3f69ebde1f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"draft\" : false\n\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000//api/invoice/680b6066ba372e04677013bf","urlObject":{"path":["api","invoice","680b6066ba372e04677013bf"],"host":["http://localhost:5000/"],"query":[],"variable":[]}},"response":[{"id":"88de7e05-5daa-46ed-8604-2988336e7780","name":"approveInvoice","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"draftInvoice\" : false\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000//api/invoice/680956d6473aeac10a13af57"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"RateLimit-Policy","value":"100;w=900"},{"key":"RateLimit-Limit","value":"100"},{"key":"RateLimit-Remaining","value":"98"},{"key":"RateLimit-Reset","value":"893"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"459"},{"key":"ETag","value":"W/\"1cb-2o3WltB2U0/iq0puNh55dKXNNk8\""},{"key":"Date","value":"Wed, 23 Apr 2025 21:52:47 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Invoice Draft Upadated Successfully\",\n    \"success\": true,\n    \"statusCode\": 200,\n    \"invoice\": {\n        \"_id\": \"680956d6473aeac10a13af57\",\n        \"customerId\": \"67f7bfea7e6554a5dbb3e2d8\",\n        \"orders\": [\n            \"6803fa0416fa1232e5e6a4af\",\n            \"68080d18be2cc3fbf123f1a7\"\n        ],\n        \"draft\": false,\n        \"status\": \"pending\",\n        \"amount\": 6001,\n        \"dueDate\": \"2025-04-30T21:08:38.096Z\",\n        \"method\": null,\n        \"transactionId\": null,\n        \"transactionDate\": null,\n        \"createdAt\": \"2025-04-23T21:08:38.108Z\",\n        \"updatedAt\": \"2025-04-23T21:52:47.526Z\",\n        \"__v\": 0\n    }\n}"}],"_postman_id":"28a502f6-9726-43df-a559-fa3f69ebde1f"},{"name":"updatePaymentDetails","id":"5659932d-daf6-4517-8a43-3e0d650cb33f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{customerToken}}"}]},"isInherited":false},"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"method\" : \"upi\",\n    \"transDate\": \"2025-04-25T14:44:00Z\",\n    \"transId\": \"asd23asdsd4243324a324sdasjdhjasd\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000//api/invoice/payment/680b6066ba372e04677013bf","urlObject":{"path":["api","invoice","payment","680b6066ba372e04677013bf"],"host":["http://localhost:5000/"],"query":[],"variable":[]}},"response":[{"id":"24cd71d0-3e8b-4fb0-b5f8-323b8a60c9ff","name":"addDetails","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"method\" : \"upi\",\n    \"transDate\": \"2025-04-25T14:44:00Z\",\n    \"transId\": \"asd23asdsd4243324a324sdasjdhjasd\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000//api/invoice/payment/680b6066ba372e04677013bf"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"RateLimit-Policy","value":"100;w=900"},{"key":"RateLimit-Limit","value":"100"},{"key":"RateLimit-Remaining","value":"95"},{"key":"RateLimit-Reset","value":"787"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"512"},{"key":"ETag","value":"W/\"200-femCv9P+HeTkmTspcqrm9nezH4E\""},{"key":"Date","value":"Fri, 25 Apr 2025 15:31:01 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Invoice Payment Updated successfully\",\n    \"success\": true,\n    \"statusCode\": 200,\n    \"invoice\": {\n        \"_id\": \"680b6066ba372e04677013bf\",\n        \"customerId\": \"67f7bfea7e6554a5dbb3e2d8\",\n        \"orders\": [\n            \"6803fa0416fa1232e5e6a4af\",\n            \"68080d18be2cc3fbf123f1a7\"\n        ],\n        \"draft\": true,\n        \"status\": \"pending\",\n        \"amount\": 6001,\n        \"dueDate\": \"2025-05-02T10:13:58.552Z\",\n        \"method\": \"upi\",\n        \"transactionId\": \"asd23asdsd4243324a324sdasjdhjasd\",\n        \"transactionDate\": \"2025-04-25T14:44:00.000Z\",\n        \"createdAt\": \"2025-04-25T10:13:58.574Z\",\n        \"updatedAt\": \"2025-04-25T15:31:01.733Z\",\n        \"__v\": 0\n    }\n}"}],"_postman_id":"5659932d-daf6-4517-8a43-3e0d650cb33f"},{"name":"UpdatedPaymentStatus","id":"127cb5e6-8942-4af4-8746-33c00aa7aa42","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"status\" : \"paid\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000//api/invoice/payment/status/680b6066ba372e04677013bf","urlObject":{"path":["api","invoice","payment","status","680b6066ba372e04677013bf"],"host":["http://localhost:5000/"],"query":[],"variable":[]}},"response":[{"id":"73f2223e-019f-4347-892d-a35004074c56","name":"UpdatedPaymentStatus","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"status\" : \"paid\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000//api/invoice/payment/status/680b6066ba372e04677013bf"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"RateLimit-Policy","value":"100;w=900"},{"key":"RateLimit-Limit","value":"100"},{"key":"RateLimit-Remaining","value":"95"},{"key":"RateLimit-Reset","value":"789"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"509"},{"key":"ETag","value":"W/\"1fd-BzTrUErvBME6suCGPFeSa5g3eKE\""},{"key":"Date","value":"Fri, 25 Apr 2025 15:40:14 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Invoice Status  Updated successfully\",\n    \"success\": true,\n    \"statusCode\": 200,\n    \"invoice\": {\n        \"_id\": \"680b6066ba372e04677013bf\",\n        \"customerId\": \"67f7bfea7e6554a5dbb3e2d8\",\n        \"orders\": [\n            \"6803fa0416fa1232e5e6a4af\",\n            \"68080d18be2cc3fbf123f1a7\"\n        ],\n        \"draft\": true,\n        \"status\": \"paid\",\n        \"amount\": 6001,\n        \"dueDate\": \"2025-05-02T10:13:58.552Z\",\n        \"method\": \"upi\",\n        \"transactionId\": \"asd23asdsd4243324a324sdasjdhjasd\",\n        \"transactionDate\": \"2025-04-25T14:44:00.000Z\",\n        \"createdAt\": \"2025-04-25T10:13:58.574Z\",\n        \"updatedAt\": \"2025-04-25T15:40:14.344Z\",\n        \"__v\": 0\n    }\n}"}],"_postman_id":"127cb5e6-8942-4af4-8746-33c00aa7aa42"},{"name":"Delete Invoice","id":"bcd080ca-abdb-4f37-b493-b8d8017d456e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"DELETE","header":[],"url":"http://localhost:5000//api/invoice/680bac36cff8fe7ec4eb5fcf","urlObject":{"path":["api","invoice","680bac36cff8fe7ec4eb5fcf"],"host":["http://localhost:5000/"],"query":[],"variable":[]}},"response":[{"id":"64c21830-ff79-4ea5-87a1-3e9448a1d176","name":"Delete Invoice","originalRequest":{"method":"DELETE","header":[],"url":"http://localhost:5000//api/invoice/680bac36cff8fe7ec4eb5fcf"},"status":"No Content","code":204,"_postman_previewlanguage":"plain","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"RateLimit-Policy","value":"100;w=900"},{"key":"RateLimit-Limit","value":"100"},{"key":"RateLimit-Remaining","value":"99"},{"key":"RateLimit-Reset","value":"900"},{"key":"Date","value":"Wed, 30 Apr 2025 21:47:10 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"bcd080ca-abdb-4f37-b493-b8d8017d456e"}],"id":"a0b7b6aa-c1ac-4407-af62-ff7016599ee0","_postman_id":"a0b7b6aa-c1ac-4407-af62-ff7016599ee0","description":""},{"name":"Reports","item":[{"name":"getReport","id":"630f3998-05d7-4f2c-b47b-603d9845d000","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:5000//api/report","urlObject":{"path":["api","report"],"host":["http://localhost:5000/"],"query":[],"variable":[]}},"response":[{"id":"2473cd76-82ba-4d1f-9883-4e957faa1df2","name":"getReport","originalRequest":{"method":"GET","header":[],"url":"http://localhost:5000/api/report"},"status":"OK","code":200,"_postman_previewlanguage":"JSON","header":[{"key":"X-Powered-By","value":"Express","type":"text"},{"key":"Access-Control-Allow-Origin","value":"*","type":"text"},{"key":"RateLimit-Policy","value":"100;w=900","type":"text"},{"key":"RateLimit-Limit","value":"100","type":"text"},{"key":"RateLimit-Remaining","value":"92","type":"text"},{"key":"RateLimit-Reset","value":"743","type":"text"},{"key":"Content-Type","value":"application/json; charset=utf-8","type":"text"},{"key":"Content-Length","value":"521","type":"text"},{"key":"ETag","value":"W/\"209-WhF/pwbv7K0u0sfEfPRPSRSqpEs\"","type":"text"},{"key":"Date","value":"Mon, 28 Apr 2025 12:35:26 GMT","type":"text"},{"key":"Connection","value":"keep-alive","type":"text"},{"key":"Keep-Alive","value":"timeout=5","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Reports found successfully\",\n    \"success\": true,\n    \"statusCode\": 200,\n    \"reports\": [\n        {\n            \"dateRange\": {\n                \"start\": \"2025-03-31T00:00:00.000Z\",\n                \"end\": \"2025-04-30T00:00:00.000Z\"\n            },\n            \"_id\": \"680f75ee3ebe74d28b836d31\",\n            \"name\": \"demo\",\n            \"description\": null,\n            \"type\": \"inventory\",\n            \"chartData\": [\n                {\n                    \"name\": \"in_stock\",\n                    \"value\": 40\n                },\n                {\n                    \"name\": \"out_of_stock\",\n                    \"value\": 1\n                },\n                {\n                    \"name\": \"overstocked\",\n                    \"value\": 0\n                },\n                {\n                    \"name\": \"low_stock\",\n                    \"value\": 1\n                }\n            ],\n            \"dataDetails\": {\n                \"Low Stock\": 2,\n                \"Total Items\": 42\n            },\n            \"createdAt\": \"2025-04-28T12:34:54.623Z\",\n            \"updatedAt\": \"2025-04-28T12:34:54.623Z\"\n        }\n    ]\n}"}],"_postman_id":"630f3998-05d7-4f2c-b47b-603d9845d000"},{"name":"getSingleReport","id":"4247f42f-0eb1-44ab-bc7e-b8d18ea54026","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:5000//api/report/68126b23318a1da627cabc82","urlObject":{"path":["api","report","68126b23318a1da627cabc82"],"host":["http://localhost:5000/"],"query":[],"variable":[]}},"response":[{"id":"f5d7e836-bb41-456f-9492-af9b1d2629c6","name":"getSingleReport","originalRequest":{"method":"GET","header":[],"url":"http://localhost:5000//api/report/68126b23318a1da627cabc82"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"RateLimit-Policy","value":"100;w=900"},{"key":"RateLimit-Limit","value":"100"},{"key":"RateLimit-Remaining","value":"97"},{"key":"RateLimit-Reset","value":"887"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1882"},{"key":"ETag","value":"W/\"75a-RcqeQL3TSyBHnkT3o5v8+oA6IXw\""},{"key":"Date","value":"Thu, 01 May 2025 15:18:43 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Report Found successfully\",\n    \"success\": true,\n    \"statusCode\": 200,\n    \"report\": {\n        \"dateRange\": {\n            \"start\": \"2025-04-01T00:00:00.000Z\",\n            \"end\": \"2025-04-30T00:00:00.000Z\"\n        },\n        \"_id\": \"68126b23318a1da627cabc82\",\n        \"name\": \"dsds\",\n        \"description\": \"dsfsdsd\",\n        \"type\": \"inventory\",\n        \"chartData\": {\n            \"statusData\": [\n                {\n                    \"name\": \"in_stock\",\n                    \"value\": 39\n                },\n                {\n                    \"name\": \"out_of_stock\",\n                    \"value\": 1\n                },\n                {\n                    \"name\": \"low_stock\",\n                    \"value\": 2\n                },\n                {\n                    \"name\": \"overstocked\",\n                    \"value\": 0\n                }\n            ],\n            \"qtyByCatData\": [\n                {\n                    \"category\": \"spices\",\n                    \"qty\": 126\n                },\n                {\n                    \"category\": \"ready mix\",\n                    \"qty\": 465\n                },\n                {\n                    \"category\": \"personal care\",\n                    \"qty\": 474\n                },\n                {\n                    \"category\": \"bath soap\",\n                    \"qty\": 487\n                },\n                {\n                    \"category\": \"ready meals\",\n                    \"qty\": 193\n                },\n                {\n                    \"category\": \"frozen foods\",\n                    \"qty\": 296\n                },\n                {\n                    \"category\": \"snacks\",\n                    \"qty\": 818\n                },\n                {\n                    \"category\": \"home care\",\n                    \"qty\": 290\n                },\n                {\n                    \"category\": \"beverage\",\n                    \"qty\": 1823\n                },\n                {\n                    \"category\": \"dairy\",\n                    \"qty\": 527\n                },\n                {\n                    \"category\": \"confectionery\",\n                    \"qty\": 294\n                },\n                {\n                    \"category\": \"staples\",\n                    \"qty\": 150\n                },\n                {\n                    \"category\": \"kitchenware\",\n                    \"qty\": 35\n                },\n                {\n                    \"category\": \"storage\",\n                    \"qty\": 25\n                },\n                {\n                    \"category\": \"skincare\",\n                    \"qty\": 500\n                }\n            ],\n            \"valueByCatData\": [\n                {\n                    \"category\": \"spices\",\n                    \"total\": 6750\n                },\n                {\n                    \"category\": \"ready mix\",\n                    \"total\": 27815\n                },\n                {\n                    \"category\": \"personal care\",\n                    \"total\": 35470\n                },\n                {\n                    \"category\": \"bath soap\",\n                    \"total\": 17045\n                },\n                {\n                    \"category\": \"ready meals\",\n                    \"total\": 17370\n                },\n                {\n                    \"category\": \"frozen foods\",\n                    \"total\": 10360\n                },\n                {\n                    \"category\": \"snacks\",\n                    \"total\": 32750\n                },\n                {\n                    \"category\": \"home care\",\n                    \"total\": 9750\n                },\n                {\n                    \"category\": \"beverage\",\n                    \"total\": 136800\n                },\n                {\n                    \"category\": \"dairy\",\n                    \"total\": 22085\n                },\n                {\n                    \"category\": \"confectionery\",\n                    \"total\": 32800\n                },\n                {\n                    \"category\": \"staples\",\n                    \"total\": 29000\n                },\n                {\n                    \"category\": \"kitchenware\",\n                    \"total\": 16750\n                },\n                {\n                    \"category\": \"storage\",\n                    \"total\": 2125\n                },\n                {\n                    \"category\": \"skincare\",\n                    \"total\": 60000\n                }\n            ],\n            \"agingData\": [\n                {\n                    \"range\": \"0–7 days\",\n                    \"count\": 2\n                },\n                {\n                    \"range\": \"8–30 days\",\n                    \"count\": 40\n                },\n                {\n                    \"range\": \"31–90 days\",\n                    \"count\": 0\n                },\n                {\n                    \"range\": \"90+ days\",\n                    \"count\": 0\n                }\n            ]\n        },\n        \"dataDetails\": {\n            \"Total Items\": 42,\n            \"Low Stock Items\": 2,\n            \"Unique Categories\": 15,\n            \"Total Stock Value\": 456870\n        },\n        \"createdAt\": \"2025-04-30T18:25:39.534Z\",\n        \"updatedAt\": \"2025-04-30T18:25:39.534Z\"\n    }\n}"}],"_postman_id":"4247f42f-0eb1-44ab-bc7e-b8d18ea54026"},{"name":"addReport","id":"e9de26a0-08dc-4bb4-b7a8-4e6fd37621aa","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"dsds\",\n    \"description\": \"dsfsdsd\",\n    \"type\": \"Inventory\",\n    \"dateRange\": {\n        \"start\": \"2025-04-01\",\n        \"end\": \"2025-04-30\"\n    },\n    \"chartData\": {\n        \"statusData\": [\n            {\n                \"name\": \"in_stock\",\n                \"value\": 39\n            },\n            {\n                \"name\": \"out_of_stock\",\n                \"value\": 1\n            },\n            {\n                \"name\": \"low_stock\",\n                \"value\": 2\n            },\n            {\n                \"name\": \"overstocked\",\n                \"value\": 0\n            }\n        ],\n        \"qtyByCatData\": [\n            {\n                \"category\": \"spices\",\n                \"qty\": 126\n            },\n            {\n                \"category\": \"ready mix\",\n                \"qty\": 465\n            },\n            {\n                \"category\": \"personal care\",\n                \"qty\": 474\n            },\n            {\n                \"category\": \"bath soap\",\n                \"qty\": 487\n            },\n            {\n                \"category\": \"ready meals\",\n                \"qty\": 193\n            },\n            {\n                \"category\": \"frozen foods\",\n                \"qty\": 296\n            },\n            {\n                \"category\": \"snacks\",\n                \"qty\": 818\n            },\n            {\n                \"category\": \"home care\",\n                \"qty\": 290\n            },\n            {\n                \"category\": \"beverage\",\n                \"qty\": 1823\n            },\n            {\n                \"category\": \"dairy\",\n                \"qty\": 527\n            },\n            {\n                \"category\": \"confectionery\",\n                \"qty\": 294\n            },\n            {\n                \"category\": \"staples\",\n                \"qty\": 150\n            },\n            {\n                \"category\": \"kitchenware\",\n                \"qty\": 35\n            },\n            {\n                \"category\": \"storage\",\n                \"qty\": 25\n            },\n            {\n                \"category\": \"skincare\",\n                \"qty\": 500\n            }\n        ],\n        \"valueByCatData\": [\n            {\n                \"category\": \"spices\",\n                \"total\": 6750\n            },\n            {\n                \"category\": \"ready mix\",\n                \"total\": 27815\n            },\n            {\n                \"category\": \"personal care\",\n                \"total\": 35470\n            },\n            {\n                \"category\": \"bath soap\",\n                \"total\": 17045\n            },\n            {\n                \"category\": \"ready meals\",\n                \"total\": 17370\n            },\n            {\n                \"category\": \"frozen foods\",\n                \"total\": 10360\n            },\n            {\n                \"category\": \"snacks\",\n                \"total\": 32750\n            },\n            {\n                \"category\": \"home care\",\n                \"total\": 9750\n            },\n            {\n                \"category\": \"beverage\",\n                \"total\": 136800\n            },\n            {\n                \"category\": \"dairy\",\n                \"total\": 22085\n            },\n            {\n                \"category\": \"confectionery\",\n                \"total\": 32800\n            },\n            {\n                \"category\": \"staples\",\n                \"total\": 29000\n            },\n            {\n                \"category\": \"kitchenware\",\n                \"total\": 16750\n            },\n            {\n                \"category\": \"storage\",\n                \"total\": 2125\n            },\n            {\n                \"category\": \"skincare\",\n                \"total\": 60000\n            }\n        ],\n        \"agingData\": [\n            {\n                \"range\": \"0–7 days\",\n                \"count\": 2\n            },\n            {\n                \"range\": \"8–30 days\",\n                \"count\": 40\n            },\n            {\n                \"range\": \"31–90 days\",\n                \"count\": 0\n            },\n            {\n                \"range\": \"90+ days\",\n                \"count\": 0\n            }\n        ]\n    },\n    \"dataDetails\": {\n        \"Total Items\": 42,\n        \"Low Stock Items\": 2,\n        \"Unique Categories\": 15,\n        \"Total Stock Value\": 456870\n    }\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000//api/report","urlObject":{"path":["api","report"],"host":["http://localhost:5000/"],"query":[],"variable":[]}},"response":[{"id":"8dc532b0-ab9a-4e36-bc23-392be1c71a0e","name":"addReport","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"dsds\",\n    \"description\": \"dsfsdsd\",\n    \"type\": \"Inventory\",\n    \"dateRange\": {\n        \"start\": \"2025-04-01\",\n        \"end\": \"2025-04-30\"\n    },\n    \"chartData\": {\n        \"statusData\": [\n            {\n                \"name\": \"in_stock\",\n                \"value\": 39\n            },\n            {\n                \"name\": \"out_of_stock\",\n                \"value\": 1\n            },\n            {\n                \"name\": \"low_stock\",\n                \"value\": 2\n            },\n            {\n                \"name\": \"overstocked\",\n                \"value\": 0\n            }\n        ],\n        \"qtyByCatData\": [\n            {\n                \"category\": \"spices\",\n                \"qty\": 126\n            },\n            {\n                \"category\": \"ready mix\",\n                \"qty\": 465\n            },\n            {\n                \"category\": \"personal care\",\n                \"qty\": 474\n            },\n            {\n                \"category\": \"bath soap\",\n                \"qty\": 487\n            },\n            {\n                \"category\": \"ready meals\",\n                \"qty\": 193\n            },\n            {\n                \"category\": \"frozen foods\",\n                \"qty\": 296\n            },\n            {\n                \"category\": \"snacks\",\n                \"qty\": 818\n            },\n            {\n                \"category\": \"home care\",\n                \"qty\": 290\n            },\n            {\n                \"category\": \"beverage\",\n                \"qty\": 1823\n            },\n            {\n                \"category\": \"dairy\",\n                \"qty\": 527\n            },\n            {\n                \"category\": \"confectionery\",\n                \"qty\": 294\n            },\n            {\n                \"category\": \"staples\",\n                \"qty\": 150\n            },\n            {\n                \"category\": \"kitchenware\",\n                \"qty\": 35\n            },\n            {\n                \"category\": \"storage\",\n                \"qty\": 25\n            },\n            {\n                \"category\": \"skincare\",\n                \"qty\": 500\n            }\n        ],\n        \"valueByCatData\": [\n            {\n                \"category\": \"spices\",\n                \"total\": 6750\n            },\n            {\n                \"category\": \"ready mix\",\n                \"total\": 27815\n            },\n            {\n                \"category\": \"personal care\",\n                \"total\": 35470\n            },\n            {\n                \"category\": \"bath soap\",\n                \"total\": 17045\n            },\n            {\n                \"category\": \"ready meals\",\n                \"total\": 17370\n            },\n            {\n                \"category\": \"frozen foods\",\n                \"total\": 10360\n            },\n            {\n                \"category\": \"snacks\",\n                \"total\": 32750\n            },\n            {\n                \"category\": \"home care\",\n                \"total\": 9750\n            },\n            {\n                \"category\": \"beverage\",\n                \"total\": 136800\n            },\n            {\n                \"category\": \"dairy\",\n                \"total\": 22085\n            },\n            {\n                \"category\": \"confectionery\",\n                \"total\": 32800\n            },\n            {\n                \"category\": \"staples\",\n                \"total\": 29000\n            },\n            {\n                \"category\": \"kitchenware\",\n                \"total\": 16750\n            },\n            {\n                \"category\": \"storage\",\n                \"total\": 2125\n            },\n            {\n                \"category\": \"skincare\",\n                \"total\": 60000\n            }\n        ],\n        \"agingData\": [\n            {\n                \"range\": \"0–7 days\",\n                \"count\": 2\n            },\n            {\n                \"range\": \"8–30 days\",\n                \"count\": 40\n            },\n            {\n                \"range\": \"31–90 days\",\n                \"count\": 0\n            },\n            {\n                \"range\": \"90+ days\",\n                \"count\": 0\n            }\n        ]\n    },\n    \"dataDetails\": {\n        \"Total Items\": 42,\n        \"Low Stock Items\": 2,\n        \"Unique Categories\": 15,\n        \"Total Stock Value\": 456870\n    }\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000//api/report"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"RateLimit-Policy","value":"100;w=900"},{"key":"RateLimit-Limit","value":"100"},{"key":"RateLimit-Remaining","value":"98"},{"key":"RateLimit-Reset","value":"782"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1906"},{"key":"ETag","value":"W/\"772-ENJzRcBJDxYTLENmL5dXkaiKgJA\""},{"key":"Date","value":"Wed, 30 Apr 2025 18:25:39 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Report for inventory created successfully\",\n    \"success\": true,\n    \"statusCode\": 201,\n    \"report\": {\n        \"name\": \"dsds\",\n        \"description\": \"dsfsdsd\",\n        \"type\": \"inventory\",\n        \"dateRange\": {\n            \"start\": \"2025-04-01T00:00:00.000Z\",\n            \"end\": \"2025-04-30T00:00:00.000Z\"\n        },\n        \"chartData\": {\n            \"statusData\": [\n                {\n                    \"name\": \"in_stock\",\n                    \"value\": 39\n                },\n                {\n                    \"name\": \"out_of_stock\",\n                    \"value\": 1\n                },\n                {\n                    \"name\": \"low_stock\",\n                    \"value\": 2\n                },\n                {\n                    \"name\": \"overstocked\",\n                    \"value\": 0\n                }\n            ],\n            \"qtyByCatData\": [\n                {\n                    \"category\": \"spices\",\n                    \"qty\": 126\n                },\n                {\n                    \"category\": \"ready mix\",\n                    \"qty\": 465\n                },\n                {\n                    \"category\": \"personal care\",\n                    \"qty\": 474\n                },\n                {\n                    \"category\": \"bath soap\",\n                    \"qty\": 487\n                },\n                {\n                    \"category\": \"ready meals\",\n                    \"qty\": 193\n                },\n                {\n                    \"category\": \"frozen foods\",\n                    \"qty\": 296\n                },\n                {\n                    \"category\": \"snacks\",\n                    \"qty\": 818\n                },\n                {\n                    \"category\": \"home care\",\n                    \"qty\": 290\n                },\n                {\n                    \"category\": \"beverage\",\n                    \"qty\": 1823\n                },\n                {\n                    \"category\": \"dairy\",\n                    \"qty\": 527\n                },\n                {\n                    \"category\": \"confectionery\",\n                    \"qty\": 294\n                },\n                {\n                    \"category\": \"staples\",\n                    \"qty\": 150\n                },\n                {\n                    \"category\": \"kitchenware\",\n                    \"qty\": 35\n                },\n                {\n                    \"category\": \"storage\",\n                    \"qty\": 25\n                },\n                {\n                    \"category\": \"skincare\",\n                    \"qty\": 500\n                }\n            ],\n            \"valueByCatData\": [\n                {\n                    \"category\": \"spices\",\n                    \"total\": 6750\n                },\n                {\n                    \"category\": \"ready mix\",\n                    \"total\": 27815\n                },\n                {\n                    \"category\": \"personal care\",\n                    \"total\": 35470\n                },\n                {\n                    \"category\": \"bath soap\",\n                    \"total\": 17045\n                },\n                {\n                    \"category\": \"ready meals\",\n                    \"total\": 17370\n                },\n                {\n                    \"category\": \"frozen foods\",\n                    \"total\": 10360\n                },\n                {\n                    \"category\": \"snacks\",\n                    \"total\": 32750\n                },\n                {\n                    \"category\": \"home care\",\n                    \"total\": 9750\n                },\n                {\n                    \"category\": \"beverage\",\n                    \"total\": 136800\n                },\n                {\n                    \"category\": \"dairy\",\n                    \"total\": 22085\n                },\n                {\n                    \"category\": \"confectionery\",\n                    \"total\": 32800\n                },\n                {\n                    \"category\": \"staples\",\n                    \"total\": 29000\n                },\n                {\n                    \"category\": \"kitchenware\",\n                    \"total\": 16750\n                },\n                {\n                    \"category\": \"storage\",\n                    \"total\": 2125\n                },\n                {\n                    \"category\": \"skincare\",\n                    \"total\": 60000\n                }\n            ],\n            \"agingData\": [\n                {\n                    \"range\": \"0–7 days\",\n                    \"count\": 2\n                },\n                {\n                    \"range\": \"8–30 days\",\n                    \"count\": 40\n                },\n                {\n                    \"range\": \"31–90 days\",\n                    \"count\": 0\n                },\n                {\n                    \"range\": \"90+ days\",\n                    \"count\": 0\n                }\n            ]\n        },\n        \"dataDetails\": {\n            \"Total Items\": 42,\n            \"Low Stock Items\": 2,\n            \"Unique Categories\": 15,\n            \"Total Stock Value\": 456870\n        },\n        \"_id\": \"68126b23318a1da627cabc82\",\n        \"createdAt\": \"2025-04-30T18:25:39.534Z\",\n        \"updatedAt\": \"2025-04-30T18:25:39.534Z\",\n        \"__v\": 0\n    }\n}"}],"_postman_id":"e9de26a0-08dc-4bb4-b7a8-4e6fd37621aa"},{"name":"deleteReport","id":"f2cd4afc-9c08-4e2e-a544-e2734476d991","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"DELETE","header":[],"url":"http://localhost:5000//api/report/680f7397dfe5c51e58f16900","urlObject":{"path":["api","report","680f7397dfe5c51e58f16900"],"host":["http://localhost:5000/"],"query":[],"variable":[]}},"response":[{"id":"3e4acb0e-24f9-4469-a892-2bf7ce0502e6","name":"deleteReport","originalRequest":{"method":"DELETE","header":[],"url":"http://localhost:5000/api/report/680f7397dfe5c51e58f16900"},"status":"No Content","code":204,"_postman_previewlanguage":"Text","header":[{"key":"X-Powered-By","value":"Express","type":"text"},{"key":"Access-Control-Allow-Origin","value":"*","type":"text"},{"key":"RateLimit-Policy","value":"100;w=900","type":"text"},{"key":"RateLimit-Limit","value":"100","type":"text"},{"key":"RateLimit-Remaining","value":"99","type":"text"},{"key":"RateLimit-Reset","value":"900","type":"text"},{"key":"Date","value":"Mon, 28 Apr 2025 12:32:48 GMT","type":"text"},{"key":"Connection","value":"keep-alive","type":"text"},{"key":"Keep-Alive","value":"timeout=5","type":"text"}],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"f2cd4afc-9c08-4e2e-a544-e2734476d991"}],"id":"e134d254-1d91-4939-ac84-b4afb7776313","_postman_id":"e134d254-1d91-4939-ac84-b4afb7776313","description":""}],"variable":[{"key":"hostAddr","value":"http://localhost:5000/","type":"default"}]}