{"info":{"_postman_id":"c5cc8eaa-87f1-4117-986e-ba6e5499c0e2","name":"Wallet-app","description":"<html><head></head><body><p>This is the API collection for the wallet application that allows users to create accounts and make transactions. The application is built with React, Node.js/Express, MongoDB and TailwindCSSEndFragment</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"6127109","collectionId":"c5cc8eaa-87f1-4117-986e-ba6e5499c0e2","publishedId":"2s9Y5SX5zy","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2023-08-20T05:11:28.000Z"},"item":[{"name":"auth","item":[{"name":"register","id":"d7ab8674-81a4-4feb-bc67-4995f83f0f0b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"username\": \"gloire\",\r\n    \"email\": \"gloire@gmail.com\",\r\n    \"password\": \"123456\",\r\n    \"phone\": \"+2434575645245\",\r\n    \"firstName\": \"jean\",\r\n    \"lastName\": \"mufungizi\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/auth/register","urlObject":{"path":["register"],"host":["http://localhost:5000/api/auth"],"query":[],"variable":[]}},"response":[{"id":"0238d31b-4faf-4ac1-bd94-6b45aec73ba7","name":"register successful","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"username\": \"jean\",\r\n    \"email\": \"jean@gmail.com\",\r\n    \"password\": \"123456\",\r\n    \"phone\": \"+2437575645245\",\r\n    \"firstName\": \"jean\",\r\n    \"lastName\": \"mufungizi\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/auth/register"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"42"},{"key":"ETag","value":"W/\"2a-nMoFx54+czTntmSLXl3mqIsZV4A\""},{"key":"Date","value":"Sun, 20 Aug 2023 05:28:35 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"User registered successfully\"\n}"},{"id":"b0136edb-ba74-4a64-94b1-19134b674c69","name":"register unsuccessful","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"username\": \"jean\",\r\n    \"email\": \"jean@gmail.com\",\r\n    \"password\": \"123456\",\r\n    \"phone\": \"+2437575645245\",\r\n    \"firstName\": \"jean\",\r\n    \"lastName\": \"mufungizi\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/auth/register"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"31"},{"key":"ETag","value":"W/\"1f-lFUySNKwX3L5eGEwGcNcUoVKWhE\""},{"key":"Date","value":"Sun, 20 Aug 2023 05:29:23 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"User already exists\"\n}"}],"_postman_id":"d7ab8674-81a4-4feb-bc67-4995f83f0f0b"},{"name":"login","event":[{"listen":"test","script":{"id":"11a623d5-9f2d-4473-ad15-5096c9efbca9","exec":["const jsonData = pm.response.json();\r","pm.globals.set(\"token\", jsonData.token);"],"type":"text/javascript"}}],"id":"fdcb5bcb-ad9b-45c0-afbd-78f345f5b37b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"mwafrikajosue@gmail.com\",\r\n    \"password\": \"123456\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/auth/login","urlObject":{"path":["login"],"host":["http://localhost:5000/api/auth"],"query":[],"variable":[]}},"response":[{"id":"9ba40483-3c5f-4a94-8cae-1729ec9a78a3","name":"successful login","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"mwafrikajosue@gmail.com\",\r\n    \"password\": \"123456\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/auth/login"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"188"},{"key":"ETag","value":"W/\"bc-ZMZH/xz3u7YeRCv856rPNh7yq6Q\""},{"key":"Date","value":"Sun, 20 Aug 2023 05:30:47 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiI2NGRiMWU4OTM3ZTI2NDdhMTVmNjIyZWQiLCJpYXQiOjE2OTI1MDk0NDcsImV4cCI6MTY5MjU5NTg0N30.VbN_qYAH_6_mVyYUL31ng-wamzSK6mvT7ajpOeJFDSQ\"\n}"},{"id":"c36bb618-832e-4f49-adb4-413467ffba41","name":"unsuccessful login","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"mwafrikajosue@gmail.com\",\r\n    \"password\": \"1234562\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/auth/login"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"31"},{"key":"ETag","value":"W/\"1f-mRYQ6Yx/raK/ssDeWseqQCiH0yM\""},{"key":"Date","value":"Sun, 20 Aug 2023 05:31:27 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Invalid credentials\"\n}"}],"_postman_id":"fdcb5bcb-ad9b-45c0-afbd-78f345f5b37b"}],"id":"07dfee0b-f9ec-43f2-9047-e0c149d863b9","description":"<p>The Auth folder contains the Api to authenticate the users, the users should be able to signup and login by providing the necessary information in the fields.</p>\n","_postman_id":"07dfee0b-f9ec-43f2-9047-e0c149d863b9"},{"name":"Transactions","item":[{"name":"Create Transactions","id":"90709bf9-cdd9-4bee-b416-f58d7f6a24fc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"type\": \"expense\",\r\n    \"amount\": 700,\r\n    \"category\": \"64db62ab13b10345a1091f00\",\r\n    \"note\": \"hey there , how are you?\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/accounts/:accountId/transactions","urlObject":{"path":[":accountId","transactions"],"host":["http://localhost:5000/api/accounts"],"query":[],"variable":[{"type":"any","value":"64e1a9b6a66c59f9a331824c","key":"accountId"}]}},"response":[{"id":"1e342fa4-4668-4221-b215-674f0daee53c","name":"must authenticate first","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"type\": \"expense\",\r\n    \"amount\": 6700,\r\n    \"category\": \"64db62ab13b10345a1091f00\",\r\n    \"note\": \"hey there , how are you?\"\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"http://localhost:5000/api/accounts/:accountId/transactions","host":["http://localhost:5000/api/accounts"],"path":[":accountId","transactions"],"variable":[{"key":"accountId","value":"64de718c783ff12e24e77ade"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"47"},{"key":"ETag","value":"W/\"2f-1fmWWfWfXy9cJKAQZOh1m7bnhCg\""},{"key":"Date","value":"Sun, 20 Aug 2023 05:33:12 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Authorization denied, invalid token\"\n}"},{"id":"7066f417-6080-407d-8fcb-7385f8426d19","name":"account must exist","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"type\": \"expense\",\r\n    \"amount\": 6700,\r\n    \"category\": \"64db62ab13b10345a1091f00\",\r\n    \"note\": \"hey there , how are you?\"\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"http://localhost:5000/api/accounts/:accountId/transactions","host":["http://localhost:5000/api/accounts"],"path":[":accountId","transactions"],"variable":[{"key":"accountId","value":"64de718c783ff12e24e77ade"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"31"},{"key":"ETag","value":"W/\"1f-JkY0DvpxbEny7Houx5m94RC0biQ\""},{"key":"Date","value":"Sun, 20 Aug 2023 05:35:05 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Account not found\"\n}"},{"id":"02eb6182-e3a3-431e-8d3e-298bf71f66e0","name":"Successful Transactions Creation","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"type\": \"expense\",\r\n    \"amount\": 6700,\r\n    \"category\": \"64db62ab13b10345a1091f00\",\r\n    \"note\": \"hey there , how are you?\"\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"http://localhost:5000/api/accounts/:accountId/transactions","host":["http://localhost:5000/api/accounts"],"path":[":accountId","transactions"],"variable":[{"key":"accountId","value":"64deb5070da303084e2644cb"}]}},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"359"},{"key":"ETag","value":"W/\"167-w7q7sDkVUagZmuuzFarBlzN+ekg\""},{"key":"Date","value":"Sun, 20 Aug 2023 05:36:28 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Transaction created successfully\",\n    \"transaction\": {\n        \"userId\": \"64db1e8937e2647a15f622ed\",\n        \"accountId\": \"64deb5070da303084e2644cb\",\n        \"type\": \"expense\",\n        \"amount\": 6700,\n        \"category\": \"64db62ab13b10345a1091f00\",\n        \"note\": \"hey there , how are you?\",\n        \"_id\": \"64e1a65ba66c59f9a3318227\",\n        \"createdAt\": \"2023-08-20T05:36:27.319Z\",\n        \"updatedAt\": \"2023-08-20T05:36:27.319Z\",\n        \"__v\": 0\n    }\n}"}],"_postman_id":"90709bf9-cdd9-4bee-b416-f58d7f6a24fc"},{"name":"Update Transaction","id":"9498465d-4867-4b0e-8ffb-24a7f20fcf72","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"type\": \"expense\",\r\n    \"amount\": 10,\r\n    \"category\": \"64db62ab13b10345a1091f00\",\r\n    \"note\": \"hey there , how are you?\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/accounts/:accountId/transactions/:transanctionId","urlObject":{"path":[":accountId","transactions",":transanctionId"],"host":["http://localhost:5000/api/accounts"],"query":[],"variable":[{"type":"any","value":"64deb5070da303084e2644cb","key":"accountId"},{"type":"any","value":"64e1a65ba66c59f9a3318227","key":"transanctionId"}]}},"response":[{"id":"a049c7ed-92c8-4d0d-aacb-2b8ec949ae47","name":"must authenticate first","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"type\": \"expense\",\r\n    \"amount\": 6700,\r\n    \"category\": \"64db62ab13b10345a1091f00\",\r\n    \"note\": \"hey there , how are you?\"\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"http://localhost:5000/api/accounts/:accountId/transactions","host":["http://localhost:5000/api/accounts"],"path":[":accountId","transactions"],"variable":[{"key":"accountId","value":"64de718c783ff12e24e77ade"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"47"},{"key":"ETag","value":"W/\"2f-1fmWWfWfXy9cJKAQZOh1m7bnhCg\""},{"key":"Date","value":"Sun, 20 Aug 2023 05:33:12 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Authorization denied, invalid token\"\n}"},{"id":"a4ad589d-65cf-4b73-8c6f-e7400d072e45","name":"account must exist","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"type\": \"expense\",\r\n    \"amount\": 6700,\r\n    \"category\": \"64db62ab13b10345a1091f00\",\r\n    \"note\": \"hey there , how are you?\"\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"http://localhost:5000/api/accounts/:accountId/transactions","host":["http://localhost:5000/api/accounts"],"path":[":accountId","transactions"],"variable":[{"key":"accountId","value":"64de718c783ff12e24e77ade"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"31"},{"key":"ETag","value":"W/\"1f-JkY0DvpxbEny7Houx5m94RC0biQ\""},{"key":"Date","value":"Sun, 20 Aug 2023 05:35:05 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Account not found\"\n}"},{"id":"d0983aee-0946-4a43-838a-2fab08e10272","name":"Successful Transactions Creation","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"type\": \"expense\",\r\n    \"amount\": 6700,\r\n    \"category\": \"64db62ab13b10345a1091f00\",\r\n    \"note\": \"hey there , how are you?\"\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"http://localhost:5000/api/accounts/:accountId/transactions","host":["http://localhost:5000/api/accounts"],"path":[":accountId","transactions"],"variable":[{"key":"accountId","value":"64deb5070da303084e2644cb"}]}},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"359"},{"key":"ETag","value":"W/\"167-w7q7sDkVUagZmuuzFarBlzN+ekg\""},{"key":"Date","value":"Sun, 20 Aug 2023 05:36:28 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Transaction created successfully\",\n    \"transaction\": {\n        \"userId\": \"64db1e8937e2647a15f622ed\",\n        \"accountId\": \"64deb5070da303084e2644cb\",\n        \"type\": \"expense\",\n        \"amount\": 6700,\n        \"category\": \"64db62ab13b10345a1091f00\",\n        \"note\": \"hey there , how are you?\",\n        \"_id\": \"64e1a65ba66c59f9a3318227\",\n        \"createdAt\": \"2023-08-20T05:36:27.319Z\",\n        \"updatedAt\": \"2023-08-20T05:36:27.319Z\",\n        \"__v\": 0\n    }\n}"},{"id":"dc14ceea-c0d3-4396-a9cc-c9fd1cf39a6d","name":"Update Transaction Success","originalRequest":{"method":"PATCH","header":[{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"type\": \"expense\",\r\n    \"amount\": 10,\r\n    \"category\": \"64db62ab13b10345a1091f00\",\r\n    \"note\": \"hey there , how are you?\"\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"http://localhost:5000/api/accounts/:accountId/transactions/:transanctionId","host":["http://localhost:5000/api/accounts"],"path":[":accountId","transactions",":transanctionId"],"variable":[{"key":"accountId","value":"64deb5070da303084e2644cb"},{"key":"transanctionId","value":"64e1a65ba66c59f9a3318227"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"357"},{"key":"ETag","value":"W/\"165-vHjpqZmx5TCK9bD/ZP5z/gXTESw\""},{"key":"Date","value":"Sun, 20 Aug 2023 12:22:09 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Transaction updated successfully\",\n    \"transaction\": {\n        \"_id\": \"64e1a65ba66c59f9a3318227\",\n        \"userId\": \"64db1e8937e2647a15f622ed\",\n        \"accountId\": \"64deb5070da303084e2644cb\",\n        \"type\": \"expense\",\n        \"amount\": 10,\n        \"category\": \"64db62ab13b10345a1091f00\",\n        \"note\": \"hey there , how are you?\",\n        \"createdAt\": \"2023-08-20T05:36:27.319Z\",\n        \"updatedAt\": \"2023-08-20T05:36:27.319Z\",\n        \"__v\": 0\n    }\n}"}],"_postman_id":"9498465d-4867-4b0e-8ffb-24a7f20fcf72"},{"name":"Delete Transaction","id":"104c136e-c9ce-4820-9ddb-c369ba44f127","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"url":"http://localhost:5000/api/accounts/:accountId/transactions/:transanctionId","urlObject":{"path":[":accountId","transactions",":transanctionId"],"host":["http://localhost:5000/api/accounts"],"query":[],"variable":[{"type":"any","value":"64deb5070da303084e2644cb","key":"accountId"},{"type":"any","value":"64e218c52317fffbee0b49c9","key":"transanctionId"}]}},"response":[{"id":"9b95a8c6-6fbf-4ab6-bec1-700dc9f6bbf4","name":"must authenticate first","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"type\": \"expense\",\r\n    \"amount\": 6700,\r\n    \"category\": \"64db62ab13b10345a1091f00\",\r\n    \"note\": \"hey there , how are you?\"\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"http://localhost:5000/api/accounts/:accountId/transactions","host":["http://localhost:5000/api/accounts"],"path":[":accountId","transactions"],"variable":[{"key":"accountId","value":"64de718c783ff12e24e77ade"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"47"},{"key":"ETag","value":"W/\"2f-1fmWWfWfXy9cJKAQZOh1m7bnhCg\""},{"key":"Date","value":"Sun, 20 Aug 2023 05:33:12 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Authorization denied, invalid token\"\n}"},{"id":"e054ed9f-43dd-44fa-b077-d217821e28b9","name":"account must exist","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"type\": \"expense\",\r\n    \"amount\": 6700,\r\n    \"category\": \"64db62ab13b10345a1091f00\",\r\n    \"note\": \"hey there , how are you?\"\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"http://localhost:5000/api/accounts/:accountId/transactions","host":["http://localhost:5000/api/accounts"],"path":[":accountId","transactions"],"variable":[{"key":"accountId","value":"64de718c783ff12e24e77ade"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"31"},{"key":"ETag","value":"W/\"1f-JkY0DvpxbEny7Houx5m94RC0biQ\""},{"key":"Date","value":"Sun, 20 Aug 2023 05:35:05 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Account not found\"\n}"}],"_postman_id":"104c136e-c9ce-4820-9ddb-c369ba44f127"},{"name":"All transanctions","id":"2757d33d-1783-4579-a8a8-34e1b870ce29","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"url":"http://localhost:5000/api/transactions/:accountId","urlObject":{"path":[":accountId"],"host":["http://localhost:5000/api/transactions"],"query":[],"variable":[{"type":"any","value":"64deb5070da303084e2644cb","key":"accountId"}]}},"response":[{"id":"48b557b8-5299-4fa5-a407-65a03cd5f560","name":"unsuccessful","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"url":{"raw":"http://localhost:5000/api/transactions/:accountId","host":["http://localhost:5000/api/transactions"],"path":[":accountId"],"variable":[{"key":"accountId","value":"64db445a7f1c4793243806b2"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"31"},{"key":"ETag","value":"W/\"1f-JkY0DvpxbEny7Houx5m94RC0biQ\""},{"key":"Date","value":"Sun, 20 Aug 2023 05:37:42 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Account not found\"\n}"},{"id":"01499965-c11d-409e-a58a-4cef5903484a","name":"All transanctions success","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"url":{"raw":"http://localhost:5000/api/transactions/:accountId","host":["http://localhost:5000/api/transactions"],"path":[":accountId"],"variable":[{"key":"accountId","value":"64deb5070da303084e2644cb"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"2001"},{"key":"ETag","value":"W/\"7d1-9rxeGi6k8hgIrlKvy8FV2p9dTCQ\""},{"key":"Date","value":"Sun, 20 Aug 2023 05:38:49 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"_id\": \"64dfe1e4c960756882bea35f\",\n        \"userId\": \"64db1e8937e2647a15f622ed\",\n        \"accountId\": \"64deb5070da303084e2644cb\",\n        \"type\": \"income\",\n        \"amount\": 78,\n        \"category\": {\n            \"_id\": \"64db62cc13b10345a1091f02\",\n            \"userId\": \"64db1e8937e2647a15f622ed\",\n            \"name\": \"Rent\",\n            \"createdAt\": \"2023-08-15T11:34:36.368Z\",\n            \"updatedAt\": \"2023-08-15T11:34:36.368Z\",\n            \"__v\": 16,\n            \"subcategories\": [\n                {\n                    \"_id\": \"64db8509345dc0e55643d29e\",\n                    \"categoryId\": \"64db62cc13b10345a1091f02\",\n                    \"name\": \"try subcategory\",\n                    \"createdAt\": \"2023-08-15T14:00:41.987Z\",\n                    \"updatedAt\": \"2023-08-15T14:00:41.987Z\",\n                    \"__v\": 0\n                },\n                {\n                    \"_id\": \"64db8541fa506962d83d8442\",\n                    \"categoryId\": \"64db62cc13b10345a1091f02\",\n                    \"name\": \"sub category 5\",\n                    \"createdAt\": \"2023-08-15T14:01:37.775Z\",\n                    \"updatedAt\": \"2023-08-15T14:01:37.775Z\",\n                    \"__v\": 0\n                },\n                {\n                    \"_id\": \"64db85e1da0dc7393381988d\",\n                    \"categoryId\": \"64db62cc13b10345a1091f02\",\n                    \"name\": \"sub category 5\",\n                    \"createdAt\": \"2023-08-15T14:04:17.762Z\",\n                    \"updatedAt\": \"2023-08-15T14:04:17.762Z\",\n                    \"__v\": 0\n                },\n                {\n                    \"_id\": \"64db8619da0dc73933819894\",\n                    \"categoryId\": \"64db62cc13b10345a1091f02\",\n                    \"name\": \"sub category 6\",\n                    \"createdAt\": \"2023-08-15T14:05:13.927Z\",\n                    \"updatedAt\": \"2023-08-15T14:05:13.928Z\",\n                    \"__v\": 0\n                },\n                {\n                    \"_id\": \"64deaeff0da303084e2644a0\",\n                    \"categoryId\": \"64db62cc13b10345a1091f02\",\n                    \"name\": \"category 11\",\n                    \"createdAt\": \"2023-08-17T23:36:31.544Z\",\n                    \"updatedAt\": \"2023-08-17T23:36:31.544Z\",\n                    \"__v\": 0\n                },\n                {\n                    \"_id\": \"64dffac98e0fdb4226bb226b\",\n                    \"categoryId\": \"64db62cc13b10345a1091f02\",\n                    \"name\": \"sub category 1\",\n                    \"createdAt\": \"2023-08-18T23:12:09.691Z\",\n                    \"updatedAt\": \"2023-08-18T23:12:09.691Z\",\n                    \"__v\": 0\n                }\n            ]\n        },\n        \"createdAt\": \"2023-08-18T21:25:56.837Z\",\n        \"updatedAt\": \"2023-08-18T21:25:56.837Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"64e1a65ba66c59f9a3318227\",\n        \"userId\": \"64db1e8937e2647a15f622ed\",\n        \"accountId\": \"64deb5070da303084e2644cb\",\n        \"type\": \"expense\",\n        \"amount\": 6700,\n        \"category\": {\n            \"subcategories\": [],\n            \"_id\": \"64db62ab13b10345a1091f00\",\n            \"userId\": \"64db1e8937e2647a15f622ed\",\n            \"name\": \"Groceries\",\n            \"createdAt\": \"2023-08-15T11:34:03.008Z\",\n            \"updatedAt\": \"2023-08-15T11:34:03.008Z\",\n            \"__v\": 0\n        },\n        \"note\": \"hey there , how are you?\",\n        \"createdAt\": \"2023-08-20T05:36:27.319Z\",\n        \"updatedAt\": \"2023-08-20T05:36:27.319Z\",\n        \"__v\": 0\n    }\n]"}],"_postman_id":"2757d33d-1783-4579-a8a8-34e1b870ce29"},{"name":"Transactions Report","id":"df6d3d9e-9d88-460d-b1e6-8144c1ce936c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"startDate\": \"2023-08-16T00:00:00Z\",\r\n    \"endDate\": \"2023-08-17T00:00:00Z\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/report/:accountId?startDate=2023-08-18T00:00:00Z&endDate=2023-08-19T00:00:00Z","urlObject":{"path":[":accountId"],"host":["http://localhost:5000/api/report"],"query":[{"key":"startDate","value":"2023-08-18T00:00:00Z"},{"key":"endDate","value":"2023-08-19T00:00:00Z"}],"variable":[{"type":"any","value":"64dff112c557b9cca62e111e","key":"accountId"}]}},"response":[{"id":"edc08368-0f12-497f-bdd5-93482d907a3f","name":"Transactions Report Success","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"startDate\": \"2023-08-16T00:00:00Z\",\r\n    \"endDate\": \"2023-08-17T00:00:00Z\"\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"http://localhost:5000/api/report/:accountId?startDate=2023-08-18T00:00:00Z&endDate=2023-08-19T00:00:00Z","host":["http://localhost:5000/api/report"],"path":[":accountId"],"query":[{"key":"startDate","value":"2023-08-18T00:00:00Z"},{"key":"endDate","value":"2023-08-19T00:00:00Z"}],"variable":[{"key":"accountId","value":"64dff112c557b9cca62e111e"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"2532"},{"key":"ETag","value":"W/\"9e4-qtDb1XxDyT+F0JtHE0yqQQBHQVQ\""},{"key":"Date","value":"Sun, 20 Aug 2023 05:39:44 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"totalIncome\": 8000,\n    \"totalExpense\": 600,\n    \"netBalance\": 8000,\n    \"transactions\": [\n        {\n            \"_id\": \"64dff2d1c557b9cca62e1144\",\n            \"userId\": \"64db1e8937e2647a15f622ed\",\n            \"accountId\": \"64dff112c557b9cca62e111e\",\n            \"type\": \"expense\",\n            \"amount\": 200,\n            \"createdAt\": \"2023-08-18T22:38:09.363Z\",\n            \"updatedAt\": \"2023-08-18T22:38:09.363Z\",\n            \"__v\": 0,\n            \"category\": {\n                \"_id\": \"64db62e013b10345a1091f04\",\n                \"userId\": \"64db1e8937e2647a15f622ed\",\n                \"name\": \"Entertainment\",\n                \"createdAt\": \"2023-08-15T11:34:56.167Z\",\n                \"updatedAt\": \"2023-08-15T11:34:56.167Z\",\n                \"__v\": 0,\n                \"subcategories\": []\n            },\n            \"subcategory\": []\n        },\n        {\n            \"_id\": \"64dff3ebc557b9cca62e117a\",\n            \"userId\": \"64db1e8937e2647a15f622ed\",\n            \"accountId\": \"64dff112c557b9cca62e111e\",\n            \"type\": \"income\",\n            \"amount\": 8000,\n            \"createdAt\": \"2023-08-18T22:42:51.245Z\",\n            \"updatedAt\": \"2023-08-18T22:42:51.245Z\",\n            \"__v\": 0,\n            \"category\": {\n                \"_id\": \"64db62e013b10345a1091f04\",\n                \"userId\": \"64db1e8937e2647a15f622ed\",\n                \"name\": \"Entertainment\",\n                \"createdAt\": \"2023-08-15T11:34:56.167Z\",\n                \"updatedAt\": \"2023-08-15T11:34:56.167Z\",\n                \"__v\": 0,\n                \"subcategories\": []\n            },\n            \"subcategory\": []\n        },\n        {\n            \"_id\": \"64dff419c557b9cca62e1184\",\n            \"userId\": \"64db1e8937e2647a15f622ed\",\n            \"accountId\": \"64dff112c557b9cca62e111e\",\n            \"type\": \"expense\",\n            \"amount\": 400,\n            \"createdAt\": \"2023-08-18T22:43:37.561Z\",\n            \"updatedAt\": \"2023-08-18T22:43:37.561Z\",\n            \"__v\": 0,\n            \"category\": {\n                \"_id\": \"64db62cc13b10345a1091f02\",\n                \"userId\": \"64db1e8937e2647a15f622ed\",\n                \"name\": \"Rent\",\n                \"createdAt\": \"2023-08-15T11:34:36.368Z\",\n                \"updatedAt\": \"2023-08-15T11:34:36.368Z\",\n                \"__v\": 16,\n                \"subcategories\": [\n                    {\n                        \"_id\": \"64db8509345dc0e55643d29e\",\n                        \"categoryId\": \"64db62cc13b10345a1091f02\",\n                        \"name\": \"try subcategory\",\n                        \"createdAt\": \"2023-08-15T14:00:41.987Z\",\n                        \"updatedAt\": \"2023-08-15T14:00:41.987Z\",\n                        \"__v\": 0\n                    },\n                    {\n                        \"_id\": \"64db8541fa506962d83d8442\",\n                        \"categoryId\": \"64db62cc13b10345a1091f02\",\n                        \"name\": \"sub category 5\",\n                        \"createdAt\": \"2023-08-15T14:01:37.775Z\",\n                        \"updatedAt\": \"2023-08-15T14:01:37.775Z\",\n                        \"__v\": 0\n                    },\n                    {\n                        \"_id\": \"64db85e1da0dc7393381988d\",\n                        \"categoryId\": \"64db62cc13b10345a1091f02\",\n                        \"name\": \"sub category 5\",\n                        \"createdAt\": \"2023-08-15T14:04:17.762Z\",\n                        \"updatedAt\": \"2023-08-15T14:04:17.762Z\",\n                        \"__v\": 0\n                    },\n                    {\n                        \"_id\": \"64db8619da0dc73933819894\",\n                        \"categoryId\": \"64db62cc13b10345a1091f02\",\n                        \"name\": \"sub category 6\",\n                        \"createdAt\": \"2023-08-15T14:05:13.927Z\",\n                        \"updatedAt\": \"2023-08-15T14:05:13.928Z\",\n                        \"__v\": 0\n                    },\n                    {\n                        \"_id\": \"64deaeff0da303084e2644a0\",\n                        \"categoryId\": \"64db62cc13b10345a1091f02\",\n                        \"name\": \"category 11\",\n                        \"createdAt\": \"2023-08-17T23:36:31.544Z\",\n                        \"updatedAt\": \"2023-08-17T23:36:31.544Z\",\n                        \"__v\": 0\n                    },\n                    {\n                        \"_id\": \"64dffac98e0fdb4226bb226b\",\n                        \"categoryId\": \"64db62cc13b10345a1091f02\",\n                        \"name\": \"sub category 1\",\n                        \"createdAt\": \"2023-08-18T23:12:09.691Z\",\n                        \"updatedAt\": \"2023-08-18T23:12:09.691Z\",\n                        \"__v\": 0\n                    }\n                ]\n            },\n            \"subcategory\": []\n        }\n    ]\n}"},{"id":"43d62fd6-d763-4d1a-9c4e-3c4e7ecf0891","name":"Transactions Report failure","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"startDate\": \"2023-08-16T00:00:00Z\",\r\n    \"endDate\": \"2023-08-17T00:00:00Z\"\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"http://localhost:5000/api/report/:accountId?startDate=2023-08-18T00:00:00Z&endDate=2023-08-17T00:00:00Z","host":["http://localhost:5000/api/report"],"path":[":accountId"],"query":[{"key":"startDate","value":"2023-08-18T00:00:00Z"},{"key":"endDate","value":"2023-08-17T00:00:00Z"}],"variable":[{"key":"accountId","value":"64dff112c557b9cca62e111e"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"27"},{"key":"ETag","value":"W/\"1b-TYBtuLNY/ydnVnNX8YdGxHuPmfM\""},{"key":"Date","value":"Sun, 20 Aug 2023 05:40:26 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Invalid dates\"\n}"},{"id":"caa9b104-482d-4ae7-8455-48143a2bed2d","name":"Transactions Report not found","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"startDate\": \"2023-08-16T00:00:00Z\",\r\n    \"endDate\": \"2023-08-17T00:00:00Z\"\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"http://localhost:5000/api/report/:accountId?startDate=2023-08-15T00:00:00Z&endDate=2023-08-16T00:00:00Z","host":["http://localhost:5000/api/report"],"path":[":accountId"],"query":[{"key":"startDate","value":"2023-08-15T00:00:00Z"},{"key":"endDate","value":"2023-08-16T00:00:00Z"}],"variable":[{"key":"accountId","value":"64dff112c557b9cca62e111e"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"63"},{"key":"ETag","value":"W/\"3f-dj6eZba+wBvd5shqvxSZdMR3ALg\""},{"key":"Date","value":"Sun, 20 Aug 2023 05:42:14 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"No transactions found within the given time frame\"\n}"}],"_postman_id":"df6d3d9e-9d88-460d-b1e6-8144c1ce936c"},{"name":"Single Transantion","id":"a68ef2e8-9c06-4144-9173-f0a88d52f74a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"url":"http://localhost:5000/api/transactions/:accountId/:transanctionId","urlObject":{"path":[":accountId",":transanctionId"],"host":["http://localhost:5000/api/transactions"],"query":[],"variable":[{"type":"any","value":"64deb5070da303084e2644cb","key":"accountId"},{"type":"any","value":"64dca61678a0da7116315eca","key":"transanctionId"}]}},"response":[{"id":"7b3512ad-6eec-4718-80e0-93d825f1bfc7","name":"Single Transantion Success","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"url":{"raw":"http://localhost:5000/api/transactions/:accountId/:transanctionId","host":["http://localhost:5000/api/transactions"],"path":[":accountId",":transanctionId"],"variable":[{"key":"accountId","value":"64db445a7f1c4793243806b2"},{"key":"transanctionId","value":"64dca61678a0da7116315eca"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"295"},{"key":"ETag","value":"W/\"127-/amYe/6I0MYK0BkJQWEZAo8loTE\""},{"key":"Date","value":"Sun, 20 Aug 2023 05:43:37 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"_id\": \"64dca61678a0da7116315eca\",\n    \"userId\": \"64db1e8937e2647a15f622ed\",\n    \"accountId\": \"64db445a7f1c4793243806b2\",\n    \"type\": \"income\",\n    \"amount\": 50,\n    \"category\": \"64db62ab13b10345a1091f00\",\n    \"note\": \"hey there , how are you?\",\n    \"createdAt\": \"2023-08-16T10:33:58.377Z\",\n    \"updatedAt\": \"2023-08-16T10:33:58.377Z\",\n    \"__v\": 0\n}"},{"id":"0e191dfa-0bf6-4d76-b85e-a8624494743f","name":"Single Transantion not found","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"url":{"raw":"http://localhost:5000/api/transactions/:accountId/:transanctionId","host":["http://localhost:5000/api/transactions"],"path":[":accountId",":transanctionId"],"variable":[{"key":"accountId","value":"64db445a7f1c4793243806b2"},{"key":"transanctionId","value":"64deb5070da303084e2644cb"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"36"},{"key":"ETag","value":"W/\"24-rDr/I+1pRNRVTgEbqpVA7TmXZBI\""},{"key":"Date","value":"Sun, 20 Aug 2023 05:44:39 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Transanction not found\"\n}"}],"_postman_id":"a68ef2e8-9c06-4144-9173-f0a88d52f74a"}],"id":"a7286b79-661a-4a8e-bcac-dc661def6ccd","description":"<p>This folder contains the API that allow authenticated users to easily manage their own transactions after they have been made.</p>\n","_postman_id":"a7286b79-661a-4a8e-bcac-dc661def6ccd"},{"name":"Account","item":[{"name":"all accounts","id":"58d2af6f-9e75-43b8-956e-6a5a3b530939","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"url":"http://localhost:5000/api/accounts","urlObject":{"host":["http://localhost:5000/api/accounts"],"query":[],"variable":[]}},"response":[{"id":"5e42b416-e7d4-404d-9076-2058d525a55e","name":"all accounts success","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"url":"http://localhost:5000/api/accounts"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1191"},{"key":"ETag","value":"W/\"4a7-mUyeb6osLbg9gI8UuK477I8rACY\""},{"key":"Date","value":"Sun, 20 Aug 2023 05:36:01 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"accounts\": [\n        {\n            \"_id\": \"64deb5070da303084e2644cb\",\n            \"userId\": \"64db1e8937e2647a15f622ed\",\n            \"accountType\": \"Bank Account\",\n            \"accountName\": \"School fees\",\n            \"balance\": 20078,\n            \"budget\": 20,\n            \"createdAt\": \"2023-08-18T00:02:15.275Z\",\n            \"updatedAt\": \"2023-08-18T00:02:15.275Z\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"64deb7bc0da303084e2644fb\",\n            \"userId\": \"64db1e8937e2647a15f622ed\",\n            \"accountType\": \"Airtel money\",\n            \"accountName\": \"Health\",\n            \"balance\": 900,\n            \"budget\": 700,\n            \"createdAt\": \"2023-08-18T00:13:48.676Z\",\n            \"updatedAt\": \"2023-08-18T00:13:48.676Z\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"64df43330da303084e264759\",\n            \"userId\": \"64db1e8937e2647a15f622ed\",\n            \"accountType\": \"Check\",\n            \"accountName\": \"Check\",\n            \"balance\": 89,\n            \"budget\": 64,\n            \"createdAt\": \"2023-08-18T10:08:51.772Z\",\n            \"updatedAt\": \"2023-08-18T10:08:51.772Z\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"64dfe879fb49d7f88f1cb06a\",\n            \"userId\": \"64db1e8937e2647a15f622ed\",\n            \"accountType\": \"Orange\",\n            \"accountName\": \"budget\",\n            \"balance\": 600,\n            \"budget\": 500,\n            \"createdAt\": \"2023-08-18T21:54:01.151Z\",\n            \"updatedAt\": \"2023-08-18T21:54:01.151Z\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"64dff112c557b9cca62e111e\",\n            \"userId\": \"64db1e8937e2647a15f622ed\",\n            \"accountType\": \"Bank Account\",\n            \"accountName\": \"test account\",\n            \"balance\": 8200,\n            \"budget\": 600,\n            \"createdAt\": \"2023-08-18T22:30:42.790Z\",\n            \"updatedAt\": \"2023-08-18T22:30:42.790Z\",\n            \"__v\": 0\n        }\n    ]\n}"}],"_postman_id":"58d2af6f-9e75-43b8-956e-6a5a3b530939"},{"name":"Account Details","id":"f43f2731-679c-4367-98e4-977e7d3a118e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"url":"http://localhost:5000/api/accounts/:accountId","urlObject":{"path":[":accountId"],"host":["http://localhost:5000/api/accounts"],"query":[],"variable":[{"type":"any","value":"64deb5070da303084e2644cb","key":"accountId"}]}},"response":[{"id":"20d2562a-06e2-4892-9283-80144a321ec2","name":"Account Details fails","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"url":{"raw":"http://localhost:5000/api/accounts/:accountId","host":["http://localhost:5000/api/accounts"],"path":[":accountId"],"variable":[{"key":"accountId","value":"64db3de3e81c68920ca6f584"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"31"},{"key":"ETag","value":"W/\"1f-JkY0DvpxbEny7Houx5m94RC0biQ\""},{"key":"Date","value":"Sun, 20 Aug 2023 05:45:51 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Account not found\"\n}"},{"id":"2a6874b0-a81f-4b77-a16f-370d72ac2caa","name":"Account Details success","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"url":{"raw":"http://localhost:5000/api/accounts/:accountId","host":["http://localhost:5000/api/accounts"],"path":[":accountId"],"variable":[{"key":"accountId","value":"64deb5070da303084e2644cb"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"253"},{"key":"ETag","value":"W/\"fd-bRjk7PBXxuDHWnyAg/ppexD8bR0\""},{"key":"Date","value":"Sun, 20 Aug 2023 05:46:16 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"account\": {\n        \"_id\": \"64deb5070da303084e2644cb\",\n        \"userId\": \"64db1e8937e2647a15f622ed\",\n        \"accountType\": \"Bank Account\",\n        \"accountName\": \"School fees\",\n        \"balance\": 13378,\n        \"budget\": 20,\n        \"createdAt\": \"2023-08-18T00:02:15.275Z\",\n        \"updatedAt\": \"2023-08-18T00:02:15.275Z\",\n        \"__v\": 0\n    }\n}"}],"_postman_id":"f43f2731-679c-4367-98e4-977e7d3a118e"},{"name":"Transactions-account","id":"34e82b9a-ef67-4626-aa6b-3253eac4c49a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"url":"http://localhost:5000/api/accounts/:accountId/transactions","urlObject":{"path":[":accountId","transactions"],"host":["http://localhost:5000/api/accounts"],"query":[],"variable":[{"type":"any","value":"64dff112c557b9cca62e111e","key":"accountId"}]}},"response":[{"id":"39f08916-bb8f-4e03-bf36-a37ee5fb57c0","name":"Transactions-account Success","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"url":{"raw":"http://localhost:5000/api/accounts/:accountId/transactions","host":["http://localhost:5000/api/accounts"],"path":[":accountId","transactions"],"variable":[{"key":"accountId","value":"64dff112c557b9cca62e111e"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"2408"},{"key":"ETag","value":"W/\"968-f1HxsKE2GnLljd6mjYmG35r5GXY\""},{"key":"Date","value":"Sun, 20 Aug 2023 05:46:47 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"_id\": \"64dff2d1c557b9cca62e1144\",\n        \"userId\": \"64db1e8937e2647a15f622ed\",\n        \"accountId\": \"64dff112c557b9cca62e111e\",\n        \"type\": \"expense\",\n        \"amount\": 200,\n        \"category\": {\n            \"subcategories\": [],\n            \"_id\": \"64db62e013b10345a1091f04\",\n            \"userId\": \"64db1e8937e2647a15f622ed\",\n            \"name\": \"Entertainment\",\n            \"createdAt\": \"2023-08-15T11:34:56.167Z\",\n            \"updatedAt\": \"2023-08-15T11:34:56.167Z\",\n            \"__v\": 0\n        },\n        \"createdAt\": \"2023-08-18T22:38:09.363Z\",\n        \"updatedAt\": \"2023-08-18T22:38:09.363Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"64dff3ebc557b9cca62e117a\",\n        \"userId\": \"64db1e8937e2647a15f622ed\",\n        \"accountId\": \"64dff112c557b9cca62e111e\",\n        \"type\": \"income\",\n        \"amount\": 8000,\n        \"category\": {\n            \"subcategories\": [],\n            \"_id\": \"64db62e013b10345a1091f04\",\n            \"userId\": \"64db1e8937e2647a15f622ed\",\n            \"name\": \"Entertainment\",\n            \"createdAt\": \"2023-08-15T11:34:56.167Z\",\n            \"updatedAt\": \"2023-08-15T11:34:56.167Z\",\n            \"__v\": 0\n        },\n        \"createdAt\": \"2023-08-18T22:42:51.245Z\",\n        \"updatedAt\": \"2023-08-18T22:42:51.245Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"64dff419c557b9cca62e1184\",\n        \"userId\": \"64db1e8937e2647a15f622ed\",\n        \"accountId\": \"64dff112c557b9cca62e111e\",\n        \"type\": \"expense\",\n        \"amount\": 400,\n        \"category\": {\n            \"_id\": \"64db62cc13b10345a1091f02\",\n            \"userId\": \"64db1e8937e2647a15f622ed\",\n            \"name\": \"Rent\",\n            \"createdAt\": \"2023-08-15T11:34:36.368Z\",\n            \"updatedAt\": \"2023-08-15T11:34:36.368Z\",\n            \"__v\": 16,\n            \"subcategories\": [\n                {\n                    \"_id\": \"64db8509345dc0e55643d29e\",\n                    \"categoryId\": \"64db62cc13b10345a1091f02\",\n                    \"name\": \"try subcategory\",\n                    \"createdAt\": \"2023-08-15T14:00:41.987Z\",\n                    \"updatedAt\": \"2023-08-15T14:00:41.987Z\",\n                    \"__v\": 0\n                },\n                {\n                    \"_id\": \"64db8541fa506962d83d8442\",\n                    \"categoryId\": \"64db62cc13b10345a1091f02\",\n                    \"name\": \"sub category 5\",\n                    \"createdAt\": \"2023-08-15T14:01:37.775Z\",\n                    \"updatedAt\": \"2023-08-15T14:01:37.775Z\",\n                    \"__v\": 0\n                },\n                {\n                    \"_id\": \"64db85e1da0dc7393381988d\",\n                    \"categoryId\": \"64db62cc13b10345a1091f02\",\n                    \"name\": \"sub category 5\",\n                    \"createdAt\": \"2023-08-15T14:04:17.762Z\",\n                    \"updatedAt\": \"2023-08-15T14:04:17.762Z\",\n                    \"__v\": 0\n                },\n                {\n                    \"_id\": \"64db8619da0dc73933819894\",\n                    \"categoryId\": \"64db62cc13b10345a1091f02\",\n                    \"name\": \"sub category 6\",\n                    \"createdAt\": \"2023-08-15T14:05:13.927Z\",\n                    \"updatedAt\": \"2023-08-15T14:05:13.928Z\",\n                    \"__v\": 0\n                },\n                {\n                    \"_id\": \"64deaeff0da303084e2644a0\",\n                    \"categoryId\": \"64db62cc13b10345a1091f02\",\n                    \"name\": \"category 11\",\n                    \"createdAt\": \"2023-08-17T23:36:31.544Z\",\n                    \"updatedAt\": \"2023-08-17T23:36:31.544Z\",\n                    \"__v\": 0\n                },\n                {\n                    \"_id\": \"64dffac98e0fdb4226bb226b\",\n                    \"categoryId\": \"64db62cc13b10345a1091f02\",\n                    \"name\": \"sub category 1\",\n                    \"createdAt\": \"2023-08-18T23:12:09.691Z\",\n                    \"updatedAt\": \"2023-08-18T23:12:09.691Z\",\n                    \"__v\": 0\n                }\n            ]\n        },\n        \"createdAt\": \"2023-08-18T22:43:37.561Z\",\n        \"updatedAt\": \"2023-08-18T22:43:37.561Z\",\n        \"__v\": 0\n    }\n]"}],"_postman_id":"34e82b9a-ef67-4626-aa6b-3253eac4c49a"},{"name":"Delete Account","id":"eaec653f-428c-4dbb-8ae9-820cf77f4e5a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"DELETE","header":[{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"url":"http://localhost:5000/api/accounts/:accountId","urlObject":{"path":[":accountId"],"host":["http://localhost:5000/api/accounts"],"query":[],"variable":[{"type":"any","value":"64df43330da303084e264759","key":"accountId"}]}},"response":[{"id":"5df73b51-c75f-44ad-a929-eae4de8a43b3","name":"Delete Account success","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"url":{"raw":"http://localhost:5000/api/accounts/:accountId","host":["http://localhost:5000/api/accounts"],"path":[":accountId"],"variable":[{"key":"accountId","value":"64df43330da303084e264759"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"42"},{"key":"ETag","value":"W/\"2a-34WA/E85hFWaktkanlfSv4XDTGM\""},{"key":"Date","value":"Sun, 20 Aug 2023 05:48:09 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Account deleted successfully\"\n}"},{"id":"a1db6d9f-01fc-45d6-b440-c300d8e25f30","name":"Delete Account not found","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"url":{"raw":"http://localhost:5000/api/accounts/:accountId","host":["http://localhost:5000/api/accounts"],"path":[":accountId"],"variable":[{"key":"accountId","value":"64df43330da303084e264759"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"31"},{"key":"ETag","value":"W/\"1f-JkY0DvpxbEny7Houx5m94RC0biQ\""},{"key":"Date","value":"Sun, 20 Aug 2023 05:48:34 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Account not found\"\n}"}],"_postman_id":"eaec653f-428c-4dbb-8ae9-820cf77f4e5a"},{"name":"create account","id":"1cc974d3-c8d1-4104-99ef-d347328ccdab","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"accountType\": \"Safe account\",\r\n    \"accountName\": \"New account\",\r\n    \"balance\": 800,\r\n    \"budget\":100\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/accounts","urlObject":{"host":["http://localhost:5000/api/accounts"],"query":[],"variable":[]}},"response":[{"id":"d0f303bc-6e3e-441e-9574-577949f0389c","name":"create account fail","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"accountType\": \"Safe account\",\r\n    \"accountName\": \"New account\",\r\n    \"balance\": 10,\r\n    \"budget\":800\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/accounts"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"55"},{"key":"ETag","value":"W/\"37-MHcfUhd1WzJurRd1zrGlkzaEHTw\""},{"key":"Date","value":"Sun, 20 Aug 2023 05:49:31 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Budget cannot be greater than the balance\"\n}"},{"id":"9d790fa4-0d23-4fc7-93b1-3d68c51aea8d","name":"create account success","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"accountType\": \"Safe account\",\r\n    \"accountName\": \"New account\",\r\n    \"balance\": 800,\r\n    \"budget\":100\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/accounts"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"293"},{"key":"ETag","value":"W/\"125-OQi7wFcMGnl4UCIENjZdOaBuqo0\""},{"key":"Date","value":"Sun, 20 Aug 2023 05:50:46 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Account created successfully\",\n    \"account\": {\n        \"userId\": \"64db1e8937e2647a15f622ed\",\n        \"accountType\": \"Safe account\",\n        \"accountName\": \"New account\",\n        \"balance\": 800,\n        \"budget\": 100,\n        \"_id\": \"64e1a9b6a66c59f9a331824c\",\n        \"createdAt\": \"2023-08-20T05:50:46.096Z\",\n        \"updatedAt\": \"2023-08-20T05:50:46.096Z\",\n        \"__v\": 0\n    }\n}"}],"_postman_id":"1cc974d3-c8d1-4104-99ef-d347328ccdab"},{"name":"update account","id":"1d6a4081-ed65-42c5-8101-49136650417f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"accountType\": \"Bank Account\",\r\n    \"accountName\": \"Saving Account\",\r\n    \"balance\": 130\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/accounts/:accountId","urlObject":{"path":[":accountId"],"host":["http://localhost:5000/api/accounts"],"query":[],"variable":[{"type":"any","value":"64df43330da303084e264759","key":"accountId"}]}},"response":[{"id":"8bf82504-b089-4d3b-bf35-301733fc9e56","name":"update account not found","originalRequest":{"method":"PATCH","header":[{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"accountType\": \"Bank Account\",\r\n    \"accountName\": \"Saving Account\",\r\n    \"balance\": 130\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"http://localhost:5000/api/accounts/:accountId","host":["http://localhost:5000/api/accounts"],"path":[":accountId"],"variable":[{"key":"accountId","value":"64db3a06e53008b291d2f333"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"31"},{"key":"ETag","value":"W/\"1f-JkY0DvpxbEny7Houx5m94RC0biQ\""},{"key":"Date","value":"Sun, 20 Aug 2023 05:51:08 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Account not found\"\n}"},{"id":"dd6c297e-4da3-4885-bbf8-dfa09ae7fd74","name":"update account success","originalRequest":{"method":"PATCH","header":[{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"accountType\": \"Bank Account\",\r\n    \"accountName\": \"Saving Account\",\r\n    \"balance\": 130\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"http://localhost:5000/api/accounts/:accountId","host":["http://localhost:5000/api/accounts"],"path":[":accountId"],"variable":[{"key":"accountId","value":"64dfe879fb49d7f88f1cb06a"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"42"},{"key":"ETag","value":"W/\"2a-jhs+AEkRD2q376trYfDxoKODCT8\""},{"key":"Date","value":"Sun, 20 Aug 2023 05:52:43 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Account updated successfully\"\n}"}],"_postman_id":"1d6a4081-ed65-42c5-8101-49136650417f"}],"id":"e78cac05-eeb9-495c-ae36-3ba8e3f08488","description":"<p>This folder contains the APIs that allow authenticated users to manage their own accounts</p>\n","_postman_id":"e78cac05-eeb9-495c-ae36-3ba8e3f08488"},{"name":"Categories","item":[{"name":"create category","id":"a2a3b12c-23e8-416f-8006-b577f7fd1283","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"Shoes\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/categories","urlObject":{"host":["http://localhost:5000/api/categories"],"query":[],"variable":[]}},"response":[{"id":"7b3db284-bebe-4bbc-b436-22d2e983ad58","name":"create category success","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"Shoes\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/categories"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"245"},{"key":"ETag","value":"W/\"f5-EkNkt7aG7lnILiqAcbMAYOmAJVg\""},{"key":"Date","value":"Sun, 20 Aug 2023 05:54:05 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Category created successfully\",\n    \"category\": {\n        \"userId\": \"64db1e8937e2647a15f622ed\",\n        \"name\": \"Shoes\",\n        \"subcategories\": [],\n        \"_id\": \"64e1aa7ca66c59f9a3318252\",\n        \"createdAt\": \"2023-08-20T05:54:04.728Z\",\n        \"updatedAt\": \"2023-08-20T05:54:04.728Z\",\n        \"__v\": 0\n    }\n}"},{"id":"e41d4c2d-5f11-4644-9e98-e0ee848b1cdc","name":"create category fail","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/categories"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"30"},{"key":"ETag","value":"W/\"1e-zHuulyD66PJhCLStUX6jHwhbJUM\""},{"key":"Date","value":"Sun, 20 Aug 2023 05:54:39 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Name is required\"\n}"}],"_postman_id":"a2a3b12c-23e8-416f-8006-b577f7fd1283"},{"name":"all categories","id":"1cd3d118-4115-494a-a805-b2c44a141393","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"url":"http://localhost:5000/api/categories","urlObject":{"host":["http://localhost:5000/api/categories"],"query":[],"variable":[]}},"response":[{"id":"5d67b2bc-e804-457f-b724-3e24080ec7d1","name":"all categories success","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"url":"http://localhost:5000/api/categories"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"3989"},{"key":"ETag","value":"W/\"f95-6dqrZcaMPtj7s8aByrtqZHvRM0M\""},{"key":"Date","value":"Sun, 20 Aug 2023 05:55:12 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"categories\": [\n        {\n            \"subcategories\": [],\n            \"_id\": \"64db62ab13b10345a1091f00\",\n            \"userId\": \"64db1e8937e2647a15f622ed\",\n            \"name\": \"Groceries\",\n            \"createdAt\": \"2023-08-15T11:34:03.008Z\",\n            \"updatedAt\": \"2023-08-15T11:34:03.008Z\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"64db62cc13b10345a1091f02\",\n            \"userId\": \"64db1e8937e2647a15f622ed\",\n            \"name\": \"Rent\",\n            \"createdAt\": \"2023-08-15T11:34:36.368Z\",\n            \"updatedAt\": \"2023-08-15T11:34:36.368Z\",\n            \"__v\": 16,\n            \"subcategories\": [\n                {\n                    \"_id\": \"64db8509345dc0e55643d29e\",\n                    \"categoryId\": \"64db62cc13b10345a1091f02\",\n                    \"name\": \"try subcategory\",\n                    \"createdAt\": \"2023-08-15T14:00:41.987Z\",\n                    \"updatedAt\": \"2023-08-15T14:00:41.987Z\",\n                    \"__v\": 0\n                },\n                {\n                    \"_id\": \"64db8541fa506962d83d8442\",\n                    \"categoryId\": \"64db62cc13b10345a1091f02\",\n                    \"name\": \"sub category 5\",\n                    \"createdAt\": \"2023-08-15T14:01:37.775Z\",\n                    \"updatedAt\": \"2023-08-15T14:01:37.775Z\",\n                    \"__v\": 0\n                },\n                {\n                    \"_id\": \"64db85e1da0dc7393381988d\",\n                    \"categoryId\": \"64db62cc13b10345a1091f02\",\n                    \"name\": \"sub category 5\",\n                    \"createdAt\": \"2023-08-15T14:04:17.762Z\",\n                    \"updatedAt\": \"2023-08-15T14:04:17.762Z\",\n                    \"__v\": 0\n                },\n                {\n                    \"_id\": \"64db8619da0dc73933819894\",\n                    \"categoryId\": \"64db62cc13b10345a1091f02\",\n                    \"name\": \"sub category 6\",\n                    \"createdAt\": \"2023-08-15T14:05:13.927Z\",\n                    \"updatedAt\": \"2023-08-15T14:05:13.928Z\",\n                    \"__v\": 0\n                },\n                {\n                    \"_id\": \"64deaeff0da303084e2644a0\",\n                    \"categoryId\": \"64db62cc13b10345a1091f02\",\n                    \"name\": \"category 11\",\n                    \"createdAt\": \"2023-08-17T23:36:31.544Z\",\n                    \"updatedAt\": \"2023-08-17T23:36:31.544Z\",\n                    \"__v\": 0\n                },\n                {\n                    \"_id\": \"64dffac98e0fdb4226bb226b\",\n                    \"categoryId\": \"64db62cc13b10345a1091f02\",\n                    \"name\": \"sub category 1\",\n                    \"createdAt\": \"2023-08-18T23:12:09.691Z\",\n                    \"updatedAt\": \"2023-08-18T23:12:09.691Z\",\n                    \"__v\": 0\n                }\n            ]\n        },\n        {\n            \"subcategories\": [],\n            \"_id\": \"64db62e013b10345a1091f04\",\n            \"userId\": \"64db1e8937e2647a15f622ed\",\n            \"name\": \"Entertainment\",\n            \"createdAt\": \"2023-08-15T11:34:56.167Z\",\n            \"updatedAt\": \"2023-08-15T11:34:56.167Z\",\n            \"__v\": 0\n        },\n        {\n            \"subcategories\": [],\n            \"_id\": \"64db67e38702558f8d9eef91\",\n            \"userId\": \"64db1e8937e2647a15f622ed\",\n            \"name\": \"sub category 1\",\n            \"createdAt\": \"2023-08-15T11:56:19.284Z\",\n            \"updatedAt\": \"2023-08-15T11:56:19.284Z\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"64de9d120da303084e2643d9\",\n            \"userId\": \"64db1e8937e2647a15f622ed\",\n            \"name\": \"sport\",\n            \"subcategories\": [\n                {\n                    \"_id\": \"64dea2a70da303084e26440e\",\n                    \"categoryId\": \"64de9d120da303084e2643d9\",\n                    \"name\": \"sub category 2\",\n                    \"createdAt\": \"2023-08-17T22:43:51.608Z\",\n                    \"updatedAt\": \"2023-08-17T22:43:51.608Z\",\n                    \"__v\": 0\n                },\n                {\n                    \"_id\": \"64dea3ae0da303084e26441b\",\n                    \"categoryId\": \"64de9d120da303084e2643d9\",\n                    \"name\": \"sub category 7\",\n                    \"createdAt\": \"2023-08-17T22:48:14.478Z\",\n                    \"updatedAt\": \"2023-08-17T22:48:14.478Z\",\n                    \"__v\": 0\n                },\n                {\n                    \"_id\": \"64dfdd9fc960756882bea2f9\",\n                    \"categoryId\": \"64de9d120da303084e2643d9\",\n                    \"name\": \"new categories\",\n                    \"createdAt\": \"2023-08-18T21:07:43.771Z\",\n                    \"updatedAt\": \"2023-08-18T21:07:43.771Z\",\n                    \"__v\": 0\n                }\n            ],\n            \"createdAt\": \"2023-08-17T22:20:02.722Z\",\n            \"updatedAt\": \"2023-08-17T22:20:02.722Z\",\n            \"__v\": 3\n        },\n        {\n            \"_id\": \"64de9de50da303084e2643ec\",\n            \"userId\": \"64db1e8937e2647a15f622ed\",\n            \"name\": \"Accomodation\",\n            \"subcategories\": [\n                {\n                    \"_id\": \"64dea4b60da303084e26443c\",\n                    \"categoryId\": \"64de9de50da303084e2643ec\",\n                    \"name\": \"sub category 8\",\n                    \"createdAt\": \"2023-08-17T22:52:38.694Z\",\n                    \"updatedAt\": \"2023-08-17T22:52:38.694Z\",\n                    \"__v\": 0\n                },\n                {\n                    \"_id\": \"64dea53c0da303084e264449\",\n                    \"categoryId\": \"64de9de50da303084e2643ec\",\n                    \"name\": \"sub category 9\",\n                    \"createdAt\": \"2023-08-17T22:54:52.760Z\",\n                    \"updatedAt\": \"2023-08-17T22:54:52.760Z\",\n                    \"__v\": 0\n                },\n                {\n                    \"_id\": \"64dea6300da303084e264456\",\n                    \"categoryId\": \"64de9de50da303084e2643ec\",\n                    \"name\": \"sub category 10\",\n                    \"createdAt\": \"2023-08-17T22:58:56.173Z\",\n                    \"updatedAt\": \"2023-08-17T22:58:56.173Z\",\n                    \"__v\": 0\n                }\n            ],\n            \"createdAt\": \"2023-08-17T22:23:33.998Z\",\n            \"updatedAt\": \"2023-08-17T22:23:33.998Z\",\n            \"__v\": 3\n        },\n        {\n            \"_id\": \"64dfddd4c960756882bea30f\",\n            \"userId\": \"64db1e8937e2647a15f622ed\",\n            \"name\": \"category 11\",\n            \"subcategories\": [],\n            \"createdAt\": \"2023-08-18T21:08:36.320Z\",\n            \"updatedAt\": \"2023-08-18T21:08:36.320Z\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"64dffaa38e0fdb4226bb2263\",\n            \"userId\": \"64db1e8937e2647a15f622ed\",\n            \"name\": \"category1\",\n            \"subcategories\": [],\n            \"createdAt\": \"2023-08-18T23:11:31.770Z\",\n            \"updatedAt\": \"2023-08-18T23:11:31.770Z\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"64e1aa7ca66c59f9a3318252\",\n            \"userId\": \"64db1e8937e2647a15f622ed\",\n            \"name\": \"Shoes\",\n            \"subcategories\": [],\n            \"createdAt\": \"2023-08-20T05:54:04.728Z\",\n            \"updatedAt\": \"2023-08-20T05:54:04.728Z\",\n            \"__v\": 0\n        }\n    ]\n}"}],"_postman_id":"1cd3d118-4115-494a-a805-b2c44a141393"}],"id":"a9fc74f9-7af7-42bb-99c1-68ae31297294","description":"<p>This folder holds the APIs for managing categories for which users made their transactions</p>\n","_postman_id":"a9fc74f9-7af7-42bb-99c1-68ae31297294"},{"name":"Sub categories","item":[{"name":"create sub category","id":"c057498e-36e5-4343-85c9-a974cca663a7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"categoryId\": \"64db62ab13b10345a1091f00\",\r\n    \"name\": \"sub category 9\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/subcategories","urlObject":{"host":["http://localhost:5000/api/subcategories"],"query":[],"variable":[]}},"response":[{"id":"7220ab83-2fb9-4af4-860a-e03b87349ee0","name":"create sub category success","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"categoryId\": \"64db62cc13b10345a1091f02\",\r\n    \"name\": \"sub category 6\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/subcategories"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"245"},{"key":"ETag","value":"W/\"f5-azGGVCWmedZR4I9MjccyDfGAaU8\""},{"key":"Date","value":"Sun, 20 Aug 2023 05:55:30 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Subcategory created successfully\",\n    \"subcategory\": {\n        \"categoryId\": \"64db62cc13b10345a1091f02\",\n        \"name\": \"sub category 6\",\n        \"_id\": \"64e1aad1a66c59f9a3318258\",\n        \"createdAt\": \"2023-08-20T05:55:29.399Z\",\n        \"updatedAt\": \"2023-08-20T05:55:29.399Z\",\n        \"__v\": 0\n    }\n}"}],"_postman_id":"c057498e-36e5-4343-85c9-a974cca663a7"},{"name":"Delete subCategory","id":"f08aac1b-eb9c-447b-b555-7315848b0e90","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"DELETE","header":[{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"url":"http://localhost:5000/api/subcategories/:subcategoryId","urlObject":{"path":[":subcategoryId"],"host":["http://localhost:5000/api/subcategories"],"query":[],"variable":[{"type":"any","value":"64e1aad1a66c59f9a3318258","key":"subcategoryId"}]}},"response":[{"id":"1994f74e-9449-4c03-8171-af1076d5bf5b","name":"Delete subCategory fail","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"url":{"raw":"http://localhost:5000/api/subcategories/:subcategoryId","host":["http://localhost:5000/api/subcategories"],"path":[":subcategoryId"],"variable":[{"key":"subcategoryId","value":"64db84f0196e2ca0d9070bed"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"35"},{"key":"ETag","value":"W/\"23-eK0+OGHdk41AwUJklWtfmiGyrrc\""},{"key":"Date","value":"Sun, 20 Aug 2023 05:56:31 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Subcategory not found\"\n}"},{"id":"99d8aa7f-eb13-41e5-b31c-72dfe74518bc","name":"Delete subCategory success","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"url":{"raw":"http://localhost:5000/api/subcategories/:subcategoryId","host":["http://localhost:5000/api/subcategories"],"path":[":subcategoryId"],"variable":[{"key":"subcategoryId","value":"64e1aad1a66c59f9a3318258"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"46"},{"key":"ETag","value":"W/\"2e-Z1ujeB25ABLBq0DeQrqdVohrsKw\""},{"key":"Date","value":"Sun, 20 Aug 2023 05:57:23 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Subcategory deleted successfully\"\n}"}],"_postman_id":"f08aac1b-eb9c-447b-b555-7315848b0e90"},{"name":"Update subCategory","id":"25885643-e1e4-40c4-b9f3-91a6dcbcae74","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"PATCH","header":[{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"try subcategory\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/subcategories/:subcategoryId","urlObject":{"path":[":subcategoryId"],"host":["http://localhost:5000/api/subcategories"],"query":[],"variable":[{"type":"any","value":"64db8509345dc0e55643d29e","key":"subcategoryId"}]}},"response":[{"id":"bfa0ea21-ddea-4c5e-9180-8cfcaa20eb60","name":"Update subCategory success","originalRequest":{"method":"PATCH","header":[{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"try subcategory\"\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"http://localhost:5000/api/subcategories/:subcategoryId","host":["http://localhost:5000/api/subcategories"],"path":[":subcategoryId"],"variable":[{"key":"subcategoryId","value":"64db8509345dc0e55643d29e"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"246"},{"key":"ETag","value":"W/\"f6-T+XRGNY+dX+tyT8ZfKixI8QZ6PE\""},{"key":"Date","value":"Sun, 20 Aug 2023 05:58:12 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Subcategory updated successfully\",\n    \"subcategory\": {\n        \"_id\": \"64db8509345dc0e55643d29e\",\n        \"categoryId\": \"64db62cc13b10345a1091f02\",\n        \"name\": \"try subcategory\",\n        \"createdAt\": \"2023-08-15T14:00:41.987Z\",\n        \"updatedAt\": \"2023-08-15T14:00:41.987Z\",\n        \"__v\": 0\n    }\n}"}],"_postman_id":"25885643-e1e4-40c4-b9f3-91a6dcbcae74"},{"name":"all sub categories","id":"6be73609-603e-4a6b-82b0-501cde1aeb6c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"url":"http://localhost:5000/api/subcategories/:categoryId","urlObject":{"path":[":categoryId"],"host":["http://localhost:5000/api/subcategories"],"query":[],"variable":[{"type":"any","value":"64de9de50da303084e2643ec","key":"categoryId"}]}},"response":[{"id":"db43c3b8-2500-4b70-84fb-568fc172b6d4","name":"all sub categories success","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"url":{"raw":"http://localhost:5000/api/subcategories/:categoryId","host":["http://localhost:5000/api/subcategories"],"path":[":categoryId"],"variable":[{"key":"categoryId","value":"64de9de50da303084e2643ec"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"575"},{"key":"ETag","value":"W/\"23f-IfugRL4vuclt6YJB3Rz2c055oqw\""},{"key":"Date","value":"Sun, 20 Aug 2023 05:58:43 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"subcategories\": [\n        {\n            \"_id\": \"64dea4b60da303084e26443c\",\n            \"categoryId\": \"64de9de50da303084e2643ec\",\n            \"name\": \"sub category 8\",\n            \"createdAt\": \"2023-08-17T22:52:38.694Z\",\n            \"updatedAt\": \"2023-08-17T22:52:38.694Z\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"64dea53c0da303084e264449\",\n            \"categoryId\": \"64de9de50da303084e2643ec\",\n            \"name\": \"sub category 9\",\n            \"createdAt\": \"2023-08-17T22:54:52.760Z\",\n            \"updatedAt\": \"2023-08-17T22:54:52.760Z\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"64dea6300da303084e264456\",\n            \"categoryId\": \"64de9de50da303084e2643ec\",\n            \"name\": \"sub category 10\",\n            \"createdAt\": \"2023-08-17T22:58:56.173Z\",\n            \"updatedAt\": \"2023-08-17T22:58:56.173Z\",\n            \"__v\": 0\n        }\n    ]\n}"}],"_postman_id":"6be73609-603e-4a6b-82b0-501cde1aeb6c"}],"id":"91d4380f-33af-4ac5-ad36-7e5167f1299d","description":"<p>This folder contains the sub categories API that are related to a specific category in the available list</p>\n","_postman_id":"91d4380f-33af-4ac5-ad36-7e5167f1299d"}],"event":[{"listen":"prerequest","script":{"id":"6b7f782e-95ed-48b2-895b-b6b5bef76dd0","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"740c4ed3-36f4-4237-bf07-4eaecdb19413","type":"text/javascript","exec":[""]}}],"variable":[{"key":"dev_url","value":"http://localhost:5000/api/","type":"string"}]}