{"info":{"_postman_id":"7f9bc9fd-bcb5-4092-a203-5447850a8eeb","name":"forever","description":"<html><head></head><body><p><strong>Forever</strong> is a full-stack E-Commerce REST API built to support a modern online shopping platform.  </p>\n<p>The API includes user authentication, product management, cart functionality, order processing, and payment integrations (Stripe &amp; Razorpay).  </p>\n<p>It follows a role-based access model with separate user and admin capabilities, ensuring secure and scalable operations.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"39216531","collectionId":"7f9bc9fd-bcb5-4092-a203-5447850a8eeb","publishedId":"2sBXVeFXoG","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2026-01-08T05:36:58.000Z"},"item":[{"name":"user","item":[{"name":"Register","id":"7fb7d333-3770-442c-9736-e0d73f8d0aff","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"name\": \"Test User\",\r\n  \"email\": \"test@example.com\",\r\n  \"password\": \"password123\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://ecommerce-app-axjc.onrender.com/api/user/register","description":"<p>This API is used to register a new user in the system.</p>\n<p>It accepts basic user details like name, email, and password.</p>\n<p>After successful registration, a JWT token is generated and returned, which can be used for authenticated requests.</p>\n","urlObject":{"protocol":"https","path":["api","user","register"],"host":["ecommerce-app-axjc","onrender","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"7fb7d333-3770-442c-9736-e0d73f8d0aff"},{"name":"login","id":"0e416fbb-5955-463f-8826-b6a22e7a2910","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"email\": \"test@example.com\",\r\n  \"password\": \"password123\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://ecommerce-app-axjc.onrender.com/api/user/login","description":"<p>This API allows an existing user to log in using email and password.</p>\n<p>On successful authentication, a JWT token is returned.</p>\n<p>This token must be sent in protected APIs to access user-specific resources.</p>\n","urlObject":{"protocol":"https","path":["api","user","login"],"host":["ecommerce-app-axjc","onrender","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"0e416fbb-5955-463f-8826-b6a22e7a2910"},{"name":"product list","id":"bcd93dec-4aea-48d0-a564-7365797995cf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"https://ecommerce-app-axjc.onrender.com/api/product/list","urlObject":{"protocol":"https","path":["api","product","list"],"host":["ecommerce-app-axjc","onrender","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"bcd93dec-4aea-48d0-a564-7365797995cf"},{"name":"cart data","id":"d8d39e93-8441-4996-844d-44ec078255ef","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{}","options":{"raw":{"language":"json"}}},"url":"https://ecommerce-app-axjc.onrender.com/api/cart/get","description":"<p>This API retrieves the logged-in user's cart data.</p>\n<p>It returns product IDs with selected sizes and quantities.</p>\n<p>Requires a valid user token.</p>\n","urlObject":{"protocol":"https","path":["api","cart","get"],"host":["ecommerce-app-axjc","onrender","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"d8d39e93-8441-4996-844d-44ec078255ef"},{"name":"order","id":"948f6636-1677-42c5-81f7-e876c07a2332","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"items\": [\r\n    {\r\n      \"productId\": \"PROD001\",\r\n      \"name\": \"T-Shirt\",\r\n      \"quantity\": 2,\r\n      \"price\": 499\r\n    },\r\n    {\r\n      \"productId\": \"PROD002\",\r\n      \"name\": \"Jeans\",\r\n      \"quantity\": 1,\r\n      \"price\": 1299\r\n    }\r\n  ],\r\n  \"amount\": 3000,\r\n  \"address\": {\r\n    \"name\": \"Kiran Dekaliya\",\r\n    \"phone\": \"9999999999\",\r\n    \"street\": \"Main Road\",\r\n    \"city\": \"Ahmedabad\",\r\n    \"state\": \"Gujarat\",\r\n    \"pincode\": \"380001\"\r\n  },\r\n  \"paymentMethod\": \"COD\",\r\n  \"payment\": false,\r\n  \"date\": 1735641600000\r\n}\r\n\r\n","options":{"raw":{"language":"json"}}},"url":"https://ecommerce-app-axjc.onrender.com/api/order/place","description":"<p>This API places an order using Cash on Delivery (COD) payment method.</p>\n<p>It accepts cart items, total amount, and delivery address details.</p>\n<p>Requires user authentication.</p>\n","urlObject":{"protocol":"https","path":["api","order","place"],"host":["ecommerce-app-axjc","onrender","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"948f6636-1677-42c5-81f7-e876c07a2332"},{"name":"userorder","id":"2ca9cf8b-b217-4a0a-9e7c-a82dffbc6655","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{}","options":{"raw":{"language":"json"}}},"url":"https://ecommerce-app-axjc.onrender.com/api/order/userorders","description":"<p>This API fetches all orders placed by the logged-in user.  </p>\n<p>It includes order details, payment status, delivery address, and order status.  </p>\n<p>Requires user authentication.</p>\n","urlObject":{"protocol":"https","path":["api","order","userorders"],"host":["ecommerce-app-axjc","onrender","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"2ca9cf8b-b217-4a0a-9e7c-a82dffbc6655"},{"name":"stripe","id":"3deee182-f8f6-4555-b6a2-e5fbaccd94e1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"items\": [\r\n    {\r\n      \"productId\": \"PROD001\",\r\n      \"name\": \"T-Shirt\",\r\n      \"quantity\": 2,\r\n      \"price\": 499\r\n    },\r\n    {\r\n      \"productId\": \"PROD002\",\r\n      \"name\": \"Jeans\",\r\n      \"quantity\": 1,\r\n      \"price\": 1299\r\n    }\r\n  ],\r\n  \"amount\": 3000,\r\n  \"address\": {\r\n    \"name\": \"Kiran Dekaliya\",\r\n    \"phone\": \"9999999999\",\r\n    \"street\": \"Main Road\",\r\n    \"city\": \"Ahmedabad\",\r\n    \"state\": \"Gujarat\",\r\n    \"pincode\": \"380001\"\r\n  },\r\n  \"paymentMethod\": \"COD\",\r\n  \"payment\": false,\r\n  \"date\": 1735641600000\r\n}\r\n\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:4000/api/order/stripe","description":"<p>This API initiates a Stripe payment session for online payment.</p>\n<p>It creates a secure Stripe checkout session and returns a session URL.</p>\n<p>The user is redirected to Stripe for payment completion.</p>\n","urlObject":{"protocol":"http","port":"4000","path":["api","order","stripe"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"3deee182-f8f6-4555-b6a2-e5fbaccd94e1"}],"id":"dd323c91-bb6d-4c3e-851d-f7f2d2b3df5e","description":"<blockquote>\n</blockquote>\n<p>The <strong>User APIs</strong> handle all customer-side functionalities of the Forever platform.  </p>\n<p>These APIs allow users to register, log in, browse products, manage their cart, place orders, and make online payments.  </p>\n<p>User authentication is managed using JWT tokens, which are required for accessing protected user routes.</p>\n<h3 id=\"user-capabilities\">User Capabilities:</h3>\n<ul>\n<li><p>Register and login securely</p>\n</li>\n<li><p>View product listings and product details</p>\n</li>\n<li><p>Add, update, and view cart items</p>\n</li>\n<li><p>Place orders using COD, Stripe, or Razorpay</p>\n</li>\n<li><p>View their order history and payment status</p>\n</li>\n</ul>\n","_postman_id":"dd323c91-bb6d-4c3e-851d-f7f2d2b3df5e"},{"name":"admin","item":[{"name":"admin","id":"e1ccf13f-a330-4d86-a7d4-8ca6e1392b07","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"email\": \"admin@forever.com\",\r\n  \"password\": \"qwerty123\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:4000/api/user/admin","description":"<p>This API is used for admin authentication.</p>\n<p>Admin credentials are validated using environment variables for security.</p>\n<p>On successful login, an admin JWT token is returned, which is required to access admin-only APIs.</p>\n","urlObject":{"protocol":"http","port":"4000","path":["api","user","admin"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"e1ccf13f-a330-4d86-a7d4-8ca6e1392b07"},{"name":"list","id":"cc37f7c8-f1dd-4768-a027-7b989f5dab63","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"body":{"mode":"formdata","formdata":[{"key":"name","type":"text","uuid":"e4aabb7d-b12c-42c4-9285-ffb4a0a998cb","value":"kiran"},{"key":"description","value":"testing","type":"text","uuid":"fe186584-61c2-47d8-b0a2-5be960882c81"},{"key":"price","value":"10","type":"text","uuid":"12743a0c-b009-4e29-8913-c88b145c06f0"},{"key":"bestseller ","value":"true","type":"text","uuid":"b40735bb-d110-45ae-8098-1739b38ea4e2"},{"key":"category","value":"women","type":"text","uuid":"d4f39148-3948-42b5-bd64-cab1f1f5f223"},{"key":"subCategory","value":"topwear","type":"text","uuid":"12595aba-c47d-499b-9335-39d848519476"},{"key":"sizes","value":"[\"M\"]","type":"text","uuid":"87bb3503-d450-4ee9-ae30-98039ffc2cac"},{"key":"image1","type":"file","uuid":"32e65ad3-d646-4ef0-82d2-d54fd4217f41","src":"/D:/Ecommerce-app/frotend/src/assets/women.png"},{"key":"image2","type":"file","uuid":"3ed23c48-b28d-4151-9b2c-11f5ed2e456e","src":"/D:/Ecommerce-app/frotend/src/assets/women1.png"},{"key":"image3","type":"file","uuid":"3c364cf6-b014-4df0-b2da-1b28611aa5e6","src":"/D:/Ecommerce-app/frotend/src/assets/women.png"},{"key":"image4","type":"file","uuid":"26fcd62d-a17b-4fb2-aeff-e9c721878e2b","src":"/D:/Ecommerce-app/frotend/src/assets/women1.png"}]},"url":"http://localhost:4000/api/product/list","description":"<p>This API fetches all available products from the database.</p>\n<p>It is a public API and does not require authentication.</p>\n<p>Used on the home page and product listing pages.</p>\n","urlObject":{"protocol":"http","port":"4000","path":["api","product","list"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"cc37f7c8-f1dd-4768-a027-7b989f5dab63"},{"name":"admin order status","id":"862817ba-c410-4b8f-b88d-453c841827b7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[{"key":"token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6ImFkbWluQGZvcmV2ZXIuY29tIiwiaWF0IjoxNzY3ODUwMjgxLCJleHAiOjE3Njg0NTUwODF9.6HD6cupLUMYKdq_ultQ2Eg7JIJyMyw57GuLZ_fs8LKs","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"orderId\": \"69578ea6e8aece8c8368f69c\",\r\n  \"status\": \"Shipped\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:4000/api/order/status","description":"<p>This admin-only API updates the delivery status of an order (e.g., Shipped, Delivered).  </p>\n<p>Used by admin to manage order lifecycle.  </p>\n<p>Requires admin authentication.</p>\n","urlObject":{"protocol":"http","port":"4000","path":["api","order","status"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"862817ba-c410-4b8f-b88d-453c841827b7"}],"id":"5c68387d-e586-4932-9efc-ba296f444d9e","description":"<blockquote>\n</blockquote>\n<p>The <strong>Admin APIs</strong> are designed for platform management and control.  </p>\n<p>These APIs allow administrators to manage products, monitor orders, and update order delivery statuses.  </p>\n<p>Admin authentication is handled separately using environment-based credentials to ensure higher security.</p>\n<h3 id=\"admin-capabilities\">Admin Capabilities:</h3>\n<ul>\n<li><p>Secure admin login</p>\n</li>\n<li><p>Add and remove products</p>\n</li>\n<li><p>View all orders placed on the platform</p>\n</li>\n<li><p>Update order status (Packing, Shipped, Delivered, etc.)</p>\n</li>\n<li><p>Manage overall store operations</p>\n</li>\n</ul>\n","_postman_id":"5c68387d-e586-4932-9efc-ba296f444d9e"}]}