{"info":{"_postman_id":"fd2e4bcd-8141-4d83-b3da-fddad7f56234","name":"go-wallet.in","description":"<html><head></head><body><p>Implementation of wallet system using Golang. This repository is a part of my self learning at my semester break. You can access the repository from this url page :</p>\n<blockquote>\n<p><a href=\"https://github.com/ilhamfzz/go-wallet.in\">https://github.com/ilhamfzz/go-wallet.in</a></p>\n</blockquote>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"23908351","collectionId":"fd2e4bcd-8141-4d83-b3da-fddad7f56234","publishedId":"2s946mYpK9","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2023-07-22T07:56:42.000Z"},"item":[{"name":"User Register","id":"5df56d46-2639-4c16-bd89-e9631f810ef1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"full_name\": \"Moh. Ilham Fakhri Zamzami\",\r\n    \"phone\": \"081234567890\",\r\n    \"email\": \"ilhamfz117@gmail.com\",\r\n    \"username\": \"ilhamfzz\",\r\n    \"password\": \"kiwkiw123\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/user/register","urlObject":{"protocol":"http","port":"8080","path":["user","register"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"c030af81-6d09-43fc-b0d0-97d59b71528d","name":"User Register","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"full_name\": \"Moh. Ilham Fakhri Zamzami\",\r\n    \"phone\": \"081234567890\",\r\n    \"email\": \"ilhamfz117@gmail.com\",\r\n    \"username\": \"ilhamfzz\",\r\n    \"password\": \"kiwkiw123\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/user/register"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 04 Jul 2023 20:49:06 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"215"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"success to register user\",\n    \"errors\": {},\n    \"data\": {\n        \"id\": 1,\n        \"full_name\": \"Moh. Ilham Fakhri Zamzami\",\n        \"phone\": \"081234567890\",\n        \"email\": \"ilhamfz117@gmail.com\",\n        \"username\": \"ilhamfzz\",\n        \"refrence_id\": \"Ihe0YMuyiwOpfmdg\"\n    }\n}"}],"_postman_id":"5df56d46-2639-4c16-bd89-e9631f810ef1"},{"name":"Validate OTP","id":"7ee7ba88-e0dd-414f-a5a0-cd140bbaff09","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"refrence_id\": \"Eqmm0NM9MxINz7B4\",\r\n    \"otp\": \"842209\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/user/validate-otp","urlObject":{"protocol":"http","port":"8080","path":["user","validate-otp"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"f70efde1-96af-432b-b3ab-40a3be033734","name":"Validate OTP","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"refrence_id\": \"Ihe0YMuyiwOpfmdg\",\r\n    \"otp\": \"294044\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/user/validate-otp"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 04 Jul 2023 20:51:05 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"90"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"success to validate otp\",\n    \"errors\": {},\n    \"data\": \"Your account has been activated\"\n}"}],"_postman_id":"7ee7ba88-e0dd-414f-a5a0-cd140bbaff09"},{"name":"Token Generate (Login)","id":"5a496345-cb66-416b-8540-5e956fd48af5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"username\": \"ilhamfzz\",\r\n    \"password\": \"kiwkiw123\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/token/generate","urlObject":{"protocol":"http","port":"8080","path":["token","generate"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"67ce222d-d319-4467-ae97-c75327b7e045","name":"Token Generate (Login)","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"username\": \"ilhamfzz\",\r\n    \"password\": \"kiwkiw123\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/token/generate"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 04 Jul 2023 20:53:25 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"143"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"success to generate token\",\n    \"errors\": {},\n    \"data\": {\n        \"token\": \"4MWEiET1o5ggfc0mb2RvwQIfHIorL2vMZuZsC2KcdE5DTDm7XjaBZzxcaYNLDxx2caoY9wgx\"\n    }\n}"}],"_postman_id":"5a496345-cb66-416b-8540-5e956fd48af5"},{"name":"Get Authorization Data Payload","id":"672f052b-3021-4cfc-893d-4014fe006f06","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:8080/token/validate","urlObject":{"protocol":"http","port":"8080","path":["token","validate"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"f57d6757-06d2-48ab-904a-d258dbfa7ffd","name":"Get Authorization Data Payload","originalRequest":{"method":"GET","header":[],"url":"http://localhost:8080/token/validate"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 04 Jul 2023 20:54:34 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"182"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"success to validate token\",\n    \"errors\": {},\n    \"data\": {\n        \"ID\": 1,\n        \"FullName\": \"Moh. Ilham Fakhri Zamzami\",\n        \"Phone\": \"081234567890\",\n        \"Email\": \"ilhamfz117@gmail.com\",\n        \"Username\": \"ilhamfzz\"\n    }\n}"}],"_postman_id":"672f052b-3021-4cfc-893d-4014fe006f06"},{"name":"Get Transfer Inquiry","id":"f5c9bf7b-00f4-4881-8e95-9a2c2bb6db86","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"account_number\": \"100000000000002\",\r\n    \"amount\": 5000.00\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/transfer/inquiry","urlObject":{"protocol":"http","port":"8080","path":["transfer","inquiry"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"8295b94d-8d0a-4eae-b30e-f5988188a994","name":"Get Transfer Inquiry","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"account_number\": \"100000000000002\",\r\n    \"amount\": 5000.00\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/transfer/inquiry"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 05 Jul 2023 13:29:09 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"115"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"success to get transfer inquiry\",\n    \"errors\": {},\n    \"data\": {\n        \"inquiry_key\": \"Kwwgk8sypOhiMBjkA7qeGafDHmeQuMpS\"\n    }\n}"}],"_postman_id":"f5c9bf7b-00f4-4881-8e95-9a2c2bb6db86"},{"name":"Execute Transfer","id":"5fc9a087-105d-46c6-b287-5b78a2c790e9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"inquiry_key\": \"Kwwgk8sypOhiMBjkA7qeGafDHmeQuMpS\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/transfer/execute","urlObject":{"protocol":"http","port":"8080","path":["transfer","execute"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"4c47840a-b507-4c50-a994-a4dd8fb868f8","name":"Execute Transfer","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"inquiry_key\": \"Kwwgk8sypOhiMBjkA7qeGafDHmeQuMpS\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/transfer/execute"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 05 Jul 2023 13:30:11 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"107"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"success to execute transfer\",\n    \"errors\": {},\n    \"data\": \"Your transfer has been successfully executed\"\n}"}],"_postman_id":"5fc9a087-105d-46c6-b287-5b78a2c790e9"},{"name":"Initial Stream","id":"e73b2ce1-71a0-4e74-88c2-d83fb6dd3693","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:8080/sse/notification-stream","urlObject":{"protocol":"http","port":"8080","path":["sse","notification-stream"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"88df0cf5-928d-4225-8a9d-d4be85026c2a","name":"Initial Stream","originalRequest":{"method":"GET","header":[],"url":"http://localhost:8080/sse/notification-stream"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"Date","value":"Mon, 10 Jul 2023 17:09:38 GMT"},{"key":"Content-Type","value":"text/event-stream"},{"key":"Cache-Control","value":"no-cache"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"event: initial\ndata: \n\nevent: notification-updated\ndata: {\"id\":3,\"title\":\"Transfer Berhasil\",\"body\":\"Anda telah melakukan transfer senilai 5000.00 ke 100000000002\",\"status\":1,\"is_read\":0,\"created_at\":\"2023-07-11T00:10:14.9440737+07:00\"}\n\n"}],"_postman_id":"e73b2ce1-71a0-4e74-88c2-d83fb6dd3693"},{"name":"Topup Initialize","id":"b47990b3-4d14-41b6-b5b2-be6422a07bd8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"amount\":80000\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/topup/initialize","urlObject":{"protocol":"http","port":"8080","path":["topup","initialize"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"641e5cee-6f33-4e82-bb27-77ad88da7fa2","name":"Topup Initialize","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"amount\":80000\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/topup/initialize"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 18 Jul 2023 13:08:51 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"165"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"success to initialize topup\",\n    \"errors\": {},\n    \"data\": {\n        \"snap_url\": \"https://app.sandbox.midtrans.com/snap/v3/redirection/6880861d-ac48-44d4-aa8f-7f30b018ed27\"\n    }\n}"}],"_postman_id":"b47990b3-4d14-41b6-b5b2-be6422a07bd8"},{"name":"Midtrans Payment Callback","id":"974476cb-231e-4cc0-9f2b-144d5c986b0a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"url":"{{ myDomain }}/midtrans/payment-callback","description":"<p>Midtrans will hit this API as a callback and after payment handler to verify and confirm payments</p>\n","urlObject":{"path":["midtrans","payment-callback"],"host":["{{ myDomain }}"],"query":[],"variable":[]}},"response":[],"_postman_id":"974476cb-231e-4cc0-9f2b-144d5c986b0a"}],"event":[{"listen":"prerequest","script":{"id":"8b6e729e-fb27-4371-832a-110494ac6f50","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"e000531b-b90e-47b8-9ced-a33529addaa6","type":"text/javascript","exec":[""]}}]}