{"info":{"_postman_id":"e31392f3-6576-4426-b241-4c58142e9126","name":"invoice-app","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"18368362","collectionId":"e31392f3-6576-4426-b241-4c58142e9126","publishedId":"2s93zFXyxk","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2023-07-06T14:05:57.000Z"},"item":[{"name":"user","item":[{"name":"create-user","id":"43dcae18-4246-453b-83dc-4cefda6fd673","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"Onasoga Pelumi\",\r\n    \"phoneNumber\": \"08106991851\",\r\n    \"email\": \"test5@test.com\",\r\n    \"password\": \"3123p$X3123\",\r\n    \"companyAddress\": \"Lagos\",\r\n    \"passwordConfirmation\": \"3123p$X3123\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/v1/users/create-user","urlObject":{"path":["api","v1","users","create-user"],"host":["http://localhost:3000"],"query":[],"variable":[]}},"response":[],"_postman_id":"43dcae18-4246-453b-83dc-4cefda6fd673"},{"name":"login-user","id":"2c03640c-518e-4d7c-891e-9866414d816b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"production@test.com\",\r\n    \"password\": \"3123p$X3123\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://invoice-app-9yo1.onrender.com/api/v1/users/login-user","urlObject":{"path":["api","v1","users","login-user"],"host":["https://invoice-app-9yo1.onrender.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"2c03640c-518e-4d7c-891e-9866414d816b"}],"id":"edd41dec-530b-4f01-bccc-1a8ed17cf04b","_postman_id":"edd41dec-530b-4f01-bccc-1a8ed17cf04b","description":""},{"name":"clients","item":[{"name":"create-client","id":"96471bf1-2ea1-4dd3-a33a-55f73d9def25","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"Pelumi\",\r\n    \"email\": \"productionclient@gmail.com\",\r\n    \"phoneNumber\": \"00000000000\",\r\n    \"companyAddress\": \"Lagos\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://invoice-app-9yo1.onrender.com/api/v1/clients/create-client","urlObject":{"path":["api","v1","clients","create-client"],"host":["https://invoice-app-9yo1.onrender.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"96471bf1-2ea1-4dd3-a33a-55f73d9def25"},{"name":"get all clients","id":"f2b6790f-4d54-4720-a349-83a8a3b9e87d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"https://invoice-app-9yo1.onrender.com/api/v1/clients/all","urlObject":{"path":["api","v1","clients","all"],"host":["https://invoice-app-9yo1.onrender.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"f2b6790f-4d54-4720-a349-83a8a3b9e87d"},{"name":"get-single-client","id":"bc796aff-4b28-4580-b8df-7db17872574a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"https://invoice-app-9yo1.onrender.com/api/v1/clients/client/b00d0100-34fa-4908-9ff9-dece15e4caae","urlObject":{"path":["api","v1","clients","client","b00d0100-34fa-4908-9ff9-dece15e4caae"],"host":["https://invoice-app-9yo1.onrender.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"bc796aff-4b28-4580-b8df-7db17872574a"},{"name":"update-client","id":"74874dd5-2ce9-4c57-b174-532b3679a378","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"phoneNumber\": \"123456779\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://invoice-app-9yo1.onrender.com/api/v1/clients/client/b00d0100-34fa-4908-9ff9-dece15e4caae","urlObject":{"path":["api","v1","clients","client","b00d0100-34fa-4908-9ff9-dece15e4caae"],"host":["https://invoice-app-9yo1.onrender.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"74874dd5-2ce9-4c57-b174-532b3679a378"},{"name":"delete-client","id":"dd684e9e-0c11-4f51-8e11-d74ba9640152","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"DELETE","header":[],"url":"http://localhost:3000/api/v1/clients/client/d2e392f6-1419-4ac0-a49e-a286994d1f4c","urlObject":{"path":["api","v1","clients","client","d2e392f6-1419-4ac0-a49e-a286994d1f4c"],"host":["http://localhost:3000"],"query":[],"variable":[]}},"response":[],"_postman_id":"dd684e9e-0c11-4f51-8e11-d74ba9640152"}],"id":"041a0a6d-9e78-4c6f-aabd-26dfe423927f","_postman_id":"041a0a6d-9e78-4c6f-aabd-26dfe423927f","description":""},{"name":"auth","item":[{"name":"genetate otp","id":"c5bff6f9-c7ac-42ba-83c8-e31c070d6adc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"user_id\": \"77878413-30df-4d5f-9b03-da985bdb30e1\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/api/v1/auth/otp/generate","urlObject":{"path":["api","v1","auth","otp","generate"],"host":["http://localhost:8000"],"query":[],"variable":[]}},"response":[],"_postman_id":"c5bff6f9-c7ac-42ba-83c8-e31c070d6adc"},{"name":"verify otp","id":"791c79e6-a746-4016-b19c-787ffa5922fb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"user_id\": \"77878413-30df-4d5f-9b03-da985bdb30e1\",\r\n    \"token\": \"142403\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/api/v1/auth/otp/verify","urlObject":{"path":["api","v1","auth","otp","verify"],"host":["http://localhost:8000"],"query":[],"variable":[]}},"response":[],"_postman_id":"791c79e6-a746-4016-b19c-787ffa5922fb"},{"name":"validate otp","id":"1292529d-4a8e-4875-9e86-fe53a9f8dabd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"user_id\": \"77878413-30df-4d5f-9b03-da985bdb30e1\",\r\n    \"token\": \"950117\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/api/v1/auth/otp/validate","urlObject":{"path":["api","v1","auth","otp","validate"],"host":["http://localhost:8000"],"query":[],"variable":[]}},"response":[],"_postman_id":"1292529d-4a8e-4875-9e86-fe53a9f8dabd"},{"name":"disable otp","id":"d0d7cfc4-2f4f-43c1-abb4-c83f872aaca5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"user_id\": \"77878413-30df-4d5f-9b03-da985bdb30e1\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/api/v1/auth/otp/disable","urlObject":{"path":["api","v1","auth","otp","disable"],"host":["http://localhost:8000"],"query":[],"variable":[]}},"response":[],"_postman_id":"d0d7cfc4-2f4f-43c1-abb4-c83f872aaca5"}],"id":"e6bea9e7-a17b-49be-8cf9-3f86be650543","_postman_id":"e6bea9e7-a17b-49be-8cf9-3f86be650543","description":""},{"name":"invoices","item":[{"name":"create invoice","id":"60e9a4ec-6b80-4ed2-aad6-ad8981bf2034","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"invoiceName\": \"testInvoice2\",\r\n    \"issueDate\": \"7/6/2024\",\r\n    \"invoiceDesc\": \"testInvoice\",\r\n    \"dueDate\": \"7/6/2024\",\r\n    \"amount\": 80000,\r\n    \"draft\": false,\r\n    \"hasClientPaid\": false,\r\n    \"userId\":\"d2e392f6-1419-4ac0-a49e-a286994d1f4c\",\r\n    \"clientId\": \"b00d0100-34fa-4908-9ff9-dece15e4caae\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://invoice-app-9yo1.onrender.com/api/v1/invoice/create-invoice","urlObject":{"path":["api","v1","invoice","create-invoice"],"host":["https://invoice-app-9yo1.onrender.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"60e9a4ec-6b80-4ed2-aad6-ad8981bf2034"},{"name":"get all invoices","id":"678426c6-20dd-445c-b0ea-09a7c4b5b881","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":"https://invoice-app-9yo1.onrender.com/api/v1/invoice/all","urlObject":{"path":["api","v1","invoice","all"],"host":["https://invoice-app-9yo1.onrender.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"678426c6-20dd-445c-b0ea-09a7c4b5b881"},{"name":"get single invoice","id":"67b30f1a-0a55-40be-b9d1-0cd6b6784d64","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"https://invoice-app-9yo1.onrender.com/api/v1/invoice/client/7642c135-8d52-46de-92ed-6cb6701cb60c","urlObject":{"path":["api","v1","invoice","client","7642c135-8d52-46de-92ed-6cb6701cb60c"],"host":["https://invoice-app-9yo1.onrender.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"67b30f1a-0a55-40be-b9d1-0cd6b6784d64"},{"name":"delete invoice","id":"94b55493-9148-4a7f-89ca-472ba9067aeb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"DELETE","header":[],"url":"http://localhost:3000/api/v1/invoice/client/7642c135-8d52-46de-92ed-6cb6701cb60c","urlObject":{"path":["api","v1","invoice","client","7642c135-8d52-46de-92ed-6cb6701cb60c"],"host":["http://localhost:3000"],"query":[],"variable":[]}},"response":[],"_postman_id":"94b55493-9148-4a7f-89ca-472ba9067aeb"},{"name":"update invoice","id":"d21f2485-b72f-4438-a830-3b8c13499018","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n        \"invoiceName\": \"testInvoice2\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/v1/invoice/client/859f7aec-dcf2-4ba5-936d-0eab6844382b","urlObject":{"path":["api","v1","invoice","client","859f7aec-dcf2-4ba5-936d-0eab6844382b"],"host":["http://localhost:3000"],"query":[],"variable":[]}},"response":[],"_postman_id":"d21f2485-b72f-4438-a830-3b8c13499018"}],"id":"04e11e2f-cb00-48bf-9694-d186f5e13d47","_postman_id":"04e11e2f-cb00-48bf-9694-d186f5e13d47","description":""}],"variable":[{"key":"hosts","value":"http://localhost:8000"},{"key":"base","value":"https://invoice-app-9yo1.onrender.com"},{"key":"host","value":"http://localhost:3000"}]}