{"info":{"_postman_id":"1e1a0691-955e-4ee7-9049-872d418dbd9d","name":"PayTransact","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"24504477","collectionId":"1e1a0691-955e-4ee7-9049-872d418dbd9d","publishedId":"2s93RNyZzx","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2023-03-25T12:51:48.000Z"},"item":[{"name":"Accounts","item":[{"name":"Get Account","event":[{"listen":"test","script":{"exec":[""],"type":"text/javascript","id":"cba8ecab-e862-4e74-a725-16bb768243d1"}}],"id":"7d2cec65-0603-4fbd-90f9-efb7bd0f5c44","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"{\r\n  \"email\":\"1000@gmail.com\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/account","urlObject":{"protocol":"http","port":"8080","path":["api","account"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"98ae5ec4-904c-4aaa-a493-d3c89778bf46","name":"success","originalRequest":{"method":"GET","header":[],"url":"http://localhost:8080/api/account"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Sun, 15 Jan 2023 17:03:16 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": \"account details fetched successfully\",\n    \"data\": {\n        \"id\": 1,\n        \"dateCreated\": \"2023-01-15T17:02:53.470+00:00\",\n        \"balance\": 0,\n        \"cardNumber\": 6384385578019,\n        \"user\": {\n            \"id\": 1,\n            \"dateCreated\": \"2023-01-15T17:02:16.871+00:00\",\n            \"email\": \"0001@gmail.com\"\n        }\n    }\n}"},{"id":"1e9a5a2e-aa68-48f3-8a5a-f4a5d90109e4","name":"error - account not created for user","originalRequest":{"method":"GET","header":[],"url":"http://localhost:8080/api/account"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Sun, 15 Jan 2023 16:13:04 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"error\",\n    \"message\": \"account not created for this user\"\n}"}],"_postman_id":"7d2cec65-0603-4fbd-90f9-efb7bd0f5c44"},{"name":"Create Account","id":"07534c35-ac81-4ecc-bdee-9b2b1ba576dd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"email\":\"1000@gmail.com\"  \r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/account/create","urlObject":{"protocol":"http","port":"8080","path":["api","account","create"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"dd365fb7-b81c-46d5-b546-977db152cda5","name":"success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"email\":\"0001@gmail.com\"  \r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/account/create"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Sun, 15 Jan 2023 15:22:02 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": \"account created successfully\",\n    \"data\": null\n}"},{"id":"48b7f06b-1379-48c2-bafc-d073116eb6f4","name":"error - user tries to recreate an account","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"email\":\"0001@gmail.com\"  \r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/account/create"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Sun, 15 Jan 2023 15:57:49 GMT"},{"key":"Connection","value":"close"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"error\",\n    \"message\": \"account already exists for this user\"\n}"}],"_postman_id":"07534c35-ac81-4ecc-bdee-9b2b1ba576dd"},{"name":"Get Account History","id":"1639881e-5970-4a99-a2b2-39f31b8378e1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\":\"1000@gmail.com\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/account/history","urlObject":{"protocol":"http","port":"8080","path":["api","account","history"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"c3336099-6a6c-4022-9023-fe37ef54dc73","name":"success","originalRequest":{"method":"GET","header":[],"url":"http://localhost:8080/api/account/history"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Tue, 17 Jan 2023 10:16:04 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": \"fetched list of account's history\",\n    \"data\": [\n        {\n            \"id\": 2,\n            \"dateCreated\": \"2023-01-16T16:14:46.753+00:00\",\n            \"body\": \"new account created\"\n        },\n        {\n            \"id\": 3,\n            \"dateCreated\": \"2023-01-16T16:52:11.555+00:00\",\n            \"body\": \"you sent 20.0 to 848007031120\"\n        },\n        {\n            \"id\": 5,\n            \"dateCreated\": \"2023-01-16T16:52:20.492+00:00\",\n            \"body\": \"you sent 20.0 to 848007031120\"\n        },\n        {\n            \"id\": 7,\n            \"dateCreated\": \"2023-01-16T16:53:19.420+00:00\",\n            \"body\": \"you sent 20.0 to 848007031120\"\n        },\n        {\n            \"id\": 9,\n            \"dateCreated\": \"2023-01-16T16:53:29.292+00:00\",\n            \"body\": \"you sent 20.0 to 848007031120\"\n        },\n        {\n            \"id\": 11,\n            \"dateCreated\": \"2023-01-16T17:10:00.199+00:00\",\n            \"body\": \"you sent 100.0 to 848007031120\"\n        },\n        {\n            \"id\": 13,\n            \"dateCreated\": \"2023-01-17T08:45:41.755+00:00\",\n            \"body\": \"you sent 100.0 to 848007031120\"\n        },\n        {\n            \"id\": 15,\n            \"dateCreated\": \"2023-01-17T08:50:58.443+00:00\",\n            \"body\": \"you sent 100.0 to 848007031120\"\n        },\n        {\n            \"id\": 17,\n            \"dateCreated\": \"2023-01-17T08:51:46.983+00:00\",\n            \"body\": \"you sent 100.0 to 848007031120\"\n        },\n        {\n            \"id\": 19,\n            \"dateCreated\": \"2023-01-17T08:51:51.948+00:00\",\n            \"body\": \"you sent 100.0 to 848007031120\"\n        }\n    ]\n}"}],"_postman_id":"1639881e-5970-4a99-a2b2-39f31b8378e1"}],"id":"7d21bc93-c94a-4c97-afec-e4d06d4849c3","description":"<p>Api Service to handle account wallet creatiion and history.</p>\n","_postman_id":"7d21bc93-c94a-4c97-afec-e4d06d4849c3"},{"name":"Auth","item":[{"name":"Login","id":"64228d80-bfe2-4237-b014-c647da9d9402","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\":\"0002@gmail.com\",\r\n    \"password\":\"123456789\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/authenticate","urlObject":{"protocol":"http","port":"8080","path":["api","authenticate"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"64228d80-bfe2-4237-b014-c647da9d9402"},{"name":"Register","id":"2db0e20b-073e-4df1-a881-cfd21296faf6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\":\"hello world\",\r\n    \"firstName\":\"Ife\",\r\n    \"lastName\":\"Jeremiah\",\r\n    \"phoneNumber\":\"08025925416\",\r\n    \"password\":\"123456789\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/register","urlObject":{"protocol":"http","port":"8080","path":["api","register"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"639d5158-11a3-48df-86e4-146383ee2ddc","name":"success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\":\"0002@gmail.com\",\r\n    \"password\":\"123456789\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/register"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Sun, 15 Jan 2023 15:20:39 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": \"Registered successfully - proceed to login.\",\n    \"data\": null\n}"},{"id":"38d0f73f-fda5-488a-bea1-07a970849278","name":"error - user uses same email to register","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\":\"0002@gmail.com\",\r\n    \"password\":\"123456789\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/register"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Sun, 15 Jan 2023 15:21:39 GMT"},{"key":"Connection","value":"close"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"error\",\n    \"message\": \"Account with email: 0002@gmail.com exists\"\n}"}],"_postman_id":"2db0e20b-073e-4df1-a881-cfd21296faf6"}],"id":"52f95ab3-f204-46b4-9f1b-c86e0e5e86e1","_postman_id":"52f95ab3-f204-46b4-9f1b-c86e0e5e86e1","description":""},{"name":"User","item":[{"name":"Get User","id":"4b0f2e4d-0d42-4f31-8d6a-c9a28704ffd5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/api/user/info/101","urlObject":{"protocol":"http","port":"8080","path":["api","user","info","101"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"4b0f2e4d-0d42-4f31-8d6a-c9a28704ffd5"}],"id":"d60ea00c-f242-4943-96bc-3ade2a1a5d73","_postman_id":"d60ea00c-f242-4943-96bc-3ade2a1a5d73","description":""},{"name":"Transaction","item":[{"name":"Make Transfer","id":"b63447a0-4268-40ce-8f43-bed0d42a0501","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"amount\": 10,\r\n    \"cardNumber\":8191836957160,\r\n    \"accountNumber\":456069763518,\r\n    \"narration\":\"early valatine's gift\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/transfer","urlObject":{"protocol":"http","port":"8080","path":["api","transfer"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"9ec6a215-652b-41c5-a7f0-dd7aee7e46e3","name":"success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"amount\": 100.00,\r\n    \"cardNumber\":1707844429590,\r\n    \"accountNumber\":848007031120,\r\n    \"narration\":\"TRF from jerry\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/transfer"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Mon, 16 Jan 2023 17:10:00 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": \"you have successfully transferred 100.0 to 848007031120\",\n    \"data\": null\n}"}],"_postman_id":"b63447a0-4268-40ce-8f43-bed0d42a0501"},{"name":"Get Transactions","id":"d3f8700e-3864-41e7-9ecc-21b550281bec","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\":\"1000@gmail.com\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/transactions","urlObject":{"protocol":"http","port":"8080","path":["api","transactions"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"737b97e8-e67e-4f71-bce6-5c90b180bb10","name":"success","originalRequest":{"method":"GET","header":[],"url":"http://localhost:8080/api/transactions"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Tue, 17 Jan 2023 10:51:06 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": \"fetched list of transactions successfully\",\n    \"data\": [\n        {\n            \"id\": 42,\n            \"dateCreated\": \"2023-01-17T10:51:01.961+00:00\",\n            \"status\": \"SUCCESS\",\n            \"amount\": 100,\n            \"balance\": 300,\n            \"narration\": \"TRF for DLA course\",\n            \"account\": {\n                \"id\": 2,\n                \"dateCreated\": \"2023-01-16T16:14:46.735+00:00\",\n                \"balance\": 300,\n                \"cardNumber\": 1707844429590,\n                \"accountNumber\": 251459687290,\n                \"user\": {\n                    \"id\": 2,\n                    \"dateCreated\": \"2023-01-16T16:14:38.752+00:00\",\n                    \"email\": \"0002@gmail.com\"\n                }\n            }\n        }\n    ]\n}"}],"_postman_id":"d3f8700e-3864-41e7-9ecc-21b550281bec"}],"id":"f79cef05-d9da-4a89-b4be-e038aeceac6e","_postman_id":"f79cef05-d9da-4a89-b4be-e038aeceac6e","description":""}]}