{"info":{"_postman_id":"843f6954-f862-457c-a228-9a9a46d3fd8c","name":"Invoice-API","description":"<html><head></head><body><p>A system used to manage invoices of products purchased. Can be especially useful for retail stores and even big supermarkets.<br>The kind of token that will be used in this API is bearer token.</p>\n<p>If you then want to use the API, use this header instead:<br><code>'Authorization': 'Bearer token'</code></p>\n<p>Token will be gotten from the login endpoint.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"25448393","collectionId":"843f6954-f862-457c-a228-9a9a46d3fd8c","publishedId":"2sA3BuW8d9","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2024-04-28T18:12:19.000Z"},"item":[{"name":"User","item":[{"name":"Register","id":"0c6e1222-8446-45cb-a119-ae09049947de","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"username\": \"devjoboy\",\r\n  \"email\": \"devjoboy@gmail.com\",\r\n  \"password\": \"Korede@036\",\r\n  \"password2\": \"Korede@036\",\r\n  \"first_name\": \"Dev\",\r\n  \"last_name\": \"Joboy\",\r\n  \"role\": \"vendor\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/auth/register","description":"<p>This endpoint is used to register a new user.</p>\n<p>The following will be required for the request body:</p>\n<ul>\n<li><p>username: str   </p>\n</li>\n<li><p>email: str</p>\n</li>\n<li><p>password: str   </p>\n</li>\n<li><p>password2: str   </p>\n</li>\n<li><p>first_name: str   </p>\n</li>\n<li><p>last_name: str   </p>\n</li>\n<li><p>role: str- The following toles are available: - <strong>admin</strong>, <strong>employee</strong>, <strong>customer</strong></p>\n</li>\n</ul>\n","urlObject":{"path":["auth","register"],"host":["http://127.0.0.1:8000"],"query":[],"variable":[]}},"response":[{"id":"cff5d7b2-6507-46a0-a153-8f28648d774a","name":"Register","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"username\": \"oluwakorede\",\r\n  \"email\": \"oluwakoredeadegbehingbe@gmail.com\",\r\n  \"password\": \"Korede@036\",\r\n  \"password2\": \"Korede@036\",\r\n  \"first_name\": \"Joseph\",\r\n  \"last_name\": \"Korede\",\r\n  \"role\": \"customer\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/auth/register"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"date","value":"Sat, 04 May 2024 10:48:42 GMT"},{"key":"server","value":"uvicorn"},{"key":"content-length","value":"77"},{"key":"content-type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Check oluwakoredeadegbehingbe@gmail.com for a verification link\"\n}"}],"_postman_id":"0c6e1222-8446-45cb-a119-ae09049947de"},{"name":"Verify email","id":"8b1dbb23-6ebc-4831-8773-3703775c21ce","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://127.0.0.1:8000/email/verify?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoiMjYzNmExMWYtNjA2OC00ZTQzLWJhYWItYjk5NDVkMTg1NDBiIiwiZXhwIjoxNzE0NTY5NjkyfQ.KaBnhLQ3jAYzBCXVPtC0jpLuek6FfGfH7HrJ6EmZUMM.","description":"<p>This endpoint will be used to verify a user's account. All that is needed is a token that will be sent to the user's email and will be passed into the query parameters for this endpoint.</p>\n","urlObject":{"path":["email","verify"],"host":["http://127.0.0.1:8000"],"query":[{"key":"token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoiMjYzNmExMWYtNjA2OC00ZTQzLWJhYWItYjk5NDVkMTg1NDBiIiwiZXhwIjoxNzE0NTY5NjkyfQ.KaBnhLQ3jAYzBCXVPtC0jpLuek6FfGfH7HrJ6EmZUMM."}],"variable":[]}},"response":[],"_postman_id":"8b1dbb23-6ebc-4831-8773-3703775c21ce"},{"name":"Login","event":[{"listen":"test","script":{"id":"ee5c1b31-cbc5-4123-a799-868642aecaa2","exec":["pm.environment.set(\"JWT\", pm.response.json().access_token);"],"type":"text/javascript","packages":{}}}],"id":"65a0acd5-42a7-494f-a35c-97f96aebaa97","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"username","value":"josephkorede36","type":"text"},{"key":"password","value":"Korede@036","type":"text"}]},"url":"http://127.0.0.1:8000/auth/login","description":"<p>This endpoint will be used to login a user.</p>\n<p>The data needed in the request body is as follows:</p>\n<ul>\n<li><p>username: str</p>\n</li>\n<li><p>password: str</p>\n</li>\n</ul>\n<p>As you login, an access token will be provided and must be included in request headers for you to have access to other endpoints.</p>\n<p>As it is a JWT access token that will be provided. It should be used this way:</p>\n<p><code>Authorization: Bearer</code></p>\n","urlObject":{"path":["auth","login"],"host":["http://127.0.0.1:8000"],"query":[],"variable":[]}},"response":[{"id":"a542bd6d-369e-4368-9b39-c5a86e3b4761","name":"Login","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"username","value":"josephkorede36","type":"text"},{"key":"password","value":"Korede@036","type":"text"}]},"url":"http://127.0.0.1:8000/auth/login"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"date","value":"Sun, 28 Apr 2024 13:35:48 GMT"},{"key":"server","value":"uvicorn"},{"key":"content-length","value":"212"},{"key":"content-type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"access_token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoiMjYzNmExMWYtNjA2OC00ZTQzLWJhYWItYjk5NDVkMTg1NDBiIiwiZXhwIjoxNzE0NTcwNTQ5fQ.CNwjzkYoNK8ya0EomLQXeJnjKBJnAX_Zf6JoOxJv0H0\",\n    \"token_type\": \"bearer\"\n}"}],"_postman_id":"65a0acd5-42a7-494f-a35c-97f96aebaa97"},{"name":"Get user details","id":"59b727ae-6764-4edf-b0ec-f7fbd265356a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{JWT}}","type":"text"}],"url":"http://127.0.0.1:8000/user/profile","description":"<p>This endpoint will be used to get the details of the current logged in user.</p>\n","urlObject":{"path":["user","profile"],"host":["http://127.0.0.1:8000"],"query":[],"variable":[]}},"response":[{"id":"e92f71ce-7fd7-4c6c-89a1-e02794c2369f","name":"Get user details","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoiMjYzNmExMWYtNjA2OC00ZTQzLWJhYWItYjk5NDVkMTg1NDBiIiwiZXhwIjoxNzE0NTcwNTQ5fQ.CNwjzkYoNK8ya0EomLQXeJnjKBJnAX_Zf6JoOxJv0H0","type":"text"}],"url":"http://127.0.0.1:8000/user/profile"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"date","value":"Sun, 28 Apr 2024 13:38:02 GMT"},{"key":"server","value":"uvicorn"},{"key":"content-length","value":"272"},{"key":"content-type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"2636a11f-6068-4e43-baab-b9945d18540b\",\n    \"username\": \"josephkorede36\",\n    \"email\": \"josephkorede36@gmail.com\",\n    \"first_name\": \"Joseph\",\n    \"last_name\": \"Korede\",\n    \"profile_pic\": null,\n    \"role\": \"customer\",\n    \"created_at\": \"2024-04-28T14:21:32.560359+01:00\",\n    \"is_verified\": true,\n    \"is_active\": true\n}"}],"_postman_id":"59b727ae-6764-4edf-b0ec-f7fbd265356a"},{"name":"Reverify email","id":"ee2df416-95df-4ecc-8175-69cf7d3cf5cd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"josephkorede36@gmail.com\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/email/reverify","description":"<p>Thie endpoint is used to reverify email in case of any error with the initial verification after sign up.</p>\n","urlObject":{"path":["email","reverify"],"host":["http://127.0.0.1:8000"],"query":[],"variable":[]}},"response":[{"id":"a3662c7e-09bf-4b54-a314-5262e53e75c7","name":"Reverify email","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"joboydev@gmail.com\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/email/reverify"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"date","value":"Sun, 28 Apr 2024 14:21:33 GMT"},{"key":"server","value":"uvicorn"},{"key":"content-length","value":"62"},{"key":"content-type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Check joboydev@gmail.com for a verification link\"\n}"}],"_postman_id":"ee2df416-95df-4ecc-8175-69cf7d3cf5cd"},{"name":"Logout","id":"d3cd6465-a8f7-4816-ab3c-40f466559287","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{JWT}}","type":"text"}],"url":"http://127.0.0.1:8000/auth/logout","description":"<p>This endpoint will be used to logout a user.</p>\n","urlObject":{"path":["auth","logout"],"host":["http://127.0.0.1:8000"],"query":[],"variable":[]}},"response":[{"id":"139b6075-32b7-4c83-b837-7b620551d7f2","name":"Logout","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoiMjYzNmExMWYtNjA2OC00ZTQzLWJhYWItYjk5NDVkMTg1NDBiIiwiZXhwIjoxNzE0NTcwNTQ5fQ.CNwjzkYoNK8ya0EomLQXeJnjKBJnAX_Zf6JoOxJv0H0","type":"text"}],"url":"http://127.0.0.1:8000/auth/logout"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"date","value":"Sun, 28 Apr 2024 13:43:32 GMT"},{"key":"server","value":"uvicorn"},{"key":"content-length","value":"37"},{"key":"content-type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": \"Logged out successfully\"\n}"}],"_postman_id":"d3cd6465-a8f7-4816-ab3c-40f466559287"},{"name":"Get all users","id":"e02a725e-873d-4de4-b778-186a3052320a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{JWT}}","type":"text"}],"url":"http://127.0.0.1:8000/user","description":"<p>This endpoint will be used to retrieve all users from the database</p>\n","urlObject":{"path":["user"],"host":["http://127.0.0.1:8000"],"query":[{"disabled":true,"key":"","value":null}],"variable":[]}},"response":[{"id":"b7f9cad5-bfa7-4be8-a658-1a5c2e82b937","name":"Get all users","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoiNTIxMmVlMWQtN2MwNC00MDQwLThlMzctYWU4MDk4YWZkMjkzIiwiZXhwIjoxNzE0NTcxNDYzfQ.pq6-RLAji-w7Uyrtbc6nLZZKqfI_8saFc58m8s3Q1MY","type":"text"}],"url":"http://127.0.0.1:8000/user"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"date","value":"Sun, 28 Apr 2024 14:25:07 GMT"},{"key":"server","value":"uvicorn"},{"key":"content-length","value":"1078"},{"key":"content-type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": \"2636a11f-6068-4e43-baab-b9945d18540b\",\n        \"username\": \"josephkorede36\",\n        \"email\": \"josephkorede36@gmail.com\",\n        \"first_name\": \"Joseph\",\n        \"last_name\": \"Korede\",\n        \"profile_pic\": null,\n        \"role\": \"customer\",\n        \"created_at\": \"2024-04-28T14:21:32.560359+01:00\",\n        \"is_verified\": true,\n        \"is_active\": true\n    },\n    {\n        \"id\": \"25426ba2-2418-4063-a09a-765e72ea9efa\",\n        \"username\": \"oluwakorede\",\n        \"email\": \"oluwakoredeadegbehingbe@gmail.com\",\n        \"first_name\": \"Joseph\",\n        \"last_name\": \"Korede\",\n        \"profile_pic\": null,\n        \"role\": \"admin\",\n        \"created_at\": \"2024-04-28T14:27:14.980760+01:00\",\n        \"is_verified\": true,\n        \"is_active\": true\n    },\n    {\n        \"id\": \"5212ee1d-7c04-4040-8e37-ae8098afd293\",\n        \"username\": \"korede\",\n        \"email\": \"adegbehingbeoluwakorede@gmail.com\",\n        \"first_name\": \"Joseph\",\n        \"last_name\": \"Ade\",\n        \"profile_pic\": null,\n        \"role\": \"manager\",\n        \"created_at\": \"2024-04-28T14:31:08.002331+01:00\",\n        \"is_verified\": true,\n        \"is_active\": true\n    },\n    {\n        \"id\": \"850b89b5-d700-4ab2-bda4-a7a39272782f\",\n        \"username\": \"joboydev\",\n        \"email\": \"joboydev@gmail.com\",\n        \"first_name\": \"Joboy\",\n        \"last_name\": \"Dev\",\n        \"profile_pic\": null,\n        \"role\": \"employee\",\n        \"created_at\": \"2024-04-28T15:21:06.154596+01:00\",\n        \"is_verified\": false,\n        \"is_active\": true\n    }\n]"}],"_postman_id":"e02a725e-873d-4de4-b778-186a3052320a"},{"name":"Update details","id":"0cf151a4-d3f2-4559-86c4-3e3fba5edfe1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Authorization","value":"Bearer {{JWT}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"username\": \"josephkorede36\",\r\n  \"first_name\": \"Joe\",\r\n  \"last_name\": \"Kore\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/user/profile/update","description":"<p>This endpoint will be used to update the logged in user's details.</p>\n<p>The request data is as follows:</p>\n<ul>\n<li><p>username: str   </p>\n</li>\n<li><p>first_name: str   </p>\n</li>\n<li><p>last_name: str</p>\n</li>\n</ul>\n","urlObject":{"path":["user","profile","update"],"host":["http://127.0.0.1:8000"],"query":[],"variable":[]}},"response":[{"id":"479a5167-7f61-463a-bdd6-160c8e8ce323","name":"Update details","originalRequest":{"method":"PUT","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoiMjYzNmExMWYtNjA2OC00ZTQzLWJhYWItYjk5NDVkMTg1NDBiIiwiZXhwIjoxNzE0NTcxNDM3fQ.gJASCwN0ILVUnTE6-9_9PbpfH_B8sllnPQHLFbbU4a8","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"username\": \"josephkorede36\",\r\n  \"first_name\": \"Joe\",\r\n  \"last_name\": \"Kore\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/user/profile/update"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"date","value":"Sun, 28 Apr 2024 17:52:40 GMT"},{"key":"server","value":"uvicorn"},{"key":"content-length","value":"267"},{"key":"content-type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"2636a11f-6068-4e43-baab-b9945d18540b\",\n    \"username\": \"josephkorede36\",\n    \"email\": \"josephkorede36@gmail.com\",\n    \"first_name\": \"Joe\",\n    \"last_name\": \"Kore\",\n    \"profile_pic\": null,\n    \"role\": \"customer\",\n    \"created_at\": \"2024-04-28T14:21:32.560359+01:00\",\n    \"is_verified\": true,\n    \"is_active\": true\n}"}],"_postman_id":"0cf151a4-d3f2-4559-86c4-3e3fba5edfe1"},{"name":"Update email","id":"18757fa9-1645-4efd-a54f-04c4f636f990","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{JWT}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"devjoboy@gmail.com\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/user/email/update","description":"<p>This endpoint is used to update a user's email.</p>\n<p>The request data is a s follows:</p>\n<ul>\n<li>email: str</li>\n</ul>\n<p>Before the email is changed fully., the user will have to reverify that email so they can have full access to their account.</p>\n","urlObject":{"path":["user","email","update"],"host":["http://127.0.0.1:8000"],"query":[],"variable":[]}},"response":[{"id":"87239018-853e-4bc0-8379-64bf43a11241","name":"Update email","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoiODUwYjg5YjUtZDcwMC00YWIyLWJkYTQtYTdhMzkyNzI3ODJmIiwiZXhwIjoxNzE0NTc0MDI2fQ.jvUMlwNiw1sjBpg4a4tCOlfOkqLDAq-E5Ju-70RYq8A","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"devjoboy@gmail.com\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/user/email/update"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"date","value":"Sun, 28 Apr 2024 14:39:29 GMT"},{"key":"server","value":"uvicorn"},{"key":"content-length","value":"91"},{"key":"content-type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Email changed successfully. Check devjoboy@gmail.com for a verification link.\"\n}"}],"_postman_id":"18757fa9-1645-4efd-a54f-04c4f636f990"},{"name":"Change password","id":"ac9edbd9-e3a0-4965-b53e-5b9f83c5ec68","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{JWT}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"devjoboy@gmail.com\",\r\n    \"old_password\": \"Korede@037\",\r\n    \"new_password\": \"Korede@036\",\r\n    \"password2\": \"Korede@036\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/user/password/change","description":"<p>This endpoint is used to change a user's password.</p>\n<p>The request data is a s follows:</p>\n<ul>\n<li>email: str</li>\n<li>old_password: str</li>\n<li>new_password: str</li>\n<li>password2: str- for confirmation</li>\n</ul>\n","urlObject":{"path":["user","password","change"],"host":["http://127.0.0.1:8000"],"query":[],"variable":[]}},"response":[{"id":"6839b0cd-6886-4d2b-aff7-9f96ce0fa040","name":"Change password","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoiODUwYjg5YjUtZDcwMC00YWIyLWJkYTQtYTdhMzkyNzI3ODJmIiwiZXhwIjoxNzE0NTc0MDI2fQ.jvUMlwNiw1sjBpg4a4tCOlfOkqLDAq-E5Ju-70RYq8A","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"devjoboy@gmail.com\",\r\n    \"old_password\": \"Korede@037\",\r\n    \"new_password\": \"Korede@036\",\r\n    \"password2\": \"Korede@036\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/user/password/change"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"date","value":"Sun, 28 Apr 2024 14:44:08 GMT"},{"key":"server","value":"uvicorn"},{"key":"content-length","value":"43"},{"key":"content-type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Password changed successfully\"\n}"}],"_postman_id":"ac9edbd9-e3a0-4965-b53e-5b9f83c5ec68"},{"name":"Update profile picture","id":"6a1b283d-a614-4c5d-8192-b427a5a909af","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Authorization","value":"Bearer {{JWT}}"}],"body":{"mode":"formdata","formdata":[{"key":"profile_pic","type":"file","src":"/C:/Users/USER/Pictures/joseph.jpg"}]},"url":"http://127.0.0.1:8000/user/profile-picture/update","description":"<p>This endpoint will be used to update a user's profile picture.</p>\n<p>The request data will be:</p>\n<ul>\n<li>profile_pic: File</li>\n</ul>\n","urlObject":{"path":["user","profile-picture","update"],"host":["http://127.0.0.1:8000"],"query":[],"variable":[]}},"response":[{"id":"71930dd2-014e-466a-98e7-aee476f47313","name":"Update profile picture","originalRequest":{"method":"PUT","header":[{"key":"Authorization","value":"Bearer {{JWT}}"}],"body":{"mode":"formdata","formdata":[{"key":"profile_pic","type":"file","src":"/C:/Users/USER/Pictures/joseph.jpg"}]},"url":"http://127.0.0.1:8000/user/profile-picture/update"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"date","value":"Tue, 21 May 2024 11:05:07 GMT"},{"key":"server","value":"uvicorn"},{"key":"content-length","value":"225"},{"key":"content-type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"file_name\": \"joseph-72bac1a4ad.jpg\",\n    \"download_url\": \"https://firebasestorage.googleapis.com/v0/b/python-storage-d1e10.appspot.com/o/invoice_api%2Fuser%2F9fc1c738-0707-42e3-a474-97f3da2dc3e7%2Fjoseph-72bac1a4ad.jpg?alt=media\"\n}"}],"_postman_id":"6a1b283d-a614-4c5d-8192-b427a5a909af"},{"name":"Delete account","id":"e7b21450-2b1a-4438-a965-a9b823eb4d3c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Authorization","value":"Bearer {{JWT}}","type":"text"}],"url":"http://127.0.0.1:8000/user/delete","description":"<p>This endpoint is used to delete a user's account. The account will be rendered as inactive and won't be deleted outrightly.</p>\n","urlObject":{"path":["user","delete"],"host":["http://127.0.0.1:8000"],"query":[],"variable":[]}},"response":[{"id":"cb152a41-1369-4ac5-90d3-1edc8c50ef46","name":"Delete account","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoiODUwYjg5YjUtZDcwMC00YWIyLWJkYTQtYTdhMzkyNzI3ODJmIiwiZXhwIjoxNzE0NTc0MDI2fQ.jvUMlwNiw1sjBpg4a4tCOlfOkqLDAq-E5Ju-70RYq8A","type":"text"}],"url":"http://127.0.0.1:8000/user/delete"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"date","value":"Sun, 28 Apr 2024 14:50:32 GMT"},{"key":"server","value":"uvicorn"},{"key":"content-length","value":"38"},{"key":"content-type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"User deletion successful\"\n}"}],"_postman_id":"e7b21450-2b1a-4438-a965-a9b823eb4d3c"},{"name":"Create customer profile","id":"7b8d9606-1073-4b1a-b6d2-2749a25acfa3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{JWT}}"}],"body":{"mode":"raw","raw":"{\r\n  \"phone_number\": \"08021351855\",\r\n  \"billing_address\": \"Ikeja, Lagos\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/user/profile/customer/add","description":"<p>This endpoint is used to create a customer profile for the current logged in user.</p>\n<p>The request data is a s follows:</p>\n<ul>\n<li><p>phone_number: str</p>\n</li>\n<li><p>billing_address: str</p>\n</li>\n</ul>\n","urlObject":{"path":["user","profile","customer","add"],"host":["http://127.0.0.1:8000"],"query":[],"variable":[]}},"response":[{"id":"ee21b884-3afc-4b52-9c6f-765c14e08365","name":"Create customer profile","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoiMjYzNmExMWYtNjA2OC00ZTQzLWJhYWItYjk5NDVkMTg1NDBiIiwiZXhwIjoxNzE0NTcxNDM3fQ.gJASCwN0ILVUnTE6-9_9PbpfH_B8sllnPQHLFbbU4a8","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"phone_number\": \"09044722132\",\r\n  \"billing_address\": \"Ikeja, Lagos\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/user/profile/customer/add"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"date","value":"Sun, 28 Apr 2024 15:02:48 GMT"},{"key":"server","value":"uvicorn"},{"key":"content-length","value":"107"},{"key":"content-type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"3694848f-cfb2-40f9-84e0-018eb4ff70fc\",\n    \"phone_number\": \"09044722132\",\n    \"billing_address\": \"Ikeja, Lagos\"\n}"}],"_postman_id":"7b8d9606-1073-4b1a-b6d2-2749a25acfa3"},{"name":"Update customer profile","id":"f15c25c7-9144-4193-a409-7a9269f199ee","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Authorization","value":"Bearer {{JWT}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"phone_number\": \"08021351855\",\r\n  \"billing_address\": \"Ikorodu, Lagos\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/user/profile/customer/update","description":"<p>This endpoint will be used to update a customer profile.</p>\n<p>The same request data used in the create customer profile endpoint is also used here.</p>\n","urlObject":{"path":["user","profile","customer","update"],"host":["http://127.0.0.1:8000"],"query":[],"variable":[]}},"response":[{"id":"ee144dbb-e01c-4719-afdd-d6d6dc4c8132","name":"Update customer profile","originalRequest":{"method":"PATCH","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoiMjYzNmExMWYtNjA2OC00ZTQzLWJhYWItYjk5NDVkMTg1NDBiIiwiZXhwIjoxNzE0NTcxNDM3fQ.gJASCwN0ILVUnTE6-9_9PbpfH_B8sllnPQHLFbbU4a8","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"phone_number\": \"08021351855\",\r\n  \"billing_address\": \"Ikorodu, Lagos\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/user/profile/customer/update"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"date","value":"Sun, 28 Apr 2024 15:07:02 GMT"},{"key":"server","value":"uvicorn"},{"key":"content-length","value":"109"},{"key":"content-type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"3694848f-cfb2-40f9-84e0-018eb4ff70fc\",\n    \"phone_number\": \"08021351855\",\n    \"billing_address\": \"Ikorodu, Lagos\"\n}"}],"_postman_id":"f15c25c7-9144-4193-a409-7a9269f199ee"},{"name":"Create vendor profile","id":"a24a3553-2db9-400b-a792-09a33e6899dc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{JWT}}"}],"body":{"mode":"raw","raw":"{\r\n  \"phone_number\": \"08021351855\",\r\n  \"address\": \"Ikeja, Lagos\",\r\n  \"business_name\": \"Wren Tech\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/user/profile/vendor/add","description":"<p>This endpoint is used to create a vendor profile for the current logged in user.</p>\n<p>The request data is a s follows:</p>\n<ul>\n<li><p>phone_number: str</p>\n</li>\n<li><p>business_name: str</p>\n</li>\n<li><p>business_pic: File</p>\n</li>\n<li><p>address: str</p>\n</li>\n</ul>\n","urlObject":{"path":["user","profile","vendor","add"],"host":["http://127.0.0.1:8000"],"query":[],"variable":[]}},"response":[{"id":"e4531831-0a2a-4bf6-9055-ea68565ac9df","name":"Create vendor profile","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{JWT}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"phone_number\": \"09059033185\",\r\n  \"address\": \"Ikoji, Lagos\",\r\n  \"business_name\": \"Da Sell Tech\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/user/profile/vendor/add"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"date","value":"Mon, 06 May 2024 15:09:39 GMT"},{"key":"server","value":"uvicorn"},{"key":"content-length","value":"321"},{"key":"content-type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"24a84de9-6168-42bd-89f7-39521a5da649\",\n    \"address\": \"Ikoji, Lagos\",\n    \"business_name\": \"Da Sell Tech\",\n    \"business_pic\": null,\n    \"user\": {\n        \"id\": \"a9eef159-9d2e-4eb7-9f05-c81e336a0f32\",\n        \"username\": \"korede\",\n        \"email\": \"adegbehingbeoluwakorede@gmail.com\",\n        \"first_name\": \"Oluwakorede\",\n        \"last_name\": \"Joseph\",\n        \"profile_pic\": null,\n        \"role\": \"vendor\"\n    }\n}"}],"_postman_id":"a24a3553-2db9-400b-a792-09a33e6899dc"},{"name":"Update vendor profile","id":"533cca85-8cd9-4186-a44e-d6b4006c9e1f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Authorization","value":"Bearer {{JWT}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"phone_number\": \"09059033185\",\r\n  \"address\": \"Ikorodu, Lagos\",\r\n  \"business_name\": \"Da Sell Tech\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/user/profile/vendor/update","description":"<p>This endpoint will be used to update a vendor profile.</p>\n<p>The same request data used in the create vendor profile endpoint is also used here.</p>\n","urlObject":{"path":["user","profile","vendor","update"],"host":["http://127.0.0.1:8000"],"query":[],"variable":[]}},"response":[{"id":"2d361a1d-9995-4bb8-a509-11c304a5ff79","name":"Update vendor profile","originalRequest":{"method":"PUT","header":[{"key":"Authorization","value":"Bearer {{JWT}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"phone_number\": \"09059033185\",\r\n  \"address\": \"Ikorodu, Lagos\",\r\n  \"business_name\": \"Da Sell Tech\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/user/profile/vendor/update"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"date","value":"Mon, 06 May 2024 15:14:02 GMT"},{"key":"server","value":"uvicorn"},{"key":"content-length","value":"323"},{"key":"content-type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"24a84de9-6168-42bd-89f7-39521a5da649\",\n    \"address\": \"Ikorodu, Lagos\",\n    \"business_name\": \"Da Sell Tech\",\n    \"business_pic\": null,\n    \"user\": {\n        \"id\": \"a9eef159-9d2e-4eb7-9f05-c81e336a0f32\",\n        \"username\": \"korede\",\n        \"email\": \"adegbehingbeoluwakorede@gmail.com\",\n        \"first_name\": \"Oluwakorede\",\n        \"last_name\": \"Joseph\",\n        \"profile_pic\": null,\n        \"role\": \"vendor\"\n    }\n}"}],"_postman_id":"533cca85-8cd9-4186-a44e-d6b4006c9e1f"},{"name":"Update business picture","id":"77a5906d-aed8-4cf0-bf11-bac3e0df6242","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Authorization","value":"Bearer {{JWT}}"}],"body":{"mode":"formdata","formdata":[{"key":"business_pic","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/USER/Pictures/Python package installer.JPG"],"src":"/C:/Users/USER/Pictures/Python package installer.JPG"}]},"url":"http://127.0.0.1:8000/user/profile/vendor/business-pic/update","description":"<p>This endpoint will be used to update vendor business picture.</p>\n<p>THe request data is:</p>\n<ul>\n<li>business_pic: File</li>\n</ul>\n","urlObject":{"path":["user","profile","vendor","business-pic","update"],"host":["http://127.0.0.1:8000"],"query":[],"variable":[]}},"response":[{"id":"98fc5574-1e19-4324-b20a-a8885a173351","name":"Update business picture","originalRequest":{"method":"PUT","header":[{"key":"Authorization","value":"Bearer {{JWT}}"}],"body":{"mode":"formdata","formdata":[{"key":"business_pic","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/USER/Pictures/Python package installer.JPG"],"src":"/C:/Users/USER/Pictures/Python package installer.JPG"}]},"url":"http://127.0.0.1:8000/user/profile/vendor/business-pic/update"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"date","value":"Tue, 21 May 2024 11:07:47 GMT"},{"key":"server","value":"uvicorn"},{"key":"content-length","value":"267"},{"key":"content-type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"file_name\": \"python package installer-61dfe061b9.jpg\",\n    \"download_url\": \"https://firebasestorage.googleapis.com/v0/b/python-storage-d1e10.appspot.com/o/invoice_api%2Fvendor%2Fe6ff4f70-d6f7-4efa-a6fb-bd915e3a1299%2Fpython%20package%20installer-61dfe061b9.jpg?alt=media\"\n}"}],"_postman_id":"77a5906d-aed8-4cf0-bf11-bac3e0df6242"}],"id":"30f46db3-739a-4f61-bcb6-95406b23e3f1","description":"<p>This contains all user related endpoints</p>\n","_postman_id":"30f46db3-739a-4f61-bcb6-95406b23e3f1"},{"name":"Product","item":[{"name":"Create product","id":"ab632284-293a-469e-a87d-fd79cdbc9c03","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{JWT}}"}],"body":{"mode":"raw","raw":"{\r\n  \"name\": \"Just a tester\",\r\n  \"description\": \"Just a testing\",\r\n  \"unit_price\": 25\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/products/create","description":"<p>This endpint is used to create a new product. The request data is a s follows:</p>\n<ul>\n<li>name: string</li>\n<li>description: string</li>\n<li>unit_price: float</li>\n</ul>\n","urlObject":{"path":["products","create"],"host":["http://127.0.0.1:8000"],"query":[],"variable":[]}},"response":[{"id":"59e03b52-0d46-4ad0-b39d-d7b24fd06eeb","name":"Create product","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{JWT}}"}],"body":{"mode":"raw","raw":"{\r\n  \"name\": \"Test product\",\r\n  \"description\": \"Just a test\",\r\n  \"unit_price\": 10\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/products/create"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"date","value":"Wed, 15 May 2024 09:29:30 GMT"},{"key":"server","value":"uvicorn"},{"key":"content-length","value":"229"},{"key":"content-type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"Test product\",\n    \"description\": \"Just a test\",\n    \"unit_price\": 10,\n    \"id\": \"ca14ad56-9c40-4b23-b232-8f285b8ddc83\",\n    \"vendor\": {\n        \"phone_number\": \"09059033185\",\n        \"address\": \"Ikoji, Lagos\",\n        \"business_name\": \"Da Sell Tech\",\n        \"business_pic\": null\n    }\n}"}],"_postman_id":"ab632284-293a-469e-a87d-fd79cdbc9c03"},{"name":"Get products","id":"46906b73-b17e-4cfd-ab3b-2e0c5dd3a4ca","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{JWT}}"}],"url":"http://127.0.0.1:8000/products","description":"<p>This endpoint is used to get all products for the current logged in vendor.</p>\n<p>The following can be used for the query parameters:</p>\n<ul>\n<li><p>name: str- This is the product name</p>\n</li>\n<li><p>limit: int- To show only a specific number of items on a page</p>\n</li>\n<li><p>offset: int- To skip a number of items then show the rest.</p>\n</li>\n</ul>\n","urlObject":{"path":["products"],"host":["http://127.0.0.1:8000"],"query":[{"disabled":true,"key":"limit","value":"50"},{"disabled":true,"key":"skip","value":"20"},{"disabled":true,"key":"name","value":"test"}],"variable":[]}},"response":[{"id":"2e4898a5-ef13-4a26-9a4b-62c5e9905e3a","name":"Get products","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{JWT}}"}],"url":{"raw":"http://127.0.0.1:8000/products?limit=50","host":["http://127.0.0.1:8000"],"path":["products"],"query":[{"key":"limit","value":"50"},{"key":"skip","value":"20","disabled":true},{"key":"name","value":"test","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"date","value":"Wed, 15 May 2024 10:12:47 GMT"},{"key":"server","value":"uvicorn"},{"key":"content-length","value":"3481"},{"key":"content-type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"name\": \"Test product\",\n        \"description\": \"Just a test\",\n        \"unit_price\": 10,\n        \"id\": \"ca14ad56-9c40-4b23-b232-8f285b8ddc83\",\n        \"vendor\": {\n            \"phone_number\": \"09059033185\",\n            \"address\": \"Ikoji, Lagos\",\n            \"business_name\": \"Da Sell Tech\",\n            \"business_pic\": null\n        }\n    },\n    {\n        \"name\": \"Anothet product\",\n        \"description\": \"Just a test\",\n        \"unit_price\": 15,\n        \"id\": \"5264c102-b335-4979-9c5e-0b8e0872d171\",\n        \"vendor\": {\n            \"phone_number\": \"09059033185\",\n            \"address\": \"Ikoji, Lagos\",\n            \"business_name\": \"Da Sell Tech\",\n            \"business_pic\": null\n        }\n    },\n    {\n        \"name\": \"Anothet product\",\n        \"description\": \"Just a test\",\n        \"unit_price\": 15,\n        \"id\": \"a7347bf3-f76c-40f8-8dfe-f94b2ef555fa\",\n        \"vendor\": {\n            \"phone_number\": \"09059033185\",\n            \"address\": \"Ikoji, Lagos\",\n            \"business_name\": \"Da Sell Tech\",\n            \"business_pic\": null\n        }\n    },\n    {\n        \"name\": \"Just n product\",\n        \"description\": \"Just a test\",\n        \"unit_price\": 15,\n        \"id\": \"eebfd35a-33e7-4dd1-a402-b0ec6a96b5f3\",\n        \"vendor\": {\n            \"phone_number\": \"09059033185\",\n            \"address\": \"Ikoji, Lagos\",\n            \"business_name\": \"Da Sell Tech\",\n            \"business_pic\": null\n        }\n    },\n    {\n        \"name\": \"Just n product\",\n        \"description\": \"Just a test\",\n        \"unit_price\": 15,\n        \"id\": \"aa8fdf35-e60d-4ee0-af0c-e61e70b1edd4\",\n        \"vendor\": {\n            \"phone_number\": \"09059033185\",\n            \"address\": \"Ikoji, Lagos\",\n            \"business_name\": \"Da Sell Tech\",\n            \"business_pic\": null\n        }\n    },\n    {\n        \"name\": \"Just n product\",\n        \"description\": \"Just a test\",\n        \"unit_price\": 15,\n        \"id\": \"5d43fb6e-6f70-4736-a00a-e75216f1332d\",\n        \"vendor\": {\n            \"phone_number\": \"09059033185\",\n            \"address\": \"Ikoji, Lagos\",\n            \"business_name\": \"Da Sell Tech\",\n            \"business_pic\": null\n        }\n    },\n    {\n        \"name\": \"Just n product\",\n        \"description\": \"Just a test\",\n        \"unit_price\": 15,\n        \"id\": \"b1520ac7-a139-4dd9-bd81-cec1213839d6\",\n        \"vendor\": {\n            \"phone_number\": \"09059033185\",\n            \"address\": \"Ikoji, Lagos\",\n            \"business_name\": \"Da Sell Tech\",\n            \"business_pic\": null\n        }\n    },\n    {\n        \"name\": \"Just n product\",\n        \"description\": \"Just a test\",\n        \"unit_price\": 15,\n        \"id\": \"abc661a2-ddd6-44de-93e8-22e061b7c8ee\",\n        \"vendor\": {\n            \"phone_number\": \"09059033185\",\n            \"address\": \"Ikoji, Lagos\",\n            \"business_name\": \"Da Sell Tech\",\n            \"business_pic\": null\n        }\n    },\n    {\n        \"name\": \"Just n product\",\n        \"description\": \"Just a test\",\n        \"unit_price\": 15,\n        \"id\": \"a3fc755d-2e10-4cd3-bf44-afb781c80c41\",\n        \"vendor\": {\n            \"phone_number\": \"09059033185\",\n            \"address\": \"Ikoji, Lagos\",\n            \"business_name\": \"Da Sell Tech\",\n            \"business_pic\": null\n        }\n    },\n    {\n        \"name\": \"Just n product\",\n        \"description\": \"Just a test\",\n        \"unit_price\": 15,\n        \"id\": \"f1830b39-2344-43af-89bc-dce446cc4ac0\",\n        \"vendor\": {\n            \"phone_number\": \"09059033185\",\n            \"address\": \"Ikoji, Lagos\",\n            \"business_name\": \"Da Sell Tech\",\n            \"business_pic\": null\n        }\n    },\n    {\n        \"name\": \"Just n product\",\n        \"description\": \"Just a test\",\n        \"unit_price\": 15,\n        \"id\": \"742a7f4e-84bd-4068-8159-c937c0b01512\",\n        \"vendor\": {\n            \"phone_number\": \"09059033185\",\n            \"address\": \"Ikoji, Lagos\",\n            \"business_name\": \"Da Sell Tech\",\n            \"business_pic\": null\n        }\n    },\n    {\n        \"name\": \"Just n product\",\n        \"description\": \"Just a test\",\n        \"unit_price\": 15,\n        \"id\": \"d12b44d5-a6cd-4d09-b9bd-fff67bd16e1b\",\n        \"vendor\": {\n            \"phone_number\": \"09059033185\",\n            \"address\": \"Ikoji, Lagos\",\n            \"business_name\": \"Da Sell Tech\",\n            \"business_pic\": null\n        }\n    },\n    {\n        \"name\": \"Just n product\",\n        \"description\": \"Just a test\",\n        \"unit_price\": 15,\n        \"id\": \"6c816fc6-6031-41ad-afd8-31e72e85be7a\",\n        \"vendor\": {\n            \"phone_number\": \"09059033185\",\n            \"address\": \"Ikoji, Lagos\",\n            \"business_name\": \"Da Sell Tech\",\n            \"business_pic\": null\n        }\n    },\n    {\n        \"name\": \"Just n product\",\n        \"description\": \"Just a test\",\n        \"unit_price\": 15,\n        \"id\": \"50953b1b-ac61-4b6f-86c4-68aea8027fdb\",\n        \"vendor\": {\n            \"phone_number\": \"09059033185\",\n            \"address\": \"Ikoji, Lagos\",\n            \"business_name\": \"Da Sell Tech\",\n            \"business_pic\": null\n        }\n    },\n    {\n        \"name\": \"Just n product\",\n        \"description\": \"Just a test\",\n        \"unit_price\": 15,\n        \"id\": \"7dc9bd2c-2c42-421f-8cd1-c0b25e56bfb4\",\n        \"vendor\": {\n            \"phone_number\": \"09059033185\",\n            \"address\": \"Ikoji, Lagos\",\n            \"business_name\": \"Da Sell Tech\",\n            \"business_pic\": null\n        }\n    }\n]"}],"_postman_id":"46906b73-b17e-4cfd-ab3b-2e0c5dd3a4ca"},{"name":"Get product by id","id":"7a5c9eef-1fc6-432b-80b4-82157eefdab8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{JWT}}"}],"url":"http://127.0.0.1:8000/products/2604cbb1-b464-409a-8a23-541b879b7654/fetch","description":"<p>Endpoint to get a product by id. Just pass in the id into the url as seen.</p>\n","urlObject":{"path":["products","2604cbb1-b464-409a-8a23-541b879b7654","fetch"],"host":["http://127.0.0.1:8000"],"query":[],"variable":[]}},"response":[{"id":"b4940462-5d79-44c6-a6a6-71da3257aef3","name":"Get product by id","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{JWT}}"}],"url":"http://127.0.0.1:8000/products/ad04e7b3-41e8-4f77-aabf-ffd7731be216/fetch"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"date","value":"Wed, 15 May 2024 10:16:15 GMT"},{"key":"server","value":"uvicorn"},{"key":"content-length","value":"230"},{"key":"content-type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"Just a tester\",\n    \"description\": \"Just a testing\",\n    \"unit_price\": 25,\n    \"id\": \"ad04e7b3-41e8-4f77-aabf-ffd7731be216\",\n    \"vendor\": {\n        \"phone_number\": \"08021351855\",\n        \"address\": \"Ikeja, Lagos\",\n        \"business_name\": \"Wren Tech\",\n        \"business_pic\": null\n    }\n}"}],"_postman_id":"7a5c9eef-1fc6-432b-80b4-82157eefdab8"},{"name":"Update product","id":"35112faf-6807-45a3-a9b6-adc435285550","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Authorization","value":"Bearer {{JWT}}"}],"body":{"mode":"raw","raw":"{\r\n  \"name\": \"Samsung s20\",\r\n  \"description\": \"Samsung phone\",\r\n  \"unit_price\": 200\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/products/ad04e7b3-41e8-4f77-aabf-ffd7731be216/update","description":"<p>Endpoint to update a product. Juat pass in the id into the url as seen. Use the same request data used in create product endpoint.</p>\n","urlObject":{"path":["products","ad04e7b3-41e8-4f77-aabf-ffd7731be216","update"],"host":["http://127.0.0.1:8000"],"query":[],"variable":[]}},"response":[{"id":"da5126b2-6488-49e9-a3c6-69b7c6fac08e","name":"Update product","originalRequest":{"method":"PUT","header":[{"key":"Authorization","value":"Bearer {{JWT}}"}],"body":{"mode":"raw","raw":"{\r\n  \"name\": \"Samsung s20\",\r\n  \"description\": \"Samsung phone\",\r\n  \"unit_price\": 200\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/products/ad04e7b3-41e8-4f77-aabf-ffd7731be216/update"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"date","value":"Wed, 15 May 2024 10:19:18 GMT"},{"key":"server","value":"uvicorn"},{"key":"content-length","value":"228"},{"key":"content-type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"Samsung s20\",\n    \"description\": \"Samsung phone\",\n    \"unit_price\": 200,\n    \"id\": \"ad04e7b3-41e8-4f77-aabf-ffd7731be216\",\n    \"vendor\": {\n        \"phone_number\": \"08021351855\",\n        \"address\": \"Ikeja, Lagos\",\n        \"business_name\": \"Wren Tech\",\n        \"business_pic\": null\n    }\n}"}],"_postman_id":"35112faf-6807-45a3-a9b6-adc435285550"},{"name":"Delete product","id":"edac25a5-86f8-44fe-b8fe-d1ff48533045","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Authorization","value":"Bearer {{JWT}}"}],"url":"http://127.0.0.1:8000/products/ad04e7b3-41e8-4f77-aabf-ffd7731be216/delete","description":"<p>Endpoint to delete a product. Just pass in the id into the url as seen.</p>\n","urlObject":{"path":["products","ad04e7b3-41e8-4f77-aabf-ffd7731be216","delete"],"host":["http://127.0.0.1:8000"],"query":[],"variable":[]}},"response":[{"id":"39ab891a-4836-4505-ae06-c5106de13623","name":"Delete Product","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"Bearer {{JWT}}"}],"url":"http://127.0.0.1:8000/products/ad04e7b3-41e8-4f77-aabf-ffd7731be216/delete"},"status":"No Content","code":204,"_postman_previewlanguage":"json","header":[{"key":"date","value":"Wed, 15 May 2024 10:21:46 GMT"},{"key":"server","value":"uvicorn"},{"key":"content-type","value":"application/json"}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"edac25a5-86f8-44fe-b8fe-d1ff48533045"}],"id":"16ef19f6-60bc-4a26-a347-2fe9f75daa97","description":"<p>This will be used for all product based endpoints.</p>\n","_postman_id":"16ef19f6-60bc-4a26-a347-2fe9f75daa97"},{"name":"Invoice","item":[{"name":"Get vendor invoices","id":"87bbd8e7-edd3-4db8-966e-4b2489fa036c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{JWT}}"}],"url":"http://127.0.0.1:8000/invoices","description":"<p>This endpoint is used to get all invoices for the current logged in vendor.</p>\n<p>The query parameter is as follows:</p>\n<ul>\n<li>filter: str- used to filter invoices based on status [draft, pending, paid, overdue]</li>\n</ul>\n","urlObject":{"path":["invoices"],"host":["http://127.0.0.1:8000"],"query":[{"disabled":true,"key":"filter","value":"draft"}],"variable":[]}},"response":[{"id":"2a2fcf2f-fa80-4b2b-8b16-e54c3106da71","name":"Get vendor invoices","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{JWT}}"}],"url":{"raw":"http://127.0.0.1:8000/invoices","host":["http://127.0.0.1:8000"],"path":["invoices"],"query":[{"key":"filter","value":"pending","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"date","value":"Wed, 15 May 2024 11:20:31 GMT"},{"key":"server","value":"uvicorn"},{"key":"content-length","value":"1423"},{"key":"content-type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"invoice_number\": 31072580383883,\n        \"invoice_date\": \"2024-05-15T12:05:23.583992+01:00\",\n        \"status\": \"pending\",\n        \"due_date\": \"2024-05-22T12:02:30.534708+01:00\",\n        \"id\": \"8fd26708-0911-4307-b28a-8ca0ed3e1c9f\",\n        \"customer\": {\n            \"id\": \"bf277c2d-63ae-42db-a578-db16c3408b99\",\n            \"phone_number\": \"08021351855\",\n            \"billing_address\": \"Ikorodu, Lagos\"\n        },\n        \"vendor\": {\n            \"id\": \"e6ff4f70-d6f7-4efa-a6fb-bd915e3a1299\",\n            \"phone_number\": \"09059033185\",\n            \"address\": \"Ikoji, Lagos\",\n            \"business_name\": \"Da Sell Tech\",\n            \"business_pic\": null\n        }\n    },\n    {\n        \"invoice_number\": 86422492701338,\n        \"invoice_date\": \"2024-05-15T12:05:26.481412+01:00\",\n        \"status\": \"pending\",\n        \"due_date\": \"2024-05-22T12:02:30.534708+01:00\",\n        \"id\": \"7dddddea-7bf7-4ace-aab2-e85817963db9\",\n        \"customer\": {\n            \"id\": \"bf277c2d-63ae-42db-a578-db16c3408b99\",\n            \"phone_number\": \"08021351855\",\n            \"billing_address\": \"Ikorodu, Lagos\"\n        },\n        \"vendor\": {\n            \"id\": \"e6ff4f70-d6f7-4efa-a6fb-bd915e3a1299\",\n            \"phone_number\": \"09059033185\",\n            \"address\": \"Ikoji, Lagos\",\n            \"business_name\": \"Da Sell Tech\",\n            \"business_pic\": null\n        }\n    },\n    {\n        \"invoice_number\": 62958411180879,\n        \"invoice_date\": \"2024-05-15T12:09:17.766328+01:00\",\n        \"status\": \"pending\",\n        \"due_date\": \"2024-05-25T12:02:30.534708+01:00\",\n        \"id\": \"3d11b964-a0e7-4fa2-9038-a71bc3aa92f0\",\n        \"customer\": {\n            \"id\": \"bf277c2d-63ae-42db-a578-db16c3408b99\",\n            \"phone_number\": \"08021351855\",\n            \"billing_address\": \"Ikorodu, Lagos\"\n        },\n        \"vendor\": {\n            \"id\": \"e6ff4f70-d6f7-4efa-a6fb-bd915e3a1299\",\n            \"phone_number\": \"09059033185\",\n            \"address\": \"Ikoji, Lagos\",\n            \"business_name\": \"Da Sell Tech\",\n            \"business_pic\": null\n        }\n    }\n]"}],"_postman_id":"87bbd8e7-edd3-4db8-966e-4b2489fa036c"},{"name":"Get current user invoices","id":"5833d1f8-b638-4ffc-84ea-c0c59e742034","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{JWT}}"}],"url":"http://127.0.0.1:8000/invoices/current-user/fetch","description":"<p>This endpoint is used to get all invoices for the current logged in user.</p>\n<p>The query parameter is as follows:</p>\n<ul>\n<li>filter: str- used to filter invoices based on status [draft, pending, paid, overdue]</li>\n</ul>\n","urlObject":{"path":["invoices","current-user","fetch"],"host":["http://127.0.0.1:8000"],"query":[{"disabled":true,"key":"filter","value":"paid"}],"variable":[]}},"response":[{"id":"a0e44b79-f0c6-4920-8d7f-f369ef1b9ff8","name":"Get current user invoices","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{JWT}}"}],"url":{"raw":"http://127.0.0.1:8000/invoices/current-user/fetch","host":["http://127.0.0.1:8000"],"path":["invoices","current-user","fetch"],"query":[{"key":"filter","value":"paid","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"date","value":"Wed, 15 May 2024 11:26:39 GMT"},{"key":"server","value":"uvicorn"},{"key":"content-length","value":"1894"},{"key":"content-type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"invoice_number\": 77461200309075,\n        \"invoice_date\": \"2024-05-15T12:05:03.438288+01:00\",\n        \"status\": \"pending\",\n        \"due_date\": \"2024-05-22T12:02:30.534708+01:00\",\n        \"id\": \"b344a518-3d43-4291-9d29-2c9821207869\",\n        \"customer\": {\n            \"id\": \"bf277c2d-63ae-42db-a578-db16c3408b99\",\n            \"phone_number\": \"08021351855\",\n            \"billing_address\": \"Ikorodu, Lagos\"\n        },\n        \"vendor\": {\n            \"id\": \"50f17330-0eda-4f4f-8abe-ee1d954f6860\",\n            \"phone_number\": \"08021351855\",\n            \"address\": \"Ikeja, Lagos\",\n            \"business_name\": \"Wren Tech\",\n            \"business_pic\": null\n        }\n    },\n    {\n        \"invoice_number\": 31072580383883,\n        \"invoice_date\": \"2024-05-15T12:05:23.583992+01:00\",\n        \"status\": \"pending\",\n        \"due_date\": \"2024-05-22T12:02:30.534708+01:00\",\n        \"id\": \"8fd26708-0911-4307-b28a-8ca0ed3e1c9f\",\n        \"customer\": {\n            \"id\": \"bf277c2d-63ae-42db-a578-db16c3408b99\",\n            \"phone_number\": \"08021351855\",\n            \"billing_address\": \"Ikorodu, Lagos\"\n        },\n        \"vendor\": {\n            \"id\": \"e6ff4f70-d6f7-4efa-a6fb-bd915e3a1299\",\n            \"phone_number\": \"09059033185\",\n            \"address\": \"Ikoji, Lagos\",\n            \"business_name\": \"Da Sell Tech\",\n            \"business_pic\": null\n        }\n    },\n    {\n        \"invoice_number\": 86422492701338,\n        \"invoice_date\": \"2024-05-15T12:05:26.481412+01:00\",\n        \"status\": \"pending\",\n        \"due_date\": \"2024-05-22T12:02:30.534708+01:00\",\n        \"id\": \"7dddddea-7bf7-4ace-aab2-e85817963db9\",\n        \"customer\": {\n            \"id\": \"bf277c2d-63ae-42db-a578-db16c3408b99\",\n            \"phone_number\": \"08021351855\",\n            \"billing_address\": \"Ikorodu, Lagos\"\n        },\n        \"vendor\": {\n            \"id\": \"e6ff4f70-d6f7-4efa-a6fb-bd915e3a1299\",\n            \"phone_number\": \"09059033185\",\n            \"address\": \"Ikoji, Lagos\",\n            \"business_name\": \"Da Sell Tech\",\n            \"business_pic\": null\n        }\n    },\n    {\n        \"invoice_number\": 62958411180879,\n        \"invoice_date\": \"2024-05-15T12:09:17.766328+01:00\",\n        \"status\": \"pending\",\n        \"due_date\": \"2024-05-25T12:02:30.534708+01:00\",\n        \"id\": \"3d11b964-a0e7-4fa2-9038-a71bc3aa92f0\",\n        \"customer\": {\n            \"id\": \"bf277c2d-63ae-42db-a578-db16c3408b99\",\n            \"phone_number\": \"08021351855\",\n            \"billing_address\": \"Ikorodu, Lagos\"\n        },\n        \"vendor\": {\n            \"id\": \"e6ff4f70-d6f7-4efa-a6fb-bd915e3a1299\",\n            \"phone_number\": \"09059033185\",\n            \"address\": \"Ikoji, Lagos\",\n            \"business_name\": \"Da Sell Tech\",\n            \"business_pic\": null\n        }\n    }\n]"}],"_postman_id":"5833d1f8-b638-4ffc-84ea-c0c59e742034"},{"name":"Issue invoice","id":"ec224dc4-1d3e-4695-9507-9be66e3f01cb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{JWT}}"}],"body":{"mode":"raw","raw":"{\r\n  \"due_date\": \"2024-05-25T12:02:30.534708\",\r\n  \"status\": \"pending\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/invoices/issue/bf277c2d-63ae-42db-a578-db16c3408b99","description":"<p>This endpoint is used to issue an invoice to a customer. You have to pass in the customer id as seen in the URL.</p>\n<p>The request data is as follows:</p>\n<ul>\n<li><p>due_date: datetime</p>\n</li>\n<li><p>status: str - This is the status of the invoice created. It can either be saved as a draft or set to pending. By default it is set to pending.</p>\n</li>\n</ul>\n","urlObject":{"path":["invoices","issue","bf277c2d-63ae-42db-a578-db16c3408b99"],"host":["http://127.0.0.1:8000"],"query":[],"variable":[]}},"response":[{"id":"4a209e90-38e1-4b7a-bc1b-3923bf7f8e5c","name":"Issue invoice","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{JWT}}"}],"body":{"mode":"raw","raw":"{\r\n  \"due_date\": \"2024-05-22T12:02:30.534708\",\r\n  \"status\": \"draft\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/invoices/issue/bf277c2d-63ae-42db-a578-db16c3408b99"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"date","value":"Wed, 15 May 2024 11:04:11 GMT"},{"key":"server","value":"uvicorn"},{"key":"content-length","value":"468"},{"key":"content-type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"invoice_number\": 76962720721982,\n    \"invoice_date\": \"2024-05-15T12:04:12.319229+01:00\",\n    \"status\": \"draft\",\n    \"due_date\": \"2024-05-22T12:02:30.534708+01:00\",\n    \"id\": \"5843a42e-ca0b-4877-b4b4-91d720479154\",\n    \"customer\": {\n        \"id\": \"bf277c2d-63ae-42db-a578-db16c3408b99\",\n        \"phone_number\": \"08021351855\",\n        \"billing_address\": \"Ikorodu, Lagos\"\n    },\n    \"vendor\": {\n        \"id\": \"50f17330-0eda-4f4f-8abe-ee1d954f6860\",\n        \"phone_number\": \"08021351855\",\n        \"address\": \"Ikeja, Lagos\",\n        \"business_name\": \"Wren Tech\",\n        \"business_pic\": null\n    }\n}"}],"_postman_id":"ec224dc4-1d3e-4695-9507-9be66e3f01cb"},{"name":"Get invoice by id","id":"2b9b2597-74d5-4645-997d-0deb48b5444f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{JWT}}"}],"url":"http://127.0.0.1:8000/invoices/8fd26708-0911-4307-b28a-8ca0ed3e1c9f/fetch","description":"<p>This endpoint is used to get an invoice data by id, along with its invoice items. Just pass in the invoice_id into the URL as seen.</p>\n","urlObject":{"path":["invoices","8fd26708-0911-4307-b28a-8ca0ed3e1c9f","fetch"],"host":["http://127.0.0.1:8000"],"query":[],"variable":[]}},"response":[{"id":"b22e26ce-7a23-4a67-b811-dd20e28c874c","name":"Get invoice by id","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{JWT}}"}],"url":"http://127.0.0.1:8000/invoices/8fd26708-0911-4307-b28a-8ca0ed3e1c9f/fetch"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"date","value":"Tue, 21 May 2024 12:00:19 GMT"},{"key":"server","value":"uvicorn"},{"key":"content-length","value":"2219"},{"key":"content-type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"invoice_number\": 31072580383883,\n    \"invoice_date\": \"2024-05-15T12:05:23.583992+01:00\",\n    \"status\": \"pending\",\n    \"due_date\": \"2024-05-22T12:02:30.534708+01:00\",\n    \"id\": \"8fd26708-0911-4307-b28a-8ca0ed3e1c9f\",\n    \"customer\": {\n        \"id\": \"bf277c2d-63ae-42db-a578-db16c3408b99\",\n        \"phone_number\": \"08021351855\",\n        \"billing_address\": \"Ikorodu, Lagos\",\n        \"user\": {\n            \"id\": \"0f57422f-f09e-4eeb-a40f-d6fa2f3d2413\",\n            \"username\": \"josephkorede36\",\n            \"email\": \"josephkorede36@gmail.com\",\n            \"first_name\": \"Joseph\",\n            \"last_name\": \"Korede\",\n            \"profile_pic\": null,\n            \"role\": \"customer\"\n        }\n    },\n    \"vendor\": {\n        \"id\": \"e6ff4f70-d6f7-4efa-a6fb-bd915e3a1299\",\n        \"phone_number\": \"09059033185\",\n        \"address\": \"Ikoji, Lagos\",\n        \"business_name\": \"Da Sell Tech\",\n        \"business_pic\": \"https://firebasestorage.googleapis.com/v0/b/python-storage-d1e10.appspot.com/o/invoice_api%2Fvendor%2Fe6ff4f70-d6f7-4efa-a6fb-bd915e3a1299%2Fpython%20package%20installer-61dfe061b9.jpg?alt=media\"\n    },\n    \"invoice_items\": [\n        {\n            \"id\": \"fb946fc2-51b5-47b0-b9e8-92d729d7a581\",\n            \"description\": \"Another product test\",\n            \"quantity\": 10,\n            \"unit_price\": 15,\n            \"tax\": 0,\n            \"discount\": 0,\n            \"additional_charges\": 0,\n            \"total_price\": 150,\n            \"product\": {\n                \"name\": \"Just n product\",\n                \"description\": \"Just a test\",\n                \"unit_price\": 15,\n                \"id\": \"5d43fb6e-6f70-4736-a00a-e75216f1332d\",\n                \"vendor\": {\n                    \"id\": \"e6ff4f70-d6f7-4efa-a6fb-bd915e3a1299\",\n                    \"phone_number\": \"09059033185\",\n                    \"address\": \"Ikoji, Lagos\",\n                    \"business_name\": \"Da Sell Tech\",\n                    \"business_pic\": \"https://firebasestorage.googleapis.com/v0/b/python-storage-d1e10.appspot.com/o/invoice_api%2Fvendor%2Fe6ff4f70-d6f7-4efa-a6fb-bd915e3a1299%2Fpython%20package%20installer-61dfe061b9.jpg?alt=media\"\n                }\n            }\n        },\n        {\n            \"id\": \"e02f1330-d148-4d62-a430-34bca6898641\",\n            \"description\": \"Another product test\",\n            \"quantity\": 10,\n            \"unit_price\": 15,\n            \"tax\": 0,\n            \"discount\": 0,\n            \"additional_charges\": 0,\n            \"total_price\": 150,\n            \"product\": {\n                \"name\": \"Just n product\",\n                \"description\": \"Just a test\",\n                \"unit_price\": 15,\n                \"id\": \"6c816fc6-6031-41ad-afd8-31e72e85be7a\",\n                \"vendor\": {\n                    \"id\": \"e6ff4f70-d6f7-4efa-a6fb-bd915e3a1299\",\n                    \"phone_number\": \"09059033185\",\n                    \"address\": \"Ikoji, Lagos\",\n                    \"business_name\": \"Da Sell Tech\",\n                    \"business_pic\": \"https://firebasestorage.googleapis.com/v0/b/python-storage-d1e10.appspot.com/o/invoice_api%2Fvendor%2Fe6ff4f70-d6f7-4efa-a6fb-bd915e3a1299%2Fpython%20package%20installer-61dfe061b9.jpg?alt=media\"\n                }\n            }\n        }\n    ],\n    \"total\": 300\n}"}],"_postman_id":"2b9b2597-74d5-4645-997d-0deb48b5444f"},{"name":"Add product to invoice","id":"2d13333f-ac05-4f2e-aaad-68ebb0a392bf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{JWT}}"}],"body":{"mode":"raw","raw":"{\r\n  \"description\": \"Another product test\",\r\n  \"quantity\": 5,\r\n  \"tax\": 0,\r\n  \"discount\": 0,\r\n  \"additional_charges\": 0\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/invoices/8fd26708-0911-4307-b28a-8ca0ed3e1c9f/product/6c816fc6-6031-41ad-afd8-31e72e85be7a/add","description":"<p>This endpoint is used to add a product item with its details to an invoice. Here you have to pass in the invoice_id and product_id as seen in the URL pattern below:</p>\n<p><strong>http://127.0.0.1:8000/invoices/{invoice_id}/product/{product_id}/add</strong></p>\n<p>The request data is as follows:</p>\n<ul>\n<li><p>description: str</p>\n</li>\n<li><p>quantity: float</p>\n</li>\n<li><p>unit_price: float</p>\n</li>\n<li><p>tax: float -optional</p>\n</li>\n<li><p>discount: float- optional</p>\n</li>\n<li><p>additional_charges: float- optional</p>\n</li>\n</ul>\n<p>The total price will be geberated</p>\n","urlObject":{"path":["invoices","8fd26708-0911-4307-b28a-8ca0ed3e1c9f","product","6c816fc6-6031-41ad-afd8-31e72e85be7a","add"],"host":["http://127.0.0.1:8000"],"query":[],"variable":[]}},"response":[{"id":"05f19520-58c6-49ca-a4fd-af76461aa0bd","name":"Add product to invoice","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{JWT}}"}],"body":{"mode":"raw","raw":"{\r\n  \"description\": \"Another product test\",\r\n  \"quantity\": 4,\r\n  \"tax\": 0,\r\n  \"discount\": 0,\r\n  \"additional_charges\": 0\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/invoices/8fd26708-0911-4307-b28a-8ca0ed3e1c9f/product/6c816fc6-6031-41ad-afd8-31e72e85be7a/add"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"date","value":"Tue, 21 May 2024 11:50:54 GMT"},{"key":"server","value":"uvicorn"},{"key":"content-length","value":"660"},{"key":"content-type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"7f0526d2-1334-43b8-b1cd-0f5ac7846c22\",\n    \"description\": \"Another product test\",\n    \"quantity\": 4,\n    \"unit_price\": 15,\n    \"tax\": 0,\n    \"discount\": 0,\n    \"additional_charges\": 0,\n    \"total_price\": 60,\n    \"product\": {\n        \"name\": \"Just n product\",\n        \"description\": \"Just a test\",\n        \"unit_price\": 15,\n        \"id\": \"6c816fc6-6031-41ad-afd8-31e72e85be7a\",\n        \"vendor\": {\n            \"id\": \"e6ff4f70-d6f7-4efa-a6fb-bd915e3a1299\",\n            \"phone_number\": \"09059033185\",\n            \"address\": \"Ikoji, Lagos\",\n            \"business_name\": \"Da Sell Tech\",\n            \"business_pic\": \"https://firebasestorage.googleapis.com/v0/b/python-storage-d1e10.appspot.com/o/invoice_api%2Fvendor%2Fe6ff4f70-d6f7-4efa-a6fb-bd915e3a1299%2Fpython%20package%20installer-61dfe061b9.jpg?alt=media\"\n        }\n    }\n}"}],"_postman_id":"2d13333f-ac05-4f2e-aaad-68ebb0a392bf"},{"name":"Remove product from invoice","id":"6a4447bc-3a87-47d8-a1b7-91ce088433b4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Authorization","value":"Bearer {{JWT}}"}],"body":{"mode":"raw","raw":"{\r\n  \"description\": \"A basic product test\",\r\n  \"quantity\": 4,\r\n  \"unit_price\": 50,\r\n  \"tax\": 0,\r\n  \"discount\": 0,\r\n  \"additional_charges\": 0\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/invoices/8fd26708-0911-4307-b28a-8ca0ed3e1c9f/product/5264c102-b335-4979-9c5e-0b8e0872d171/remove","description":"<p>This endpoint is used to remove a product item from an invoice. Here you have to pass in the invoice_id and product_id as seen in the URL pattern below:</p>\n<p><strong>http://127.0.0.1:8000/invoices/{invoice_id}/product/{product_id}/remove</strong></p>\n","urlObject":{"path":["invoices","8fd26708-0911-4307-b28a-8ca0ed3e1c9f","product","5264c102-b335-4979-9c5e-0b8e0872d171","remove"],"host":["http://127.0.0.1:8000"],"query":[],"variable":[]}},"response":[{"id":"b9a8ffb0-d30c-478e-8ec4-302e10c21c1f","name":"Remove product from invoice","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"Bearer {{JWT}}"}],"body":{"mode":"raw","raw":"{\r\n  \"description\": \"A basic product test\",\r\n  \"quantity\": 4,\r\n  \"unit_price\": 50,\r\n  \"tax\": 0,\r\n  \"discount\": 0,\r\n  \"additional_charges\": 0\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/invoices/8fd26708-0911-4307-b28a-8ca0ed3e1c9f/product/5264c102-b335-4979-9c5e-0b8e0872d171/remove"},"status":"No Content","code":204,"_postman_previewlanguage":"json","header":[{"key":"date","value":"Fri, 17 May 2024 18:20:55 GMT"},{"key":"server","value":"uvicorn"},{"key":"content-type","value":"application/json"}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"6a4447bc-3a87-47d8-a1b7-91ce088433b4"},{"name":"Update invoice item","id":"ca3ed450-28c0-484e-90ca-72eeea758e1f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Authorization","value":"Bearer {{JWT}}"}],"body":{"mode":"raw","raw":"{\r\n  \"description\": \"Another product test\",\r\n  \"quantity\": 10,\r\n  \"tax\": 0,\r\n  \"discount\": 0,\r\n  \"additional_charges\": 0\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/invoices/item/e02f1330-d148-4d62-a430-34bca6898641/update","description":"<p>This endpoint will be used to update an invoice item. All you have to do is add the invoice_item_id into the URL as seen.</p>\n<p>The request data is the same as the Add product to invoice endpoint.</p>\n","urlObject":{"path":["invoices","item","e02f1330-d148-4d62-a430-34bca6898641","update"],"host":["http://127.0.0.1:8000"],"query":[],"variable":[]}},"response":[{"id":"c38af6ac-dbdb-4a88-a8bf-90001cc077cc","name":"Update invoice item","originalRequest":{"method":"PUT","header":[{"key":"Authorization","value":"Bearer {{JWT}}"}],"body":{"mode":"raw","raw":"{\r\n  \"description\": \"Another product test\",\r\n  \"quantity\": 10,\r\n  \"tax\": 0,\r\n  \"discount\": 0,\r\n  \"additional_charges\": 0\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/invoices/item/e02f1330-d148-4d62-a430-34bca6898641/update"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"date","value":"Tue, 21 May 2024 11:59:39 GMT"},{"key":"server","value":"uvicorn"},{"key":"content-length","value":"662"},{"key":"content-type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"e02f1330-d148-4d62-a430-34bca6898641\",\n    \"description\": \"Another product test\",\n    \"quantity\": 10,\n    \"unit_price\": 15,\n    \"tax\": 0,\n    \"discount\": 0,\n    \"additional_charges\": 0,\n    \"total_price\": 150,\n    \"product\": {\n        \"name\": \"Just n product\",\n        \"description\": \"Just a test\",\n        \"unit_price\": 15,\n        \"id\": \"6c816fc6-6031-41ad-afd8-31e72e85be7a\",\n        \"vendor\": {\n            \"id\": \"e6ff4f70-d6f7-4efa-a6fb-bd915e3a1299\",\n            \"phone_number\": \"09059033185\",\n            \"address\": \"Ikoji, Lagos\",\n            \"business_name\": \"Da Sell Tech\",\n            \"business_pic\": \"https://firebasestorage.googleapis.com/v0/b/python-storage-d1e10.appspot.com/o/invoice_api%2Fvendor%2Fe6ff4f70-d6f7-4efa-a6fb-bd915e3a1299%2Fpython%20package%20installer-61dfe061b9.jpg?alt=media\"\n        }\n    }\n}"}],"_postman_id":"ca3ed450-28c0-484e-90ca-72eeea758e1f"}],"id":"1cd7f5ef-3893-4e6e-af53-d18b73e16d42","description":"<p>This will be used for all invoice based endpoints</p>\n","_postman_id":"1cd7f5ef-3893-4e6e-af53-d18b73e16d42"},{"name":"Admin","item":[],"id":"8c753a52-9eed-4ef3-85c4-f4ab1dff04be","description":"<p>Admin based enpoints</p>\n","_postman_id":"8c753a52-9eed-4ef3-85c4-f4ab1dff04be"},{"name":"Payment","item":[{"name":"Pay for invoice","id":"14686958-1753-41d3-9c7f-e57fa6c5a6a0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{JWT}}"}],"url":"http://127.0.0.1:8000/payment/8fd26708-0911-4307-b28a-8ca0ed3e1c9f/pay","description":"<p>This endpoint will be used to pay for an invoice. All that will be needed is to pass the invoice id into the URL as seen.</p>\n","urlObject":{"path":["payment","8fd26708-0911-4307-b28a-8ca0ed3e1c9f","pay"],"host":["http://127.0.0.1:8000"],"query":[],"variable":[]}},"response":[{"id":"aefd1732-1745-42be-bf91-a44969319a94","name":"Pay for invoice","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{JWT}}"}],"url":"http://127.0.0.1:8000/payment/8fd26708-0911-4307-b28a-8ca0ed3e1c9f/pay"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"date","value":"Thu, 30 May 2024 11:22:07 GMT"},{"key":"server","value":"uvicorn"},{"key":"content-length","value":"52"},{"key":"content-type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Invoice payment completed successfully\"\n}"}],"_postman_id":"14686958-1753-41d3-9c7f-e57fa6c5a6a0"},{"name":"Get all customer payments","id":"605a5333-9f67-409c-9953-b6db2e7156ff","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{JWT}}"}],"url":"http://127.0.0.1:8000/payment/customer/all","description":"<p>This endpoint is used to get all the payments made by a customer</p>\n","urlObject":{"path":["payment","customer","all"],"host":["http://127.0.0.1:8000"],"query":[],"variable":[]}},"response":[{"id":"7bd4cbbb-b8e2-445f-adaa-e8409067bf95","name":"Get all customer payments","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{JWT}}"}],"url":"http://127.0.0.1:8000/payment/customer/all"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"date","value":"Thu, 30 May 2024 11:26:40 GMT"},{"key":"server","value":"uvicorn"},{"key":"content-length","value":"746"},{"key":"content-type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": \"1bc986fc-6de3-4e1c-88d9-5b791c1eebf6\",\n        \"amount_paid\": 300,\n        \"payment_date\": \"2024-05-30T12:22:08.304906+01:00\",\n        \"invoice\": {\n            \"invoice_number\": 31072580383883,\n            \"invoice_date\": \"2024-05-15T12:05:23.583992+01:00\",\n            \"status\": \"paid\",\n            \"due_date\": \"2024-05-22T12:02:30.534708+01:00\"\n        },\n        \"customer\": {\n            \"id\": \"bf277c2d-63ae-42db-a578-db16c3408b99\",\n            \"phone_number\": \"08021351855\",\n            \"billing_address\": \"Ikorodu, Lagos\"\n        },\n        \"vendor\": {\n            \"id\": \"e6ff4f70-d6f7-4efa-a6fb-bd915e3a1299\",\n            \"phone_number\": \"09059033185\",\n            \"address\": \"Ikoji, Lagos\",\n            \"business_name\": \"Da Sell Tech\",\n            \"business_pic\": \"https://firebasestorage.googleapis.com/v0/b/python-storage-d1e10.appspot.com/o/invoice_api%2Fvendor%2Fe6ff4f70-d6f7-4efa-a6fb-bd915e3a1299%2Fpython%20package%20installer-61dfe061b9.jpg?alt=media\"\n        }\n    }\n]"}],"_postman_id":"605a5333-9f67-409c-9953-b6db2e7156ff"},{"name":"Get all vendor payments","id":"33f93b6e-6a33-4c3b-bf90-da0d77ad2489","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{JWT}}"}],"url":"http://127.0.0.1:8000/payment/vendor/all","description":"<p>This endpoint is used to get all the payments made to a vendor</p>\n","urlObject":{"path":["payment","vendor","all"],"host":["http://127.0.0.1:8000"],"query":[],"variable":[]}},"response":[{"id":"07226171-57c2-4ec2-821a-c8610be3c2cd","name":"Get all vendor payments","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{JWT}}"}],"url":"http://127.0.0.1:8000/payment/vendor/all"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"date","value":"Thu, 30 May 2024 11:29:36 GMT"},{"key":"server","value":"uvicorn"},{"key":"content-length","value":"746"},{"key":"content-type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": \"1bc986fc-6de3-4e1c-88d9-5b791c1eebf6\",\n        \"amount_paid\": 300,\n        \"payment_date\": \"2024-05-30T12:22:08.304906+01:00\",\n        \"invoice\": {\n            \"invoice_number\": 31072580383883,\n            \"invoice_date\": \"2024-05-15T12:05:23.583992+01:00\",\n            \"status\": \"paid\",\n            \"due_date\": \"2024-05-22T12:02:30.534708+01:00\"\n        },\n        \"customer\": {\n            \"id\": \"bf277c2d-63ae-42db-a578-db16c3408b99\",\n            \"phone_number\": \"08021351855\",\n            \"billing_address\": \"Ikorodu, Lagos\"\n        },\n        \"vendor\": {\n            \"id\": \"e6ff4f70-d6f7-4efa-a6fb-bd915e3a1299\",\n            \"phone_number\": \"09059033185\",\n            \"address\": \"Ikoji, Lagos\",\n            \"business_name\": \"Da Sell Tech\",\n            \"business_pic\": \"https://firebasestorage.googleapis.com/v0/b/python-storage-d1e10.appspot.com/o/invoice_api%2Fvendor%2Fe6ff4f70-d6f7-4efa-a6fb-bd915e3a1299%2Fpython%20package%20installer-61dfe061b9.jpg?alt=media\"\n        }\n    }\n]"}],"_postman_id":"33f93b6e-6a33-4c3b-bf90-da0d77ad2489"},{"name":"Get payment by id","id":"116c13be-c262-48ff-9339-5b9002df626c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{JWT}}"}],"url":"http://127.0.0.1:8000/payment/1bc986fc-6de3-4e1c-88d9-5b791c1eebf6/fetch","description":"<p>This endpoint is used to retrieve a simgle payment record. This can be used to generate some kind of payment receipt. All that is needed is to pass in the payment id into the URL.</p>\n","urlObject":{"path":["payment","1bc986fc-6de3-4e1c-88d9-5b791c1eebf6","fetch"],"host":["http://127.0.0.1:8000"],"query":[],"variable":[]}},"response":[{"id":"f255e8fc-7a97-4409-8b92-47582a865ef6","name":"Get payment by id","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{JWT}}"}],"url":"http://127.0.0.1:8000/payment/1bc986fc-6de3-4e1c-88d9-5b791c1eebf6/fetch"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"date","value":"Thu, 30 May 2024 11:33:44 GMT"},{"key":"server","value":"uvicorn"},{"key":"content-length","value":"744"},{"key":"content-type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"1bc986fc-6de3-4e1c-88d9-5b791c1eebf6\",\n    \"amount_paid\": 300,\n    \"payment_date\": \"2024-05-30T12:22:08.304906+01:00\",\n    \"invoice\": {\n        \"invoice_number\": 31072580383883,\n        \"invoice_date\": \"2024-05-15T12:05:23.583992+01:00\",\n        \"status\": \"paid\",\n        \"due_date\": \"2024-05-22T12:02:30.534708+01:00\"\n    },\n    \"customer\": {\n        \"id\": \"bf277c2d-63ae-42db-a578-db16c3408b99\",\n        \"phone_number\": \"08021351855\",\n        \"billing_address\": \"Ikorodu, Lagos\"\n    },\n    \"vendor\": {\n        \"id\": \"e6ff4f70-d6f7-4efa-a6fb-bd915e3a1299\",\n        \"phone_number\": \"09059033185\",\n        \"address\": \"Ikoji, Lagos\",\n        \"business_name\": \"Da Sell Tech\",\n        \"business_pic\": \"https://firebasestorage.googleapis.com/v0/b/python-storage-d1e10.appspot.com/o/invoice_api%2Fvendor%2Fe6ff4f70-d6f7-4efa-a6fb-bd915e3a1299%2Fpython%20package%20installer-61dfe061b9.jpg?alt=media\"\n    }\n}"}],"_postman_id":"116c13be-c262-48ff-9339-5b9002df626c"}],"id":"54592fa6-d322-45fb-8862-879a47d20104","description":"<p>The endpoints will be used for payment for the invoices and other payment related activities.</p>\n","_postman_id":"54592fa6-d322-45fb-8862-879a47d20104"}],"variable":[{"key":"baseUrl","value":"http://127.0.0.1:8000"}]}