{"info":{"_postman_id":"8abbe625-8832-458c-a7d5-0f826ff566c2","name":"Vend","description":"<html><head></head><body><h1 id=\"university-marketplace-api-documentation\">University Marketplace API Documentation</h1>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"University Marketplace API Documentation","slug":"university-marketplace-api-documentation"}],"owner":"17957003","collectionId":"8abbe625-8832-458c-a7d5-0f826ff566c2","publishedId":"2s9YsNdqVr","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2024-01-13T22:21:59.000Z"},"item":[{"name":"Authentication","item":[{"name":"Register","id":"2e40ff24-47a4-4961-b2fd-37b66dc132bf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"first_name\":\"leke\",\r\n    \"last_name\":\"leke\",\r\n    \"email\":\"admin@admin.com\",\r\n    \"password\":\"Password$1\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://backend-3wgx.onrender.com/api/v1/auth/register","description":"<ul>\n<li><strong>Endpoint:</strong> <code>/api/auth/register</code></li>\n<li><strong>Method:</strong> <code>POST</code></li>\n<li><strong>Description:</strong> Allows a user to register for a new account.</li>\n<li><strong>Required Body</strong>: first_name, last_name, email, password</li>\n</ul>\n","urlObject":{"path":["api","v1","auth","register"],"host":["https://backend-3wgx.onrender.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"2e40ff24-47a4-4961-b2fd-37b66dc132bf"},{"name":"Login","event":[{"listen":"test","script":{"id":"c33c83c7-7a7c-40b2-8646-b4f50dc4a08a","exec":["// Set the token from the response as the bearer token for future requests\r","pm.test(\"Set the token from the response as the bearer token\", function () {\r","    var responseData = pm.response.json();\r","    pm.environment.set(\"bearerToken\", responseData.token);\r","});// Save the token from the response as a variable\r","var token = pm.response.json().token;\r","pm.collectionVariables.set(\"token\", token);"],"type":"text/javascript"}}],"id":"4f28e5f8-7495-497c-986f-5fd7276c48a3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\":\"courier@ecom.com\", //admin@admin.com --- for admin access\r\n    \"password\":\"Password1$\",\r\n    \"role\": \"courier\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://backend-3wgx.onrender.com/api/v1/auth/login","description":"<ul>\n<li><p><strong>Endpoint:</strong> <code>/api/v1/auth/login</code></p>\n</li>\n<li><p><strong>Method:</strong> <code>POST</code></p>\n</li>\n<li><p><strong>Description:</strong> Allows a user to log in and obtain an authentication token.</p>\n</li>\n<li><p><strong>Required Body</strong>: email, password</p>\n</li>\n</ul>\n","urlObject":{"path":["api","v1","auth","login"],"host":["https://backend-3wgx.onrender.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"4f28e5f8-7495-497c-986f-5fd7276c48a3"},{"name":"Verify Email","id":"795db455-7d41-44a8-9cd9-31904c4cef99","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"userId\":\"53936987-70b6-48d5-a3f8-7a74e5076ecf\",\r\n    \"token\":\"04bf0897dd819298c566ffaf68183af73c032fc6bea5ae219ac7f5973df196ce\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://backend-3wgx.onrender.com/api/v1/auth/email","description":"<ul>\n<li><p><strong>Endpoint:</strong> <code>/api/v1/auth/verify-email</code></p>\n</li>\n<li><p><strong>Method:</strong> <code>POST</code></p>\n</li>\n<li><p><strong>Description:</strong> Allows a user to verify their email address using a verification token.</p>\n</li>\n<li><p><strong>Required Body</strong>: userId,token</p>\n</li>\n<li><p><strong>NB:</strong> Token is send to the user's email Address</p>\n</li>\n</ul>\n","urlObject":{"path":["api","v1","auth","email"],"host":["https://backend-3wgx.onrender.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"795db455-7d41-44a8-9cd9-31904c4cef99"},{"name":"Request email verification","id":"74ff0586-34b6-4c70-abcd-5ae95cc5dd5e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[],"url":"https://backend-3wgx.onrender.com/api/v1/auth/email?email=lekejosh6wf@gmail.com","description":"<ul>\n<li><strong>Endpoint:</strong> <code>/api/v1/auth/request-verification-token</code></li>\n<li><strong>Method:</strong> <code>GET</code></li>\n<li><strong>Description:</strong> Sends a token to the user's email for email verification.</li>\n<li><strong>Required Query</strong>: email</li>\n</ul>\n","urlObject":{"path":["api","v1","auth","email"],"host":["https://backend-3wgx.onrender.com"],"query":[{"key":"email","value":"lekejosh6wf@gmail.com"}],"variable":[]}},"response":[],"_postman_id":"74ff0586-34b6-4c70-abcd-5ae95cc5dd5e"},{"name":"Logout","id":"7ebb9e81-7705-4695-b401-58e1049d831f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"DELETE","header":[],"url":"https://backend-3wgx.onrender.com/api/v1/auth/logout","description":"<ul>\n<li><p><strong>Endpoint:</strong> <code>/api/auth/logout</code></p>\n</li>\n<li><p><strong>Method:</strong> <code>DELETE</code></p>\n</li>\n<li><p><strong>Description:</strong> Logs out the currently authenticated user.</p>\n</li>\n</ul>\n","urlObject":{"path":["api","v1","auth","logout"],"host":["https://backend-3wgx.onrender.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"7ebb9e81-7705-4695-b401-58e1049d831f"},{"name":"Request Password Reset","id":"eb1a4fbe-a74a-4269-beb0-08f5a7767b3c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[],"url":"https://backend-3wgx.onrender.com/api/v1/auth/password/reset?email=lekejosh6wf@gmail.com","description":"<ul>\n<li><strong>Endpoint:</strong> <code>/api/v1/auth/password/reset</code></li>\n<li><strong>Method:</strong> <code>GET</code></li>\n<li><strong>Description:</strong> Initiates the process to reset a user's password by sending a reset token to their email.</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Query</th>\n<th>Required</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>email</td>\n<td>true</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["api","v1","auth","password","reset"],"host":["https://backend-3wgx.onrender.com"],"query":[{"key":"email","value":"lekejosh6wf@gmail.com"}],"variable":[]}},"response":[],"_postman_id":"eb1a4fbe-a74a-4269-beb0-08f5a7767b3c"},{"name":"Reset Password","id":"47811f73-ab97-49a6-a6c3-5457ade80e67","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"newPassword\":\"Test@1.aa\",\r\n    \"confirmPassword\":\"Test@1.aa\",\r\n    \"userId\":\"8678f42c-5dd8-4f04-afdd-86370b004a3e\",\r\n    \"resetToken\":\"d0b10ca5811f7312cc29bd759649b35b8fab16fec0df7b2ceab48361cd292afc\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://backend-3wgx.onrender.com/api/v1/auth/password/reset","description":"<ul>\n<li><strong>Endpoint:</strong> <code>/api/v1/auth/password/reset</code></li>\n<li><strong>Method:</strong> <code>PUT</code></li>\n<li><strong>Description:</strong> Resets a user's password.</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Body</th>\n<th>Required</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>newPassword</td>\n<td>true</td>\n</tr>\n<tr>\n<td>confirmPassword</td>\n<td>true</td>\n</tr>\n<tr>\n<td>userId</td>\n<td>true</td>\n</tr>\n<tr>\n<td>resetToken</td>\n<td>true</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["api","v1","auth","password","reset"],"host":["https://backend-3wgx.onrender.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"47811f73-ab97-49a6-a6c3-5457ade80e67"},{"name":"Update Password","id":"f382e780-09c3-49ea-8ad3-0f129a466977","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"oldPassword\":\"Test@1.aa\",\r\n    \"newPassword\":\"Password1$\",\r\n    \"confirmPassword\":\"Password1$\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://backend-3wgx.onrender.com/api/v1/auth/password/update","description":"<ul>\n<li><strong>Endpoint:</strong> <code>/api/v1/auth/password/update</code></li>\n<li><strong>Method:</strong> <code>PUT</code></li>\n<li><strong>Description:</strong> Updates an authenticated user's password.</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Body</th>\n<th>Required</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>oldPassword</td>\n<td>true</td>\n</tr>\n<tr>\n<td>newPassword</td>\n<td>true</td>\n</tr>\n<tr>\n<td>confirmPassword</td>\n<td>true</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"8abbe625-8832-458c-a7d5-0f826ff566c2","id":"8abbe625-8832-458c-a7d5-0f826ff566c2","name":"Vend","type":"collection"}},"urlObject":{"path":["api","v1","auth","password","update"],"host":["https://backend-3wgx.onrender.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"f382e780-09c3-49ea-8ad3-0f129a466977"},{"name":"Refresh Access Token","event":[{"listen":"test","script":{"id":"4af44d40-d478-4bc0-a9d7-d44035db2b12","exec":["// Set the token from the response as the bearer token for future requests\r","pm.test(\"Set the token from the response as the bearer token\", function () {\r","    var responseData = pm.response.json();\r","    pm.environment.set(\"bearerToken\", responseData.token);\r","});// Save the token from the response as a variable\r","var token = pm.response.json().token;\r","pm.collectionVariables.set(\"token\", token);"],"type":"text/javascript"}}],"id":"15ef0b61-043e-4467-a3fc-6b48a6bf71bf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[],"url":"https://backend-3wgx.onrender.com/api/v1/auth/refresh","description":"<ul>\n<li><strong>Endpoint:</strong> <code>/api/v1/auth/refresh</code></li>\n<li><strong>Method:</strong> <code>GET</code></li>\n<li><strong>Description:</strong> This refreshes an already authenticated user's expired access token</li>\n</ul>\n","urlObject":{"path":["api","v1","auth","refresh"],"host":["https://backend-3wgx.onrender.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"15ef0b61-043e-4467-a3fc-6b48a6bf71bf"}],"id":"6e3085f1-223c-485f-a29d-8ccfb8503e91","_postman_id":"6e3085f1-223c-485f-a29d-8ccfb8503e91","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"8abbe625-8832-458c-a7d5-0f826ff566c2","id":"8abbe625-8832-458c-a7d5-0f826ff566c2","name":"Vend","type":"collection"}}},{"name":"User","item":[{"name":"Address","item":[{"name":"Create Address","id":"bd47c37e-cc1b-4440-8c0d-64e836915efb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"streetAddress\":\"5, Bola Arowolo street\",\r\n    \"city\":\"Lagos\",\r\n    \"state\":\"Lagos\",\r\n    \"zipCode\":\"123456\",\r\n    \"country\":\"Nigeria\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://backend-3wgx.onrender.com/api/v1/user/address","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"8abbe625-8832-458c-a7d5-0f826ff566c2","id":"8abbe625-8832-458c-a7d5-0f826ff566c2","name":"Vend","type":"collection"}},"urlObject":{"path":["api","v1","user","address"],"host":["https://backend-3wgx.onrender.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"bd47c37e-cc1b-4440-8c0d-64e836915efb"},{"name":"All Address","id":"ee79e6fb-2875-4647-953d-a69801e296a1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://backend-3wgx.onrender.com/api/v1/user/address","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"8abbe625-8832-458c-a7d5-0f826ff566c2","id":"8abbe625-8832-458c-a7d5-0f826ff566c2","name":"Vend","type":"collection"}},"urlObject":{"path":["api","v1","user","address"],"host":["https://backend-3wgx.onrender.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"ee79e6fb-2875-4647-953d-a69801e296a1"},{"name":"Get An Address","id":"f367137a-95ba-418a-8980-48a41a628e26","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://backend-3wgx.onrender.com/api/v1/user/address/:id","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"8abbe625-8832-458c-a7d5-0f826ff566c2","id":"8abbe625-8832-458c-a7d5-0f826ff566c2","name":"Vend","type":"collection"}},"urlObject":{"path":["api","v1","user","address",":id"],"host":["https://backend-3wgx.onrender.com"],"query":[],"variable":[{"type":"any","value":"4ca21dd5-7586-4056-8f68-0f468f572476","key":"id"}]}},"response":[],"_postman_id":"f367137a-95ba-418a-8980-48a41a628e26"},{"name":"Edit An Address","id":"082e102e-2f78-4580-94b8-7772e5cc1ea6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"streetAddress\":\"Bola Arowolo street, atunrase\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://backend-3wgx.onrender.com/api/v1/user/address/:id","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"8abbe625-8832-458c-a7d5-0f826ff566c2","id":"8abbe625-8832-458c-a7d5-0f826ff566c2","name":"Vend","type":"collection"}},"urlObject":{"path":["api","v1","user","address",":id"],"host":["https://backend-3wgx.onrender.com"],"query":[],"variable":[{"type":"any","value":"4ca21dd5-7586-4056-8f68-0f468f572476","key":"id"}]}},"response":[],"_postman_id":"082e102e-2f78-4580-94b8-7772e5cc1ea6"},{"name":"Delete An Address","id":"de09448f-2d13-44d8-b7d4-dc8e4f554171","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"https://backend-3wgx.onrender.com/api/v1/user/address/:id","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"8abbe625-8832-458c-a7d5-0f826ff566c2","id":"8abbe625-8832-458c-a7d5-0f826ff566c2","name":"Vend","type":"collection"}},"urlObject":{"path":["api","v1","user","address",":id"],"host":["https://backend-3wgx.onrender.com"],"query":[],"variable":[{"type":"any","value":"724c8a0a-d418-4542-b329-210581958d2d","key":"id"}]}},"response":[],"_postman_id":"de09448f-2d13-44d8-b7d4-dc8e4f554171"}],"id":"eadd6dd4-a72b-46e3-bd23-2b15bb5bc0af","_postman_id":"eadd6dd4-a72b-46e3-bd23-2b15bb5bc0af","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"8abbe625-8832-458c-a7d5-0f826ff566c2","id":"8abbe625-8832-458c-a7d5-0f826ff566c2","name":"Vend","type":"collection"}}},{"name":"Get me","id":"5303f3cb-ab23-40d2-bbdd-ef131019c28c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://backend-3wgx.onrender.com/api/v1/user","description":"<ul>\n<li><p><strong>Endpoint:</strong> <code>/api/v1/user</code></p>\n</li>\n<li><p><strong>Method:</strong> <code>GET</code></p>\n</li>\n<li><p><strong>Description:</strong> Returns an authenticated user's profile</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"8abbe625-8832-458c-a7d5-0f826ff566c2","id":"8abbe625-8832-458c-a7d5-0f826ff566c2","name":"Vend","type":"collection"}},"urlObject":{"path":["api","v1","user"],"host":["https://backend-3wgx.onrender.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"5303f3cb-ab23-40d2-bbdd-ef131019c28c"},{"name":"Update profile","id":"100df639-44f9-4237-a826-cb0660affa51","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"phoneNumber\":\"08010134069\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://backend-3wgx.onrender.com/api/v1/user","description":"<ul>\n<li><strong>Endpoint:</strong> <code>/api/v1/user/</code></li>\n<li><strong>Method:</strong> <code>PUT</code></li>\n<li><strong>Description:</strong> This Updates an authenticated user</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Body</th>\n<th>Required</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>phoneNumber</td>\n<td>true</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"8abbe625-8832-458c-a7d5-0f826ff566c2","id":"8abbe625-8832-458c-a7d5-0f826ff566c2","name":"Vend","type":"collection"}},"urlObject":{"path":["api","v1","user"],"host":["https://backend-3wgx.onrender.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"100df639-44f9-4237-a826-cb0660affa51"}],"id":"dd517890-8f7f-4767-835c-a609b3f77089","description":"<p>Includes Endpoint for user's profile and update Profile</p>\n","_postman_id":"dd517890-8f7f-4767-835c-a609b3f77089","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"8abbe625-8832-458c-a7d5-0f826ff566c2","id":"8abbe625-8832-458c-a7d5-0f826ff566c2","name":"Vend","type":"collection"}}},{"name":"Seller","item":[{"name":"Product","item":[{"name":"Create Product","id":"f5a353a1-23c1-456c-aba4-c361257dc8fd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"name","value":"Radio","type":"text"},{"key":"price","value":"10","type":"text"},{"key":"description","value":"lol","type":"text"},{"key":"product_details","value":"cool","type":"text"},{"key":"specifications","value":"nice","type":"text"},{"key":"main_image","type":"file","fileNotInWorkingDirectoryWarning":"This file isn't in your working directory. Teammates you share this request with won't be able to use this file. To make collaboration easier you can setup your working directory in Settings.","filesNotInWorkingDirectory":["/C:/Users/lekej/Downloads/Snapchat-1139520517.jpg"],"src":"/C:/Users/lekej/Downloads/Snapchat-1139520517.jpg"},{"key":"sub_image_1","type":"file","fileNotInWorkingDirectoryWarning":"This file isn't in your working directory. Teammates you share this request with won't be able to use this file. To make collaboration easier you can setup your working directory in Settings.","filesNotInWorkingDirectory":["/C:/Users/lekej/Downloads/photo_2024-01-06_00-46-05.jpg"],"src":"/C:/Users/lekej/Downloads/photo_2024-01-06_00-46-05.jpg"},{"key":"sub_image_2","type":"file","fileNotInWorkingDirectoryWarning":"This file isn't in your working directory. Teammates you share this request with won't be able to use this file. To make collaboration easier you can setup your working directory in Settings.","filesNotInWorkingDirectory":["/C:/Users/lekej/Downloads/Snapchat-1029915639.jpg"],"src":"/C:/Users/lekej/Downloads/Snapchat-1029915639.jpg"},{"key":"sub_image_3","type":"file","fileNotInWorkingDirectoryWarning":"This file isn't in your working directory. Teammates you share this request with won't be able to use this file. To make collaboration easier you can setup your working directory in Settings.","filesNotInWorkingDirectory":["/C:/Users/lekej/Downloads/Snapchat-1139520517.jpg"],"src":"/C:/Users/lekej/Downloads/Snapchat-1139520517.jpg"},{"key":"sub_image_4","type":"file","fileNotInWorkingDirectoryWarning":"This file isn't in your working directory. Teammates you share this request with won't be able to use this file. To make collaboration easier you can setup your working directory in Settings.","filesNotInWorkingDirectory":["/C:/Users/lekej/Downloads/Snapchat-1139520517.jpg"],"src":"/C:/Users/lekej/Downloads/Snapchat-1139520517.jpg"},{"key":"sub_image_5","type":"file","fileNotInWorkingDirectoryWarning":"This file isn't in your working directory. Teammates you share this request with won't be able to use this file. To make collaboration easier you can setup your working directory in Settings.","filesNotInWorkingDirectory":["/C:/Users/lekej/Downloads/Black Gold White Luxury Royal Crown Logo.png"],"src":"/C:/Users/lekej/Downloads/Black Gold White Luxury Royal Crown Logo.png"},{"key":"brandId","value":"30cd39b3-9d4e-4e64-976b-163305014dee","type":"text"},{"key":"categoryId","value":"5ee6db35-5984-43a3-896d-276551682401","type":"text"}]},"url":"https://backend-3wgx.onrender.com/api/v1/seller/product/","description":"<ul>\n<li><strong>Endpoint:</strong> <code>/api/v1/seller/product</code></li>\n<li><strong>Method:</strong> <code>POST</code></li>\n<li><strong>Description:</strong> This creates products</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Body(form-data)</th>\n<th>Required</th>\n<th>Type</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>name</td>\n<td>true</td>\n<td>string</td>\n</tr>\n<tr>\n<td>price</td>\n<td>true</td>\n<td>number</td>\n</tr>\n<tr>\n<td>description</td>\n<td>true</td>\n<td>string</td>\n</tr>\n<tr>\n<td>specifications</td>\n<td>true</td>\n<td>string</td>\n</tr>\n<tr>\n<td>main_image</td>\n<td>true</td>\n<td>file(image)</td>\n</tr>\n<tr>\n<td>sub_image_1</td>\n<td>true</td>\n<td>file(image)</td>\n</tr>\n<tr>\n<td>sub_image_2</td>\n<td>true</td>\n<td>file(image)</td>\n</tr>\n<tr>\n<td>sub_image_3</td>\n<td>true</td>\n<td>file(image)</td>\n</tr>\n<tr>\n<td>sub_image_4</td>\n<td>true</td>\n<td>file(image)</td>\n</tr>\n<tr>\n<td>sub_image_5</td>\n<td>true</td>\n<td>file(image)</td>\n</tr>\n<tr>\n<td>brandId</td>\n<td>true</td>\n<td>string</td>\n</tr>\n<tr>\n<td>categoryId</td>\n<td>true</td>\n<td>string</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"8abbe625-8832-458c-a7d5-0f826ff566c2","id":"8abbe625-8832-458c-a7d5-0f826ff566c2","name":"Vend","type":"collection"}},"urlObject":{"path":["api","v1","seller","product",""],"host":["https://backend-3wgx.onrender.com"],"query":[],"variable":[]}},"response":[{"id":"b0e640c2-e173-4dc7-84e9-2d222e46d2fc","name":"201","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"name","value":"food","type":"text"},{"key":"price","value":"10.20","type":"text"},{"key":"description","value":"lol","type":"text"},{"key":"product_details","value":"cool","type":"text"},{"key":"specifications","value":"nice","type":"text"},{"key":"main_image","type":"file","fileNotInWorkingDirectoryWarning":"This file isn't in your working directory. Teammates you share this request with won't be able to use this file. To make collaboration easier you can setup your working directory in Settings.","filesNotInWorkingDirectory":["/C:/Users/lekej/Downloads/Snapchat-1029915639.jpg"],"src":"/C:/Users/lekej/Downloads/Snapchat-1029915639.jpg"},{"key":"sub_image_1","type":"file","fileNotInWorkingDirectoryWarning":"This file isn't in your working directory. Teammates you share this request with won't be able to use this file. To make collaboration easier you can setup your working directory in Settings.","filesNotInWorkingDirectory":["/C:/Users/lekej/Downloads/Snapchat-1139520517.jpg"],"src":"/C:/Users/lekej/Downloads/Snapchat-1139520517.jpg"},{"key":"sub_image_2","type":"file","fileNotInWorkingDirectoryWarning":"This file isn't in your working directory. Teammates you share this request with won't be able to use this file. To make collaboration easier you can setup your working directory in Settings.","filesNotInWorkingDirectory":["/C:/Users/lekej/Downloads/photo_2024-01-06_00-46-05.jpg"],"src":"/C:/Users/lekej/Downloads/photo_2024-01-06_00-46-05.jpg"},{"key":"sub_image_3","type":"file","fileNotInWorkingDirectoryWarning":"This file isn't in your working directory. Teammates you share this request with won't be able to use this file. To make collaboration easier you can setup your working directory in Settings.","filesNotInWorkingDirectory":["/C:/Users/lekej/Downloads/Gold And White Happy New Year 2024 Instagram Post.png"],"src":"/C:/Users/lekej/Downloads/Gold And White Happy New Year 2024 Instagram Post.png"},{"key":"sub_image_4","type":"file","fileNotInWorkingDirectoryWarning":"This file isn't in your working directory. Teammates you share this request with won't be able to use this file. To make collaboration easier you can setup your working directory in Settings.","filesNotInWorkingDirectory":["/C:/Users/lekej/Downloads/Snapchat-1029915639.jpg"],"src":"/C:/Users/lekej/Downloads/Snapchat-1029915639.jpg"},{"key":"sub_image_5","type":"file","src":"/C:/Users/lekej/Downloads/photo_2023-12-20_16-16-15.jpg"}]},"url":"https://backend-3wgx.onrender.com/api/v1/seller/product/new"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1173"},{"key":"ETag","value":"W/\"495-mtNsQBQXWZdr96XbcVaEX0XWXts\""},{"key":"Date","value":"Thu, 11 Jan 2024 12:18:47 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"Product created successfully\",\n    \"product\": {\n        \"id\": \"c67908b5-10f7-4537-9931-304364c550a7\",\n        \"name\": \"food\",\n        \"price\": \"10.20\",\n        \"main_image\": \"http://res.cloudinary.com/dd2lqwqk2/image/upload/v1704975502/product/food_183f2500-cd6f-4f61-88ac-e38e5e9aee6e_mainImage_1704975497100.jpg\",\n        \"sub_images\": [\n            \"http://res.cloudinary.com/dd2lqwqk2/image/upload/v1704975507/product/food_183f2500-cd6f-4f61-88ac-e38e5e9aee6e_subImage1_1704975504194.jpg\",\n            \"http://res.cloudinary.com/dd2lqwqk2/image/upload/v1704975511/product/food_183f2500-cd6f-4f61-88ac-e38e5e9aee6e_subImage2_1704975509604.jpg\",\n            \"http://res.cloudinary.com/dd2lqwqk2/image/upload/v1704975518/product/food_183f2500-cd6f-4f61-88ac-e38e5e9aee6e_subImage3_1704975512131.png\",\n            \"http://res.cloudinary.com/dd2lqwqk2/image/upload/v1704975522/product/food_183f2500-cd6f-4f61-88ac-e38e5e9aee6e_subImage4_1704975520089.jpg\",\n            \"http://res.cloudinary.com/dd2lqwqk2/image/upload/v1704975526/product/food_183f2500-cd6f-4f61-88ac-e38e5e9aee6e_subImage5_1704975525283.jpg\"\n        ],\n        \"description\": \"lol\",\n        \"product_details\": \"cool\",\n        \"specifications\": \"nice\",\n        \"userId\": \"183f2500-cd6f-4f61-88ac-e38e5e9aee6e\",\n        \"createdAt\": \"2024-01-11T12:18:47.000Z\"\n    }\n}"}],"_postman_id":"f5a353a1-23c1-456c-aba4-c361257dc8fd"},{"name":"My Products","id":"b8713884-151e-4584-b7cf-dd8f6088a62d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://backend-3wgx.onrender.com/api/v1/seller/product?page=1&sortBy=price&sortOrder=asc","description":"<ul>\n<li><strong>Endpoint:</strong> <code>/api/v1/seller/product</code></li>\n<li><strong>Method:</strong> <code>GET</code></li>\n<li><strong>Description:</strong> This gets all the seller's products</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Query</th>\n<th>Required</th>\n<th>Accepted parameters</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>page</td>\n<td>false</td>\n<td>Numbers</td>\n</tr>\n<tr>\n<td>sortBy</td>\n<td>false</td>\n<td>createdAt or updatedAt</td>\n</tr>\n<tr>\n<td>sortOrder</td>\n<td>false</td>\n<td>asc or desc</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"8abbe625-8832-458c-a7d5-0f826ff566c2","id":"8abbe625-8832-458c-a7d5-0f826ff566c2","name":"Vend","type":"collection"}},"urlObject":{"path":["api","v1","seller","product"],"host":["https://backend-3wgx.onrender.com"],"query":[{"key":"page","value":"1"},{"key":"sortBy","value":"price"},{"key":"sortOrder","value":"asc"}],"variable":[]}},"response":[],"_postman_id":"b8713884-151e-4584-b7cf-dd8f6088a62d"},{"name":"Update Product","id":"beff8a3f-5d9e-4f08-8811-276fa60cf84c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\":\"Updated product\",\r\n    \"price\":\"2000\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://backend-3wgx.onrender.com/api/v1/seller/product/:id","description":"<ul>\n<li><p><strong>Endpoint:</strong> <code>/api/v1/seller/product/:id</code></p>\n</li>\n<li><p><strong>Method:</strong> <code>PUT</code></p>\n</li>\n<li><p><strong>Description:</strong> This updates a seller's products</p>\n</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Param</th>\n<th>Required</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>true</td>\n<td>the product's id</td>\n</tr>\n</tbody>\n</table>\n</div><div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Body</th>\n<th>Required</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>name</td>\n<td>false</td>\n</tr>\n<tr>\n<td>price</td>\n<td>false</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"8abbe625-8832-458c-a7d5-0f826ff566c2","id":"8abbe625-8832-458c-a7d5-0f826ff566c2","name":"Vend","type":"collection"}},"urlObject":{"path":["api","v1","seller","product",":id"],"host":["https://backend-3wgx.onrender.com"],"query":[],"variable":[{"type":"any","value":"c67908b5-10f7-4537-9931-304364c550a7","key":"id"}]}},"response":[],"_postman_id":"beff8a3f-5d9e-4f08-8811-276fa60cf84c"},{"name":"Get A product","id":"de3b21f4-7e60-4923-86cd-f822afd6080b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://backend-3wgx.onrender.com/api/v1/seller/product/:id","description":"<ul>\n<li><strong>Endpoint:</strong> <code>/api/v1/seller/product/:id</code></li>\n<li><strong>Method:</strong> <code>GET</code></li>\n<li><strong>Description:</strong> This gets a product</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Param</th>\n<th>Required</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>true</td>\n<td>the product's id</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"8abbe625-8832-458c-a7d5-0f826ff566c2","id":"8abbe625-8832-458c-a7d5-0f826ff566c2","name":"Vend","type":"collection"}},"urlObject":{"path":["api","v1","seller","product",":id"],"host":["https://backend-3wgx.onrender.com"],"query":[],"variable":[{"type":"any","value":"b5a4dadf-1f12-4b94-aee3-3d1b58942ffe","key":"id"}]}},"response":[],"_postman_id":"de3b21f4-7e60-4923-86cd-f822afd6080b"},{"name":"Delete Product","id":"7a53b051-910e-4cab-8fbf-6aeafdf0a635","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"https://backend-3wgx.onrender.com/api/v1/seller/product/:id","description":"<ul>\n<li><strong>Endpoint:</strong> <code>/api/v1/seller/product/:id</code></li>\n<li><strong>Method:</strong> <code>DELETE</code></li>\n<li><strong>Description:</strong> This deletes a product</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Param</th>\n<th>Required</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>true</td>\n<td>the product's id</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"8abbe625-8832-458c-a7d5-0f826ff566c2","id":"8abbe625-8832-458c-a7d5-0f826ff566c2","name":"Vend","type":"collection"}},"urlObject":{"path":["api","v1","seller","product",":id"],"host":["https://backend-3wgx.onrender.com"],"query":[],"variable":[{"type":"any","value":"b5a4dadf-1f12-4b94-aee3-3d1b58942ffe","key":"id"}]}},"response":[],"_postman_id":"7a53b051-910e-4cab-8fbf-6aeafdf0a635"}],"id":"4e0a4a9e-5f7f-43ee-b7ad-5c24a02d02c2","_postman_id":"4e0a4a9e-5f7f-43ee-b7ad-5c24a02d02c2","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"8abbe625-8832-458c-a7d5-0f826ff566c2","id":"8abbe625-8832-458c-a7d5-0f826ff566c2","name":"Vend","type":"collection"}}},{"name":"Inventory","item":[{"name":"Create Inventory","id":"0b5ed32e-49e6-4936-867b-3eeb10d7c80a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"[\r\n    {\r\n        \"productId\": \"30615dae-3309-420a-b10e-ce92426cbbd2\",\r\n        \"quantity\": \"2\",\r\n        \"size\": \"S\"\r\n    },\r\n    {\r\n        \"productId\": \"30615dae-3309-420a-b10e-ce92426cbbd2\",\r\n        \"quantity\": \"10\",\r\n        \"size\": \"XL\"\r\n    },\r\n    {\r\n        \"productId\": \"30615dae-3309-420a-b10e-ce92426cbbd2\",\r\n        \"quantity\": \"1\",\r\n        \"size\": \"XXL\"\r\n    }\r\n]\r\n","options":{"raw":{"language":"json"}}},"url":"https://backend-3wgx.onrender.com/api/v1/seller/inventory/","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"8abbe625-8832-458c-a7d5-0f826ff566c2","id":"8abbe625-8832-458c-a7d5-0f826ff566c2","name":"Vend","type":"collection"}},"urlObject":{"path":["api","v1","seller","inventory",""],"host":["https://backend-3wgx.onrender.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"0b5ed32e-49e6-4936-867b-3eeb10d7c80a"},{"name":"Get Product Inventories","id":"0d653795-cbb3-41d7-ae5a-b81ffea06ad0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://backend-3wgx.onrender.com/api/v1/seller/inventory/product/:id/","description":"<ul>\n<li><strong>Endpoint:</strong> <code>/api/v1/seller/inventory/product/:id</code></li>\n<li><strong>Method:</strong> <code>GET</code></li>\n<li><strong>Description:</strong> This gets a product inventory</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Params</th>\n<th>Required</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>true</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"8abbe625-8832-458c-a7d5-0f826ff566c2","id":"8abbe625-8832-458c-a7d5-0f826ff566c2","name":"Vend","type":"collection"}},"urlObject":{"path":["api","v1","seller","inventory","product",":id",""],"host":["https://backend-3wgx.onrender.com"],"query":[],"variable":[{"type":"any","value":"a9fee6c9-c385-4770-b20e-34703cbbeef9","key":"id"}]}},"response":[],"_postman_id":"0d653795-cbb3-41d7-ae5a-b81ffea06ad0"},{"name":"Edit An Inventory","id":"7c28ac5a-7f57-437b-a1fb-18688a5481c3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"batchNumber\":\"1omce2200MMM\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://backend-3wgx.onrender.com/api/v1/seller/inventory/:id/product/:productId","description":"<ul>\n<li><strong>Endpoint:</strong> <code>/api/v1/seller/inventory/:id/product/:productId</code></li>\n<li><strong>Method:</strong> <code>PUT</code></li>\n<li><strong>Description:</strong> This update an inventory of a product</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parmas</th>\n<th>Required</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>true</td>\n<td>the inventory id for the update</td>\n</tr>\n<tr>\n<td>productId</td>\n<td>true</td>\n<td>the product id for the inventory update</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"8abbe625-8832-458c-a7d5-0f826ff566c2","id":"8abbe625-8832-458c-a7d5-0f826ff566c2","name":"Vend","type":"collection"}},"urlObject":{"path":["api","v1","seller","inventory",":id","product",":productId"],"host":["https://backend-3wgx.onrender.com"],"query":[],"variable":[{"type":"any","value":"90194593-4740-4627-860e-965d30e51dee","key":"id"},{"type":"any","value":"da4735d8-0d9e-4d1d-8a2b-e1b257f84e0f","key":"productId"}]}},"response":[],"_postman_id":"7c28ac5a-7f57-437b-a1fb-18688a5481c3"},{"name":"Get An Inventory For A Product","id":"7b1e9bd8-051c-453b-8e6c-790f40defe1a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://backend-3wgx.onrender.com/api/v1/seller/inventory/:id/product/:productId","description":"<ul>\n<li><p><strong>Endpoint:</strong> <code>/api/v1/seller/inventory/:id/product/:productId</code></p>\n</li>\n<li><p><strong>Method:</strong> <code>GET</code></p>\n</li>\n<li><p><strong>Description:</strong> This gets an inventory of a product</p>\n</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parmas</th>\n<th>Required</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>true</td>\n<td>the inventory id</td>\n</tr>\n<tr>\n<td>productId</td>\n<td>true</td>\n<td>the product id for the inventory</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"8abbe625-8832-458c-a7d5-0f826ff566c2","id":"8abbe625-8832-458c-a7d5-0f826ff566c2","name":"Vend","type":"collection"}},"urlObject":{"path":["api","v1","seller","inventory",":id","product",":productId"],"host":["https://backend-3wgx.onrender.com"],"query":[],"variable":[{"type":"any","value":"afc96d1c-0c0e-4a02-816d-18c40c369339","key":"id"},{"type":"any","value":"da4735d8-0d9e-4d1d-8a2b-e1b257f84e0f","key":"productId"}]}},"response":[],"_postman_id":"7b1e9bd8-051c-453b-8e6c-790f40defe1a"},{"name":"Delete A Inventory","id":"b3f04109-2645-420f-8353-27474b07ee15","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"https://backend-3wgx.onrender.com/api/v1/seller/inventory/:id/product/:productId","description":"<ul>\n<li><strong>Endpoint:</strong> <code>/api/v1/seller/inventory/:id/product/:productId</code></li>\n<li><strong>Method:</strong> <code>DELETE</code></li>\n<li><strong>Description:</strong> This deletes an inventory of a product</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>as</th>\n<th>Required</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>true</td>\n<td>the inventory id</td>\n</tr>\n<tr>\n<td>productId</td>\n<td>true</td>\n<td>the product id for the inventory</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"8abbe625-8832-458c-a7d5-0f826ff566c2","id":"8abbe625-8832-458c-a7d5-0f826ff566c2","name":"Vend","type":"collection"}},"urlObject":{"path":["api","v1","seller","inventory",":id","product",":productId"],"host":["https://backend-3wgx.onrender.com"],"query":[],"variable":[{"type":"any","value":"afc96d1c-0c0e-4a02-816d-18c40c369339","key":"id"},{"type":"any","value":"da4735d8-0d9e-4d1d-8a2b-e1b257f84e0f","key":"productId"}]}},"response":[],"_postman_id":"b3f04109-2645-420f-8353-27474b07ee15"}],"id":"d20862b2-4bd1-4437-834d-7de2e3c50451","description":"<ul>\n<li><strong>Endpoint:</strong> <code>/api/v1/seller/inventory</code></li>\n<li><strong>Method:</strong> <code>POST</code></li>\n<li><strong>Description:</strong> This create a product inventory</li>\n<li>it accept array, you can enter multiple inventory for a product</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Body</th>\n<th>Required</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>productId</td>\n<td>true</td>\n<td>This is the id you want to create an inventory for</td>\n</tr>\n<tr>\n<td>quantity</td>\n<td>true</td>\n<td>Qunatity available for the particular inventory</td>\n</tr>\n<tr>\n<td>size</td>\n<td>false</td>\n<td>If Product is either clothe/shoe or it has size realted to it</td>\n</tr>\n<tr>\n<td>color</td>\n<td>false</td>\n<td>For color related product</td>\n</tr>\n<tr>\n<td>style</td>\n<td>false</td>\n<td>For style related product</td>\n</tr>\n<tr>\n<td>material</td>\n<td>false</td>\n<td>For material related product</td>\n</tr>\n<tr>\n<td>pattern</td>\n<td>false</td>\n<td>For pattern related product</td>\n</tr>\n<tr>\n<td>model</td>\n<td>false</td>\n<td>For model related product</td>\n</tr>\n<tr>\n<td>batchNumber</td>\n<td>false</td>\n<td>For products that has batch number</td>\n</tr>\n<tr>\n<td>expirationDate</td>\n<td>false</td>\n<td>For product that has exipration date</td>\n</tr>\n<tr>\n<td>weight</td>\n<td>false</td>\n<td>For product that deals with weight</td>\n</tr>\n<tr>\n<td>length</td>\n<td>false</td>\n<td>For product that deals with length</td>\n</tr>\n<tr>\n<td>width</td>\n<td>false</td>\n<td>For product that deals with width</td>\n</tr>\n<tr>\n<td>height</td>\n<td>false</td>\n<td>For product that deals with height</td>\n</tr>\n<tr>\n<td>serialNumber</td>\n<td>false</td>\n<td>For product that has serial Numbers maybe electronics</td>\n</tr>\n<tr>\n<td>season</td>\n<td>false</td>\n<td>For product that deals with season</td>\n</tr>\n<tr>\n<td>countryOfOrigin</td>\n<td>false</td>\n<td>For product made in another country</td>\n</tr>\n<tr>\n<td>condition</td>\n<td>false</td>\n<td>For product condition either \"brand new\", \"refurbished\",\"open box\" and so on</td>\n</tr>\n<tr>\n<td>other</td>\n<td>false</td>\n<td>if your products don't have it's invetory details provided above...  <br />NB: This only accepts array</td>\n</tr>\n</tbody>\n</table>\n</div>","_postman_id":"d20862b2-4bd1-4437-834d-7de2e3c50451","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"8abbe625-8832-458c-a7d5-0f826ff566c2","id":"8abbe625-8832-458c-a7d5-0f826ff566c2","name":"Vend","type":"collection"}}},{"name":"Order","item":[{"name":"Get All Orders","id":"950131ac-248f-4ef8-9ae6-ac16f5949696","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://backend-3wgx.onrender.com/api/v1/seller/order?page=1&sortBy=createdAt&sortOrder=asc","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"8abbe625-8832-458c-a7d5-0f826ff566c2","id":"8abbe625-8832-458c-a7d5-0f826ff566c2","name":"Vend","type":"collection"}},"urlObject":{"path":["api","v1","seller","order"],"host":["https://backend-3wgx.onrender.com"],"query":[{"key":"page","value":"1"},{"key":"sortBy","value":"createdAt"},{"key":"sortOrder","value":"asc"}],"variable":[]}},"response":[],"_postman_id":"950131ac-248f-4ef8-9ae6-ac16f5949696"}],"id":"4142840d-4bf9-488d-b717-7bc60d9dba92","_postman_id":"4142840d-4bf9-488d-b717-7bc60d9dba92","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"8abbe625-8832-458c-a7d5-0f826ff566c2","id":"8abbe625-8832-458c-a7d5-0f826ff566c2","name":"Vend","type":"collection"}}},{"name":"Become a seller","id":"13d44cf7-a4ae-4bc7-9823-bef7b4a88ec3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"id_number\": \"qwertyu111\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://backend-3wgx.onrender.com/api/v1/seller/become","description":"<ul>\n<li><strong>Endpoint:</strong> <code>/api/v1/seller/become</code></li>\n<li><strong>Method:</strong> <code>PUT</code></li>\n<li><strong>Description:</strong> This to submit Id number to become a seller</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"8abbe625-8832-458c-a7d5-0f826ff566c2","id":"8abbe625-8832-458c-a7d5-0f826ff566c2","name":"Vend","type":"collection"}},"urlObject":{"path":["api","v1","seller","become"],"host":["https://backend-3wgx.onrender.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"13d44cf7-a4ae-4bc7-9823-bef7b4a88ec3"}],"id":"7adb1795-0b00-4808-acfa-233d0da00bac","description":"<p>Contains endpoint only accesible by sellers</p>\n","_postman_id":"7adb1795-0b00-4808-acfa-233d0da00bac","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"8abbe625-8832-458c-a7d5-0f826ff566c2","id":"8abbe625-8832-458c-a7d5-0f826ff566c2","name":"Vend","type":"collection"}}},{"name":"Admin","item":[{"name":"Seller","item":[{"name":"Pending Sellers","id":"c4193f7e-10cf-404f-8e84-1385476d2f25","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://backend-3wgx.onrender.com/api/v1/admin/seller/pending","description":"<ul>\n<li><p><strong>Endpoint:</strong> <code>/api/v1/admin/seller/pending</code></p>\n</li>\n<li><p><strong>Method:</strong> <code>GET</code></p>\n</li>\n<li><p><strong>Description:</strong> To gett all user who has applied to become a seller</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"8abbe625-8832-458c-a7d5-0f826ff566c2","id":"8abbe625-8832-458c-a7d5-0f826ff566c2","name":"Vend","type":"collection"}},"urlObject":{"path":["api","v1","admin","seller","pending"],"host":["https://backend-3wgx.onrender.com"],"query":[],"variable":[]}},"response":[{"id":"815ba5b2-813e-4da4-b1b8-e92a0e4a309f","name":"200","originalRequest":{"method":"GET","header":[],"url":"https://backend-3wgx.onrender.com/api/v1/admin/seller/pending"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"245"},{"key":"ETag","value":"W/\"f5-vU9unU7lyaxRdh2yLW7ZhsliBoE\""},{"key":"Date","value":"Thu, 11 Jan 2024 08:46:33 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"Pending Sellers\",\n    \"users\": [\n        {\n            \"id\": \"183f2500-cd6f-4f61-88ac-e38e5e9aee6e\",\n            \"first_name\": \"leke\",\n            \"last_name\": \"leke\",\n            \"email\": \"lekejosh6wf@gmail.com\",\n            \"role\": \"buyer\",\n            \"isVerified\": 1,\n            \"phoneNumber\": null,\n            \"id_number\": \"qwertyu111\"\n        }\n    ]\n}"}],"_postman_id":"c4193f7e-10cf-404f-8e84-1385476d2f25"},{"name":"Approve Pending seller","id":"89ba6ade-c68c-4c71-ae18-2b9f8b87fdd3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"url":"https://backend-3wgx.onrender.com/api/v1/admin/seller/pending/approve/:id","description":"<ul>\n<li><p><strong>Endpoint:</strong> <code>/api/v1/admin/seller/pending</code></p>\n</li>\n<li><p><strong>Method:</strong> <code>PUT</code></p>\n</li>\n<li><p><strong>Description:</strong> This to approve users watiting to become a seller</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"8abbe625-8832-458c-a7d5-0f826ff566c2","id":"8abbe625-8832-458c-a7d5-0f826ff566c2","name":"Vend","type":"collection"}},"urlObject":{"path":["api","v1","admin","seller","pending","approve",":id"],"host":["https://backend-3wgx.onrender.com"],"query":[],"variable":[{"type":"any","value":"8678f42c-5dd8-4f04-afdd-86370b004a3e","key":"id"}]}},"response":[{"id":"5336b767-2c3a-4ef4-8a49-e2d4c371f5f4","name":"200","originalRequest":{"method":"PUT","header":[],"url":{"raw":"https://backend-3wgx.onrender.com/api/v1/admin/seller/pending/approve/:id","host":["https://backend-3wgx.onrender.com"],"path":["api","v1","admin","seller","pending","approve",":id"],"variable":[{"key":"id","value":"183f2500-cd6f-4f61-88ac-e38e5e9aee6e"}]}},"status":"Created","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"54"},{"key":"ETag","value":"W/\"36-2gHZPureG8/1jnijDyDeVAFX4Us\""},{"key":"Date","value":"Thu, 11 Jan 2024 09:07:50 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"User updated successfully\"\n}"}],"_postman_id":"89ba6ade-c68c-4c71-ae18-2b9f8b87fdd3"},{"name":"Get All Seller","id":"14eed859-fc46-499e-8a25-200e4874c091","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://backend-3wgx.onrender.com/api/v1/admin/seller/","description":"<ul>\n<li><p><strong>Endpoint:</strong> <code>/api/v1/admin/seller</code></p>\n</li>\n<li><p><strong>Method:</strong> <code>GET</code></p>\n</li>\n<li><p><strong>Description:</strong> This to get all seller</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"8abbe625-8832-458c-a7d5-0f826ff566c2","id":"8abbe625-8832-458c-a7d5-0f826ff566c2","name":"Vend","type":"collection"}},"urlObject":{"path":["api","v1","admin","seller",""],"host":["https://backend-3wgx.onrender.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"14eed859-fc46-499e-8a25-200e4874c091"}],"id":"4dc56d60-5b60-4cdd-af84-4854884f0e21","_postman_id":"4dc56d60-5b60-4cdd-af84-4854884f0e21","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"8abbe625-8832-458c-a7d5-0f826ff566c2","id":"8abbe625-8832-458c-a7d5-0f826ff566c2","name":"Vend","type":"collection"}}},{"name":"User","item":[{"name":"Get All Users","id":"640f0d3c-d43a-4f53-9be0-229cbece6eef","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://backend-3wgx.onrender.com/api/v1/admin/user","description":"<ul>\n<li><p><strong>Endpoint:</strong> <code>/api/v1/admin/user</code></p>\n</li>\n<li><p><strong>Method:</strong> <code>GET</code></p>\n</li>\n<li><p><strong>Description:</strong> This to get all users</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"8abbe625-8832-458c-a7d5-0f826ff566c2","id":"8abbe625-8832-458c-a7d5-0f826ff566c2","name":"Vend","type":"collection"}},"urlObject":{"path":["api","v1","admin","user"],"host":["https://backend-3wgx.onrender.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"640f0d3c-d43a-4f53-9be0-229cbece6eef"},{"name":"Get A User","id":"b00a6916-6683-4898-a862-1ad584f0d1f8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://backend-3wgx.onrender.com/api/v1/admin/user/:id","description":"<ul>\n<li><strong>Endpoint:</strong> <code>/api/v1/admin/user/:id</code></li>\n<li><strong>Method:</strong> <code>GET</code></li>\n<li><strong>Description:</strong> This to a user</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"8abbe625-8832-458c-a7d5-0f826ff566c2","id":"8abbe625-8832-458c-a7d5-0f826ff566c2","name":"Vend","type":"collection"}},"urlObject":{"path":["api","v1","admin","user",":id"],"host":["https://backend-3wgx.onrender.com"],"query":[],"variable":[{"type":"any","value":"111897ab-ded9-4da9-bf9f-b767cb8ead86","key":"id"}]}},"response":[],"_postman_id":"b00a6916-6683-4898-a862-1ad584f0d1f8"}],"id":"69ef0365-fef2-4a2d-8394-5dc32dd2fe4e","_postman_id":"69ef0365-fef2-4a2d-8394-5dc32dd2fe4e","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"8abbe625-8832-458c-a7d5-0f826ff566c2","id":"8abbe625-8832-458c-a7d5-0f826ff566c2","name":"Vend","type":"collection"}}},{"name":"Products","item":[{"name":"Get All Products","id":"88a5aa0c-714e-4c31-875c-ce48543da3fa","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://backend-3wgx.onrender.com/api/v1/admin/product","description":"<ul>\n<li><strong>Endpoint:</strong> <code>/api/v1/admin/product</code></li>\n<li><strong>Method:</strong> <code>GET</code></li>\n<li><strong>Description:</strong> This to all products</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"8abbe625-8832-458c-a7d5-0f826ff566c2","id":"8abbe625-8832-458c-a7d5-0f826ff566c2","name":"Vend","type":"collection"}},"urlObject":{"path":["api","v1","admin","product"],"host":["https://backend-3wgx.onrender.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"88a5aa0c-714e-4c31-875c-ce48543da3fa"},{"name":"Get A product","id":"0cbb1f86-0542-421f-98f4-175c09bb7fee","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://backend-3wgx.onrender.com/api/v1/admin/product/:id","description":"<ul>\n<li><p><strong>Endpoint:</strong> <code>/api/v1/admin/product/:id</code></p>\n</li>\n<li><p><strong>Method:</strong> <code>GET</code></p>\n</li>\n<li><p><strong>Description:</strong> This to a product</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"8abbe625-8832-458c-a7d5-0f826ff566c2","id":"8abbe625-8832-458c-a7d5-0f826ff566c2","name":"Vend","type":"collection"}},"urlObject":{"path":["api","v1","admin","product",":id"],"host":["https://backend-3wgx.onrender.com"],"query":[],"variable":[{"type":"any","value":"da4735d8-0d9e-4d1d-8a2b-e1b257f84e0f","key":"id"}]}},"response":[],"_postman_id":"0cbb1f86-0542-421f-98f4-175c09bb7fee"}],"id":"8e293348-e81b-4b8a-bab6-0299c0338691","_postman_id":"8e293348-e81b-4b8a-bab6-0299c0338691","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"8abbe625-8832-458c-a7d5-0f826ff566c2","id":"8abbe625-8832-458c-a7d5-0f826ff566c2","name":"Vend","type":"collection"}}},{"name":"Order","item":[{"name":"Get A Order","id":"e5bd5674-1e10-4b3c-b7f8-6ad49c343449","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://backend-3wgx.onrender.com/api/v1/admin/order/:id","description":"<ul>\n<li><p><strong>Endpoint:</strong> <code>/api/v1/order/:id/</code></p>\n</li>\n<li><p><strong>Method:</strong> <code>GET</code></p>\n</li>\n<li><p><strong>Description:</strong> This is to get a user's order</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"8abbe625-8832-458c-a7d5-0f826ff566c2","id":"8abbe625-8832-458c-a7d5-0f826ff566c2","name":"Vend","type":"collection"}},"urlObject":{"path":["api","v1","admin","order",":id"],"host":["https://backend-3wgx.onrender.com"],"query":[],"variable":[{"id":"5291328c-f5cd-4561-8bea-cd3b13b72a54","type":"any","value":"4ff2668a-ad0e-44c6-b592-19476c722e4f","key":"id"}]}},"response":[],"_postman_id":"e5bd5674-1e10-4b3c-b7f8-6ad49c343449"},{"name":"Get All Orders","id":"e74605cc-d1e6-48fd-8722-8cf3d7091af2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://backend-3wgx.onrender.com/api/v1/admin/order?page=1&sortBy=createdAt&sortOrder=asc","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"8abbe625-8832-458c-a7d5-0f826ff566c2","id":"8abbe625-8832-458c-a7d5-0f826ff566c2","name":"Vend","type":"collection"}},"urlObject":{"path":["api","v1","admin","order"],"host":["https://backend-3wgx.onrender.com"],"query":[{"key":"page","value":"1"},{"key":"sortBy","value":"createdAt"},{"key":"sortOrder","value":"asc"},{"disabled":true,"key":"status","value":"pending"}],"variable":[]}},"response":[],"_postman_id":"e74605cc-d1e6-48fd-8722-8cf3d7091af2"}],"id":"4578e53e-5940-4c0d-b254-4d27359f0c83","_postman_id":"4578e53e-5940-4c0d-b254-4d27359f0c83","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"8abbe625-8832-458c-a7d5-0f826ff566c2","id":"8abbe625-8832-458c-a7d5-0f826ff566c2","name":"Vend","type":"collection"}}},{"name":"Transaction","item":[{"name":"Get Total Revenue","id":"46bed1ed-e12f-4ac9-9167-ebced1deb5c3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://backend-3wgx.onrender.com/api/v1/admin/transaction/revenue","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"8abbe625-8832-458c-a7d5-0f826ff566c2","id":"8abbe625-8832-458c-a7d5-0f826ff566c2","name":"Vend","type":"collection"}},"urlObject":{"path":["api","v1","admin","transaction","revenue"],"host":["https://backend-3wgx.onrender.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"46bed1ed-e12f-4ac9-9167-ebced1deb5c3"},{"name":"Get All Transactions","id":"70c26df5-9ed9-47de-ae75-4f15a6f1f363","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://backend-3wgx.onrender.com/api/v1/admin/transaction?page=1&sortBy=createdAt&sortedOrder=asc&status=successfull","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"8abbe625-8832-458c-a7d5-0f826ff566c2","id":"8abbe625-8832-458c-a7d5-0f826ff566c2","name":"Vend","type":"collection"}},"urlObject":{"path":["api","v1","admin","transaction"],"host":["https://backend-3wgx.onrender.com"],"query":[{"key":"page","value":"1"},{"key":"sortBy","value":"createdAt"},{"key":"sortedOrder","value":"asc"},{"key":"status","value":"successfull"}],"variable":[]}},"response":[],"_postman_id":"70c26df5-9ed9-47de-ae75-4f15a6f1f363"}],"id":"67675de3-9d5c-4412-b407-9bc9a1f28a26","_postman_id":"67675de3-9d5c-4412-b407-9bc9a1f28a26","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"8abbe625-8832-458c-a7d5-0f826ff566c2","id":"8abbe625-8832-458c-a7d5-0f826ff566c2","name":"Vend","type":"collection"}}}],"id":"ea831898-79d6-4548-9f17-b87165883cfa","description":"<p>Protected for admins only</p>\n","_postman_id":"ea831898-79d6-4548-9f17-b87165883cfa","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"8abbe625-8832-458c-a7d5-0f826ff566c2","id":"8abbe625-8832-458c-a7d5-0f826ff566c2","name":"Vend","type":"collection"}}},{"name":"Product","item":[{"name":"Brands","item":[{"name":"Get All Brands","id":"ed4bc482-8308-46dc-ab4c-469a744797b3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://backend-3wgx.onrender.com/api/v1/product/brands","description":"<ul>\n<li><strong>Endpoint:</strong> <code>/api/v1/product/brand</code></li>\n<li><strong>Method:</strong> <code>GET</code></li>\n<li><strong>Description:</strong> This to all brands</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"8abbe625-8832-458c-a7d5-0f826ff566c2","id":"8abbe625-8832-458c-a7d5-0f826ff566c2","name":"Vend","type":"collection"}},"urlObject":{"path":["api","v1","product","brands"],"host":["https://backend-3wgx.onrender.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"ed4bc482-8308-46dc-ab4c-469a744797b3"},{"name":"Init","id":"84c72d41-3f10-49a9-bdac-1636bb46a4ab","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"url":"https://backend-3wgx.onrender.com/api/v1/product/brands/init","description":"<ul>\n<li><strong>Endpoint:</strong> <code>/api/v1/product/brands/init</code></li>\n<li><strong>Method:</strong> <code>POST</code></li>\n<li><strong>Description:</strong> This to populate the database with pre made brands</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"8abbe625-8832-458c-a7d5-0f826ff566c2","id":"8abbe625-8832-458c-a7d5-0f826ff566c2","name":"Vend","type":"collection"}},"urlObject":{"path":["api","v1","product","brands","init"],"host":["https://backend-3wgx.onrender.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"84c72d41-3f10-49a9-bdac-1636bb46a4ab"}],"id":"659c15ab-8dda-4e36-98ef-bd505c864159","_postman_id":"659c15ab-8dda-4e36-98ef-bd505c864159","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"8abbe625-8832-458c-a7d5-0f826ff566c2","id":"8abbe625-8832-458c-a7d5-0f826ff566c2","name":"Vend","type":"collection"}}},{"name":"Categories","item":[{"name":"Get All Categories","id":"99331b3c-8cf3-4ca1-993d-4dc10424f865","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://backend-3wgx.onrender.com/api/v1/product/categories","description":"<ul>\n<li><p><strong>Endpoint:</strong> <code>/api/v1/product/categories</code></p>\n</li>\n<li><p><strong>Method:</strong> <code>GET</code></p>\n</li>\n<li><p><strong>Description:</strong> This to all categories</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"8abbe625-8832-458c-a7d5-0f826ff566c2","id":"8abbe625-8832-458c-a7d5-0f826ff566c2","name":"Vend","type":"collection"}},"urlObject":{"path":["api","v1","product","categories"],"host":["https://backend-3wgx.onrender.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"99331b3c-8cf3-4ca1-993d-4dc10424f865"},{"name":"Init","id":"715fe281-e83f-420e-aae7-cf7c434d7d57","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"url":"https://backend-3wgx.onrender.com/api/v1/product/categories/init","description":"<ul>\n<li><strong>Endpoint:</strong> <code>/api/v1/product/categories/init</code></li>\n<li><strong>Method:</strong> <code>POST</code></li>\n<li><strong>Description:</strong> This to populate the database with pre made categories</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"8abbe625-8832-458c-a7d5-0f826ff566c2","id":"8abbe625-8832-458c-a7d5-0f826ff566c2","name":"Vend","type":"collection"}},"urlObject":{"path":["api","v1","product","categories","init"],"host":["https://backend-3wgx.onrender.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"715fe281-e83f-420e-aae7-cf7c434d7d57"}],"id":"6a7f4588-3627-41b7-a6d6-20fa6152275e","_postman_id":"6a7f4588-3627-41b7-a6d6-20fa6152275e","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"8abbe625-8832-458c-a7d5-0f826ff566c2","id":"8abbe625-8832-458c-a7d5-0f826ff566c2","name":"Vend","type":"collection"}}},{"name":"Inventory","item":[{"name":"Get Product Inventories","id":"30b5873e-0ee7-42f9-9e6e-33db03a920a0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://backend-3wgx.onrender.com/api/v1/product/inventory/product/:id/","description":"<ul>\n<li><strong>Endpoint:</strong> <code>/api/v1/product/inventory/product/:id</code></li>\n<li><strong>Method:</strong> <code>GET</code></li>\n<li><strong>Description:</strong> This to get inventories for a particular product</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"8abbe625-8832-458c-a7d5-0f826ff566c2","id":"8abbe625-8832-458c-a7d5-0f826ff566c2","name":"Vend","type":"collection"}},"urlObject":{"path":["api","v1","product","inventory","product",":id",""],"host":["https://backend-3wgx.onrender.com"],"query":[],"variable":[{"type":"any","value":"967a2608-1c94-4a28-b3d3-14d53a8f09c1","key":"id"}]}},"response":[{"id":"bc8ee480-14ae-4bc1-bef4-ffe384b38bfd","name":"200","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://backend-3wgx.onrender.com/api/v1/product/inventory/product/:id/","host":["https://backend-3wgx.onrender.com"],"path":["api","v1","product","inventory","product",":id",""],"variable":[{"key":"id","value":"da4735d8-0d9e-4d1d-8a2b-e1b257f84e0f"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"528"},{"key":"ETag","value":"W/\"210-IDNSZTA/lx+DfyaUcuQXhggdfZI\""},{"key":"Date","value":"Mon, 15 Jan 2024 23:14:33 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"Product Inventories\",\n    \"inventories\": [\n        {\n            \"id\": \"90194593-4740-4627-860e-965d30e51dee\",\n            \"quantity\": 10,\n            \"productId\": \"da4735d8-0d9e-4d1d-8a2b-e1b257f84e0f\",\n            \"size\": \"S\",\n            \"color\": null,\n            \"style\": null,\n            \"material\": null,\n            \"pattern\": null,\n            \"model\": null,\n            \"batchNumber\": \"1omce2200MMM\",\n            \"expirationDate\": null,\n            \"weight\": null,\n            \"length\": null,\n            \"width\": null,\n            \"height\": null,\n            \"serialNumber\": null,\n            \"season\": null,\n            \"countryOfOrigin\": null,\n            \"condition\": null,\n            \"others\": null,\n            \"createdAt\": \"2024-01-15T22:54:30.000Z\",\n            \"updatedAt\": \"2024-01-15T23:06:45.000Z\"\n        }\n    ]\n}"}],"_postman_id":"30b5873e-0ee7-42f9-9e6e-33db03a920a0"},{"name":"Get A Product Inventory","id":"ab77ef89-04cc-442b-9fd9-bd29c8145a11","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://backend-3wgx.onrender.com/api/v1/seller/inventory/:id/product/:productId","description":"<ul>\n<li><p><strong>Endpoint:</strong> <code>/api/v1/product/inventory/:id/product/:productId</code></p>\n</li>\n<li><p><strong>Method:</strong> <code>GET</code></p>\n</li>\n<li><p><strong>Description:</strong> This to get a particular inventory for a particular product</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"8abbe625-8832-458c-a7d5-0f826ff566c2","id":"8abbe625-8832-458c-a7d5-0f826ff566c2","name":"Vend","type":"collection"}},"urlObject":{"path":["api","v1","seller","inventory",":id","product",":productId"],"host":["https://backend-3wgx.onrender.com"],"query":[],"variable":[{"type":"any","value":"90194593-4740-4627-860e-965d30e51dee","key":"id"},{"type":"any","value":"da4735d8-0d9e-4d1d-8a2b-e1b257f84e0f","key":"productId"}]}},"response":[{"id":"cf246557-2dd4-481c-b195-9d76d1158a09","name":"200","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://backend-3wgx.onrender.com/api/v1/seller/inventory/:id/product/:productId","host":["https://backend-3wgx.onrender.com"],"path":["api","v1","seller","inventory",":id","product",":productId"],"variable":[{"key":"id","value":"90194593-4740-4627-860e-965d30e51dee"},{"key":"productId","value":"da4735d8-0d9e-4d1d-8a2b-e1b257f84e0f"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"542"},{"key":"ETag","value":"W/\"21e-F/oNmME+AIDepgVYbyIb1VZ0ZpY\""},{"key":"Date","value":"Mon, 15 Jan 2024 23:17:01 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"Product Inventory Update Successfully\",\n    \"inventory\": {\n        \"id\": \"90194593-4740-4627-860e-965d30e51dee\",\n        \"quantity\": 10,\n        \"productId\": \"da4735d8-0d9e-4d1d-8a2b-e1b257f84e0f\",\n        \"size\": \"S\",\n        \"color\": null,\n        \"style\": null,\n        \"material\": null,\n        \"pattern\": null,\n        \"model\": null,\n        \"batchNumber\": \"1omce2200MMM\",\n        \"expirationDate\": null,\n        \"weight\": null,\n        \"length\": null,\n        \"width\": null,\n        \"height\": null,\n        \"serialNumber\": null,\n        \"season\": null,\n        \"countryOfOrigin\": null,\n        \"condition\": null,\n        \"others\": null,\n        \"createdAt\": \"2024-01-15T22:54:30.000Z\",\n        \"updatedAt\": \"2024-01-15T23:06:45.000Z\"\n    }\n}"}],"_postman_id":"ab77ef89-04cc-442b-9fd9-bd29c8145a11"}],"id":"de600bc5-0ddc-49dd-985a-2f990a395e62","_postman_id":"de600bc5-0ddc-49dd-985a-2f990a395e62","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"8abbe625-8832-458c-a7d5-0f826ff566c2","id":"8abbe625-8832-458c-a7d5-0f826ff566c2","name":"Vend","type":"collection"}}},{"name":"index","id":"5b49719c-8eab-4254-a829-b6aa56209d7a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://backend-3wgx.onrender.com/api/v1/product/product/","description":"<ul>\n<li><strong>Endpoint:</strong> <code>/api/v1/product/product/</code></li>\n<li><strong>Method:</strong> <code>GET</code></li>\n<li><strong>Description:</strong> This to get the basic hompage</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"8abbe625-8832-458c-a7d5-0f826ff566c2","id":"8abbe625-8832-458c-a7d5-0f826ff566c2","name":"Vend","type":"collection"}},"urlObject":{"path":["api","v1","product","product",""],"host":["https://backend-3wgx.onrender.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"5b49719c-8eab-4254-a829-b6aa56209d7a"},{"name":"Get A Product","id":"3fdcea01-1939-40b1-8b92-92cd8955c804","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://backend-3wgx.onrender.com/api/v1/product/product/:id","description":"<ul>\n<li><p><strong>Endpoint:</strong> <code>/api/v1/product/product/:id</code></p>\n</li>\n<li><p><strong>Method:</strong> <code>GET</code></p>\n</li>\n<li><p><strong>Description:</strong> This to get a particular product</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"8abbe625-8832-458c-a7d5-0f826ff566c2","id":"8abbe625-8832-458c-a7d5-0f826ff566c2","name":"Vend","type":"collection"}},"urlObject":{"path":["api","v1","product","product",":id"],"host":["https://backend-3wgx.onrender.com"],"query":[],"variable":[{"type":"any","value":"f1fd4667-88da-493d-b5ed-66bb3ed987a3","key":"id"}]}},"response":[],"_postman_id":"3fdcea01-1939-40b1-8b92-92cd8955c804"}],"id":"12d253fe-88f6-46a6-8e98-8d124d71ab3c","_postman_id":"12d253fe-88f6-46a6-8e98-8d124d71ab3c","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"8abbe625-8832-458c-a7d5-0f826ff566c2","id":"8abbe625-8832-458c-a7d5-0f826ff566c2","name":"Vend","type":"collection"}}},{"name":"Order","item":[{"name":"Cart","item":[{"name":"Get Cart","id":"ca0f5293-f019-428a-a14d-150125f32814","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://backend-3wgx.onrender.com/api/v1/order/cart","description":"<ul>\n<li><strong>Endpoint:</strong> <code>/api/v1/order/cart/</code></li>\n<li><strong>Method:</strong> <code>GET</code></li>\n<li><strong>Description:</strong> This to get a users cart</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"8abbe625-8832-458c-a7d5-0f826ff566c2","id":"8abbe625-8832-458c-a7d5-0f826ff566c2","name":"Vend","type":"collection"}},"urlObject":{"path":["api","v1","order","cart"],"host":["https://backend-3wgx.onrender.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"ca0f5293-f019-428a-a14d-150125f32814"},{"name":"Add product to user's Cart","id":"679d1ce3-4306-4165-bf55-eb87f5f52555","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"productId\":\"58a750ea-80c6-43fb-8d91-89e96d7889ba\",\r\n    \"inventoryId\":\"600513d2-68a6-4a3b-8340-6de7f518d260\",\r\n    \"quantity\":10\r\n}","options":{"raw":{"language":"json"}}},"url":"https://backend-3wgx.onrender.com/api/v1/order/cart","description":"<ul>\n<li><p><strong>Endpoint:</strong> <code>/api/v1/product/product/</code></p>\n</li>\n<li><p><strong>Method:</strong> <code>POST</code></p>\n</li>\n<li><p><strong>Description:</strong> This to add product to a cart</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"8abbe625-8832-458c-a7d5-0f826ff566c2","id":"8abbe625-8832-458c-a7d5-0f826ff566c2","name":"Vend","type":"collection"}},"urlObject":{"path":["api","v1","order","cart"],"host":["https://backend-3wgx.onrender.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"679d1ce3-4306-4165-bf55-eb87f5f52555"},{"name":"Remove","id":"feffe705-1af5-427f-af3f-8a51dbe47306","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"body":{"mode":"raw","raw":"{\r\n    \"productId\":\"6a501339-a4d3-4ec6-8b8a-7e20b019fff5\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://backend-3wgx.onrender.com/api/v1/order/cart","description":"<ul>\n<li><p><strong>Endpoint:</strong> <code>/api/v1/product/product/</code></p>\n</li>\n<li><p><strong>Method:</strong> <code>DELETE</code></p>\n</li>\n<li><p><strong>Description:</strong> This to remove a product from user's cart</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"8abbe625-8832-458c-a7d5-0f826ff566c2","id":"8abbe625-8832-458c-a7d5-0f826ff566c2","name":"Vend","type":"collection"}},"urlObject":{"path":["api","v1","order","cart"],"host":["https://backend-3wgx.onrender.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"feffe705-1af5-427f-af3f-8a51dbe47306"},{"name":"Edit Cart","id":"c6321a7e-b60b-49c8-ad65-9ab1d7091a46","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"productId\":\"967a2608-1c94-4a28-b3d3-14d53a8f09c1\",\r\n    \"inventoryId\":\"15386be3-4ce7-4bc6-a556-da60474fa41c\",\r\n    \"quantity\":2\r\n}","options":{"raw":{"language":"json"}}},"url":"https://backend-3wgx.onrender.com/api/v1/order/cart","description":"<ul>\n<li><p><strong>Endpoint:</strong> <code>/api/v1/product/product/</code></p>\n</li>\n<li><p><strong>Method:</strong> <code>PUT</code></p>\n</li>\n<li><p><strong>Description:</strong> This to edit a product in a cart</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"8abbe625-8832-458c-a7d5-0f826ff566c2","id":"8abbe625-8832-458c-a7d5-0f826ff566c2","name":"Vend","type":"collection"}},"urlObject":{"path":["api","v1","order","cart"],"host":["https://backend-3wgx.onrender.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"c6321a7e-b60b-49c8-ad65-9ab1d7091a46"}],"id":"0a0dd72d-fff4-40e5-b70f-efe86af592e3","description":"<p>Cart is used to gather all the products before making a orrder</p>\n","_postman_id":"0a0dd72d-fff4-40e5-b70f-efe86af592e3","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"8abbe625-8832-458c-a7d5-0f826ff566c2","id":"8abbe625-8832-458c-a7d5-0f826ff566c2","name":"Vend","type":"collection"}}},{"name":"Order","item":[{"name":"Create Order","id":"e389ab7a-57fa-4e02-9b19-0f10a2d431a9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"url":"https://backend-3wgx.onrender.com/api/v1/order/","description":"<ul>\n<li><p><strong>Endpoint:</strong> <code>/api/v1/order/</code></p>\n</li>\n<li><p><strong>Method:</strong> <code>POST</code></p>\n</li>\n<li><p><strong>Description:</strong> This to create an order from all the products the user has added into his cart</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"8abbe625-8832-458c-a7d5-0f826ff566c2","id":"8abbe625-8832-458c-a7d5-0f826ff566c2","name":"Vend","type":"collection"}},"urlObject":{"path":["api","v1","order",""],"host":["https://backend-3wgx.onrender.com"],"query":[],"variable":[]}},"response":[{"id":"7a470fb3-4707-423a-8fd0-028cd213c5b4","name":"201","originalRequest":{"method":"POST","header":[],"url":"https://backend-3wgx.onrender.com/api/v1/order/"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"957"},{"key":"ETag","value":"W/\"3bd-1Knh5DGvsT6G8HX3ipebLrpS4qM\""},{"key":"Date","value":"Tue, 16 Jan 2024 14:54:27 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"Order created successfully\",\n    \"order\": {\n        \"id\": \"4ff2668a-ad0e-44c6-b592-19476c722e4f\",\n        \"userId\": \"3e7f8838-3abb-4554-b5bf-bb9153bbca73\",\n        \"status\": \"pending\",\n        \"carts\": [\n            {\n                \"id\": \"5d1b361f-ff60-4e56-95d5-f23c238dd12f\",\n                \"userId\": \"3e7f8838-3abb-4554-b5bf-bb9153bbca73\",\n                \"productId\": \"c850c8a0-5423-4a31-bd84-3d8ef2010266\",\n                \"quantity\": 10,\n                \"prices\": 100000,\n                \"inventoryId\": \"b4fa404b-0af1-4b6a-95af-10eaae917b59\",\n                \"createdAt\": \"2024-01-16T14:11:56.000Z\",\n                \"updatedAt\": \"2024-01-16T14:11:56.000Z\"\n            },\n            {\n                \"id\": \"e17dfbbb-ddb2-408f-8a2f-f2a50319ee2d\",\n                \"userId\": \"3e7f8838-3abb-4554-b5bf-bb9153bbca73\",\n                \"productId\": \"9f03b5fd-9efb-47b1-8bf3-bee3377eea25\",\n                \"quantity\": 1,\n                \"prices\": 500,\n                \"inventoryId\": \"a5f1589d-4b13-4e5d-a4e1-e7c672031ef9\",\n                \"createdAt\": \"2024-01-16T14:08:57.000Z\",\n                \"updatedAt\": \"2024-01-16T14:08:57.000Z\"\n            }\n        ],\n        \"productsAmount\": 100500,\n        \"taxAmount\": 8040,\n        \"delieveryAmount\": 9045,\n        \"totalAmount\": 117585,\n        \"updatedAt\": \"2024-01-16T14:54:27.009Z\",\n        \"createdAt\": \"2024-01-16T14:54:27.009Z\"\n    }\n}"}],"_postman_id":"e389ab7a-57fa-4e02-9b19-0f10a2d431a9"},{"name":"Edit Order","id":"5e681d9c-b787-4c75-884f-597d8bffed96","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"addressId\":\"4ca21dd5-7586-4056-8f68-0f468f572476\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://backend-3wgx.onrender.com/api/v1/order/:id","description":"<ul>\n<li><strong>Endpoint:</strong> <code>/api/v1/order/:id/</code></li>\n<li><strong>Method:</strong> <code>PUT</code></li>\n<li><strong>Description:</strong> This is to edit an order</li>\n<li>Body: addressId or deliveryNote</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"8abbe625-8832-458c-a7d5-0f826ff566c2","id":"8abbe625-8832-458c-a7d5-0f826ff566c2","name":"Vend","type":"collection"}},"urlObject":{"path":["api","v1","order",":id"],"host":["https://backend-3wgx.onrender.com"],"query":[],"variable":[{"type":"any","value":"4ff2668a-ad0e-44c6-b592-19476c722e4f","key":"id"}]}},"response":[],"_postman_id":"5e681d9c-b787-4c75-884f-597d8bffed96"},{"name":"All Orders","id":"811968c1-a759-4843-8e17-88301414e0ca","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://backend-3wgx.onrender.com/api/v1/order?status=pending","description":"<ul>\n<li><p><strong>Endpoint:</strong> <code>/api/v1/order/</code></p>\n</li>\n<li><p><strong>Method:</strong> <code>GET</code></p>\n</li>\n<li><p><strong>Description:</strong> This is to get all user's order</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"8abbe625-8832-458c-a7d5-0f826ff566c2","id":"8abbe625-8832-458c-a7d5-0f826ff566c2","name":"Vend","type":"collection"}},"urlObject":{"path":["api","v1","order"],"host":["https://backend-3wgx.onrender.com"],"query":[{"key":"status","value":"pending"}],"variable":[]}},"response":[],"_postman_id":"811968c1-a759-4843-8e17-88301414e0ca"},{"name":"Delete Order","id":"54bad91b-4a01-4a0f-bed4-eee9cc0576a2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"https://backend-3wgx.onrender.com/api/v1/order/:id","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"8abbe625-8832-458c-a7d5-0f826ff566c2","id":"8abbe625-8832-458c-a7d5-0f826ff566c2","name":"Vend","type":"collection"}},"urlObject":{"path":["api","v1","order",":id"],"host":["https://backend-3wgx.onrender.com"],"query":[],"variable":[{"type":"any","value":"be779179-6cf6-4695-9c4e-648f6ea9d999","key":"id"}]}},"response":[],"_postman_id":"54bad91b-4a01-4a0f-bed4-eee9cc0576a2"},{"name":"Get A Order","id":"b704ac47-c6c4-4c42-bdd3-2081d8e5ae93","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://backend-3wgx.onrender.com/api/v1/order/:id","description":"<ul>\n<li><p><strong>Endpoint:</strong> <code>/api/v1/order/:id/</code></p>\n</li>\n<li><p><strong>Method:</strong> <code>GET</code></p>\n</li>\n<li><p><strong>Description:</strong> This is to get a user's order</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"8abbe625-8832-458c-a7d5-0f826ff566c2","id":"8abbe625-8832-458c-a7d5-0f826ff566c2","name":"Vend","type":"collection"}},"urlObject":{"path":["api","v1","order",":id"],"host":["https://backend-3wgx.onrender.com"],"query":[],"variable":[{"type":"any","value":"4ff2668a-ad0e-44c6-b592-19476c722e4f","key":"id"}]}},"response":[],"_postman_id":"b704ac47-c6c4-4c42-bdd3-2081d8e5ae93"}],"id":"d3610baa-aa4f-41f2-a38c-191f3f57d68f","_postman_id":"d3610baa-aa4f-41f2-a38c-191f3f57d68f","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"8abbe625-8832-458c-a7d5-0f826ff566c2","id":"8abbe625-8832-458c-a7d5-0f826ff566c2","name":"Vend","type":"collection"}}}],"id":"f17ca43b-d1dc-4f48-902f-2974ac2029dc","_postman_id":"f17ca43b-d1dc-4f48-902f-2974ac2029dc","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"8abbe625-8832-458c-a7d5-0f826ff566c2","id":"8abbe625-8832-458c-a7d5-0f826ff566c2","name":"Vend","type":"collection"}}},{"name":"Transaction","item":[{"name":"Wallet","item":[{"name":"Get Wallet","id":"72145aa1-c5de-4569-bf70-160247367b4c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://backend-3wgx.onrender.com/api/v1/transaction/wallet","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"8abbe625-8832-458c-a7d5-0f826ff566c2","id":"8abbe625-8832-458c-a7d5-0f826ff566c2","name":"Vend","type":"collection"}},"urlObject":{"path":["api","v1","transaction","wallet"],"host":["https://backend-3wgx.onrender.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"72145aa1-c5de-4569-bf70-160247367b4c"}],"id":"fca9a3c4-ee35-4e20-b686-6a6d6be71756","_postman_id":"fca9a3c4-ee35-4e20-b686-6a6d6be71756","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"8abbe625-8832-458c-a7d5-0f826ff566c2","id":"8abbe625-8832-458c-a7d5-0f826ff566c2","name":"Vend","type":"collection"}}},{"name":"Balance","item":[{"name":"Get Balance","id":"96b23598-d20e-4646-bcbb-d6bca4049584","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://backend-3wgx.onrender.com/api/v1/transaction/balance/:id/wallet/:walletId","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"8abbe625-8832-458c-a7d5-0f826ff566c2","id":"8abbe625-8832-458c-a7d5-0f826ff566c2","name":"Vend","type":"collection"}},"urlObject":{"path":["api","v1","transaction","balance",":id","wallet",":walletId"],"host":["https://backend-3wgx.onrender.com"],"query":[],"variable":[{"type":"any","value":"49bf2e65-3dc9-44b9-9e04-a2d749110283","key":"id"},{"type":"any","value":"cbe2ebdb-cc3a-4af2-aff2-3309e47a0eee","key":"walletId"}]}},"response":[],"_postman_id":"96b23598-d20e-4646-bcbb-d6bca4049584"}],"id":"aeb70caa-0c7b-4155-9ae3-17aecec8bdd8","_postman_id":"aeb70caa-0c7b-4155-9ae3-17aecec8bdd8","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"8abbe625-8832-458c-a7d5-0f826ff566c2","id":"8abbe625-8832-458c-a7d5-0f826ff566c2","name":"Vend","type":"collection"}}},{"name":"Escrow","item":[{"name":"Get User Escrow","id":"a4c2b10f-d5ae-447b-9a2f-a0a953cb0ab2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://backend-3wgx.onrender.com/api/v1/transaction/escrow","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"8abbe625-8832-458c-a7d5-0f826ff566c2","id":"8abbe625-8832-458c-a7d5-0f826ff566c2","name":"Vend","type":"collection"}},"urlObject":{"path":["api","v1","transaction","escrow"],"host":["https://backend-3wgx.onrender.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"a4c2b10f-d5ae-447b-9a2f-a0a953cb0ab2"}],"id":"cf7f59f5-9525-498b-8619-25f2d43987a5","_postman_id":"cf7f59f5-9525-498b-8619-25f2d43987a5","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"8abbe625-8832-458c-a7d5-0f826ff566c2","id":"8abbe625-8832-458c-a7d5-0f826ff566c2","name":"Vend","type":"collection"}}},{"name":"Initialize Order payment","id":"f9ef672b-a25e-4c62-b924-031824541190","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://backend-3wgx.onrender.com/api/v1/transaction/order/:id","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"8abbe625-8832-458c-a7d5-0f826ff566c2","id":"8abbe625-8832-458c-a7d5-0f826ff566c2","name":"Vend","type":"collection"}},"urlObject":{"path":["api","v1","transaction","order",":id"],"host":["https://backend-3wgx.onrender.com"],"query":[],"variable":[{"type":"any","value":"5299b1ec-d30a-4b7e-be28-ffd32c31ebd0","key":"id"}]}},"response":[],"_postman_id":"f9ef672b-a25e-4c62-b924-031824541190"},{"name":"Retrieve a Transaction","id":"7ac99c97-5679-475e-ae77-c484d901a2c8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://backend-3wgx.onrender.com/api/v1/transaction/retrieve/:id","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"8abbe625-8832-458c-a7d5-0f826ff566c2","id":"8abbe625-8832-458c-a7d5-0f826ff566c2","name":"Vend","type":"collection"}},"urlObject":{"path":["api","v1","transaction","retrieve",":id"],"host":["https://backend-3wgx.onrender.com"],"query":[],"variable":[{"type":"any","value":"9aa0b659-2b7c-4bdc-b473-adc2f316e855","key":"id"}]}},"response":[],"_postman_id":"7ac99c97-5679-475e-ae77-c484d901a2c8"}],"id":"88e4b422-d677-4575-b67e-2ab7845c0489","_postman_id":"88e4b422-d677-4575-b67e-2ab7845c0489","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"8abbe625-8832-458c-a7d5-0f826ff566c2","id":"8abbe625-8832-458c-a7d5-0f826ff566c2","name":"Vend","type":"collection"}}},{"name":"Notification","item":[{"name":"All Notification","id":"bbdf8110-a035-4c69-a5b8-0ea4f4b9bcde","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://backend-3wgx.onrender.com/api/v1/notification/","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"8abbe625-8832-458c-a7d5-0f826ff566c2","id":"8abbe625-8832-458c-a7d5-0f826ff566c2","name":"Vend","type":"collection"}},"urlObject":{"path":["api","v1","notification",""],"host":["https://backend-3wgx.onrender.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"bbdf8110-a035-4c69-a5b8-0ea4f4b9bcde"},{"name":"Read Notification","id":"28e18b55-3262-4e41-9171-2b456f158719","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"url":"https://backend-3wgx.onrender.com/api/v1/notification/:id","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"8abbe625-8832-458c-a7d5-0f826ff566c2","id":"8abbe625-8832-458c-a7d5-0f826ff566c2","name":"Vend","type":"collection"}},"urlObject":{"path":["api","v1","notification",":id"],"host":["https://backend-3wgx.onrender.com"],"query":[],"variable":[{"type":"any","value":"a704be57-1599-4783-b118-54b4d5842fb6","key":"id"}]}},"response":[],"_postman_id":"28e18b55-3262-4e41-9171-2b456f158719"}],"id":"4154e44f-4b4b-479b-8114-877240d0d2e8","_postman_id":"4154e44f-4b4b-479b-8114-877240d0d2e8","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"8abbe625-8832-458c-a7d5-0f826ff566c2","id":"8abbe625-8832-458c-a7d5-0f826ff566c2","name":"Vend","type":"collection"}}},{"name":"Courier","item":[{"name":"Edit order Status","id":"3b019108-5092-4d76-b07b-42a485ceb283","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"status\": \"shipped\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://backend-3wgx.onrender.com/api/v1/courier/order/:id","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"8abbe625-8832-458c-a7d5-0f826ff566c2","id":"8abbe625-8832-458c-a7d5-0f826ff566c2","name":"Vend","type":"collection"}},"urlObject":{"path":["api","v1","courier","order",":id"],"host":["https://backend-3wgx.onrender.com"],"query":[],"variable":[{"type":"any","value":"540e9c69-ad86-4c46-a84a-5cf5206331c3","key":"id"}]}},"response":[],"_postman_id":"3b019108-5092-4d76-b07b-42a485ceb283"}],"id":"75e8cd0c-e738-4966-b8e3-b37add55b53d","_postman_id":"75e8cd0c-e738-4966-b8e3-b37add55b53d","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"8abbe625-8832-458c-a7d5-0f826ff566c2","id":"8abbe625-8832-458c-a7d5-0f826ff566c2","name":"Vend","type":"collection"}}},{"name":"base","id":"eef6ebd7-3de4-40d5-9f7a-ebb80d6dbd3f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://backend-3wgx.onrender.com","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"8abbe625-8832-458c-a7d5-0f826ff566c2","id":"8abbe625-8832-458c-a7d5-0f826ff566c2","name":"Vend","type":"collection"}},"urlObject":{"host":["https://backend-3wgx.onrender.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"eef6ebd7-3de4-40d5-9f7a-ebb80d6dbd3f"}],"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]}},"event":[{"listen":"prerequest","script":{"id":"5e1195dc-fada-4ad2-b7a6-2d7381dc412d","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"c2f2eb12-787b-476f-8b52-b00d4a5f0b18","type":"text/javascript","exec":[""]}}],"variable":[{"key":"BASE_URL","value":"https://backend-3wgx.onrender.com","type":"string"},{"key":"token","value":"","disabled":true},{"key":"token","value":""}]}