{"info":{"_postman_id":"a98d6edd-2151-44ae-b369-ba3666b2900b","name":"TrustGrid_API","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"54120938","collectionId":"a98d6edd-2151-44ae-b369-ba3666b2900b","publishedId":"2sBXqKof1E","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2026-05-02T13:32:11.000Z"},"item":[{"name":"login","id":"de0ee86a-9a0e-488b-bc8e-556ce8f6fe73","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"","value":"","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"email\": \"parv.suhagiya.cg@gmail.com\",\r\n  \"password\": \"123456\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://trustgrid.onrender.com/api/auth/login","description":"<p>StartFragmentAuthenticates a user and returns a JWT token. Use this token in the Authorization header for all protected routes.EndFragment</p>\n","urlObject":{"protocol":"https","path":["api","auth","login"],"host":["trustgrid","onrender","com"],"query":[],"variable":[]}},"response":[{"id":"b89c4b5d-6c80-47e8-a0af-6a0e8caf1d1f","name":"login","originalRequest":{"method":"POST","header":[{"key":"","value":"","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"email\": \"parv.suhagiya.cg@gmail.com\",\r\n  \"password\": \"123456\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://trustgrid.onrender.com/api/auth/login"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":":status","value":200},{"key":"date","value":"Sat, 02 May 2026 13:37:43 GMT"},{"key":"content-type","value":"application/json; charset=utf-8"},{"key":"content-length","value":"350"},{"key":"access-control-allow-credentials","value":"true"},{"key":"content-encoding","value":"br"},{"key":"etag","value":"W/\"1af-nj4oHSwXk6JyylL9UScO9Nk0lD0\""},{"key":"rndr-id","value":"c24a013a-b1f6-45db"},{"key":"server","value":"cloudflare"},{"key":"vary","value":"Origin, Accept-Encoding"},{"key":"x-powered-by","value":"Express"},{"key":"x-render-origin-server","value":"Render"},{"key":"cf-cache-status","value":"DYNAMIC"},{"key":"cf-ray","value":"9f576b8abb5648f2-BOM"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Login successful\",\n    \"token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiI2OWYyNGQ1MzQyMTVmYjFkOWJhMTE3M2MiLCJyb2xlIjoiYnV5ZXIiLCJuYW1lIjoiSm9obiBVcGRhdGVkIiwiZW1haWwiOiJwYXJ2LnN1aGFnaXlhLmNnQGdtYWlsLmNvbSIsImlhdCI6MTc3NzcyOTA2MywiZXhwIjoxNzc3ODE1NDYzfQ.v29G2sXxf6Fusn7w_Lbp4vAFR4tiQaZrC2hkFTYR12M\",\n    \"user\": {\n        \"id\": \"69f24d534215fb1d9ba1173c\",\n        \"name\": \"John Updated\",\n        \"email\": \"parv.suhagiya.cg@gmail.com\",\n        \"role\": \"buyer\"\n    }\n}"}],"_postman_id":"de0ee86a-9a0e-488b-bc8e-556ce8f6fe73"},{"name":"get supplier profile","id":"6185ce6b-6702-43c9-a199-fbf7b66f83d7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiI2OWYyNTkyMTQyMTVmYjFkOWJhMTE3M2QiLCJyb2xlIjoic3VwcGxpZXIiLCJuYW1lIjoicGFydiBzdXBwbGllciIsImVtYWlsIjoic3VoYWdpeWFwYXJ2M0BnbWFpbC5jb20iLCJpYXQiOjE3Nzc3MTY5NTEsImV4cCI6MTc3NzgwMzM1MX0.MKLhuQnSy86T_Dd02jTFNTVgGC2d-YQ21guAUEHscdY","type":"text"}],"url":"https://trustgrid.onrender.com/api/supplier/profile","description":"<p>StartFragmentReturns the logged-in supplier's own profile details including name, category, and description.EndFragment</p>\n","urlObject":{"protocol":"https","path":["api","supplier","profile"],"host":["trustgrid","onrender","com"],"query":[],"variable":[]}},"response":[{"id":"f24e55a8-cad3-481c-8ab8-b4890edabe08","name":"get supplier profile","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiI2OWYyNTkyMTQyMTVmYjFkOWJhMTE3M2QiLCJyb2xlIjoic3VwcGxpZXIiLCJuYW1lIjoicGFydiBzdXBwbGllciIsImVtYWlsIjoic3VoYWdpeWFwYXJ2M0BnbWFpbC5jb20iLCJpYXQiOjE3Nzc3MTY5NTEsImV4cCI6MTc3NzgwMzM1MX0.MKLhuQnSy86T_Dd02jTFNTVgGC2d-YQ21guAUEHscdY","type":"text"}],"url":"https://trustgrid.onrender.com/api/supplier/profile"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":":status","value":200},{"key":"date","value":"Sat, 02 May 2026 13:39:12 GMT"},{"key":"content-type","value":"application/json; charset=utf-8"},{"key":"content-length","value":"178"},{"key":"access-control-allow-credentials","value":"true"},{"key":"content-encoding","value":"br"},{"key":"etag","value":"W/\"f0-hWuPeQ7WTVqaWOJhQZiclu30Vd0\""},{"key":"rndr-id","value":"71a1f50e-df37-4870"},{"key":"server","value":"cloudflare"},{"key":"vary","value":"Origin, Accept-Encoding"},{"key":"x-powered-by","value":"Express"},{"key":"x-render-origin-server","value":"Render"},{"key":"cf-cache-status","value":"DYNAMIC"},{"key":"cf-ray","value":"9f576e42a872bd55-BOM"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"_id\": \"69f2fafa780e3f04169a454f\",\n    \"userId\": \"69f259214215fb1d9ba1173d\",\n    \"name\": \"Apex Co\",\n    \"rating\": 0,\n    \"category\": \"Machinery\",\n    \"description\": \"Industrial parts\",\n    \"createdAt\": \"2026-04-30T06:47:22.431Z\",\n    \"updatedAt\": \"2026-05-02T12:53:49.352Z\",\n    \"__v\": 0\n}"}],"_postman_id":"6185ce6b-6702-43c9-a199-fbf7b66f83d7"},{"name":"signup","id":"83487416-34e7-4465-8667-a0757153fd03","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"name\": \"parv buyer\",\r\n  \"email\": \"parvbuyer@gmail.com\",\r\n  \"password\": \"123456\",\r\n  \"role\": \"buyer\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://trustgrid.onrender.com/api/auth/signup","description":"<p>StartFragment Registers a new user. Pass role as \"buyer\" or \"supplier\". If role is supplier, a supplier profile is auto-created.EndFragment</p>\n","urlObject":{"protocol":"https","path":["api","auth","signup"],"host":["trustgrid","onrender","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"83487416-34e7-4465-8667-a0757153fd03"},{"name":"get supplier by id","id":"285d5a90-2cbe-4a1b-b976-aeaf5daaf5ab","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiI2OWY1ZDE2NDE5ZWNmMjQ0NzBlM2U3ZTciLCJyb2xlIjoiYnV5ZXIiLCJuYW1lIjoicGFydiBidXllciIsImVtYWlsIjoicGFydmJ1eWVyQGdtYWlsLmNvbSIsImlhdCI6MTc3NzcxNzYwNSwiZXhwIjoxNzc3ODA0MDA1fQ.8HHeTpSVjfxLJAJf9zWpmj665FqSidmmyVWhgUoTwTk","type":"text"}],"url":"https://trustgrid.onrender.com/api/suppliers/:id","description":"<p>StartFragmentReturns a single supplier's public profile. Buyer passes the supplier's MongoDB _id in the URL.EndFragment</p>\n","urlObject":{"protocol":"https","path":["api","suppliers",":id"],"host":["trustgrid","onrender","com"],"query":[],"variable":[{"type":"any","value":"69f2fafa780e3f04169a454f","key":"id"}]}},"response":[],"_postman_id":"285d5a90-2cbe-4a1b-b976-aeaf5daaf5ab"},{"name":"get supplier inventory by id","id":"809d6925-b037-428e-9532-32232db26d8f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiI2OWY1ZDE2NDE5ZWNmMjQ0NzBlM2U3ZTciLCJyb2xlIjoiYnV5ZXIiLCJuYW1lIjoicGFydiBidXllciIsImVtYWlsIjoicGFydmJ1eWVyQGdtYWlsLmNvbSIsImlhdCI6MTc3NzcxNzYwNSwiZXhwIjoxNzc3ODA0MDA1fQ.8HHeTpSVjfxLJAJf9zWpmj665FqSidmmyVWhgUoTwTk","type":"text"}],"url":"https://trustgrid.onrender.com/api/suppliers/:id/inventory","description":"<p>StartFragmentReturns the full inventory list of a specific supplier. Buyer uses this to browse what a supplier has in stock before placing an order.EndFragment</p>\n","urlObject":{"protocol":"https","path":["api","suppliers",":id","inventory"],"host":["trustgrid","onrender","com"],"query":[],"variable":[{"type":"any","value":"69f2fafa780e3f04169a454f","key":"id"}]}},"response":[],"_postman_id":"809d6925-b037-428e-9532-32232db26d8f"},{"name":"get supplier inventory","id":"4cd44e2d-45be-4113-b341-c0f6b6eb2c35","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiI2OWYyNTkyMTQyMTVmYjFkOWJhMTE3M2QiLCJyb2xlIjoic3VwcGxpZXIiLCJuYW1lIjoicGFydiBzdXBwbGllciIsImVtYWlsIjoic3VoYWdpeWFwYXJ2M0BnbWFpbC5jb20iLCJpYXQiOjE3Nzc3MTgxODksImV4cCI6MTc3NzgwNDU4OX0.7wmzVHe-RIaQSePSo6rxyhpmkK_vrXmaJN1U8Pml6xM","type":"text"}],"url":"https://trustgrid.onrender.com/api/supplier/inventory","description":"<p>StartFragment</p>\n<p>Returns the logged-in supplier's own inventory list. Supplier uses this to see all their listed products.</p>\n<p>EndFragment</p>\n","urlObject":{"protocol":"https","path":["api","supplier","inventory"],"host":["trustgrid","onrender","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"4cd44e2d-45be-4113-b341-c0f6b6eb2c35"},{"name":"post supplier inventory","id":"6c071c1a-7223-4ec1-8b1c-674f0bd310e0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiI2OWYyNTkyMTQyMTVmYjFkOWJhMTE3M2QiLCJyb2xlIjoic3VwcGxpZXIiLCJuYW1lIjoicGFydiBzdXBwbGllciIsImVtYWlsIjoic3VoYWdpeWFwYXJ2M0BnbWFpbC5jb20iLCJpYXQiOjE3Nzc3MTgxODksImV4cCI6MTc3NzgwNDU4OX0.7wmzVHe-RIaQSePSo6rxyhpmkK_vrXmaJN1U8Pml6xM","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"productName\": \"Steel Rods\",\r\n  \"category\": \"Metals\",\r\n  \"description\": \"High tensile steel rods, 12mm\",\r\n  \"quantity\": 500,\r\n  \"price\": 120\r\n}","options":{"raw":{"language":"json"}}},"url":"https://trustgrid.onrender.com/api/supplier/inventory","description":"<p>StartFragmentAdds a new product to the logged-in supplier's inventory. Supplier fills in productName, category, description, quantity, and price.EndFragment</p>\n","urlObject":{"protocol":"https","path":["api","supplier","inventory"],"host":["trustgrid","onrender","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"6c071c1a-7223-4ec1-8b1c-674f0bd310e0"},{"name":"remove item from inventory","id":"9fe44f36-809c-42cd-9d11-4740aabbaf45","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiI2OWYyNTkyMTQyMTVmYjFkOWJhMTE3M2QiLCJyb2xlIjoic3VwcGxpZXIiLCJuYW1lIjoicGFydiBzdXBwbGllciIsImVtYWlsIjoic3VoYWdpeWFwYXJ2M0BnbWFpbC5jb20iLCJpYXQiOjE3Nzc3MTgxODksImV4cCI6MTc3NzgwNDU4OX0.7wmzVHe-RIaQSePSo6rxyhpmkK_vrXmaJN1U8Pml6xM","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"productName\": \"Steel Rods\",\r\n  \"category\": \"Metals\",\r\n  \"description\": \"High tensile steel rods, 12mm\",\r\n  \"quantity\": 500,\r\n  \"price\": 120\r\n}"},"url":"https://trustgrid.onrender.com/api/supplier/inventory/69f5d44819ecf24470e3e7e8","description":"<p>StartFragmentPermanently removes a product from the supplier's inventory. Pass the inventory item's _id in the URL.EndFragment</p>\n","urlObject":{"protocol":"https","path":["api","supplier","inventory","69f5d44819ecf24470e3e7e8"],"host":["trustgrid","onrender","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"9fe44f36-809c-42cd-9d11-4740aabbaf45"},{"name":"request order","id":"7b8a6057-049d-481c-b809-f861c7105f39","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiI2OWYyNGQ1MzQyMTVmYjFkOWJhMTE3M2MiLCJyb2xlIjoiYnV5ZXIiLCJuYW1lIjoicGFydiBzdWhhZ2l5YSIsImVtYWlsIjoicGFydi5zdWhhZ2l5YS5jZ0BnbWFpbC5jb20iLCJpYXQiOjE3Nzc3MTg2MzksImV4cCI6MTc3NzgwNTAzOX0.P4NVy5zZnvojzd3zi0nPH9ZTyOHUnK3yjeKC_i5JfG0","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"supplierId\": \"69f2fafa780e3f04169a454f\",\r\n  \"supplyId\": \"69f5a0e30844bce8462b8260\",\r\n  \"productName\": \"Test Product\",\r\n  \"quantity\": 50,\r\n  \"budget\": 6000,\r\n  \"description\": \"Need 50 units for Q3 project\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://trustgrid.onrender.com/api/requests","description":"<p>StartFragmentBuyer creates a new order request to a supplier for a specific product. Requires supplierId, supplyId, productName, quantity, budget, and description.EndFragment</p>\n","urlObject":{"protocol":"https","path":["api","requests"],"host":["trustgrid","onrender","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"7b8a6057-049d-481c-b809-f861c7105f39"},{"name":"get order","id":"6c7e2051-db34-4196-966d-25d564516767","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiI2OWYyNGQ1MzQyMTVmYjFkOWJhMTE3M2MiLCJyb2xlIjoiYnV5ZXIiLCJuYW1lIjoicGFydiBzdWhhZ2l5YSIsImVtYWlsIjoicGFydi5zdWhhZ2l5YS5jZ0BnbWFpbC5jb20iLCJpYXQiOjE3Nzc3MTg2MzksImV4cCI6MTc3NzgwNTAzOX0.P4NVy5zZnvojzd3zi0nPH9ZTyOHUnK3yjeKC_i5JfG0","type":"text"}],"url":"https://trustgrid.onrender.com/api/requests","description":"<p>StartFragment Returns all requests/orders. Buyer sees their own placed orders. Supplier sees all incoming requests sent to them.EndFragment</p>\n","urlObject":{"protocol":"https","path":["api","requests"],"host":["trustgrid","onrender","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"6c7e2051-db34-4196-966d-25d564516767"},{"name":"accept order by id","id":"f67174ba-2b7b-4688-8d74-a284ea14e002","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiI2OWYyNGQ1MzQyMTVmYjFkOWJhMTE3M2MiLCJyb2xlIjoiYnV5ZXIiLCJuYW1lIjoicGFydiBzdWhhZ2l5YSIsImVtYWlsIjoicGFydi5zdWhhZ2l5YS5jZ0BnbWFpbC5jb20iLCJpYXQiOjE3Nzc3MTg2MzksImV4cCI6MTc3NzgwNTAzOX0.P4NVy5zZnvojzd3zi0nPH9ZTyOHUnK3yjeKC_i5JfG0","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"status\": \"accepted\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://trustgrid.onrender.com/api/requests/69f5d5fd19ecf24470e3e7e9/status","description":"<p>StartFragmentUpdates the status of a request. Supplier can accept or reject an order. Pass status as \"accepted\" or \"rejected\" in the body.EndFragment</p>\n","urlObject":{"protocol":"https","path":["api","requests","69f5d5fd19ecf24470e3e7e9","status"],"host":["trustgrid","onrender","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"f67174ba-2b7b-4688-8d74-a284ea14e002"},{"name":"get metrics of buyer","id":"c9b89d39-544e-4893-8b8c-32cbd2661d0a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiI2OWYyNGQ1MzQyMTVmYjFkOWJhMTE3M2MiLCJyb2xlIjoiYnV5ZXIiLCJuYW1lIjoicGFydiBzdWhhZ2l5YSIsImVtYWlsIjoicGFydi5zdWhhZ2l5YS5jZ0BnbWFpbC5jb20iLCJpYXQiOjE3Nzc3MTg2MzksImV4cCI6MTc3NzgwNTAzOX0.P4NVy5zZnvojzd3zi0nPH9ZTyOHUnK3yjeKC_i5JfG0","type":"text"}],"url":"https://trustgrid.onrender.com/api/dashboard/metrics","description":"<p>StartFragmentReturns buyer's dashboard stats including total requests, active orders, completed orders, and total spend.EndFragment</p>\n","urlObject":{"protocol":"https","path":["api","dashboard","metrics"],"host":["trustgrid","onrender","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"c9b89d39-544e-4893-8b8c-32cbd2661d0a"},{"name":"get all profiles","id":"4d9935d0-c4a1-49a7-aa9f-3c5d0d9cfe47","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiI2OWYyNGQ1MzQyMTVmYjFkOWJhMTE3M2MiLCJyb2xlIjoiYnV5ZXIiLCJuYW1lIjoicGFydiBzdWhhZ2l5YSIsImVtYWlsIjoicGFydi5zdWhhZ2l5YS5jZ0BnbWFpbC5jb20iLCJpYXQiOjE3Nzc3MTg2MzksImV4cCI6MTc3NzgwNTAzOX0.P4NVy5zZnvojzd3zi0nPH9ZTyOHUnK3yjeKC_i5JfG0","type":"text"}],"url":"https://trustgrid.onrender.com/api/auth/profile","description":"<p>StartFragmentReturns the profile of the currently logged-in user based on the JWT token. Works for both buyer and supplier.EndFragment</p>\n","urlObject":{"protocol":"https","path":["api","auth","profile"],"host":["trustgrid","onrender","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"4d9935d0-c4a1-49a7-aa9f-3c5d0d9cfe47"},{"name":"get all buyer profile","id":"8a012fbc-5d76-4334-a488-560b073632cb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiI2OWYyNGQ1MzQyMTVmYjFkOWJhMTE3M2MiLCJyb2xlIjoiYnV5ZXIiLCJuYW1lIjoicGFydiBzdWhhZ2l5YSIsImVtYWlsIjoicGFydi5zdWhhZ2l5YS5jZ0BnbWFpbC5jb20iLCJpYXQiOjE3Nzc3MTg2MzksImV4cCI6MTc3NzgwNTAzOX0.P4NVy5zZnvojzd3zi0nPH9ZTyOHUnK3yjeKC_i5JfG0","type":"text"}],"url":"https://trustgrid.onrender.com/api/buyer/profile","description":"<p>StartFragmentReturns the logged-in buyer's profile details including name and email.EndFragment</p>\n","urlObject":{"protocol":"https","path":["api","buyer","profile"],"host":["trustgrid","onrender","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"8a012fbc-5d76-4334-a488-560b073632cb"},{"name":"change buyer profile","id":"1ac9e2bd-c8e4-4d93-9dac-a4ff54f7177e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiI2OWYyNGQ1MzQyMTVmYjFkOWJhMTE3M2MiLCJyb2xlIjoiYnV5ZXIiLCJuYW1lIjoicGFydiBzdWhhZ2l5YSIsImVtYWlsIjoicGFydi5zdWhhZ2l5YS5jZ0BnbWFpbC5jb20iLCJpYXQiOjE3Nzc3MTg2MzksImV4cCI6MTc3NzgwNTAzOX0.P4NVy5zZnvojzd3zi0nPH9ZTyOHUnK3yjeKC_i5JfG0","type":"text"}],"body":{"mode":"raw","raw":"{\"name\":\"John Updated\",\"email\":\"new@x.com\"}","options":{"raw":{"language":"json"}}},"url":"https://trustgrid.onrender.com/api/buyer/profile","description":"<p>StartFragmentUpdates the logged-in buyer's profile. Pass the fields you want to update like name and email in the body.EndFragment</p>\n","urlObject":{"protocol":"https","path":["api","buyer","profile"],"host":["trustgrid","onrender","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"1ac9e2bd-c8e4-4d93-9dac-a4ff54f7177e"},{"name":"get supplier profile","id":"0c716613-2f90-4420-beeb-37e57f5d4604","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiI2OWYyNTkyMTQyMTVmYjFkOWJhMTE3M2QiLCJyb2xlIjoic3VwcGxpZXIiLCJuYW1lIjoicGFydiBzdXBwbGllciIsImVtYWlsIjoic3VoYWdpeWFwYXJ2M0BnbWFpbC5jb20iLCJpYXQiOjE3Nzc3MjYyNTcsImV4cCI6MTc3NzgxMjY1N30.VK4JDr0J-rrHUKhapB3iL4NQuH51_WAYvuNtkIg-fDs","type":"text"}],"url":"https://trustgrid.onrender.com/api/supplier/profile","description":"<p>StartFragmentSame as above — returns the logged-in supplier's profile. Used in the supplier section of your documentation.EndFragment</p>\n","urlObject":{"protocol":"https","path":["api","supplier","profile"],"host":["trustgrid","onrender","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"0c716613-2f90-4420-beeb-37e57f5d4604"},{"name":"change supplier profile","id":"8da9a2fc-04fb-4718-a5ee-9c28ce1d45c4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiI2OWYyNTkyMTQyMTVmYjFkOWJhMTE3M2QiLCJyb2xlIjoic3VwcGxpZXIiLCJuYW1lIjoicGFydiBzdXBwbGllciIsImVtYWlsIjoic3VoYWdpeWFwYXJ2M0BnbWFpbC5jb20iLCJpYXQiOjE3Nzc3MjYyNTcsImV4cCI6MTc3NzgxMjY1N30.VK4JDr0J-rrHUKhapB3iL4NQuH51_WAYvuNtkIg-fDs","type":"text"}],"body":{"mode":"raw","raw":"\t{\"name\":\"Apex Co\",\"category\":\"Machinery\",\"description\":\"Industrial parts\"}","options":{"raw":{"language":"json"}}},"url":"https://trustgrid.onrender.com/api/supplier/profile","description":"<p>StartFragment Updates the logged-in supplier's profile. Pass name, category, or description in the body with the fields to update.EndFragment</p>\n","urlObject":{"protocol":"https","path":["api","supplier","profile"],"host":["trustgrid","onrender","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"8da9a2fc-04fb-4718-a5ee-9c28ce1d45c4"},{"name":"change supplier inventory by id","id":"e0754f89-524f-40bd-8333-9dce5db67d11","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiI2OWYyNTkyMTQyMTVmYjFkOWJhMTE3M2QiLCJyb2xlIjoic3VwcGxpZXIiLCJuYW1lIjoicGFydiBzdXBwbGllciIsImVtYWlsIjoic3VoYWdpeWFwYXJ2M0BnbWFpbC5jb20iLCJpYXQiOjE3Nzc3MjYyNTcsImV4cCI6MTc3NzgxMjY1N30.VK4JDr0J-rrHUKhapB3iL4NQuH51_WAYvuNtkIg-fDs","type":"text"}],"body":{"mode":"raw","raw":"{\"productName\":\"Steel Rods v2\",\"quantity\":300,\"price\":80}","options":{"raw":{"language":"json"}}},"url":"https://trustgrid.onrender.com/api/supplier/inventory/:id","description":"<p>StartFragmentUpdates an existing inventory item. Pass the item's _id in the URL and send only the fields you want to update in the body.EndFragment</p>\n","urlObject":{"protocol":"https","path":["api","supplier","inventory",":id"],"host":["trustgrid","onrender","com"],"query":[],"variable":[{"type":"any","value":"69f5a0e30844bce8462b8260","key":"id"}]}},"response":[],"_postman_id":"e0754f89-524f-40bd-8333-9dce5db67d11"},{"name":"get supplier request","id":"2b56c2a3-3807-43e9-9de4-432feda164ba","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiI2OWYyNTkyMTQyMTVmYjFkOWJhMTE3M2QiLCJyb2xlIjoic3VwcGxpZXIiLCJuYW1lIjoicGFydiBzdXBwbGllciIsImVtYWlsIjoic3VoYWdpeWFwYXJ2M0BnbWFpbC5jb20iLCJpYXQiOjE3Nzc3MjYyNTcsImV4cCI6MTc3NzgxMjY1N30.VK4JDr0J-rrHUKhapB3iL4NQuH51_WAYvuNtkIg-fDs","type":"text"}],"body":{"mode":"raw","raw":"{\"productName\":\"Steel Rods v2\",\"quantity\":300,\"price\":80}"},"url":"https://trustgrid.onrender.com/api/supplier/requests","description":"<p>StartFragmentReturns all incoming order requests sent to the logged-in supplier.EndFragment</p>\n","urlObject":{"protocol":"https","path":["api","supplier","requests"],"host":["trustgrid","onrender","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"2b56c2a3-3807-43e9-9de4-432feda164ba"},{"name":"get supplier request by id","id":"1b629c11-c005-4049-b816-d71897462d71","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiI2OWYyNTkyMTQyMTVmYjFkOWJhMTE3M2QiLCJyb2xlIjoic3VwcGxpZXIiLCJuYW1lIjoicGFydiBzdXBwbGllciIsImVtYWlsIjoic3VoYWdpeWFwYXJ2M0BnbWFpbC5jb20iLCJpYXQiOjE3Nzc3MjYyNTcsImV4cCI6MTc3NzgxMjY1N30.VK4JDr0J-rrHUKhapB3iL4NQuH51_WAYvuNtkIg-fDs","type":"text"}],"body":{"mode":"raw","raw":"{\"productName\":\"Steel Rods v2\",\"quantity\":300,\"price\":80}"},"url":"https://trustgrid.onrender.com/api/supplier/requests/:id","description":"<p>StartFragmentReturns full details of a single incoming request. Pass the request's _id in the URL.EndFragment</p>\n","urlObject":{"protocol":"https","path":["api","supplier","requests",":id"],"host":["trustgrid","onrender","com"],"query":[],"variable":[{"type":"any","value":"","key":"id"}]}},"response":[],"_postman_id":"1b629c11-c005-4049-b816-d71897462d71"},{"name":"get all supplier order","id":"42c510e4-779a-4464-af26-8122f50db5f1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiI2OWYyNTkyMTQyMTVmYjFkOWJhMTE3M2QiLCJyb2xlIjoic3VwcGxpZXIiLCJuYW1lIjoicGFydiBzdXBwbGllciIsImVtYWlsIjoic3VoYWdpeWFwYXJ2M0BnbWFpbC5jb20iLCJpYXQiOjE3Nzc3MjYyNTcsImV4cCI6MTc3NzgxMjY1N30.VK4JDr0J-rrHUKhapB3iL4NQuH51_WAYvuNtkIg-fDs","type":"text"}],"body":{"mode":"raw","raw":"{\"productName\":\"Steel Rods v2\",\"quantity\":300,\"price\":80}"},"url":"https://trustgrid.onrender.com/api/supplier/orders","description":"<p>StartFragmentReturns all orders that have been accepted or completed by the logged-in supplier.EndFragment</p>\n","urlObject":{"protocol":"https","path":["api","supplier","orders"],"host":["trustgrid","onrender","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"42c510e4-779a-4464-af26-8122f50db5f1"},{"name":"get supplier dashboard metrics","id":"772dfa85-ae25-41b1-8ae3-a1a12633211c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiI2OWYyNTkyMTQyMTVmYjFkOWJhMTE3M2QiLCJyb2xlIjoic3VwcGxpZXIiLCJuYW1lIjoicGFydiBzdXBwbGllciIsImVtYWlsIjoic3VoYWdpeWFwYXJ2M0BnbWFpbC5jb20iLCJpYXQiOjE3Nzc3MjYyNTcsImV4cCI6MTc3NzgxMjY1N30.VK4JDr0J-rrHUKhapB3iL4NQuH51_WAYvuNtkIg-fDs","type":"text"}],"body":{"mode":"raw","raw":"{\"productName\":\"Steel Rods v2\",\"quantity\":300,\"price\":80}"},"url":"https://trustgrid.onrender.com/api/supplier/dashboard/metrics","description":"<p>StartFragmentReturns supplier's dashboard stats like total requests received, accepted orders, rejected orders, and revenue.EndFragment</p>\n","urlObject":{"protocol":"https","path":["api","supplier","dashboard","metrics"],"host":["trustgrid","onrender","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"772dfa85-ae25-41b1-8ae3-a1a12633211c"},{"name":"get supplier notifications","id":"008841d7-40d4-4b0d-bd32-fb826343bb95","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiI2OWYyNTkyMTQyMTVmYjFkOWJhMTE3M2QiLCJyb2xlIjoic3VwcGxpZXIiLCJuYW1lIjoicGFydiBzdXBwbGllciIsImVtYWlsIjoic3VoYWdpeWFwYXJ2M0BnbWFpbC5jb20iLCJpYXQiOjE3Nzc3MjYyNTcsImV4cCI6MTc3NzgxMjY1N30.VK4JDr0J-rrHUKhapB3iL4NQuH51_WAYvuNtkIg-fDs","type":"text"}],"body":{"mode":"raw","raw":"{\"productName\":\"Steel Rods v2\",\"quantity\":300,\"price\":80}"},"url":"https://trustgrid.onrender.com/api/supplier/notifications","description":"<p>StartFragment Returns all notifications for the logged-in supplier such as new order requests or status updates.EndFragment</p>\n","urlObject":{"protocol":"https","path":["api","supplier","notifications"],"host":["trustgrid","onrender","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"008841d7-40d4-4b0d-bd32-fb826343bb95"},{"name":"get supplier activity","id":"33de1783-50fe-442d-9790-ae907a50766b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiI2OWYyNTkyMTQyMTVmYjFkOWJhMTE3M2QiLCJyb2xlIjoic3VwcGxpZXIiLCJuYW1lIjoicGFydiBzdXBwbGllciIsImVtYWlsIjoic3VoYWdpeWFwYXJ2M0BnbWFpbC5jb20iLCJpYXQiOjE3Nzc3MjYyNTcsImV4cCI6MTc3NzgxMjY1N30.VK4JDr0J-rrHUKhapB3iL4NQuH51_WAYvuNtkIg-fDs","type":"text"}],"body":{"mode":"raw","raw":"{\"productName\":\"Steel Rods v2\",\"quantity\":300,\"price\":80}"},"url":"https://trustgrid.onrender.com/api/supplier/activity","description":"<p>StartFragmentReturns the activity log of the logged-in supplier showing recent actions performed on the platform.EndFragment</p>\n","urlObject":{"protocol":"https","path":["api","supplier","activity"],"host":["trustgrid","onrender","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"33de1783-50fe-442d-9790-ae907a50766b"},{"name":"get buyer request","id":"cee64dea-ea07-4ae8-9132-836f2780b03d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiI2OWYyNGQ1MzQyMTVmYjFkOWJhMTE3M2MiLCJyb2xlIjoiYnV5ZXIiLCJuYW1lIjoiSm9obiBVcGRhdGVkIiwiZW1haWwiOiJwYXJ2LnN1aGFnaXlhLmNnQGdtYWlsLmNvbSIsImlhdCI6MTc3NzcyNzAzOCwiZXhwIjoxNzc3ODEzNDM4fQ.dkf3eH4V0SYba94yU7jj4Mz6NFNGqh20uLViBdexFvs","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"email\": \"suhagiyaparv3@gmail.com\",\r\n  \"password\": \"123456\"\r\n}"},"url":"https://trustgrid.onrender.com/api/requests","description":"<p>StartFragment Same endpoint as \"get order\" but used from buyer's perspective — returns all orders the buyer has placed.EndFragment</p>\n","urlObject":{"protocol":"https","path":["api","requests"],"host":["trustgrid","onrender","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"cee64dea-ea07-4ae8-9132-836f2780b03d"},{"name":"change buyer request","id":"94160e64-ddca-425a-90fb-1710c76c3a94","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiI2OWYyNGQ1MzQyMTVmYjFkOWJhMTE3M2MiLCJyb2xlIjoiYnV5ZXIiLCJuYW1lIjoiSm9obiBVcGRhdGVkIiwiZW1haWwiOiJwYXJ2LnN1aGFnaXlhLmNnQGdtYWlsLmNvbSIsImlhdCI6MTc3NzcyNzAzOCwiZXhwIjoxNzc3ODEzNDM4fQ.dkf3eH4V0SYba94yU7jj4Mz6NFNGqh20uLViBdexFvs","type":"text"}],"body":{"mode":"raw","raw":"{\"quantity\":60,\"budget\":4500,\"description\":\"Updated order\"}","options":{"raw":{"language":"json"}}},"url":"https://trustgrid.onrender.com/api/requests/:id","description":"<p>StartFragment</p>\n<p>Buyer updates an existing request. Pass the request's _id in the URL and send updated quantity, budget, or description in the body.</p>\n<p>EndFragment</p>\n","urlObject":{"protocol":"https","path":["api","requests",":id"],"host":["trustgrid","onrender","com"],"query":[],"variable":[{"type":"any","value":"69f5f6b73d6ec86a2699c2e6","key":"id"}]}},"response":[],"_postman_id":"94160e64-ddca-425a-90fb-1710c76c3a94"},{"name":"delete buyer request","id":"4694a8f2-440d-4dd0-8292-e77e9f6ff357","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiI2OWYyNGQ1MzQyMTVmYjFkOWJhMTE3M2MiLCJyb2xlIjoiYnV5ZXIiLCJuYW1lIjoiSm9obiBVcGRhdGVkIiwiZW1haWwiOiJwYXJ2LnN1aGFnaXlhLmNnQGdtYWlsLmNvbSIsImlhdCI6MTc3NzcyNzAzOCwiZXhwIjoxNzc3ODEzNDM4fQ.dkf3eH4V0SYba94yU7jj4Mz6NFNGqh20uLViBdexFvs","type":"text"}],"body":{"mode":"raw","raw":"{\"quantity\":60,\"budget\":4500,\"description\":\"Updated order\"}"},"url":"https://trustgrid.onrender.com/api/requests/:id","description":"<p>StartFragmentBuyer permanently deletes a request they placed. Pass the request's _id in the URL. Only works on pending requests.EndFragment</p>\n","urlObject":{"protocol":"https","path":["api","requests",":id"],"host":["trustgrid","onrender","com"],"query":[],"variable":[{"type":"any","value":"69f31fa669b8f285bc149c9a","key":"id"}]}},"response":[],"_postman_id":"4694a8f2-440d-4dd0-8292-e77e9f6ff357"},{"name":"get all activity","id":"4039739b-caf9-4411-a8f2-57ffa0feb192","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiI2OWYyNGQ1MzQyMTVmYjFkOWJhMTE3M2MiLCJyb2xlIjoiYnV5ZXIiLCJuYW1lIjoiSm9obiBVcGRhdGVkIiwiZW1haWwiOiJwYXJ2LnN1aGFnaXlhLmNnQGdtYWlsLmNvbSIsImlhdCI6MTc3NzcyNzAzOCwiZXhwIjoxNzc3ODEzNDM4fQ.dkf3eH4V0SYba94yU7jj4Mz6NFNGqh20uLViBdexFvs","type":"text"}],"body":{"mode":"raw","raw":"{\"quantity\":60,\"budget\":4500,\"description\":\"Updated order\"}"},"url":"https://trustgrid.onrender.com/api/activity","description":"<p>StartFragmentReturns the complete activity log of the currently logged-in user. Shows a history of all recent actions performed on the platform such as orders placed, requests updated, and profile changes.EndFragment</p>\n","urlObject":{"protocol":"https","path":["api","activity"],"host":["trustgrid","onrender","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"4039739b-caf9-4411-a8f2-57ffa0feb192"}],"event":[{"listen":"prerequest","script":{"id":"e58f6381-f136-4e92-a7ee-fecdc39fd072","type":"text/javascript","packages":{},"requests":{},"exec":[""]}},{"listen":"test","script":{"id":"dff5e693-0e0f-4e2a-8a2b-ad191db0f53a","type":"text/javascript","packages":{},"requests":{},"exec":[""]}}],"variable":[{"key":"base_url","value":""}]}