{"info":{"_postman_id":"8e8b7ea6-f797-421e-899a-ba89dffec13f","name":"Shopease API","description":"<html><head></head><body><p>A RESTful API for an e-commerce platform built using Express.js and MongoDB.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"24544020","collectionId":"8e8b7ea6-f797-421e-899a-ba89dffec13f","publishedId":"2sAYQcFAkx","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2025-01-20T22:23:32.000Z"},"item":[{"name":"Authentication","item":[{"name":"Signup","id":"6f1c5b24-1f5c-4292-a513-17ed235c9fd6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"firstname\": \"\",\r\n    \"lastname\": \"\",\r\n    \"email\": \"\",\r\n    \"phone\": \"\",\r\n    \"password\": \"\",\r\n    \"confirmPassword\": \"\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:9000/api/v1/auth/signup","description":"<p>Allows users to create an account or restore a deleted one</p>\n","urlObject":{"path":["api","v1","auth","signup"],"host":["http://localhost:9000"],"query":[],"variable":[]}},"response":[],"_postman_id":"6f1c5b24-1f5c-4292-a513-17ed235c9fd6"},{"name":"Login","id":"26ed1e35-7551-4015-94cc-b0427afb7f8f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"\",\r\n    \"password\": \"\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:9000/api/v1/auth/login","description":"<p>Allows users to login using their email address and password</p>\n","urlObject":{"path":["api","v1","auth","login"],"host":["http://localhost:9000"],"query":[],"variable":[]}},"response":[],"_postman_id":"26ed1e35-7551-4015-94cc-b0427afb7f8f"},{"name":"Logout","id":"eb8f6d85-1e32-4aa7-9382-24330dc3d281","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"url":"http://localhost:9000/api/v1/auth/logout","description":"<p>Allows users to log out</p>\n","urlObject":{"path":["api","v1","auth","logout"],"host":["http://localhost:9000"],"query":[],"variable":[]}},"response":[],"_postman_id":"eb8f6d85-1e32-4aa7-9382-24330dc3d281"},{"name":"Forgot password","id":"9a645ef6-9220-41d7-a1e0-6fd52648befb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:9000/api/v1/auth/password/forgot","description":"<p>Sends an email to the user with reset password link</p>\n","urlObject":{"path":["api","v1","auth","password","forgot"],"host":["http://localhost:9000"],"query":[],"variable":[]}},"response":[],"_postman_id":"9a645ef6-9220-41d7-a1e0-6fd52648befb"},{"name":"Reset password","id":"143ddcab-a6a5-430f-a1d5-8e61f09459d6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"password\": \"\",\r\n    \"confirmPassword\": \"\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:9000/api/v1/auth/password/reset/:token","description":"<p>Allows users to reset their account password</p>\n","urlObject":{"path":["api","v1","auth","password","reset",":token"],"host":["http://localhost:9000"],"query":[],"variable":[{"description":{"content":"<p>Reset password token</p>\n","type":"text/plain"},"type":"any","value":"","key":"token"}]}},"response":[],"_postman_id":"143ddcab-a6a5-430f-a1d5-8e61f09459d6"}],"id":"23af142a-4a43-40ca-a5b3-2e3812df8848","description":"<p>API collection for authentication</p>\n","_postman_id":"23af142a-4a43-40ca-a5b3-2e3812df8848"},{"name":"Users","item":[{"name":"Retrieve profile","id":"1b64b116-d79c-4d5a-8636-601fc5cee5a2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:9000/api/v1/users/self","description":"<p>Allows users to retrieve their profile</p>\n","urlObject":{"path":["api","v1","users","self"],"host":["http://localhost:9000"],"query":[],"variable":[]}},"response":[],"_postman_id":"1b64b116-d79c-4d5a-8636-601fc5cee5a2"},{"name":"Update profile","id":"d0e2e5c3-8982-4b0e-840a-b7def22db64e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"firstname\": \"\",\r\n    \"lastname\": \"\",\r\n    \"phone\": \"\",\r\n    \"password\": \"\",\r\n    \"confirmPassword\": \"\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:9000/api/v1/users/self","description":"<p>Allows users to update their profile</p>\n","urlObject":{"path":["api","v1","users","self"],"host":["http://localhost:9000"],"query":[],"variable":[]}},"response":[],"_postman_id":"d0e2e5c3-8982-4b0e-840a-b7def22db64e"},{"name":"Delete account","id":"d467a950-f237-4452-9fe9-6c71c536c69f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://localhost:9000/api/v1/users/self","description":"<p>Allows users to delete their account</p>\n","urlObject":{"path":["api","v1","users","self"],"host":["http://localhost:9000"],"query":[],"variable":[]}},"response":[],"_postman_id":"d467a950-f237-4452-9fe9-6c71c536c69f"},{"name":"Add profile photo","id":"d4440a92-5b9e-41e9-b73a-c9f9fc49be1f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"avatar","description":"<p>Profile photo</p>\n","type":"file","value":null}]},"url":"http://localhost:9000/api/v1/users/self/avatar","description":"<p>Allows users to add their profile photo</p>\n","urlObject":{"path":["api","v1","users","self","avatar"],"host":["http://localhost:9000"],"query":[],"variable":[]}},"response":[],"_postman_id":"d4440a92-5b9e-41e9-b73a-c9f9fc49be1f"},{"name":"Remove profile photo","id":"4c48dd43-d3f1-417f-bbb1-cd18653a86dd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"url":"http://localhost:9000/api/v1/users/self/avatar","description":"<p>Allows users to remove their profile photo</p>\n","urlObject":{"path":["api","v1","users","self","avatar"],"host":["http://localhost:9000"],"query":[],"variable":[]}},"response":[],"_postman_id":"4c48dd43-d3f1-417f-bbb1-cd18653a86dd"},{"name":"Update profile photo","id":"2c64bf50-aee9-4911-b543-422c77c312dc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"avatar","description":"<p>Profile photo</p>\n","type":"file","value":null}]},"url":"http://localhost:9000/api/v1/users/self/avatar/update","description":"<p>Allows users to update their profile photo</p>\n","urlObject":{"path":["api","v1","users","self","avatar","update"],"host":["http://localhost:9000"],"query":[],"variable":[]}},"response":[],"_postman_id":"2c64bf50-aee9-4911-b543-422c77c312dc"},{"name":"Retrieve users","id":"ef27d47b-bf6d-400f-a3b9-d42e054e3ad4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:9000/api/v1/admin/users","description":"<p>Allows admins to retrieve a paginated list of users</p>\n","urlObject":{"path":["api","v1","admin","users"],"host":["http://localhost:9000"],"query":[{"disabled":true,"description":{"content":"<p>Filter by roles (user, admin)</p>\n","type":"text/plain"},"key":"roles","value":""},{"disabled":true,"description":{"content":"<p>Sort by name in asc|desc order</p>\n","type":"text/plain"},"key":"sort","value":""},{"disabled":true,"description":{"content":"<p>Page number</p>\n","type":"text/plain"},"key":"page","value":""},{"disabled":true,"description":{"content":"<p>Number of items per page</p>\n","type":"text/plain"},"key":"limit","value":""}],"variable":[]}},"response":[],"_postman_id":"ef27d47b-bf6d-400f-a3b9-d42e054e3ad4"},{"name":"Retrieve user by ID","id":"9fd7e458-cce9-4b3d-874a-f510b76ef9e9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:9000/api/v1/admin/users/:userId","description":"<p>Allows admins to retrieve a user by ID</p>\n","urlObject":{"path":["api","v1","admin","users",":userId"],"host":["http://localhost:9000"],"query":[],"variable":[{"description":{"content":"<p>User ID</p>\n","type":"text/plain"},"type":"any","value":"","key":"userId"}]}},"response":[],"_postman_id":"9fd7e458-cce9-4b3d-874a-f510b76ef9e9"},{"name":"Update user role","id":"bba0b0d3-2be5-4fcd-9b2e-44306d9ec94e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"role\": \"\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:9000/api/v1/admin/users/:userId","description":"<p>Allows admins to update the role of a user</p>\n","urlObject":{"path":["api","v1","admin","users",":userId"],"host":["http://localhost:9000"],"query":[],"variable":[{"description":{"content":"<p>User ID</p>\n","type":"text/plain"},"type":"any","value":"","key":"userId"}]}},"response":[],"_postman_id":"bba0b0d3-2be5-4fcd-9b2e-44306d9ec94e"},{"name":"Delete user","id":"59be9c45-189a-4b56-93b3-9999e8a62e6c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://localhost:9000/api/v1/admin/users/:userId","description":"<p>Allows admins to delete a user</p>\n","urlObject":{"path":["api","v1","admin","users",":userId"],"host":["http://localhost:9000"],"query":[],"variable":[{"description":{"content":"<p>User ID</p>\n","type":"text/plain"},"type":"any","value":"","key":"userId"}]}},"response":[],"_postman_id":"59be9c45-189a-4b56-93b3-9999e8a62e6c"},{"name":"Retrieve other admins","id":"47ed5c13-5519-4173-b6f3-a1fd3829590c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:9000/api/v1/admin/admins","description":"<p>Allows admins to retrieve a list of other admins</p>\n","urlObject":{"path":["api","v1","admin","admins"],"host":["http://localhost:9000"],"query":[],"variable":[]}},"response":[],"_postman_id":"47ed5c13-5519-4173-b6f3-a1fd3829590c"},{"name":"Admin self demote","id":"2d4f174a-d2a7-4e9b-80ff-754d288eeb3f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"url":"http://localhost:9000/api/v1/admin/self","description":"<p>Allows admins to demote themselves to the role of a user</p>\n","urlObject":{"path":["api","v1","admin","self"],"host":["http://localhost:9000"],"query":[],"variable":[]}},"response":[],"_postman_id":"2d4f174a-d2a7-4e9b-80ff-754d288eeb3f"},{"name":"Admin self delete","id":"f364400a-8923-4c13-9d40-810ee2f1abb3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://localhost:9000/api/v1/admin/self","description":"<p>Allows admins to delete their account</p>\n","urlObject":{"path":["api","v1","admin","self"],"host":["http://localhost:9000"],"query":[],"variable":[]}},"response":[],"_postman_id":"f364400a-8923-4c13-9d40-810ee2f1abb3"}],"id":"ba6b345b-1c4c-400f-906f-96210bfc356f","description":"<p>API collection for users</p>\n","_postman_id":"ba6b345b-1c4c-400f-906f-96210bfc356f"},{"name":"Addresses","item":[{"name":"Retrieve addresses","id":"25c74ece-8633-4073-93fb-b2c3d390fa51","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:9000/api/v1/addresses","description":"<p>Allows users to retrieve all their addresses</p>\n","urlObject":{"path":["api","v1","addresses"],"host":["http://localhost:9000"],"query":[],"variable":[]}},"response":[],"_postman_id":"25c74ece-8633-4073-93fb-b2c3d390fa51"},{"name":"Add new address","id":"664dcf1e-9218-42a3-8298-898692de9f0a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"fullname\": \"\",\r\n    \"phone\": \"\",\r\n    \"line1\": \"\",\r\n    \"line2\": \"\",\r\n    \"landmark\": \"\",\r\n    \"country\": \"\",\r\n    \"state\": \"\",\r\n    \"city\": \"\",\r\n    \"postalCode\": \"\",\r\n    \"isDefault\": false\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:9000/api/v1/addresses","description":"<p>Allows users to add a new address</p>\n","urlObject":{"path":["api","v1","addresses"],"host":["http://localhost:9000"],"query":[],"variable":[]}},"response":[],"_postman_id":"664dcf1e-9218-42a3-8298-898692de9f0a"},{"name":"Retrieve address by ID","id":"b75c52b6-5e94-4ebb-8003-b93657eee489","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:9000/api/v1/addresses/:addressId","description":"<p>Allows users to retrieve one of their addresses by ID</p>\n","urlObject":{"path":["api","v1","addresses",":addressId"],"host":["http://localhost:9000"],"query":[],"variable":[{"description":{"content":"<p>Address ID</p>\n","type":"text/plain"},"type":"any","value":"","key":"addressId"}]}},"response":[],"_postman_id":"b75c52b6-5e94-4ebb-8003-b93657eee489"},{"name":"Update address","id":"05342c41-22c9-46c9-bc13-5ab2afde3e90","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"fullname\": \"\",\r\n    \"phone\": \"\",\r\n    \"line1\": \"\",\r\n    \"line2\": \"\",\r\n    \"landmark\": \"\",\r\n    \"country\": \"\",\r\n    \"state\": \"\",\r\n    \"city\": \"\",\r\n    \"postalCode\": \"\",\r\n    \"isDefault\": false\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:9000/api/v1/addresses/:addressId","description":"<p>Allows users to update their address</p>\n","urlObject":{"path":["api","v1","addresses",":addressId"],"host":["http://localhost:9000"],"query":[],"variable":[{"description":{"content":"<p>Address ID</p>\n","type":"text/plain"},"type":"any","value":"","key":"addressId"}]}},"response":[],"_postman_id":"05342c41-22c9-46c9-bc13-5ab2afde3e90"},{"name":"Delete address","id":"3e234a38-022e-4256-89a0-f2b8cb3a8798","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://localhost:9000/api/v1/addresses/:addressId","description":"<p>Allows users to delete their address</p>\n","urlObject":{"path":["api","v1","addresses",":addressId"],"host":["http://localhost:9000"],"query":[],"variable":[{"description":{"content":"<p>Address ID</p>\n","type":"text/plain"},"type":"any","value":"","key":"addressId"}]}},"response":[],"_postman_id":"3e234a38-022e-4256-89a0-f2b8cb3a8798"},{"name":"Set default address","id":"b171ac62-bd52-42fb-b3a2-58495c8eeff3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"url":"http://localhost:9000/api/v1/addresses/:addressId/default","description":"<p>Allows users to set one of their addresses as the default</p>\n","urlObject":{"path":["api","v1","addresses",":addressId","default"],"host":["http://localhost:9000"],"query":[],"variable":[{"description":{"content":"<p>Address ID</p>\n","type":"text/plain"},"type":"any","value":"","key":"addressId"}]}},"response":[],"_postman_id":"b171ac62-bd52-42fb-b3a2-58495c8eeff3"}],"id":"f4255a2f-708f-4f60-8ade-41572fbba26a","description":"<p>API collection for addresses</p>\n","_postman_id":"f4255a2f-708f-4f60-8ade-41572fbba26a"},{"name":"Cart","item":[{"name":"Retrieve cart","id":"9864e2f9-d5a3-4eec-a260-354f4fdda85b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:9000/api/v1/cart","description":"<p>Allows users to retrieve their cart</p>\n","urlObject":{"path":["api","v1","cart"],"host":["http://localhost:9000"],"query":[],"variable":[]}},"response":[],"_postman_id":"9864e2f9-d5a3-4eec-a260-354f4fdda85b"},{"name":"Add item to cart","id":"19d8fe65-ff79-4824-8988-b1c5b1f401aa","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"productId\": \"\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:9000/api/v1/cart/add","description":"<p>Allows users to add an item to their cart</p>\n","urlObject":{"path":["api","v1","cart","add"],"host":["http://localhost:9000"],"query":[],"variable":[]}},"response":[],"_postman_id":"19d8fe65-ff79-4824-8988-b1c5b1f401aa"},{"name":"Remove item from cart","id":"c78c5490-2c98-4346-982e-804d4078e46e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"productId\": \"\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:9000/api/v1/cart/remove","description":"<p>Allows users to remove an item from their cart</p>\n","urlObject":{"path":["api","v1","cart","remove"],"host":["http://localhost:9000"],"query":[],"variable":[]}},"response":[],"_postman_id":"c78c5490-2c98-4346-982e-804d4078e46e"},{"name":"Update item quantity","id":"7715f690-50e4-45ab-b270-aa29eb346e3d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"productId\": \"\",\r\n    \"quantity\": \"\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:9000/api/v1/cart/update","description":"<p>Allows users to update quantity of a cart item</p>\n","urlObject":{"path":["api","v1","cart","update"],"host":["http://localhost:9000"],"query":[],"variable":[]}},"response":[],"_postman_id":"7715f690-50e4-45ab-b270-aa29eb346e3d"},{"name":"Move item to wishlist","id":"5ac3981a-2c9f-41cb-aed3-cae9694791dd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"productId\": \"\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:9000/api/v1/cart/move","description":"<p>Alows users to move an item from their cart to wishlist</p>\n","urlObject":{"path":["api","v1","cart","move"],"host":["http://localhost:9000"],"query":[],"variable":[]}},"response":[],"_postman_id":"5ac3981a-2c9f-41cb-aed3-cae9694791dd"},{"name":"Clear cart","id":"8ce888b3-9e53-4909-bb2f-055ccaa59dad","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"url":"http://localhost:9000/api/v1/cart/clear","description":"<p>Allows users to clear their cart</p>\n","urlObject":{"path":["api","v1","cart","clear"],"host":["http://localhost:9000"],"query":[],"variable":[]}},"response":[],"_postman_id":"8ce888b3-9e53-4909-bb2f-055ccaa59dad"}],"id":"b5d796df-3666-43d4-b3d3-158663cc45be","description":"<p>API collection for cart</p>\n","_postman_id":"b5d796df-3666-43d4-b3d3-158663cc45be"},{"name":"Wishlist","item":[{"name":"Retrieve wishlist","id":"d38d8190-af71-491e-94a0-9cbaa2f6b20a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:9000/api/v1/wishlist","description":"<p>Allows users to retrieve their wishlist</p>\n","urlObject":{"path":["api","v1","wishlist"],"host":["http://localhost:9000"],"query":[],"variable":[]}},"response":[],"_postman_id":"d38d8190-af71-491e-94a0-9cbaa2f6b20a"},{"name":"Add item to wishlist","id":"d92945bc-f1ab-4689-ae6a-4c7fa7cec70f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"productId\": \"\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:9000/api/v1/wishlist/add","description":"<p>Allows users to add an item to their wishlist</p>\n","urlObject":{"path":["api","v1","wishlist","add"],"host":["http://localhost:9000"],"query":[],"variable":[]}},"response":[],"_postman_id":"d92945bc-f1ab-4689-ae6a-4c7fa7cec70f"},{"name":"Remove item from wishlist","id":"4d44d7fd-6f25-41ce-9d9c-d9a7aa773380","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"productId\": \"\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:9000/api/v1/wishlist/remove","description":"<p>Allows users to remove an item from their wishlist</p>\n","urlObject":{"path":["api","v1","wishlist","remove"],"host":["http://localhost:9000"],"query":[],"variable":[]}},"response":[],"_postman_id":"4d44d7fd-6f25-41ce-9d9c-d9a7aa773380"},{"name":"Move item to cart","id":"78e345c4-36f0-45a4-a728-1062b217eb58","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"productId\": \"\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:9000/api/v1/wishlist/move","description":"<p>Allows users to move an item from their wishlist to cart</p>\n","urlObject":{"path":["api","v1","wishlist","move"],"host":["http://localhost:9000"],"query":[],"variable":[]}},"response":[],"_postman_id":"78e345c4-36f0-45a4-a728-1062b217eb58"},{"name":"Clear wishlist","id":"fcfddf2e-6b96-429a-a6a4-ac4df3b21c9a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"url":"http://localhost:9000/api/v1/wishlist/clear","description":"<p>Allows users to clear their wishlist</p>\n","urlObject":{"path":["api","v1","wishlist","clear"],"host":["http://localhost:9000"],"query":[],"variable":[]}},"response":[],"_postman_id":"fcfddf2e-6b96-429a-a6a4-ac4df3b21c9a"}],"id":"991819f7-c6ce-42eb-b32a-639899bd1e6a","description":"<p>API collection for wishlist</p>\n","_postman_id":"991819f7-c6ce-42eb-b32a-639899bd1e6a"},{"name":"Products","item":[{"name":"Retrieve products","id":"56f65e01-6db9-4c1d-b353-ae1e7556d5ac","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:9000/api/v1/products","description":"<p>Retrieves a paginated list of products</p>\n","urlObject":{"path":["api","v1","products"],"host":["http://localhost:9000"],"query":[{"disabled":true,"description":{"content":"<p>Filter by category titles</p>\n","type":"text/plain"},"key":"categories","value":""},{"disabled":true,"description":{"content":"<p>Filter by brand names</p>\n","type":"text/plain"},"key":"brands","value":""},{"disabled":true,"description":{"content":"<p>Filter by average rating</p>\n","type":"text/plain"},"key":"rating","value":""},{"disabled":true,"description":{"content":"<p>Sort option (recommended, new, rating, price_asc, price_desc)</p>\n","type":"text/plain"},"key":"sort","value":""},{"disabled":true,"description":{"content":"<p>Page number</p>\n","type":"text/plain"},"key":"page","value":""},{"disabled":true,"description":{"content":"<p>Number of items per page</p>\n","type":"text/plain"},"key":"limit","value":""}],"variable":[]}},"response":[],"_postman_id":"56f65e01-6db9-4c1d-b353-ae1e7556d5ac"},{"name":"Retrieve product by ID","id":"e8189fe6-be5a-4d9d-8380-5f4848dc997f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:9000/api/v1/products/:productId","description":"<p>Retrieves a product by ID</p>\n","urlObject":{"path":["api","v1","products",":productId"],"host":["http://localhost:9000"],"query":[],"variable":[{"description":{"content":"<p>Product ID</p>\n","type":"text/plain"},"type":"any","value":"","key":"productId"}]}},"response":[],"_postman_id":"e8189fe6-be5a-4d9d-8380-5f4848dc997f"},{"name":"Admin retrieve products","id":"4c876a2d-b546-442c-b19e-20848d89f1a1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:9000/api/v1/admin/products","description":"<p>Allows admins to retrieve a paginated list of products</p>\n","urlObject":{"path":["api","v1","admin","products"],"host":["http://localhost:9000"],"query":[{"disabled":true,"description":{"content":"<p>Filter by category titles</p>\n","type":"text/plain"},"key":"categories","value":""},{"disabled":true,"description":{"content":"<p>Filter by brand names</p>\n","type":"text/plain"},"key":"brands","value":""},{"disabled":true,"description":{"content":"<p>Filter by average rating</p>\n","type":"text/plain"},"key":"rating","value":""},{"disabled":true,"description":{"content":"<p>Filter by stock availability</p>\n","type":"text/plain"},"key":"availability","value":""},{"disabled":true,"description":{"content":"<p>Filter by deletion status</p>\n","type":"text/plain"},"key":"deleted","value":""},{"disabled":true,"description":{"content":"<p>Sort option (new, rating, price_asc, price_desc, stock_asc, stock_desc)</p>\n","type":"text/plain"},"key":"sort","value":""},{"disabled":true,"description":{"content":"<p>Page number</p>\n","type":"text/plain"},"key":"page","value":""},{"disabled":true,"description":{"content":"<p>Number of items per page</p>\n","type":"text/plain"},"key":"limit","value":""}],"variable":[]}},"response":[],"_postman_id":"4c876a2d-b546-442c-b19e-20848d89f1a1"},{"name":"Add new product","id":"b228cb4a-4a52-43a8-92f1-0489442e4ee8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"image","description":"<p>Product image</p>\n","type":"file","value":null},{"key":"title","value":"","description":"<p>Product title</p>\n","type":"text"},{"key":"description","value":"","description":"<p>Product description</p>\n","type":"text"},{"key":"price","value":"","description":"<p>Product price</p>\n","type":"text"},{"key":"brand","value":"","description":"<p>Brand ID</p>\n","type":"text"},{"key":"category","value":"","description":"<p>Category ID</p>\n","type":"text"},{"key":"stock","value":"","description":"<p>Product stock</p>\n","type":"text"}]},"url":"http://localhost:9000/api/v1/admin/products","description":"<p>Allows admins to add a new product</p>\n","urlObject":{"path":["api","v1","admin","products"],"host":["http://localhost:9000"],"query":[],"variable":[]}},"response":[],"_postman_id":"b228cb4a-4a52-43a8-92f1-0489442e4ee8"},{"name":"Admin retrieve product by ID","id":"4a597b77-f579-4797-a4c7-905a09fa6737","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:9000/api/v1/admin/products/:productId","description":"<p>Allows admins to retrieve a product by ID</p>\n","urlObject":{"path":["api","v1","admin","products",":productId"],"host":["http://localhost:9000"],"query":[],"variable":[{"description":{"content":"<p>Product ID</p>\n","type":"text/plain"},"type":"any","value":"","key":"productId"}]}},"response":[],"_postman_id":"4a597b77-f579-4797-a4c7-905a09fa6737"},{"name":"Update product","id":"9df41553-8beb-4727-ba3e-75ea0a2bf77a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"image","description":"<p>Product image</p>\n","type":"file","value":null},{"key":"title","value":"","description":"<p>Product title</p>\n","type":"text"},{"key":"description","value":"","description":"<p>Product description</p>\n","type":"text"},{"key":"price","value":"","description":"<p>Product price</p>\n","type":"text"},{"key":"brand","value":"","description":"<p>Brand ID</p>\n","type":"text"},{"key":"category","value":"","description":"<p>Category ID</p>\n","type":"text"},{"key":"stock","value":"","description":"<p>Product stock</p>\n","type":"text"}]},"url":"http://localhost:9000/api/v1/admin/products/:productId","description":"<p>Allows admins to update an existing product</p>\n","urlObject":{"path":["api","v1","admin","products",":productId"],"host":["http://localhost:9000"],"query":[],"variable":[{"description":{"content":"<p>Product ID</p>\n","type":"text/plain"},"type":"any","value":"","key":"productId"}]}},"response":[],"_postman_id":"9df41553-8beb-4727-ba3e-75ea0a2bf77a"},{"name":"Delete product","id":"87792309-3b2f-4725-b21f-3f8bc47cbdde","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://localhost:9000/api/v1/admin/products/:productId","description":"<p>Allows admins to delete a product</p>\n","urlObject":{"path":["api","v1","admin","products",":productId"],"host":["http://localhost:9000"],"query":[],"variable":[{"description":{"content":"<p>Product ID</p>\n","type":"text/plain"},"type":"any","value":"","key":"productId"}]}},"response":[],"_postman_id":"87792309-3b2f-4725-b21f-3f8bc47cbdde"},{"name":"Restore deleted product","id":"7d3bbefa-cdfc-45de-9ceb-631150a61272","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"url":"http://localhost:9000/api/v1/admin/products/:productId/restore","description":"<p>Allows admins to restore a deleted product</p>\n","urlObject":{"path":["api","v1","admin","products",":productId","restore"],"host":["http://localhost:9000"],"query":[],"variable":[{"description":{"content":"<p>Product ID</p>\n","type":"text/plain"},"type":"any","value":"","key":"productId"}]}},"response":[],"_postman_id":"7d3bbefa-cdfc-45de-9ceb-631150a61272"}],"id":"edd67196-1758-4213-8236-9f9dcc05aacd","description":"<p>API collection for products</p>\n","_postman_id":"edd67196-1758-4213-8236-9f9dcc05aacd"},{"name":"Categories","item":[{"name":"Retrieve categories","id":"3ea17678-c25d-4173-a6d3-0555cd7a9dad","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:9000/api/v1/categories","description":"<p>Retrieves a list of categories under which products have been listed</p>\n","urlObject":{"path":["api","v1","categories"],"host":["http://localhost:9000"],"query":[],"variable":[]}},"response":[],"_postman_id":"3ea17678-c25d-4173-a6d3-0555cd7a9dad"},{"name":"Retrieve category by ID","id":"191a9fc0-2d02-45cc-8c73-a0f63d574255","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:9000/api/v1/categories/:categoryId","description":"<p>Retrieves a category by ID</p>\n","urlObject":{"path":["api","v1","categories",":categoryId"],"host":["http://localhost:9000"],"query":[],"variable":[{"description":{"content":"<p>Category ID</p>\n","type":"text/plain"},"type":"any","value":"","key":"categoryId"}]}},"response":[],"_postman_id":"191a9fc0-2d02-45cc-8c73-a0f63d574255"},{"name":"Retrieve all categories","id":"cbfa0f42-1a47-4749-84c7-3ef0482167d5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:9000/api/v1/admin/categories","description":"<p>Allows admins to retrieve a list of all categories</p>\n","urlObject":{"path":["api","v1","admin","categories"],"host":["http://localhost:9000"],"query":[],"variable":[]}},"response":[],"_postman_id":"cbfa0f42-1a47-4749-84c7-3ef0482167d5"},{"name":"Add new category","id":"ccf4d6e8-b9b1-4294-b0e3-09e2dce5f47f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"image","description":"<p>Category image</p>\n","type":"file","value":null},{"key":"title","value":"","description":"<p>Category title</p>\n","type":"text"}]},"url":"http://localhost:9000/api/v1/admin/categories","description":"<p>Allows admins to add a new category</p>\n","urlObject":{"path":["api","v1","admin","categories"],"host":["http://localhost:9000"],"query":[],"variable":[]}},"response":[],"_postman_id":"ccf4d6e8-b9b1-4294-b0e3-09e2dce5f47f"},{"name":"Update category","id":"92dbd68f-f6ee-49fe-99a8-b492d02e25c1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"image","description":"<p>Category image</p>\n","type":"file","value":null},{"key":"title","value":"","description":"<p>Category title</p>\n","type":"text"}]},"url":"http://localhost:9000/api/v1/admin/categories/:categoryId","description":"<p>Allows admins to update an existing category</p>\n","urlObject":{"path":["api","v1","admin","categories",":categoryId"],"host":["http://localhost:9000"],"query":[],"variable":[{"description":{"content":"<p>Category ID</p>\n","type":"text/plain"},"type":"any","value":"","key":"categoryId"}]}},"response":[],"_postman_id":"92dbd68f-f6ee-49fe-99a8-b492d02e25c1"}],"id":"7376802f-5a5e-4f01-9169-cd6f012b9433","description":"<p>API collection for categories</p>\n","_postman_id":"7376802f-5a5e-4f01-9169-cd6f012b9433"},{"name":"Brands","item":[{"name":"Retrieve brands","id":"128ee1ed-d049-40df-9ce9-2342b27b9345","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:9000/api/v1/brands","description":"<p>Retrieves a list of brands under which products have been listed</p>\n","urlObject":{"path":["api","v1","brands"],"host":["http://localhost:9000"],"query":[],"variable":[]}},"response":[],"_postman_id":"128ee1ed-d049-40df-9ce9-2342b27b9345"},{"name":"Retrieve brand by ID","id":"6bceb0be-6616-4025-ad2b-952d5685339c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:9000/api/v1/brands/:brandId","description":"<p>Retrieves a brand by ID</p>\n","urlObject":{"path":["api","v1","brands",":brandId"],"host":["http://localhost:9000"],"query":[],"variable":[{"description":{"content":"<p>Brand ID</p>\n","type":"text/plain"},"type":"any","value":"","key":"brandId"}]}},"response":[],"_postman_id":"6bceb0be-6616-4025-ad2b-952d5685339c"},{"name":"Retrieve all brands","id":"032671d5-a1c8-4e2e-af81-c8a82ce0cdc5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:9000/api/v1/admin/brands","description":"<p>Allows admins to retrieve a list of all brands</p>\n","urlObject":{"path":["api","v1","admin","brands"],"host":["http://localhost:9000"],"query":[],"variable":[]}},"response":[],"_postman_id":"032671d5-a1c8-4e2e-af81-c8a82ce0cdc5"},{"name":"Add new brand","id":"c209b5bb-c70a-49be-92a5-2cedfcd053f4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"logo","description":"<p>Brand logo</p>\n","type":"file","value":null},{"key":"name","value":"","description":"<p>Brand name</p>\n","type":"text"}]},"url":"http://localhost:9000/api/v1/admin/brands","description":"<p>Allows admins to add a new brand</p>\n","urlObject":{"path":["api","v1","admin","brands"],"host":["http://localhost:9000"],"query":[],"variable":[]}},"response":[],"_postman_id":"c209b5bb-c70a-49be-92a5-2cedfcd053f4"},{"name":"Update brand","id":"c2932f3f-7fc0-4170-a5ab-a2cc14712be9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"logo","type":"file","description":"<p>Brand logo</p>\n","value":null},{"key":"name","value":"","type":"text","description":"<p>Brand name</p>\n"}]},"url":"http://localhost:9000/api/v1/admin/brands/:brandId","description":"<p>Allows admins to update an existing brand</p>\n","urlObject":{"path":["api","v1","admin","brands",":brandId"],"host":["http://localhost:9000"],"query":[],"variable":[{"description":{"content":"<p>Brand ID</p>\n","type":"text/plain"},"type":"any","value":"","key":"brandId"}]}},"response":[],"_postman_id":"c2932f3f-7fc0-4170-a5ab-a2cc14712be9"}],"id":"278283a3-07e9-4a5c-bbc0-1bdbe1d820ec","description":"<p>API collection for brands</p>\n","_postman_id":"278283a3-07e9-4a5c-bbc0-1bdbe1d820ec"},{"name":"Coupons","item":[{"name":"Retrieve valid coupons","id":"c976a0c8-b1ce-4e2f-86bb-e2d0b4d69503","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:9000/api/v1/coupons","description":"<p>Retrieves a list of all valid coupons</p>\n","urlObject":{"path":["api","v1","coupons"],"host":["http://localhost:9000"],"query":[],"variable":[]}},"response":[],"_postman_id":"c976a0c8-b1ce-4e2f-86bb-e2d0b4d69503"},{"name":"Check coupon validity","id":"7fcf1772-e3c2-45b5-81df-707f5ca94170","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:9000/api/v1/coupons/validity?couponCode=","description":"<p>Allows users to check the validity of a coupon</p>\n","urlObject":{"path":["api","v1","coupons","validity"],"host":["http://localhost:9000"],"query":[{"description":{"content":"<p>Coupon code to be verified</p>\n","type":"text/plain"},"key":"couponCode","value":""}],"variable":[]}},"response":[],"_postman_id":"7fcf1772-e3c2-45b5-81df-707f5ca94170"},{"name":"Admin retrieve coupons","id":"1a75eb69-f22a-41fc-946b-c16ec73860bd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:9000/api/v1/admin/coupons","description":"<p>Allows admins to retrieve a paginated list of coupons</p>\n","urlObject":{"path":["api","v1","admin","coupons"],"host":["http://localhost:9000"],"query":[{"disabled":true,"description":{"content":"<p>Number of days until coupon expiration</p>\n","type":"text/plain"},"key":"daysUntilExpiration","value":""},{"disabled":true,"description":{"content":"<p>Filter by discount types (flat, percentage)</p>\n","type":"text/plain"},"key":"discountTypes","value":""},{"disabled":true,"description":{"content":"<p>Filter by coupon statuses (active, inactive, expired)</p>\n","type":"text/plain"},"key":"statuses","value":""},{"disabled":true,"description":{"content":"<p>Sort by expiry date in asc|desc order</p>\n","type":"text/plain"},"key":"sort","value":""},{"disabled":true,"description":{"content":"<p>Page number</p>\n","type":"text/plain"},"key":"page","value":""},{"disabled":true,"description":{"content":"<p>Number of items per page</p>\n","type":"text/plain"},"key":"limit","value":""}],"variable":[]}},"response":[],"_postman_id":"1a75eb69-f22a-41fc-946b-c16ec73860bd"},{"name":"Create coupon","id":"5aef9ce1-393a-473c-b498-25213196d68f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"code\": \"\",\r\n    \"discountType\": \"\",\r\n    \"flatDiscount\": \"\",\r\n    \"percentageDiscount\": \"\",\r\n    \"expiryDate\": \"\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:9000/api/v1/admin/coupons","description":"<p>Allows admins to create a new coupon</p>\n","urlObject":{"path":["api","v1","admin","coupons"],"host":["http://localhost:9000"],"query":[],"variable":[]}},"response":[],"_postman_id":"5aef9ce1-393a-473c-b498-25213196d68f"},{"name":"Retrieve coupon by ID","id":"a1856706-070f-4d5a-aed5-fb88eeced486","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:9000/api/v1/admin/coupons/:couponId","description":"<p>Allows admins to retrieve a coupon by ID</p>\n","urlObject":{"path":["api","v1","admin","coupons",":couponId"],"host":["http://localhost:9000"],"query":[],"variable":[{"description":{"content":"<p>Coupon ID</p>\n","type":"text/plain"},"type":"any","value":"","key":"couponId"}]}},"response":[],"_postman_id":"a1856706-070f-4d5a-aed5-fb88eeced486"},{"name":"Update coupon","id":"2fd637b9-6fb7-4ab6-9189-6acaca384511","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"code\": \"\",\r\n    \"discountType\": \"\",\r\n    \"flatDiscount\": \"\",\r\n    \"percentageDiscount\": \"\",\r\n    \"expiryDate\": \"\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:9000/api/v1/admin/coupons/:couponId","description":"<p>Allows admins to update an existing coupon</p>\n","urlObject":{"path":["api","v1","admin","coupons",":couponId"],"host":["http://localhost:9000"],"query":[],"variable":[{"description":{"content":"<p>Coupon ID</p>\n","type":"text/plain"},"type":"any","value":"","key":"couponId"}]}},"response":[],"_postman_id":"2fd637b9-6fb7-4ab6-9189-6acaca384511"},{"name":"Delete coupon","id":"ecc1b038-6fe1-4830-b0d8-d54464e8319b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://localhost:9000/api/v1/admin/coupons/:couponId","description":"<p>Allows admins to delete a coupon</p>\n","urlObject":{"path":["api","v1","admin","coupons",":couponId"],"host":["http://localhost:9000"],"query":[],"variable":[{"description":{"content":"<p>Coupon ID</p>\n","type":"text/plain"},"type":"any","value":"","key":"couponId"}]}},"response":[],"_postman_id":"ecc1b038-6fe1-4830-b0d8-d54464e8319b"},{"name":"Activate coupon","id":"1454a1dd-9c45-4e77-997d-cc63874e0e6c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"url":"http://localhost:9000/api/v1/admin/coupons/:couponId/activate","description":"<p>Allows admins to activate an inactive coupon</p>\n","urlObject":{"path":["api","v1","admin","coupons",":couponId","activate"],"host":["http://localhost:9000"],"query":[],"variable":[{"description":{"content":"<p>Coupon ID</p>\n","type":"text/plain"},"type":"any","value":"","key":"couponId"}]}},"response":[],"_postman_id":"1454a1dd-9c45-4e77-997d-cc63874e0e6c"},{"name":"Deactivate coupon","id":"78c7cd3f-bf93-48d6-92fb-2b524f6f23ba","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"url":"http://localhost:9000/api/v1/admin/coupons/:couponId/deactivate","description":"<p>Allows admins to deactivate an active coupon</p>\n","urlObject":{"path":["api","v1","admin","coupons",":couponId","deactivate"],"host":["http://localhost:9000"],"query":[],"variable":[{"description":{"content":"<p>Coupon ID</p>\n","type":"text/plain"},"type":"any","value":"","key":"couponId"}]}},"response":[],"_postman_id":"78c7cd3f-bf93-48d6-92fb-2b524f6f23ba"}],"id":"4f056e56-ceca-4f11-81b2-6a05d78d7bbc","description":"<p>API collection for coupons</p>\n","_postman_id":"4f056e56-ceca-4f11-81b2-6a05d78d7bbc"},{"name":"Orders","item":[{"name":"Retrieve orders","id":"a08b833c-1687-46aa-ac05-932650f54256","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:9000/api/v1/orders","description":"<p>Allows users to retrieve a paginated list of their orders</p>\n","urlObject":{"path":["api","v1","orders"],"host":["http://localhost:9000"],"query":[{"disabled":true,"description":{"content":"<p>Number of days to retrieve past orders</p>\n","type":"text/plain"},"key":"daysInPast","value":""},{"disabled":true,"description":{"content":"<p>Page number</p>\n","type":"text/plain"},"key":"page","value":""},{"disabled":true,"description":{"content":"<p>Number of items per page</p>\n","type":"text/plain"},"key":"limit","value":null}],"variable":[]}},"response":[],"_postman_id":"a08b833c-1687-46aa-ac05-932650f54256"},{"name":"Create new order","id":"1f78659a-4243-4b6a-9b4d-fa3152abffa4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"items\": [{ \"product\": \"\", \"quantity\": \"\" }],\r\n    \"couponCode\": \"\",\r\n    \"shippingAddress\": \"\",\r\n    \"deliveryMode\": \"\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:9000/api/v1/orders","description":"<p>Handles creation of a new order</p>\n","urlObject":{"path":["api","v1","orders"],"host":["http://localhost:9000"],"query":[],"variable":[]}},"response":[],"_postman_id":"1f78659a-4243-4b6a-9b4d-fa3152abffa4"},{"name":"Retrieve order by ID","id":"d80017a5-0031-4aa5-9ef4-f81e2d60d4cb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:9000/api/v1/orders/:orderId","description":"<p>Allows users to retrieve one of their orders by ID</p>\n","urlObject":{"path":["api","v1","orders",":orderId"],"host":["http://localhost:9000"],"query":[],"variable":[{"description":{"content":"<p>Order ID</p>\n","type":"text/plain"},"type":"any","value":"","key":"orderId"}]}},"response":[],"_postman_id":"d80017a5-0031-4aa5-9ef4-f81e2d60d4cb"},{"name":"Confirm order","id":"27d9c47d-a3de-4fdd-9afe-9607617f0f62","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"razorpayPaymentId\": \"\",\r\n    \"razorpaySignature\": \"\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:9000/api/v1/orders/:orderId/confirm","description":"<p>Confirms an order upon payment success</p>\n","urlObject":{"path":["api","v1","orders",":orderId","confirm"],"host":["http://localhost:9000"],"query":[],"variable":[{"description":{"content":"<p>Order ID</p>\n","type":"text/plain"},"type":"any","value":"","key":"orderId"}]}},"response":[],"_postman_id":"27d9c47d-a3de-4fdd-9afe-9607617f0f62"},{"name":"Cancel order","id":"55859a30-f980-450f-a110-f719c65624cf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"url":"http://localhost:9000/api/v1/orders/:orderId/cancel","description":"<p>Allows users to cancel their order</p>\n","urlObject":{"path":["api","v1","orders",":orderId","cancel"],"host":["http://localhost:9000"],"query":[],"variable":[{"description":{"content":"<p>Order ID</p>\n","type":"text/plain"},"type":"any","value":"","key":"orderId"}]}},"response":[],"_postman_id":"55859a30-f980-450f-a110-f719c65624cf"},{"name":"Admin retrieve orders","id":"566e972d-b385-4cb4-b8ed-1d1b4998bef0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:9000/api/v1/admin/orders","description":"<p>Allows admins to retrieve a paginated list of orders</p>\n","urlObject":{"path":["api","v1","admin","orders"],"host":["http://localhost:9000"],"query":[{"disabled":true,"description":{"content":"<p>Number of days to retrieve past orders</p>\n","type":"text/plain"},"key":"daysInPast","value":""},{"disabled":true,"description":{"content":"<p>Filter by order statuses (created, processing, shipped, delivered, cancelled)</p>\n","type":"text/plain"},"key":"statuses","value":""},{"disabled":true,"description":{"content":"<p>Sort by date or amount in asc|desc order</p>\n","type":"text/plain"},"key":"sort","value":""},{"disabled":true,"description":{"content":"<p>Page number</p>\n","type":"text/plain"},"key":"page","value":""},{"disabled":true,"description":{"content":"<p>Number of items per page</p>\n","type":"text/plain"},"key":"limit","value":""}],"variable":[]}},"response":[],"_postman_id":"566e972d-b385-4cb4-b8ed-1d1b4998bef0"},{"name":"Admin retrieve order by ID","id":"7cbfa5a0-b989-400a-9ba8-11b0bbca8239","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:9000/api/v1/admin/orders/:orderId","description":"<p>Allows admins to retrieve an order by ID</p>\n","urlObject":{"path":["api","v1","admin","orders",":orderId"],"host":["http://localhost:9000"],"query":[],"variable":[{"description":{"content":"<p>Order ID</p>\n","type":"text/plain"},"type":"any","value":"","key":"orderId"}]}},"response":[],"_postman_id":"7cbfa5a0-b989-400a-9ba8-11b0bbca8239"},{"name":"Update order status","id":"3157682f-310d-41c4-8693-a486c2b24b52","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"status\": \"\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:9000/api/v1/admin/orders/:orderId","description":"<p>Allows admins to update the status of an order</p>\n","urlObject":{"path":["api","v1","admin","orders",":orderId"],"host":["http://localhost:9000"],"query":[],"variable":[{"description":{"content":"<p>Order ID</p>\n","type":"text/plain"},"type":"any","value":"","key":"orderId"}]}},"response":[],"_postman_id":"3157682f-310d-41c4-8693-a486c2b24b52"},{"name":"Delete order","id":"c1664b78-7ad0-4dd0-8867-0ccc729b1aec","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://localhost:9000/api/v1/admin/orders/:orderId","description":"<p>Allows admins to delete an order</p>\n","urlObject":{"path":["api","v1","admin","orders",":orderId"],"host":["http://localhost:9000"],"query":[],"variable":[{"description":{"content":"<p>Order ID</p>\n","type":"text/plain"},"type":"any","value":"","key":"orderId"}]}},"response":[],"_postman_id":"c1664b78-7ad0-4dd0-8867-0ccc729b1aec"}],"id":"888a65dd-f96b-47df-a1b0-00e1794c3529","description":"<p>API collection for orders</p>\n","_postman_id":"888a65dd-f96b-47df-a1b0-00e1794c3529"},{"name":"Reviews","item":[{"name":"Retrieve product reviews","id":"2890162b-d596-42fb-a879-de680bd871b3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:9000/api/v1/products/:productId/reviews","description":"<p>Retrieves a paginated list of reviews for a product</p>\n","urlObject":{"path":["api","v1","products",":productId","reviews"],"host":["http://localhost:9000"],"query":[{"disabled":true,"description":{"content":"<p>Sort by top or recent</p>\n","type":"text/plain"},"key":"sort","value":""},{"disabled":true,"description":{"content":"<p>Page number</p>\n","type":"text/plain"},"key":"page","value":""},{"disabled":true,"description":{"content":"<p>Number of items per page</p>\n","type":"text/plain"},"key":"limit","value":""}],"variable":[{"description":{"content":"<p>Product ID</p>\n","type":"text/plain"},"type":"any","value":"","key":"productId"}]}},"response":[],"_postman_id":"2890162b-d596-42fb-a879-de680bd871b3"},{"name":"Add product review","id":"f03b1e4b-781f-4e19-8db7-d4314c6be9d5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"rating\": \"\",\r\n    \"headline\": \"\",\r\n    \"body\": \"\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:9000/api/v1/products/:productId/reviews","description":"<p>Allows users to add a review for a purchased product</p>\n","urlObject":{"path":["api","v1","products",":productId","reviews"],"host":["http://localhost:9000"],"query":[],"variable":[{"description":{"content":"<p>Product ID</p>\n","type":"text/plain"},"type":"any","value":"","key":"productId"}]}},"response":[],"_postman_id":"f03b1e4b-781f-4e19-8db7-d4314c6be9d5"},{"name":"Retrieve product review by ID","id":"600b0a85-1077-4192-91df-11ca8840ed76","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:9000/api/v1/reviews/:reviewId","description":"<p>Allows users to retrieve their review for a product by ID</p>\n","urlObject":{"path":["api","v1","reviews",":reviewId"],"host":["http://localhost:9000"],"query":[],"variable":[{"description":{"content":"<p>Review ID</p>\n","type":"text/plain"},"type":"any","value":"","key":"reviewId"}]}},"response":[],"_postman_id":"600b0a85-1077-4192-91df-11ca8840ed76"},{"name":"Update product review","id":"3b8cfcd7-2c32-4a0e-8582-eba9541a3e43","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"rating\": \"\",\r\n    \"headline\": \"\",\r\n    \"body\": \"\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:9000/api/v1/reviews/:reviewId","description":"<p>Allows users to update their review of a product</p>\n","urlObject":{"path":["api","v1","reviews",":reviewId"],"host":["http://localhost:9000"],"query":[],"variable":[{"description":{"content":"<p>Review ID</p>\n","type":"text/plain"},"type":"any","value":"","key":"reviewId"}]}},"response":[],"_postman_id":"3b8cfcd7-2c32-4a0e-8582-eba9541a3e43"}],"id":"42522a7b-b9c7-4dbc-afe3-9b97c42a6666","description":"<p>API collection for reviews</p>\n","_postman_id":"42522a7b-b9c7-4dbc-afe3-9b97c42a6666"}],"event":[{"listen":"prerequest","script":{"id":"f6fdb45c-94ab-426a-a97c-7d72843bbe7c","type":"text/javascript","packages":{},"exec":[""]}},{"listen":"test","script":{"id":"0c8f57b2-ab47-415d-9525-30bbf901be46","type":"text/javascript","packages":{},"exec":[""]}}],"variable":[{"key":"baseUrl","value":"http://localhost:9000","type":"string"}]}