{"info":{"_postman_id":"dc829811-4ed5-44dd-ab53-649f1ddcae05","name":"E-Commerce","description":"<html><head></head><body><p>This is a RESTful API for a complete e-commerce system built using Node.js, Express, and MongoDB.<br>It supports user authentication (with cookie-based sessions), category/product management, shopping cart, orders, coupons, and more.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"43275507","collectionId":"dc829811-4ed5-44dd-ab53-649f1ddcae05","publishedId":"2sB34kEeNg","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2025-07-20T15:44:53.000Z"},"item":[{"name":"Authentication","item":[{"name":"Sing Up","event":[{"listen":"test","script":{"id":"8f0b5c15-8e54-4169-9c9f-c8130a9f1fd6","exec":[""],"type":"text/javascript","packages":{}}}],"id":"508dca4c-8ee7-48d7-b915-976599302f28","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\":\"Momen\",\r\n    \"password\":\"Test@1234\",\r\n    \"passwordConfirm\":\"Test@1234\",\r\n    \"email\":\"momen@example.com\",\r\n    \"phone\":\"0123456789\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/auth/signup","description":"<p>Registers a new user account.</p>\n<p>Authentication: Not required</p>\n<p>Body Parameters (JSON):</p>\n<ul>\n<li><p>name: (string) Required. Full name of the user.</p>\n</li>\n<li><p>email: (string) Required. Must be unique.</p>\n</li>\n<li><p>phone: (string) Required. Must be unique.</p>\n</li>\n<li><p>password: (string) Required. The password for the account.</p>\n</li>\n<li><p>passwordConfirm: (string) Required. Must match the password.</p>\n</li>\n</ul>\n<p>On success, the server will set an HTTP-only cookie containing the session token.</p>\n","urlObject":{"path":["api","v1","auth","signup"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"508dca4c-8ee7-48d7-b915-976599302f28"},{"name":"Log In","event":[{"listen":"test","script":{"id":"e8ff8053-3da4-4395-a70b-615a4a71d10c","exec":[""],"type":"text/javascript","packages":{}}}],"id":"86759c63-6d13-48e2-b9aa-135dd667244a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\":\"momen@example.com\",\r\n    \"password\":\"Test@1234\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/auth/login","description":"<p>Authenticates the user and starts a new session.</p>\n<p>Authentication: Not required</p>\n<p>Body Parameters (JSON):</p>\n<ul>\n<li><p>email: (string) Required. The user's registered email address.</p>\n</li>\n<li><p>password: (string) Required. The user's password.</p>\n</li>\n</ul>\n<p>If the credentials are valid, the server sets an HTTP-only cookie containing the session token. This cookie will be used for authenticating subsequent requests.</p>\n<p>Success Response:<br />Status: 200 OK<br />Note: No response body is returned. Authentication state is maintained via the HTTP-only cookie.</p>\n","urlObject":{"path":["api","v1","auth","login"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"86759c63-6d13-48e2-b9aa-135dd667244a"},{"name":"Log Out","event":[{"listen":"test","script":{"id":"e8ff8053-3da4-4395-a70b-615a4a71d10c","exec":[""],"type":"text/javascript","packages":{}}}],"id":"efeca3af-aa58-4fd7-9984-f9576872c651","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{URL}}/api/v1/auth/logout","description":"<p>Logs the user out by clearing the authentication cookie.</p>\n<p>Authentication: Required (via cookie)</p>\n<p>This endpoint invalidates the current session by removing the token cookie from the client.</p>\n<p>Success Response:<br />Status: 200 OK</p>\n","urlObject":{"path":["api","v1","auth","logout"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"efeca3af-aa58-4fd7-9984-f9576872c651"},{"name":"Forgot Password","event":[{"listen":"test","script":{"id":"e8ff8053-3da4-4395-a70b-615a4a71d10c","exec":[""],"type":"text/javascript","packages":{}}},{"listen":"prerequest","script":{"id":"f7ed202d-0f09-4ac9-8763-3de484d4b718","exec":[""],"type":"text/javascript","packages":{}}}],"id":"dcf4006f-18f6-4d6b-8abc-a6ac8d8769cc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\":\"momen@example.com\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/auth/forgotPassword","description":"<p>Initiates the password reset process.</p>\n<p>You can provide either the email or the phone number. You are not required to provide both.</p>\n<p>Body Parameters (JSON):</p>\n<ul>\n<li><p>email: (string) Optional. The user's email address.</p>\n</li>\n<li><p>phone: (string) Optional. The user's phone number.</p>\n</li>\n</ul>\n<p>Note: At least one of the two fields must be provided.</p>\n<p>Success Response:<br />Status: 200 OK<br />A reset code (OTP) will be sent to the provided email or phone.</p>\n","urlObject":{"path":["api","v1","auth","forgotPassword"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"dcf4006f-18f6-4d6b-8abc-a6ac8d8769cc"},{"name":"Verify Reset Code","event":[{"listen":"test","script":{"id":"e8ff8053-3da4-4395-a70b-615a4a71d10c","exec":[""],"type":"text/javascript","packages":{}}},{"listen":"prerequest","script":{"id":"3d4f1486-a48a-4996-8d64-fd4f59717792","exec":[""],"type":"text/javascript","packages":{}}}],"id":"017a9c67-3c3b-4162-9767-b9f6e914dc5a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"resetOTP\":\"781226\",\r\n    \"email\":\"momen@example.com\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/auth/verifyResetCode/","description":"<p>Verifies the reset code (OTP) sent to the user's email or phone.</p>\n<p>Body Parameters (JSON):</p>\n<ul>\n<li><p>resetOTP: (string) The OTP code received.</p>\n</li>\n<li><p>email: (string) Optional. The user's email.</p>\n</li>\n<li><p>phone: (string) Optional. The user's phone number.</p>\n</li>\n</ul>\n<p>Note: Either email or phone must match what was provided during the \"forgot password\" request.</p>\n<p>Success Response:<br />Status: 200 OK<br />The reset token will be verified and approved for password reset.</p>\n","urlObject":{"path":["api","v1","auth","verifyResetCode",""],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"017a9c67-3c3b-4162-9767-b9f6e914dc5a"},{"name":"Reset Password","event":[{"listen":"test","script":{"id":"e8ff8053-3da4-4395-a70b-615a4a71d10c","exec":[""],"type":"text/javascript","packages":{}}},{"listen":"prerequest","script":{"id":"3d4f1486-a48a-4996-8d64-fd4f59717792","exec":[""],"type":"text/javascript","packages":{}}}],"id":"27aa188f-026b-4750-b5b1-2af5fe23f4c5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n \"email\":\"momen@example.com\",\r\n \"newPassword\":\"Test@1234\",\r\n \"passwordConfirm\":\"Test@1234\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/auth/resetPassword","description":"<p>Resets the user's password after verifying the reset code.</p>\n<p>Body Parameters (JSON):</p>\n<ul>\n<li><p>email: (string) The user's email address used in the reset request.</p>\n</li>\n<li><p>newPassword: (string) The new password.</p>\n</li>\n<li><p>passwordConfirm: (string) Confirmation of the new password (must match newPassword).</p>\n</li>\n</ul>\n<p>Success Response:<br />Status: 200 OK<br />The user's password is successfully updated.</p>\n","urlObject":{"path":["api","v1","auth","resetPassword"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"27aa188f-026b-4750-b5b1-2af5fe23f4c5"}],"id":"eff80a2f-8ada-4254-beaf-ede06b6054bf","description":"<p>Handles user registration, login, logout, and password recovery using email or phone.<br />Authentication is cookie-based (HTTP-only) to provide secure session management.<br />This module includes the full password reset workflow and OTP verification.</p>\n","_postman_id":"eff80a2f-8ada-4254-beaf-ede06b6054bf"},{"name":"Categories","item":[{"name":"Create Categorie","id":"d83c8090-a30b-442b-b323-0754885880d9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"name","value":"Category Name","type":"text","uuid":"5cb807bd-55a1-4d23-af4c-4994a5fcd852"},{"key":"image","type":"file","uuid":"0cfcbb15-289d-4301-8e02-c622194a7122","value":null}]},"url":"{{URL}}/api/v1/categories","urlObject":{"path":["api","v1","categories"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"d83c8090-a30b-442b-b323-0754885880d9"},{"name":"Get All Categories","id":"512daee9-b039-4005-b6ce-013afd6f7845","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{URL}}/api/v1/categories","urlObject":{"path":["api","v1","categories"],"host":["{{URL}}"],"query":[{"disabled":true,"key":"page","value":"2"},{"disabled":true,"key":"limit","value":"3"},{"disabled":true,"key":"name","value":"Electronics"},{"disabled":true,"key":"sort","value":"name,createdAt"},{"disabled":true,"key":"fields","value":"name"},{"disabled":true,"key":"sort","value":"name,createdAt"}],"variable":[]}},"response":[],"_postman_id":"512daee9-b039-4005-b6ce-013afd6f7845"},{"name":"Get Categorie","id":"2a886f78-3d0c-43c4-bca9-36ff306e6b58","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{URL}}/api/v1/categories/68617ec3dbdf155b1c54b6c9","urlObject":{"path":["api","v1","categories","68617ec3dbdf155b1c54b6c9"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"2a886f78-3d0c-43c4-bca9-36ff306e6b58"},{"name":"Update Categorie","id":"7c469f5c-e34e-4f1a-8b5c-7c3d1b28035d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"formdata","formdata":[{"key":" name","value":"Update Category","type":"text","uuid":"8c2d9901-7ee2-425c-ba25-d7ccdef33727","disabled":true},{"key":"image","type":"file","uuid":"41ac4a98-8bd5-49ac-bf4e-454e106e131e","value":null,"disabled":true}]},"url":"{{URL}}/api/v1/categories/d2a7202aa4de476a900323d1","urlObject":{"path":["api","v1","categories","d2a7202aa4de476a900323d1"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"7c469f5c-e34e-4f1a-8b5c-7c3d1b28035d"},{"name":"Delete Categorie","id":"3debd921-f51f-498e-ba1a-c91f4dbb4d51","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"{{URL}}/api/v1/categories/687be84ccffb1bfada591560","urlObject":{"path":["api","v1","categories","687be84ccffb1bfada591560"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"3debd921-f51f-498e-ba1a-c91f4dbb4d51"}],"id":"39c341ca-9c32-4a2a-812e-3b95e5d5e981","description":"<p>Manages product categories.<br />Includes creating, updating, retrieving, and deleting categories.<br />Supports pagination, filtering, sorting, and field limiting.</p>\n","_postman_id":"39c341ca-9c32-4a2a-812e-3b95e5d5e981"},{"name":"SubCategories","item":[{"name":"Create SubCategorie","id":"f364c8c5-cb61-42b2-a6e4-862494d8f009","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\":\"subcategory name\",\r\n    \"category\":\"685c40eae9c1469ae832d017\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/subcategories","urlObject":{"path":["api","v1","subcategories"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"f364c8c5-cb61-42b2-a6e4-862494d8f009"},{"name":"Get All SubCategories","id":"27343900-76f2-4baa-9d0a-c23e0ad094e2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{URL}}/api/v1/subcategories","urlObject":{"path":["api","v1","subcategories"],"host":["{{URL}}"],"query":[{"disabled":true,"key":"page","value":"2"},{"disabled":true,"key":"limit","value":"3"},{"disabled":true,"key":"name","value":"Electronics"},{"disabled":true,"key":"sort","value":"name,createdAt"},{"disabled":true,"key":"fields","value":"name"}],"variable":[]}},"response":[],"_postman_id":"27343900-76f2-4baa-9d0a-c23e0ad094e2"},{"name":"Get SubCategorie","id":"30784f41-b014-4b4a-8fda-538db7e92a46","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/subcategories/685c4ac3bf80d0362de284ff","urlObject":{"path":["api","v1","subcategories","685c4ac3bf80d0362de284ff"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"30784f41-b014-4b4a-8fda-538db7e92a46"},{"name":"Update SubCategorie","id":"c64c82e9-c85f-4731-9d77-2edb2028990b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\":\"Update Subcategory Name\",\r\n    \"category\":\"685a601663ba8b8ce8327517\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/subcategories/685c675c109649df501f51b7","urlObject":{"path":["api","v1","subcategories","685c675c109649df501f51b7"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"c64c82e9-c85f-4731-9d77-2edb2028990b"},{"name":"Delete SubCategorie","id":"cb8adcd5-304e-4b83-b2c4-5ed8779c3d27","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"{{URL}}/api/v1/categories/685a464b25ac685a5feefdfa","urlObject":{"path":["api","v1","categories","685a464b25ac685a5feefdfa"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"cb8adcd5-304e-4b83-b2c4-5ed8779c3d27"}],"id":"e04e4a43-2570-4192-aceb-2cefcaab77f8","description":"<p>Handles subcategories that belong to main categories.<br />Each subcategory is linked to a category and can be managed separately.<br />Supports standard CRUD operations with filtering and pagination.</p>\n","_postman_id":"e04e4a43-2570-4192-aceb-2cefcaab77f8"},{"name":"Category/SubCategory","item":[{"name":"Get all SubCategory on Category","id":"9b068f4d-22b6-49da-8d15-4a2d6494713e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{URL}}/api/v1/categories/685c40eae9c1469ae832d017/subcategories","urlObject":{"path":["api","v1","categories","685c40eae9c1469ae832d017","subcategories"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"9b068f4d-22b6-49da-8d15-4a2d6494713e"},{"name":"Create new SubCategory on Category","id":"50a44df3-bf82-4ce6-bdb7-3de5ac6dc958","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\":\"New SubCategory\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/categories/685c40eae9c1469ae832d017/subcategories/","urlObject":{"path":["api","v1","categories","685c40eae9c1469ae832d017","subcategories",""],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"50a44df3-bf82-4ce6-bdb7-3de5ac6dc958"},{"name":"Get SubCategory on Category","id":"c50b881e-ae42-4629-a576-08464f74d53b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{URL}}/api/v1/categories/685c40eae9c1469ae832d017/subcategories/686f5fad0f980f3e9d384a5a","urlObject":{"path":["api","v1","categories","685c40eae9c1469ae832d017","subcategories","686f5fad0f980f3e9d384a5a"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"c50b881e-ae42-4629-a576-08464f74d53b"}],"id":"7233b9c4-2d7a-48a0-87be-cfd5d8091656","_postman_id":"7233b9c4-2d7a-48a0-87be-cfd5d8091656","description":""},{"name":"Brands","item":[{"name":"Create Brand","id":"0b66599e-76aa-45b9-a106-0664cd126366","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"name","value":"brand name","type":"text","uuid":"0eae583e-cea7-4abe-a7a3-263080b7a9e3"},{"key":"image","type":"file","uuid":"bb1b5321-dedd-4e15-b7ac-156a6b5beb7b","value":null}]},"url":"{{URL}}/api/v1/brands","urlObject":{"path":["api","v1","brands"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"0b66599e-76aa-45b9-a106-0664cd126366"},{"name":"Get All Brands","id":"f3c411ba-b24e-4115-91b7-ca46f781a7e8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{URL}}/api/v1/brands","urlObject":{"path":["api","v1","brands"],"host":["{{URL}}"],"query":[{"disabled":true,"key":"page","value":"2"},{"disabled":true,"key":"limit","value":"3"},{"disabled":true,"key":"name","value":"Electronics"},{"disabled":true,"key":"sort","value":"name,createdAt"},{"disabled":true,"key":"fields","value":"name"}],"variable":[]}},"response":[],"_postman_id":"f3c411ba-b24e-4115-91b7-ca46f781a7e8"},{"name":"Get Brand","id":"b7c7e132-c75a-4b58-a591-dab91e1ba87f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/brands/685d3cefc96de9f4d4b9445e","urlObject":{"path":["api","v1","brands","685d3cefc96de9f4d4b9445e"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"b7c7e132-c75a-4b58-a591-dab91e1ba87f"},{"name":"Update Brand","id":"4253a119-be89-411f-ba1f-c2f20e8801f6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"formdata","formdata":[{"key":"name","value":"update brand name","type":"text","uuid":"bb1db2db-2e9c-4ebe-a9c2-f973cc90c77f","disabled":true},{"key":"image","type":"file","uuid":"871d4a8c-2386-4d4a-945a-a69b759e05df","value":null,"disabled":true}]},"url":"{{URL}}/api/v1/brands/5119c987edaf484d8898c32f","urlObject":{"path":["api","v1","brands","5119c987edaf484d8898c32f"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"4253a119-be89-411f-ba1f-c2f20e8801f6"},{"name":"Delete Brand","id":"bafb8b36-3943-4bf5-8342-875bf4a439ca","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"{{URL}}/api/v1/brands/687bde7c2200556c61b108c6","urlObject":{"path":["api","v1","brands","687bde7c2200556c61b108c6"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"bafb8b36-3943-4bf5-8342-875bf4a439ca"}],"id":"aa84e1ec-a590-40c8-800d-099131ac8bbb","description":"<p>Provides endpoints to manage brand names associated with products.<br />Brands help organize and classify products by manufacturer or label.</p>\n","_postman_id":"aa84e1ec-a590-40c8-800d-099131ac8bbb"},{"name":"Products","item":[{"name":"Create Product","id":"668bb3c3-8f31-48f9-89f4-e01f52daace1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"title","value":"title product","type":"text","uuid":"801838f2-5421-4e3b-a703-b5822571aca6"},{"key":"description","value":"description for the product","type":"text","uuid":"e2bd9fa2-4e4b-4663-ad1f-2df1a718844f"},{"key":"quantity","value":"100","type":"text","uuid":"8382bc8d-ca87-425b-9147-f9f3c4c4450f"},{"key":"price","value":"30000","type":"text","uuid":"fe1aef49-8b28-4561-92fc-c7204d54467a"},{"key":"priceAfterDiscount","value":"25000","type":"text","uuid":"ac08e989-b089-4dbc-afdf-ef8515771906"},{"key":"imageCover","type":"file","uuid":"cc7cfbf6-e88f-4405-a85e-5d82325bcd84","value":null},{"key":"images","type":"file","uuid":"4e33df97-214b-45ea-8007-3a0cdf0f8eb5","value":null},{"key":"category","value":"d2a7202aa4de476a900323d1","type":"text","uuid":"1df5d6f2-5f8b-4191-b8c6-d0d445f5f778"},{"key":"subcategories","value":"60145f1a38c044f6a47909cb","type":"text","uuid":"51ce9a43-2052-4663-bf1c-b1bbbf237984"},{"key":"subcategories","value":"014741db66124055991704f9","type":"text","uuid":"e9f70c4b-3635-4f8c-bd07-3352f4f11766"},{"key":"brand","value":"5119c987edaf484d8898c32f","type":"text","uuid":"e833ead8-e6a6-429b-a194-7719ddf2b6a8"},{"key":"ratingsAverage","value":"4.8","type":"text","uuid":"30d821bc-5d56-474f-bfe1-89abfeba668f"},{"key":"ratingsQuantity","value":"100","type":"text","uuid":"172f5ca0-99cb-4596-aad2-c287b0fbf74f"},{"key":"colors","value":"red","type":"text","uuid":"46312e92-1641-4d54-b39f-1b31ee2501aa"},{"key":"colors","value":"black","type":"text","uuid":"62d17a31-c810-4eae-b91a-69a6ac9c18b1"}]},"url":"{{URL}}/api/v1/products","urlObject":{"path":["api","v1","products"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"668bb3c3-8f31-48f9-89f4-e01f52daace1"},{"name":"Get All Products","id":"5ecb8b16-ac7c-4cf6-a897-af3e1ed98b69","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{URL}}/api/v1/products","urlObject":{"path":["api","v1","products"],"host":["{{URL}}"],"query":[{"disabled":true,"key":"page","value":"2"},{"disabled":true,"key":"limit","value":"3"},{"disabled":true,"key":"name","value":"Electronics"},{"disabled":true,"key":"sort","value":"name,createdAt"},{"disabled":true,"key":"fields","value":"name"},{"disabled":true,"key":"price","value":"32000"},{"disabled":true,"key":"keyword","value":"Logitech"},{"disabled":true,"key":"price","value":"42000"}],"variable":[]}},"response":[],"_postman_id":"5ecb8b16-ac7c-4cf6-a897-af3e1ed98b69"},{"name":"Get Product","id":"a69b6a68-7008-40ec-a224-c9813b056268","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/products/6877853d15e36a0d951cb9f9","urlObject":{"path":["api","v1","products","6877853d15e36a0d951cb9f9"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"a69b6a68-7008-40ec-a224-c9813b056268"},{"name":"Update Product","id":"b2bad26a-362e-46e8-a0c4-62f80311756a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"formdata","formdata":[{"key":"title","value":"update product","type":"text","uuid":"60ee32d5-3cb7-465c-9b3e-81f6ed078ba6","disabled":true},{"key":"description","value":"description for the product","type":"text","uuid":"033af20e-b275-4849-bdf1-4d74b9dc91dd","disabled":true},{"key":"quantity","value":"100","type":"text","uuid":"925183bd-dc3e-4822-8090-3f00fba738f5","disabled":true},{"key":"price","value":"300001","type":"text","uuid":"6bdc1584-37c1-4823-be97-29f556a65d45","disabled":true},{"key":"priceAfterDiscount","value":"25000","type":"text","uuid":"dbc18f2c-19c1-400f-ac85-4b34e4f39791","disabled":true},{"key":"imageCover","type":"file","uuid":"8833f356-b72b-43e9-a40b-5ae1325d112b","value":null,"disabled":true},{"key":"images","type":"file","uuid":"ed83a485-1aba-43c2-b60a-a6f521a0a5c6","value":null,"disabled":true},{"key":"category","value":"685a462725ac685a5feefdf6","type":"text","uuid":"ea85874d-75fe-4f56-986c-9be6aa5d818b","disabled":true},{"key":"subcategories","value":"685c4b5ed3c51216562933a2","type":"text","uuid":"00cc249d-58b5-430f-8fdd-3860b757e574","disabled":true},{"key":"subcategories","value":"4bab686cab2d41b6bebb5dcb","type":"text","uuid":"5f18e1db-cbc4-4b70-a110-d20d4722499a","disabled":true},{"key":"brand","value":"685d3cefc96de9f4d4b9445e","type":"text","uuid":"3ba77603-ac38-4039-888e-850434c1b0a9","disabled":true},{"key":"ratingsAverage","value":"4.9","type":"text","uuid":"5df54ce6-f68a-4ca1-80f1-022d056eecb5","disabled":true},{"key":"ratingsQuantity","value":"100","type":"text","uuid":"8361e1a1-4324-45c9-8a7a-a398cc3820f1","disabled":true},{"key":"colors","value":"red","type":"text","uuid":"f5913bcb-32c3-4d7c-9433-3ff254aef977","disabled":true},{"key":"colors","value":"black","type":"text","uuid":"e19f960d-fbae-4494-aa15-a96d68451ba5","disabled":true}]},"url":"{{URL}}/api/v1/products/687bdb452200556c61b108b9","urlObject":{"path":["api","v1","products","687bdb452200556c61b108b9"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"b2bad26a-362e-46e8-a0c4-62f80311756a"},{"name":"Delete Product","id":"f1f5606e-006f-46bb-87da-e80f9cd9d11b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"{{URL}}/api/v1/products/687bdb452200556c61b108b9","urlObject":{"path":["api","v1","products","687bdb452200556c61b108b9"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"f1f5606e-006f-46bb-87da-e80f9cd9d11b"}],"id":"ab19552b-fcff-4040-9d69-0ab78b326af0","description":"<p>Handles all product-related operations.<br />Includes creating products with images and variants, updating details, filtering, searching, and more.<br />Supports dynamic querying for advanced product listing.</p>\n","_postman_id":"ab19552b-fcff-4040-9d69-0ab78b326af0"},{"name":"Users (Admin)","item":[{"name":"Create User","id":"9c109e7c-8214-4915-8af9-f756ad10d79f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"name","value":"momen","type":"text","uuid":"c862c824-e471-4d97-85a1-03b4da91c62b"},{"key":"email","value":"momen@example.com","type":"text","uuid":"a8cd17d7-a4c7-4fab-930b-dd7e8bbdd7e6"},{"key":"password","value":"Test@1234","type":"text","uuid":"174c93e8-fdf5-4cf6-8a59-93eb6c7f6776"},{"key":"role","value":"admin","type":"text","uuid":"c3f45edf-4562-48d5-ab19-782871fa3d59"},{"key":"profileImage","type":"file","uuid":"5ef92a5c-1af3-4456-9d8d-0896d75c1188","value":null},{"key":"phone","value":"0123456789","type":"text","uuid":"3bc032f9-92d8-4801-a4f0-3d41c17820c0"},{"key":"passwordConfirm","value":"Test@1234","type":"text","uuid":"34be9d1d-bbf7-441e-842a-943a4cdb1f44"}]},"url":"{{URL}}/api/v1/users","urlObject":{"path":["api","v1","users"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"9c109e7c-8214-4915-8af9-f756ad10d79f"},{"name":"Get All Users","id":"94d4beca-c21b-46b7-a44a-ad1534eb2280","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{URL}}/api/v1/users","urlObject":{"path":["api","v1","users"],"host":["{{URL}}"],"query":[{"disabled":true,"key":"page","value":"2"},{"disabled":true,"key":"limit","value":"3"},{"disabled":true,"key":"name","value":"Electronics"},{"disabled":true,"key":"sort","value":"name,createdAt"},{"disabled":true,"key":"fields","value":"name"}],"variable":[]}},"response":[],"_postman_id":"94d4beca-c21b-46b7-a44a-ad1534eb2280"},{"name":"Get User","id":"7974ecfe-6885-4dd4-834a-67f1964db724","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{URL}}/api/v1/users/686b39812120f9cc852a2b8d","urlObject":{"path":["api","v1","users","686b39812120f9cc852a2b8d"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"7974ecfe-6885-4dd4-834a-67f1964db724"},{"name":"Update User","id":"ff29c61e-0aec-4df3-90c0-936024b60444","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"formdata","formdata":[{"key":"name","value":"new name","type":"text","uuid":"51c97f64-241e-4f42-b357-4293ab175982","disabled":true},{"key":"profileImage","type":"file","uuid":"82494c08-a074-4170-bb46-914be52ed3b1","value":null,"disabled":true}]},"url":"{{URL}}/api/v1/users/60f6b123b7c3f2a5a0d9b1b1","urlObject":{"path":["api","v1","users","60f6b123b7c3f2a5a0d9b1b1"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"ff29c61e-0aec-4df3-90c0-936024b60444"},{"name":"Change User Password","id":"9685f7ec-567d-4e4e-a94d-763741aef889","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n\r\n    \"password\":\"Test@1234\",\r\n    \"passwordConfirm\":\"Test@1234\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/users/changeUserPassword/686829dd10338651a05d6cbd","urlObject":{"path":["api","v1","users","changeUserPassword","686829dd10338651a05d6cbd"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"9685f7ec-567d-4e4e-a94d-763741aef889"},{"name":"Delete User","id":"350baf5f-d59f-43ca-b811-d2fa21f19938","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"{{URL}}/api/v1/users/6877cb76dd0cadcde6c98a42","urlObject":{"path":["api","v1","users","6877cb76dd0cadcde6c98a42"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"350baf5f-d59f-43ca-b811-d2fa21f19938"}],"id":"fd32ff56-61d9-48c1-ab4f-67ac407d8025","description":"<p>Provides endpoints to manage user accounts and profiles.<br />Includes fetching all users, accessing single user details, updating user data, and deleting accounts.<br />Admin-level routes are protected.</p>\n","_postman_id":"fd32ff56-61d9-48c1-ab4f-67ac407d8025"},{"name":"Current User","item":[{"name":"Get Current Me","id":"1b2f236d-ea8c-4e35-b446-a2ecc7bd1fe5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{URL}}/api/v1/users/me","urlObject":{"path":["api","v1","users","me"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"1b2f236d-ea8c-4e35-b446-a2ecc7bd1fe5"},{"name":"Delete Current User","id":"150db377-90ce-4a4e-9dbe-8329920272e3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"{{URL}}/api/v1/users/deleteMe","urlObject":{"path":["api","v1","users","deleteMe"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"150db377-90ce-4a4e-9dbe-8329920272e3"},{"name":"Update Current User Password","id":"0990ed7b-b661-4523-a3e7-188cb21bbc07","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n    \"currentPassword\":\"Test@1234\",\r\n    \"password\":\"New password\",\r\n    \"passwordConfirm\":\"New password\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/users/updateMePassword","urlObject":{"path":["api","v1","users","updateMePassword"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"0990ed7b-b661-4523-a3e7-188cb21bbc07"},{"name":"Update Current User Data","id":"91197125-f8ac-4ecb-a09f-fd6bda964bcf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"formdata","formdata":[{"key":"email","value":"momen@example.com","type":"text","uuid":"d999e35e-deff-4711-b03a-da42fcbb737a","disabled":true},{"key":"name","value":"momen","type":"text","uuid":"466cfcb3-bb88-4b69-81bf-260ad8fa0a15","disabled":true},{"key":"phone","value":"0123456789","type":"text","uuid":"57c2b93e-0389-4bd0-bef9-f4e74ccdf632","disabled":true},{"key":"profileImage","type":"file","uuid":"09b95b8e-8a07-4244-8482-0fdc3d98d603","value":null,"disabled":true}]},"url":"{{URL}}/api/v1/users/updateMe","urlObject":{"path":["api","v1","users","updateMe"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"91197125-f8ac-4ecb-a09f-fd6bda964bcf"}],"id":"1c965fc0-c78f-4919-a69a-926d61c48a8f","_postman_id":"1c965fc0-c78f-4919-a69a-926d61c48a8f","description":""},{"name":"Reviews","item":[{"name":"Create Review","id":"6829c362-35c9-497b-adfd-c19e8a7673fe","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"title\":\"good product\",\r\n    \"product\":\"6863c1df3b9f4326527599d2\",\r\n    \"ratings\":4.9\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/reviews","urlObject":{"path":["api","v1","reviews"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"6829c362-35c9-497b-adfd-c19e8a7673fe"},{"name":"Get All Reviews","id":"b402b9f2-41c9-47e8-8fc3-676df74efef9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{URL}}/api/v1/reviews","urlObject":{"path":["api","v1","reviews"],"host":["{{URL}}"],"query":[{"disabled":true,"key":"page","value":"2"},{"disabled":true,"key":"limit","value":"3"},{"disabled":true,"key":"name","value":"Electronics"},{"disabled":true,"key":"sort","value":"name,createdAt"},{"disabled":true,"key":"fields","value":"name"}],"variable":[]}},"response":[],"_postman_id":"b402b9f2-41c9-47e8-8fc3-676df74efef9"},{"name":"Get Review","id":"21445d16-6993-450f-84c6-2bd9e4c3030f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/reviews/686de02e8b44fc181fe054fe","urlObject":{"path":["api","v1","reviews","686de02e8b44fc181fe054fe"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"21445d16-6993-450f-84c6-2bd9e4c3030f"},{"name":"Update Review","id":"4f95248d-de92-4810-9a6c-c61adf747188","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n    \"title\":\"update review\",\r\n    \"ratings\":5\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/reviews/6870c9379dca065041709bc8","urlObject":{"path":["api","v1","reviews","6870c9379dca065041709bc8"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"4f95248d-de92-4810-9a6c-c61adf747188"},{"name":"Delete Review","id":"7ba1fdfa-e2a6-400f-9a39-06d54405812b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"{{URL}}/api/v1/reviews/6870c8e59dca065041709b88","urlObject":{"path":["api","v1","reviews","6870c8e59dca065041709b88"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"7ba1fdfa-e2a6-400f-9a39-06d54405812b"}],"id":"4448dfca-3434-4662-aa26-62922e137b52","description":"<p>Allows users to leave reviews and ratings on products.<br />Each review is linked to a user and a product.<br />Admin can moderate or remove inappropriate reviews.</p>\n","_postman_id":"4448dfca-3434-4662-aa26-62922e137b52"},{"name":"Product/Review","item":[{"name":"Get all Reviews on Product","id":"a8860fe8-1549-4d78-89c7-21239e757d43","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{URL}}/api/v1/products/685fb435d772a19328b35bca/reviews","urlObject":{"path":["api","v1","products","685fb435d772a19328b35bca","reviews"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"a8860fe8-1549-4d78-89c7-21239e757d43"},{"name":"Create new Review on Product","id":"f5105ea3-5e8a-4688-86c7-6acad6e06b39","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"title\":\"nice product\",\r\n    \"ratings\":4.5\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/products/685fb435d772a19328b35bca/reviews","urlObject":{"path":["api","v1","products","685fb435d772a19328b35bca","reviews"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"f5105ea3-5e8a-4688-86c7-6acad6e06b39"},{"name":"Get Review on Product","id":"ac0e6646-8a27-4ded-8479-2d78436fae5e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{URL}}/api/v1/products/6863c1df3b9f4326527599d2/reviews/686f5be47d2c9eb5d19648a0","urlObject":{"path":["api","v1","products","6863c1df3b9f4326527599d2","reviews","686f5be47d2c9eb5d19648a0"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"ac0e6646-8a27-4ded-8479-2d78436fae5e"}],"id":"b45fa8bd-b9d5-4826-b6e7-94828bcd9540","_postman_id":"b45fa8bd-b9d5-4826-b6e7-94828bcd9540","description":""},{"name":"Wishlist","item":[{"name":"Get Wishlist","id":"94898896-3bc6-4e32-80d8-922100eb2401","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{URL}}/api/v1/wishlist","urlObject":{"path":["api","v1","wishlist"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"94898896-3bc6-4e32-80d8-922100eb2401"},{"name":"Add Product to Wishlist","id":"bdc5700c-6e4c-4799-acd5-229e1a1f7bff","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"url":"{{URL}}/api/v1/wishlist/6877853d15e36a0d951cb9f8","urlObject":{"path":["api","v1","wishlist","6877853d15e36a0d951cb9f8"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"bdc5700c-6e4c-4799-acd5-229e1a1f7bff"},{"name":"Delete Product from Wishlist","id":"b41fc743-a5c8-420f-bcb3-4a3cd2426234","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"{{URL}}/api/v1/wishlist/685fb435d772a19328b35bce","urlObject":{"path":["api","v1","wishlist","685fb435d772a19328b35bce"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"b41fc743-a5c8-420f-bcb3-4a3cd2426234"}],"id":"091bc647-6ec9-40f3-a569-df7c03436f13","description":"<p>Allows users to mark products they are interested in for later.<br />Wishlist items are stored per user.<br />Users can add or remove products from their wishlist.</p>\n","_postman_id":"091bc647-6ec9-40f3-a569-df7c03436f13"},{"name":"User Addresses","item":[{"name":"Get Addresses","id":"75d853ce-8976-4a4f-9fc7-89850c17d147","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{URL}}/api/v1/addresses","urlObject":{"path":["api","v1","addresses"],"host":["{{URL}}"],"query":[{"disabled":true,"key":"page","value":"2"},{"disabled":true,"key":"limit","value":"3"},{"disabled":true,"key":"name","value":"Electronics"},{"disabled":true,"key":"sort","value":"name,createdAt"},{"disabled":true,"key":"fields","value":"name"}],"variable":[]}},"response":[],"_postman_id":"75d853ce-8976-4a4f-9fc7-89850c17d147"},{"name":"Add Address","id":"28579996-4632-4e0f-91be-5d47361bbf74","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n        \"location\": \"cairo-elshrock-200-1\",\r\n        \"phone\": \"0123456789\",\r\n        \"city\": \"cairo\",\r\n        \"label\": \"home\"\r\n\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/addresses","urlObject":{"path":["api","v1","addresses"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"28579996-4632-4e0f-91be-5d47361bbf74"},{"name":"Update Address","id":"92a3a9a8-b823-441f-8138-070e8707eea2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n\r\n        \"location\": \"update location\",\r\n        \"phone\": \"update phone\",\r\n        \"city\": \"update city\",\r\n        \"label\": \"update label\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/addresses/68719e18c36772c2d4bc6f96","urlObject":{"path":["api","v1","addresses","68719e18c36772c2d4bc6f96"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"92a3a9a8-b823-441f-8138-070e8707eea2"},{"name":"Delete Address","id":"d9cb3f77-7636-49f3-b6db-b2208423480f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"{{URL}}/api/v1/addresses/68773785f834bf4b80683813","urlObject":{"path":["api","v1","addresses","68773785f834bf4b80683813"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"d9cb3f77-7636-49f3-b6db-b2208423480f"}],"id":"85e5e77a-4628-49e0-ad8f-60e63ebdd18d","description":"<p>Manages user shipping addresses.<br />Users can add, update, delete, and select default addresses for their orders.<br />Each address is associated with the authenticated user.</p>\n","_postman_id":"85e5e77a-4628-49e0-ad8f-60e63ebdd18d"},{"name":"Coupons","item":[{"name":"Create Coupon","id":"8c9cbec0-f041-444e-adeb-c2d1f160b03c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"SUMMER2026\",\r\n  \"discount\": 15,\r\n  \"expire\": \"2025-12-31\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/coupons","urlObject":{"path":["api","v1","coupons"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"8c9cbec0-f041-444e-adeb-c2d1f160b03c"},{"name":"Get All Coupons","id":"2d949f55-7ef4-4b24-8e4e-56baa2f2b616","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{URL}}/api/v1/coupons","urlObject":{"path":["api","v1","coupons"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"2d949f55-7ef4-4b24-8e4e-56baa2f2b616"},{"name":"Get Coupons","id":"aeb46bab-5c49-49c0-8e48-aa178465cb1b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/coupons/6871ceb4622194546b13f8a5","urlObject":{"path":["api","v1","coupons","6871ceb4622194546b13f8a5"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"aeb46bab-5c49-49c0-8e48-aa178465cb1b"},{"name":"Get Active Coupons","id":"aab7d65c-daf8-4e66-93c2-0bfdfb070f28","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{URL}}/api/v1/coupons/active","urlObject":{"path":["api","v1","coupons","active"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"aab7d65c-daf8-4e66-93c2-0bfdfb070f28"},{"name":"Update Coupon","id":"35eea208-ed79-40f0-8694-6d0c1ab8c2ba","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n      \"discount\": 30\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/coupons/6871ceb4622194546b13f8a5","urlObject":{"path":["api","v1","coupons","6871ceb4622194546b13f8a5"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"35eea208-ed79-40f0-8694-6d0c1ab8c2ba"},{"name":"Delete Coupons","id":"c3dfcb5d-e982-4f8d-a7f4-59fbed281d62","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"{{URL}}/api/v1/coupons/6871cfa5622194546b13f8c1","urlObject":{"path":["api","v1","coupons","6871cfa5622194546b13f8c1"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"c3dfcb5d-e982-4f8d-a7f4-59fbed281d62"}],"id":"33715b12-4167-49f3-88fd-e1c4dbbe1e7d","description":"<p>Manages discount codes that users can apply during checkout.<br />Admin can create, update, and deactivate coupons.<br />Validation logic is enforced when applying codes to orders.</p>\n","_postman_id":"33715b12-4167-49f3-88fd-e1c4dbbe1e7d"},{"name":"Cart","item":[{"name":"Add item to Cart","id":"43647b20-95cf-4111-b5da-bdb56cf95973","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"product\": \"6877853d15e36a0d951cb9f9\",\r\n  \"quantity\": 1,\r\n  \"color\":\"black\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/cart","urlObject":{"path":["api","v1","cart"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"43647b20-95cf-4111-b5da-bdb56cf95973"},{"name":"Get My Cart","id":"d8551b7e-d8aa-428f-bc14-f1670aed577f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{URL}}/api/v1/cart/myCart","urlObject":{"path":["api","v1","cart","myCart"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"d8551b7e-d8aa-428f-bc14-f1670aed577f"},{"name":"Update Item Quantity in Cart","id":"3ea3ad4d-3d2f-44a9-a1cb-55e38ca9f4a3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n    \"quantity\":5,\r\n    \"color\":\"black\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/cart/6877853d15e36a0d951cb9f9","urlObject":{"path":["api","v1","cart","6877853d15e36a0d951cb9f9"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"3ea3ad4d-3d2f-44a9-a1cb-55e38ca9f4a3"},{"name":"Apply Coupon","id":"17b93343-e703-4ca0-8975-c46dcf4dd92d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\":\"SUMMER2025\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/cart/apply-coupon","urlObject":{"path":["api","v1","cart","apply-coupon"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"17b93343-e703-4ca0-8975-c46dcf4dd92d"},{"name":"Remove Coupon","id":"4ed4b97f-9a1d-4a7e-84b8-ae30014ca0bf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"url":"{{URL}}/api/v1/cart/remove-coupon","urlObject":{"path":["api","v1","cart","remove-coupon"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"4ed4b97f-9a1d-4a7e-84b8-ae30014ca0bf"},{"name":"Remove item from Cart","id":"62f34886-083e-4860-b0d0-b6b5e58b2ad3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"{{URL}}/api/v1/cart/687385d07220fc6436f978c6","urlObject":{"path":["api","v1","cart","687385d07220fc6436f978c6"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"62f34886-083e-4860-b0d0-b6b5e58b2ad3"},{"name":"Clear Cart","id":"5907b284-0c90-46e5-8ee1-49f33c0bca50","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"{{URL}}/api/v1/cart/clear","urlObject":{"path":["api","v1","cart","clear"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"5907b284-0c90-46e5-8ee1-49f33c0bca50"}],"id":"0b1e34c1-5d7f-47b3-a98d-22a36697d7bd","description":"<p>Allows authenticated users to add products to their shopping cart, update quantities, and remove items.<br />Cart operations are tied to the logged-in user session.</p>\n","_postman_id":"0b1e34c1-5d7f-47b3-a98d-22a36697d7bd"},{"name":"Order","item":[{"name":"Create Cash Order","id":"8724695e-eef2-4359-b0cb-2f81dacac4ab","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"\r\n{\r\n    \"addressIndex\":1\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/orders","urlObject":{"path":["api","v1","orders"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"8724695e-eef2-4359-b0cb-2f81dacac4ab"},{"name":"Get User Orders","id":"cc95f6a0-4b19-424d-b3de-1c294b9d8cdf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"{\r\n  \"shippingAddress\": {\r\n    \"location\": \"123 El Tahrir St\",\r\n    \"city\": \"Cairo\",\r\n    \"phone\": \"01123456789\",\r\n    \"label\": \"home\"\r\n  }\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/orders/my-orders","urlObject":{"path":["api","v1","orders","my-orders"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"cc95f6a0-4b19-424d-b3de-1c294b9d8cdf"},{"name":"Get Order","id":"4cbf4ceb-c9a3-4b83-b40d-250f8919a908","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"{\r\n  \"shippingAddress\": {\r\n    \"location\": \"123 El Tahrir St\",\r\n    \"city\": \"Cairo\",\r\n    \"phone\": \"01123456789\",\r\n    \"label\": \"home\"\r\n  }\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/orders/687791da8dc06fe695c385fc","urlObject":{"path":["api","v1","orders","687791da8dc06fe695c385fc"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"4cbf4ceb-c9a3-4b83-b40d-250f8919a908"},{"name":"Get All Orders","id":"fd29e70d-0719-484b-834b-8610fb5a96f9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{URL}}/api/v1/orders","urlObject":{"path":["api","v1","orders"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"fd29e70d-0719-484b-834b-8610fb5a96f9"},{"name":"update Order Status","id":"52861b68-f84d-489c-aa4d-77bf0f4bc246","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n    \"status\":\"processing\",\r\n    \"isPaid\":true,\r\n    \"isDelivered\":true,\r\n    \"paidAt\":\"2025-07-16T13:30:00.000Z\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/orders/687879d5b93c1ad3831c9f37","urlObject":{"path":["api","v1","orders","687879d5b93c1ad3831c9f37"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"52861b68-f84d-489c-aa4d-77bf0f4bc246"},{"name":"Delete Order","id":"73ea5c0e-e41e-4d54-86e5-48762b41a493","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"{{URL}}/api/v1/orders/687791da8dc06fe695c385fc","urlObject":{"path":["api","v1","orders","687791da8dc06fe695c385fc"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"73ea5c0e-e41e-4d54-86e5-48762b41a493"},{"name":"Pay with Card","id":"da992452-6904-49b7-8692-5c8feacd5aeb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"{\r\n    \"shippingAddress\":{\r\n       \r\n        \"location\": \"cairo-elshrock-88-1\",\r\n        \"phone\": \"012345678910\",\r\n        \"city\": \"cairo\",\r\n        \"label\":\"work\"\r\n    }\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/orders/create-checkout-session/687a0a509c1d614635c70cad","urlObject":{"path":["api","v1","orders","create-checkout-session","687a0a509c1d614635c70cad"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"da992452-6904-49b7-8692-5c8feacd5aeb"}],"id":"f80f4112-f6f0-41b2-9397-45fc7a4c11bd","description":"<p>Processes user orders based on cart contents.<br />Includes creating orders, payment status updates, tracking, and viewing order history.<br />Admin can view and manage all orders.</p>\n","_postman_id":"f80f4112-f6f0-41b2-9397-45fc7a4c11bd"},{"name":"Settings","item":[{"name":"Update Settings","id":"1cb398f2-aa27-4620-b3d3-79ca612fa466","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"shippingPrice\": 50,\r\n    \"freeShippingThreshold\": 5000,\r\n    \"taxRate\": 14\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/settings","urlObject":{"path":["api","v1","settings"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"1cb398f2-aa27-4620-b3d3-79ca612fa466"},{"name":"Get Settings","id":"2f54e4de-1f1a-4398-867f-e2f5a0988248","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{URL}}/api/v1/settings","urlObject":{"path":["api","v1","settings"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"2f54e4de-1f1a-4398-867f-e2f5a0988248"}],"id":"bbc0cf64-f8c6-4e97-86e9-6d51d9c70e9d","description":"<p>Provides configuration values that affect global behavior of the system.</p>\n<p>This includes:</p>\n<ul>\n<li><p>shippingPrice: (number) Flat shipping fee applied to orders.</p>\n</li>\n<li><p>freeShippingThreshold: (number) The minimum order total required to qualify for free shipping.</p>\n</li>\n<li><p>taxRate: (number) The tax percentage applied to the total order amount.</p>\n</li>\n</ul>\n<p>Typically used by admin to update or retrieve application-wide settings that are referenced in checkout, orders, and invoices.</p>\n","_postman_id":"bbc0cf64-f8c6-4e97-86e9-6d51d9c70e9d"}]}