{"info":{"_postman_id":"27af2235-5c55-4a87-b308-e1982a9ab519","name":"Auto Bank","description":"<html><head></head><body><p>Auto Bank API Documentation</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"14512488","collectionId":"27af2235-5c55-4a87-b308-e1982a9ab519","publishedId":"2s935prPsp","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2023-02-08T07:42:00.000Z"},"item":[{"name":"Super Admin","item":[{"name":"CREATE/UPDATE Agent","event":[{"listen":"test","script":{"exec":[""],"type":"text/javascript","id":"5ff945ae-020b-4eb6-8142-7cf33f03f6fe"}}],"id":"0a8191e9-6b84-4302-9c66-13a96353a9d5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"prefix\": \"agent1\",\n    \"ip\": [\n        \"127.0.0.1\"\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"localhost/xapi8/superadmin/agent","description":"<p>For create/update agent</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"<value>"}]},"isInherited":true,"source":{"_postman_id":"27af2235-5c55-4a87-b308-e1982a9ab519","id":"27af2235-5c55-4a87-b308-e1982a9ab519","name":"Auto Bank","type":"collection"}},"urlObject":{"path":["xapi8","superadmin","agent"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"dc98837b-075c-4925-bacc-f7083e270d6a","name":"success example","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"prefix\": \"agent1\",\n    \"ip\": [\n        \"127.0.0.1\"\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"localhost/xapi8/superadmin/agent"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","name":"Content-Type","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"prefix\": \"agent1\",\n    \"ip\": [\n        \"127.0.0.1\"\n    ],\n    \"smsCode\": \"8D81316\",\n    \"apiKey\": \"dbfe8f6b-38ef-4dbe-baf1-ff1224ceba2b\"\n}"},{"id":"ae3a5271-cfb7-4dad-9e48-58d4c8552acc","name":"bad request example","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"prefix\": \"\",\n    \"ip\": \"\"\n}","options":{"raw":{"language":"json"}}},"url":"localhost/xapi8/superadmin/agent"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","name":"Content-Type","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"statusCode\": 400,\n    \"message\": \"Prefix or IP is missing\"\n}"}],"_postman_id":"0a8191e9-6b84-4302-9c66-13a96353a9d5"},{"name":"GET all Agents","id":"5ebecdf0-14f3-4b48-90ae-ad528baea356","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"localhost/xapi8/superadmin/agent","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"<value>"}]},"isInherited":true,"source":{"_postman_id":"27af2235-5c55-4a87-b308-e1982a9ab519","id":"27af2235-5c55-4a87-b308-e1982a9ab519","name":"Auto Bank","type":"collection"}},"urlObject":{"path":["xapi8","superadmin","agent"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"1cc9a8e8-9284-4c71-93ae-15d7f500ea12","name":"success example","originalRequest":{"method":"GET","header":[],"url":"localhost/xapi8/superadmin/agent"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","name":"Content-Type","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"prefix\": \"agent1\",\n        \"ip\": [\n            \"127.0.0.1\"\n        ],\n        \"smsCode\": \"8D81316\",\n        \"agBanks\": []\n    }\n]"}],"_postman_id":"5ebecdf0-14f3-4b48-90ae-ad528baea356"},{"name":"GET Agent","id":"71e749c9-6943-42f0-b71f-5ba56e42466f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"localhost/xapi8/superadmin/agent/:prefix","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"<value>"}]},"isInherited":true,"source":{"_postman_id":"27af2235-5c55-4a87-b308-e1982a9ab519","id":"27af2235-5c55-4a87-b308-e1982a9ab519","name":"Auto Bank","type":"collection"}},"urlObject":{"path":["xapi8","superadmin","agent",":prefix"],"host":["localhost"],"query":[],"variable":[{"id":"3ac54324-f7dc-4436-b8b1-4e063b85b943","type":"any","value":"agent1","key":"prefix"}]}},"response":[{"id":"3b6e6f9c-fb1f-46ad-99fb-00a98afe8c6f","name":"success example","originalRequest":{"method":"GET","header":[],"url":{"raw":"localhost/xapi8/superadmin/agent/:prefix","host":["localhost"],"path":["xapi8","superadmin","agent",":prefix"],"variable":[{"key":"prefix","value":"agent1"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","name":"Content-Type","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"prefix\": \"agent1\",\n    \"ip\": [\n        \"127.0.0.1\"\n    ],\n    \"smsCode\": \"8D81316\",\n    \"agBanks\": []\n}"},{"id":"2f04d231-50e2-44c1-a51e-456b17b40835","name":"not found example","originalRequest":{"method":"GET","header":[],"url":{"raw":"localhost/xapi8/superadmin/agent/:prefix","host":["localhost"],"path":["xapi8","superadmin","agent",":prefix"],"variable":[{"key":"prefix","value":"agentwrong"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","name":"Content-Type","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"statusCode\": 404,\n    \"message\": \"Agent not found\",\n    \"error\": \"Not Found\"\n}"}],"_postman_id":"71e749c9-6943-42f0-b71f-5ba56e42466f"},{"name":"Reset Agent Api Key","id":"b762145c-38f9-4a71-8ee9-69279e45e2e6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"url":"localhost/xapi8/superadmin/agent/:prefix/reset-api-key","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"<value>"}]},"isInherited":true,"source":{"_postman_id":"27af2235-5c55-4a87-b308-e1982a9ab519","id":"27af2235-5c55-4a87-b308-e1982a9ab519","name":"Auto Bank","type":"collection"}},"urlObject":{"path":["xapi8","superadmin","agent",":prefix","reset-api-key"],"host":["localhost"],"query":[],"variable":[{"id":"47c29e09-be4b-414c-bf07-5a4d41637b9b","type":"any","value":"agent1","key":"prefix"}]}},"response":[{"id":"f39f1284-dd8e-4117-bb80-55d5a20a71e8","name":"success example","originalRequest":{"method":"POST","header":[],"url":{"raw":"localhost/xapi8/superadmin/agent/:prefix/reset-api-key","host":["localhost"],"path":["xapi8","superadmin","agent",":prefix","reset-api-key"],"variable":[{"key":"prefix","value":"agent1"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","name":"Content-Type","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"prefix\": \"agent1\",\n    \"ip\": [\n        \"127.0.0.1\"\n    ],\n    \"smsCode\": \"8D81316\",\n    \"apiKey\": \"aa1db6ed-30a7-4989-9f74-a10210ce1818\"\n}"},{"id":"352d232c-5b9f-470d-a0e3-c346ad3836d9","name":"not found example","originalRequest":{"method":"POST","header":[],"url":{"raw":"localhost/xapi8/superadmin/agent/:prefix/reset-api-key","host":["localhost"],"path":["xapi8","superadmin","agent",":prefix","reset-api-key"],"variable":[{"key":"prefix","value":"agentwrong"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","name":"Content-Type","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"statusCode\": 404,\n    \"message\": \"Agent not found\"\n}"}],"_postman_id":"b762145c-38f9-4a71-8ee9-69279e45e2e6"},{"name":"CREATE/UPDATE Agent Bank","id":"8ef374f2-4078-4696-805b-cefcc8b3f865","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"isWithdraw\": false,\n    \"isDeposit\": false,\n    \"isDisplay\": false,\n    \"hasSMS\": false,\n    \"hasKplus\": false,\n    \"alias\": \"NA SCB\",\n    \"accno\": \"1231231231\",\n    \"bankCode\": \"014\",\n    \"prefix\": \"agent1\",\n    \"nameEN\": \"MRS. NA NA\",\n    \"nameTH\": \"นาง นา นา\",\n    \"webHookUrl\": \"http://localhost:3000/api/scb-txn-webhook-test\",\n    \"scbEasyData\": {\n        \"deviceId\": \"deviceId\",\n        \"refreshToken\": \"rt\",\n        \"accessToken\": \"at\",\n        \"pin\": \"123456\"\n    },\n    \"kplusData\": {\n        \"pin\": \"123123\",\n        \"token\": {\n            \"da3\": \"xxx\",\n            \"dm1\": \"xxx\",\n            \"dka3\": \"xxx\",\n            \"db1\": \"xxx\",\n            \"wifiKey\": \"xxx\",\n            \"androidId\": 123,\n            \"securityToken\": 123,\n            \"token\": \"xxx\"\n        }\n    }\n}","options":{"raw":{"language":"json"}}},"url":"localhost/xapi8/superadmin/agent/:prefix/bank","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"<value>"}]},"isInherited":true,"source":{"_postman_id":"27af2235-5c55-4a87-b308-e1982a9ab519","id":"27af2235-5c55-4a87-b308-e1982a9ab519","name":"Auto Bank","type":"collection"}},"urlObject":{"path":["xapi8","superadmin","agent",":prefix","bank"],"host":["localhost"],"query":[],"variable":[{"id":"c97863c7-e145-411c-ad70-fdfaaa91c851","type":"any","value":"agent1","key":"prefix"}]}},"response":[],"_postman_id":"8ef374f2-4078-4696-805b-cefcc8b3f865"}],"id":"a74e71b3-d577-4b24-ab31-4a9247936f18","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>CODE</strong></th>\n<th><strong>Account Length</strong></th>\n<th>abbrevEn</th>\n<th>abbrevTh</th>\n<th>nameEn</th>\n<th>nameTh</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>014</td>\n<td>10</td>\n<td>SCB</td>\n<td>ไทยพาณิชย์</td>\n<td>Siam Commercial Bank PUBLIC COMPANY LTD.</td>\n<td>ธนาคารไทยพาณิชย์ จำกัด (มหาชน)</td>\n</tr>\n<tr>\n<td>034</td>\n<td>10,12</td>\n<td>BAAC</td>\n<td>ธ.ก.ส.</td>\n<td>BANK FOR AGRICULTURAL AND AGRICULTURAL CO-OPERATIVES ( AGRI )</td>\n<td>ธนาคารเพื่อการเกษตรและสหกรณ์การเกษตร</td>\n</tr>\n<tr>\n<td>025</td>\n<td>10</td>\n<td>BAY</td>\n<td>กรุงศรี</td>\n<td>BANK OF AYUDHAYA PUBLIC COMPANY LTD.</td>\n<td>ธนาคารกรุงศรีอยุธยา จำกัด (มหาชน)</td>\n</tr>\n<tr>\n<td>002</td>\n<td>10</td>\n<td>BBL</td>\n<td>กรุงเทพ</td>\n<td>BANGKOK BANK PUBLIC COMPANY LTD.</td>\n<td>ธนาคารกรุงเทพ จำกัด (มหาชน)</td>\n</tr>\n<tr>\n<td>022</td>\n<td>10</td>\n<td>CIMB</td>\n<td>ซีไอเอ็มบี</td>\n<td>CIMB THAI BANK PUBLIC COMPANY LIMITED</td>\n<td>ธนาคารซีไอเอ็มบี ไทย จำกัด (มหาชน)</td>\n</tr>\n<tr>\n<td>017</td>\n<td>10</td>\n<td>CITI</td>\n<td>ซิตี้แบงก์</td>\n<td>CITIBANK N.A.</td>\n<td>ธนาคารซิตี้แบงก์</td>\n</tr>\n<tr>\n<td>032</td>\n<td>10</td>\n<td>DB</td>\n<td>ดอยซ์แบงก์</td>\n<td>DEUTSCHE BANK AKTIENGESELLSCHAFT</td>\n<td>ธนาคารดอยช์แบงก์</td>\n</tr>\n<tr>\n<td>033</td>\n<td>12</td>\n<td>GHB</td>\n<td>อาคารสงเคราะห์</td>\n<td>GOVERNMENT HOUSING BANK</td>\n<td>ธนาคารอาคารสงเคราะห์</td>\n</tr>\n<tr>\n<td>030</td>\n<td>12,15</td>\n<td>GSB</td>\n<td>ออมสิน</td>\n<td>GOVERNMENT SAVING BANK</td>\n<td>ธนาคารออมสิน</td>\n</tr>\n<tr>\n<td>031</td>\n<td>12</td>\n<td>HSBC</td>\n<td>เอชเอสบีซี</td>\n<td>HONGKONG AND SHANGHAI CORPORATION LTD.</td>\n<td>ธนาคารฮ่องกงและเซี่ยงไฮ้ จำกัด</td>\n</tr>\n<tr>\n<td>070</td>\n<td>10</td>\n<td>ICBC</td>\n<td>ไอซีบีซี</td>\n<td>INDUSTRIAL AND COMMERCIAL BANK OF CHINA (THAI) PUBLIC COMPANY LIMITED</td>\n<td>ธนาคารไอซีบีซี (ไทย) จำกัด (มหาชน)</td>\n</tr>\n<tr>\n<td>066</td>\n<td>10</td>\n<td>ISBT</td>\n<td>ธนาคารอิสลาม</td>\n<td>ISLAMIC BANK OF THAILAND ( ISBT )</td>\n<td>ธนาคารอิสลามแห่งประเทศไทย</td>\n</tr>\n<tr>\n<td>004</td>\n<td>10</td>\n<td>KBANK</td>\n<td>กสิกรไทย</td>\n<td>KASIKORNBANK</td>\n<td>KASIKORNBANK,ธนาคารกสิกรไทย จำกัด (มหาชน)</td>\n</tr>\n<tr>\n<td>069</td>\n<td>10,14</td>\n<td>KK</td>\n<td>เกียรตินาคิน</td>\n<td>KIATNAKIN BANK PUBLIC COMPANY LIMITED</td>\n<td>ธนาคารเกียรตินาคิน จำกัด (มหาชน)</td>\n</tr>\n<tr>\n<td>006</td>\n<td>10</td>\n<td>KTB</td>\n<td>กรุงไทย</td>\n<td>KRUNG THAI BANK PUBLIC COMPANY LTD.</td>\n<td>ธนาคารกรุงไทย จำกัด (มหาชน)</td>\n</tr>\n<tr>\n<td>073</td>\n<td>10</td>\n<td>LHBANK</td>\n<td>แลนด์ แอนด์ เฮ้าส์</td>\n<td>Land and Houses Bank Public Company Limited</td>\n<td>ธนาคารแลนด์ แอนด์ เฮ้าส์ จำกัด (มหาชน)</td>\n</tr>\n<tr>\n<td>039</td>\n<td>11</td>\n<td>MHCB</td>\n<td>มิซูโฮ</td>\n<td>MIZUHO CORPORATE BANK</td>\n<td>ธนาคารมิซูโฮ คอร์ปอเรต</td>\n</tr>\n<tr>\n<td>020</td>\n<td>11</td>\n<td>SCBT</td>\n<td>สแตนดาร์ดชาร์เตอร์ด</td>\n<td>STANDARD CHARTERED BANK (THAI) PCL.</td>\n<td>ธนาคารสแตนดาร์ดชาร์เตอร์ด (ไทย) จำกัด (มหาชน)</td>\n</tr>\n<tr>\n<td>018</td>\n<td>10</td>\n<td>SMBC</td>\n<td>ซูมิโตโม</td>\n<td>SUMITOMO MITSUI BANGKING CORPORATION</td>\n<td>ธนาคารซูมิโตโม มิตซุย แบงกิ้ง คอร์ปอเรชั่น</td>\n</tr>\n<tr>\n<td>071</td>\n<td>10</td>\n<td>TCRB</td>\n<td>ไทยเครดิต</td>\n<td>THE THAI CREDIT RETAIL BANK PUBLIC COMPANY LIMITED ( TCRB )</td>\n<td>ธนาคารไทยเครดิต เพื่อรายย่อย จำกัด (มหาชน)</td>\n</tr>\n<tr>\n<td>067</td>\n<td>14</td>\n<td>TSCO</td>\n<td>ทิสโก้</td>\n<td>TISCO BANK PUBLIC COMPANY LIMITED</td>\n<td>ธนาคารทิสโก้ จำกัด (มหาชน)</td>\n</tr>\n<tr>\n<td>024</td>\n<td>10</td>\n<td>UOB</td>\n<td>ยูโอบี</td>\n<td>UNITED OVERSEAS BANK (THAI) PCL.</td>\n<td>ธนาคารยูโอบี จำกัด (มหาชน)</td>\n</tr>\n<tr>\n<td>000</td>\n<td>10</td>\n<td>OTHER</td>\n<td>ไทยพาณิชย์</td>\n<td>Siam Commercial Bank PUBLIC COMPANY LTD.</td>\n<td>ธนาคารไทยพาณิชย์ จำกัด (มหาชน)</td>\n</tr>\n<tr>\n<td>011</td>\n<td>10</td>\n<td>TTB</td>\n<td>ทหารไทยธนชาต</td>\n<td>TTB BANK PUBLIC COMPANY LIMITED</td>\n<td>ธนาคารทหารไทยธนชาต จำกัด (มหาชน)</td>\n</tr>\n<tr>\n<td>065</td>\n<td>10</td>\n<td>TTB</td>\n<td>ทหารไทยธนชาต</td>\n<td>TTB BANK PUBLIC COMPANY LIMITED</td>\n<td>ธนาคารทหารไทยธนชาต จำกัด (มหาชน)</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"example-webhook-response\"><strong>Example: Webhook Response.</strong></h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\"ref1\":\"e2bd43252368fbd9c0efc60d35a8b429\",\"confirmed\":false,\"type\":\"+\",\"method\":\"EZ\",\"amt\":1,\"detail\":\"กสิกรไทย (KBANK) /X123456\",\"slipDate\":\"2023-02-10T05:14:40.000Z\",\"toBank\":{\"accno\":\"0123456789\",\"bankType\":{\"code\":\"014\"}},\"isAuto\":true,\"status\":4,\"ag\":{\"prefix\":\"ag2\"},\"fromBankBeforeAccno\":\"G0728\",\"fromBankBeforeCode\":\"004\",\"error\":\"NOU\",\"txid\":40}\n\n</code></pre>\n","_postman_id":"a74e71b3-d577-4b24-ab31-4a9247936f18","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"<value>"}]},"isInherited":true,"source":{"_postman_id":"27af2235-5c55-4a87-b308-e1982a9ab519","id":"27af2235-5c55-4a87-b308-e1982a9ab519","name":"Auto Bank","type":"collection"}}},{"name":"Agent","item":[{"name":"UPDATE Agent","id":"567bf8d2-94ec-4ed1-8985-8f9bd363906d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"prefix\": \"agent1\",\n    \"ip\": [\n        \"192.168.1.1\"\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"localhost/xapi8/agent","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"<value>"}]},"isInherited":true,"source":{"_postman_id":"27af2235-5c55-4a87-b308-e1982a9ab519","id":"27af2235-5c55-4a87-b308-e1982a9ab519","name":"Auto Bank","type":"collection"}},"urlObject":{"path":["xapi8","agent"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"7dbbcab0-9e49-4d94-9fd9-6c0d9debb611","name":"success example","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"prefix\": \"agent1\",\n    \"ip\": [\n        \"192.168.1.1\"\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"localhost/xapi8/agent"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","name":"Content-Type","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"prefix\": \"agent1\",\n    \"ip\": [\n        \"192.168.1.1\"\n    ],\n    \"smsCode\": \"8D81316\",\n    \"agBanks\": [\n        {\n            \"bankAccno\": \"1231231231\",\n            \"isWithdraw\": true,\n            \"isDeposit\": true,\n            \"isActive\": true,\n            \"isDisplay\": false,\n            \"newUserDeposit\": false,\n            \"hasScbEasy\": true,\n            \"hasKplus\": false,\n            \"hasKCyber\": false,\n            \"hasSMS\": false,\n            \"isTMN\": false,\n            \"balance\": 0,\n            \"dailyDepositAmt\": 0,\n            \"dailyWithdrawAmt\": 0,\n            \"dailyWithdrawLimit\": 200000,\n            \"dailyWithdrawLimitRemaining\": 200000,\n            \"responseTime\": 0,\n            \"webHookUrl\": \"http://localhost/api/hook\",\n            \"ua\": \"2023-02-02T22:39:21.229Z\"\n        }\n    ]\n}"},{"id":"a9642748-13fb-4f38-af22-2f0ae6025c13","name":"bad request example","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"prefix\": \"agentwrong\",\n    \"ip\": [\n        \"192.168.1.1\"\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"localhost/xapi8/agent"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","name":"Content-Type","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"statusCode\": 400,\n    \"message\": \"Prefix doesn't match\",\n    \"error\": \"Bad Request\"\n}"},{"id":"018a27be-0100-4d98-bec6-d42af3d2f18a","name":"not found example","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"prefix\": \"agentwrong\",\n    \"ip\": [\n        \"192.168.1.1\"\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"localhost/xapi8/agent"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","name":"Content-Type","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"statusCode\": 404,\n    \"message\": \"Agent not found\",\n    \"error\": \"Not Found\"\n}"}],"_postman_id":"567bf8d2-94ec-4ed1-8985-8f9bd363906d"},{"name":"GET Agent","id":"f615d305-52f7-4cf6-9908-8006cbf7ec0c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"localhost/xapi8/agent","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"<value>"}]},"isInherited":true,"source":{"_postman_id":"27af2235-5c55-4a87-b308-e1982a9ab519","id":"27af2235-5c55-4a87-b308-e1982a9ab519","name":"Auto Bank","type":"collection"}},"urlObject":{"path":["xapi8","agent"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"25188c0f-97f9-4377-a6ef-79ea41b42e45","name":"success example","originalRequest":{"method":"GET","header":[],"url":"localhost/xapi8/agent"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","name":"Content-Type","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"[\n  {\n    \"prefix\": \"agent1\",\n    \"ip\": [\n      \"127.0.0.1\"\n    ],\n    \"smsCode\": \"8D81316\",\n    \"agBanks\": [\n      {\n        \"bankAccno\": \"1231231231\",\n        \"isWithdraw\": true,\n        \"isDeposit\": true,\n        \"isActive\": true,\n        \"isDisplay\": false,\n        \"newUserDeposit\": false,\n        \"hasScbEasy\": true,\n        \"hasKplus\": false,\n        \"hasKCyber\": false,\n        \"hasSMS\": false,\n        \"isTMN\": false,\n        \"balance\": 0,\n        \"dailyDepositAmt\": 0,\n        \"dailyWithdrawAmt\": 0,\n        \"dailyWithdrawLimit\": 200000,\n        \"dailyWithdrawLimitRemaining\": 200000,\n        \"responseTime\": 0,\n        \"webHookUrl\": \"http://localhost/api/hook\",\n        \"ua\": \"2023-02-02T22:39:21.229Z\"\n      }\n    ]\n  }\n]"}],"_postman_id":"f615d305-52f7-4cf6-9908-8006cbf7ec0c"},{"name":"UPDATE Agent Bank","id":"d19d8cd6-eddd-4957-b160-51d61be1bc8c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"isWithdraw\": false,\n    \"isDeposit\": false,\n    \"isDisplay\": false,\n    \"hasSMS\": false,\n    \"hasKplus\": false,\n    \"alias\": \"NA SCB\",\n    \"accno\": \"1231231231\",\n    \"bankCode\": \"014\",\n    \"prefix\": \"agent1\",\n    \"nameEN\": \"MRS. NA NA\",\n    \"nameTH\": \"นาง นา นา\",\n    \"webHookUrl\": \"http://localhost/api/hook\",\n    \"scbEasyData\": {\n        \"deviceId\": \"deviceId\",\n        \"refreshToken\": \"rt\",\n        \"accessToken\": \"at\",\n        \"pin\": \"123456\"\n    },\n    \"kplusData\": {\n        \"pin\": \"123123\",\n        \"token\": {\n            \"da3\": \"xxx\",\n            \"dm1\": \"xxx\",\n            \"dka3\": \"xxx\",\n            \"db1\": \"xxx\",\n            \"wifiKey\": \"xxx\",\n            \"androidId\": 123,\n            \"securityToken\": 123,\n            \"token\": \"xxx\"\n        }\n    }\n}","options":{"raw":{"language":"json"}}},"url":"localhost/xapi8/agent/bank","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"<value>"}]},"isInherited":true,"source":{"_postman_id":"27af2235-5c55-4a87-b308-e1982a9ab519","id":"27af2235-5c55-4a87-b308-e1982a9ab519","name":"Auto Bank","type":"collection"}},"urlObject":{"path":["xapi8","agent","bank"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"b1502596-ae4c-4a07-b054-352585a67bba","name":"success example","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"isWithdraw\": false,\n    \"isDeposit\": false,\n    \"isDisplay\": false,\n    \"hasSMS\": false,\n    \"hasKplus\": false,\n    \"alias\": \"NA SCB\",\n    \"accno\": \"1231231231\",\n    \"bankCode\": \"014\",\n    \"prefix\": \"agent1\",\n    \"nameEN\": \"MRS. NA NA\",\n    \"nameTH\": \"นาง นา นา\",\n    \"webHookUrl\": \"http://localhost:3000/api/scb-txn-webhook-test\",\n    \"scbEasyData\": {\n        \"deviceId\": \"94342687-5333-3234-2342-b3ceb01dc8b6\",\n        \"refreshToken\": \"12342343-1423-3242-2341-e408bb21b267\",\n        \"accessToken\": \"1234bdc9-1234-1234-9d51-e408bb21b267\",\n        \"pin\": \"123456\"\n    },\n    \"kplusData\": {\n        \"pin\": \"123123\",\n        \"token\": {\n            \"da3\": \"xxx\",\n            \"dm1\": \"xxx\",\n            \"dka3\": \"xxx\",\n            \"db1\": \"xxx\",\n            \"wifiKey\": \"xxx\",\n            \"androidId\": 123,\n            \"securityToken\": 123,\n            \"token\": \"xxx\"\n        }\n    }\n}","options":{"raw":{"language":"json"}}},"url":"localhost/xapi8/agent/bank"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","name":"Content-Type","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"prefix\": \"agent1\",\n    \"ip\": [\n        \"127.0.0.1\"\n    ],\n    \"smsCode\": \"8D81316\",\n    \"agBanks\": [\n        {\n            \"bankAccno\": \"1231231231\",\n            \"isWithdraw\": true,\n            \"isDeposit\": true,\n            \"isActive\": true,\n            \"isDisplay\": false,\n            \"newUserDeposit\": false,\n            \"hasScbEasy\": true,\n            \"hasKplus\": false,\n            \"hasKCyber\": false,\n            \"hasSMS\": false,\n            \"isTMN\": false,\n            \"balance\": 0,\n            \"dailyDepositAmt\": 0,\n            \"dailyWithdrawAmt\": 0,\n            \"dailyWithdrawLimit\": 200000,\n            \"dailyWithdrawLimitRemaining\": 200000,\n            \"responseTime\": 0,\n            \"webHookUrl\": \"http://localhost/api/hook\",\n            \"ua\": \"2023-02-02T22:39:21.229Z\"\n        }\n    ]\n}"},{"id":"5a3564e2-dba3-435e-a198-402508c962ec","name":"not found example","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"isWithdraw\": false,\n    \"isDeposit\": false,\n    \"isDisplay\": false,\n    \"hasSMS\": false,\n    \"hasKplus\": false,\n    \"alias\": \"NA SCB\",\n    \"accno\": \"9999999999\",\n    \"bankCode\": \"014\",\n    \"prefix\": \"agentwrong\",\n    \"nameEN\": \"MRS. NA NA\",\n    \"nameTH\": \"นาง นา นา\",\n    \"webHookUrl\": \"http://localhost:3000/api/scb-txn-webhook-test\",\n    \"scbEasyData\": {\n        \"deviceId\": \"94342687-5333-3234-2342-b3ceb01dc8b6\",\n        \"refreshToken\": \"12342343-1423-3242-2341-e408bb21b267\",\n        \"accessToken\": \"1234bdc9-1234-1234-9d51-e408bb21b267\",\n        \"pin\": \"123456\"\n    },\n    \"kplusData\": {\n        \"pin\": \"123123\",\n        \"token\": {\n            \"da3\": \"xxx\",\n            \"dm1\": \"xxx\",\n            \"dka3\": \"xxx\",\n            \"db1\": \"xxx\",\n            \"wifiKey\": \"xxx\",\n            \"androidId\": 123,\n            \"securityToken\": 123,\n            \"token\": \"xxx\"\n        }\n    }\n}","options":{"raw":{"language":"json"}}},"url":"localhost/xapi8/agent/bank"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","name":"Content-Type","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"statusCode\": 404,\n        \"message\": \"Agent not found\"\n    },\n    {\n        \"statusCode\": 404,\n        \"message\": \"AgentBank not found\"\n    }\n]"}],"_postman_id":"d19d8cd6-eddd-4957-b160-51d61be1bc8c"},{"name":"Add User Txn","id":"b5346655-4c6c-43b0-ac49-133cf07cad65","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"ref\": \"X432ks9\",\n    \"amt\": 200.2,\n    \"txnDate\": \"2023-07-19 20:04:00.000\",\n    \"userBankName\": \"MR. JOHN DOE\",\n    \"userBankAccno\": \"1231231231\",\n    \"userBankTypeCode\": \"014\",\n    \"agBankAccno\": \"1231231231\",\n    \"agBankTypeCode\": \"014\",\n    \"prefix\": \"agent1\"\n}","options":{"raw":{"language":"json"}}},"url":"localhost/xapi8/agent/txn","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"<value>"}]},"isInherited":true,"source":{"_postman_id":"27af2235-5c55-4a87-b308-e1982a9ab519","id":"27af2235-5c55-4a87-b308-e1982a9ab519","name":"Auto Bank","type":"collection"}},"urlObject":{"path":["xapi8","agent","txn"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"1a6ab724-4ca7-422e-8ca1-1c6da50bdb59","name":"not found example","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"ref\": \"X432ks9\",\n    \"amt\": 200.2,\n    \"txnDate\": \"2023-07-19 20:04:00.000\",\n    \"userBankName\": \"MR. JOHN DOE\",\n    \"userBankAccno\": \"1231231231\",\n    \"userBankTypeCode\": \"014\",\n    \"agBankAccno\": \"9999999999\",\n    \"agBankTypeCode\": \"014\",\n    \"prefix\": \"agentwrong\"\n}","options":{"raw":{"language":"json"}}},"url":"localhost/xapi8/agent/txn"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","name":"Content-Type","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"statusCode\": 404,\n        \"message\": \"Agent not found\"\n    },\n    {\n        \"statusCode\": 404,\n        \"message\": \"AgentBank not found\"\n    }\n]"},{"id":"acd73ab2-b458-42c9-8282-896c64afb6e4","name":"conflict example","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"ref\": \"X432ks9\",\n    \"amt\": 200.2,\n    \"txnDate\": \"2023-07-19 20:04:00.000\",\n    \"userBankName\": \"MR. JOHN DOE\",\n    \"userBankAccno\": \"1231231231\",\n    \"userBankTypeCode\": \"014\",\n    \"agBankAccno\": \"1231231231\",\n    \"agBankTypeCode\": \"014\",\n    \"prefix\": \"agent1\"\n}","options":{"raw":{"language":"json"}}},"url":"localhost/xapi8/agent/txn"},"status":"Conflict","code":409,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","name":"Content-Type","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"statusCode\": 409,\n    \"message\": \"Ref already exist\",\n    \"error\": \"Conflict\"\n}"}],"_postman_id":"b5346655-4c6c-43b0-ac49-133cf07cad65"},{"name":"GET User Txn","id":"4338dbd1-02fa-4e19-9de4-94e94acd0313","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"localhost/xapi8/agent/txn/:ref","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"<value>"}]},"isInherited":true,"source":{"_postman_id":"27af2235-5c55-4a87-b308-e1982a9ab519","id":"27af2235-5c55-4a87-b308-e1982a9ab519","name":"Auto Bank","type":"collection"}},"urlObject":{"path":["xapi8","agent","txn",":ref"],"host":["localhost"],"query":[],"variable":[{"id":"5d516dc4-ba96-40f8-8650-c2690c652e4d","type":"any","value":"X432ks9","key":"ref"}]}},"response":[{"id":"6a9fc702-d674-4fe4-b9e9-d6c8b2b402b3","name":"not found example","originalRequest":{"method":"GET","header":[],"url":{"raw":"localhost/xapi8/agent/txn/:ref","host":["localhost"],"path":["xapi8","agent","txn",":ref"],"variable":[{"key":"ref","value":"wrongrefxxx"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","name":"Content-Type","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"statusCode\": 404,\n        \"message\": \"Agent not found\"\n    },\n    {\n        \"statusCode\": 404,\n        \"message\": \"Txn not found\"\n    }\n]"}],"_postman_id":"4338dbd1-02fa-4e19-9de4-94e94acd0313"}],"id":"3217ed4d-2e0e-4afa-b018-113e78278e84","_postman_id":"3217ed4d-2e0e-4afa-b018-113e78278e84","description":"","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"<value>"}]},"isInherited":true,"source":{"_postman_id":"27af2235-5c55-4a87-b308-e1982a9ab519","id":"27af2235-5c55-4a87-b308-e1982a9ab519","name":"Auto Bank","type":"collection"}}},{"name":"Agent Bank","item":[{"name":"Add User Bank","id":"9b032ef0-d535-4ccf-91b2-322238e8e746","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"uid\": \"user1\",\n    \"accno\": \"9999999999\",\n    \"bankCode\": \"014\",\n    \"name\": \"MR. JOHN DOE\"\n}","options":{"raw":{"language":"json"}}},"url":"localhost/xapi8/agent/bank/add-user","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"<value>"}]},"isInherited":true,"source":{"_postman_id":"27af2235-5c55-4a87-b308-e1982a9ab519","id":"27af2235-5c55-4a87-b308-e1982a9ab519","name":"Auto Bank","type":"collection"}},"urlObject":{"path":["xapi8","agent","bank","add-user"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"9b032ef0-d535-4ccf-91b2-322238e8e746"},{"name":"GET Raw Balance of Bank Acc (from bank api)","id":"7a6b1205-3d07-4031-a1b2-96908f34affe","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"url":"localhost/xapi8/agent/bank/:accno/balance","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"<value>"}]},"isInherited":true,"source":{"_postman_id":"27af2235-5c55-4a87-b308-e1982a9ab519","id":"27af2235-5c55-4a87-b308-e1982a9ab519","name":"Auto Bank","type":"collection"}},"urlObject":{"path":["xapi8","agent","bank",":accno","balance"],"host":["localhost"],"query":[],"variable":[{"id":"b718b44b-59a8-49ee-8d34-4c406ea4ee49","type":"any","value":"1231231231","key":"accno"}]}},"response":[{"id":"08a4afe0-3e3f-4cf1-b4b9-04919711b3d5","name":"not found example","originalRequest":{"method":"POST","header":[],"url":{"raw":"localhost/xapi8/agent/bank/:accno/balance","host":["localhost"],"path":["xapi8","agent","bank",":accno","balance"],"variable":[{"key":"accno","value":"1231231231"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","name":"Content-Type","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"statusCode\": 404,\n    \"message\": \"Bank not found\"\n}"}],"_postman_id":"7a6b1205-3d07-4031-a1b2-96908f34affe"},{"name":"GET Bank User from uid or accno","id":"05b390b6-c95e-4ad8-9b02-257d8a13e4ad","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"localhost/xapi8/agent/bank/user?uid=user1&accno=1231231231","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"<value>"}]},"isInherited":true,"source":{"_postman_id":"27af2235-5c55-4a87-b308-e1982a9ab519","id":"27af2235-5c55-4a87-b308-e1982a9ab519","name":"Auto Bank","type":"collection"}},"urlObject":{"path":["xapi8","agent","bank","user"],"host":["localhost"],"query":[{"key":"uid","value":"user1"},{"key":"accno","value":"1231231231"}],"variable":[]}},"response":[{"id":"2962bfed-b17a-48f3-84a5-db0950fa89b7","name":"success example","originalRequest":{"method":"GET","header":[],"url":{"raw":"localhost/xapi8/agent/bank/user?uid=user1&accno=1231231231","host":["localhost"],"path":["xapi8","agent","bank","user"],"query":[{"key":"uid","value":"user1"},{"key":"accno","value":"1231231231"}]}},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","name":"Content-Type","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"uid\": \"user1\",\n        \"bankAccno\": \"1231231231\",\n        \"agPrefix\": \"agent1\",\n        \"name\": \"MRJOHNMRSDFkVXEนสกดกดาห\",\n        \"bankTypeCode\": \"014\"\n    }\n]"},{"id":"f1d78775-0ad5-402a-a685-a75da91d93c8","name":"bad gateway example","originalRequest":{"method":"GET","header":[],"url":{"raw":"localhost/xapi8/agent/bank/user?uid=&accno=","host":["localhost"],"path":["xapi8","agent","bank","user"],"query":[{"key":"uid","value":""},{"key":"accno","value":""}]}},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","name":"Content-Type","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"statusCode\": 502,\n    \"message\": \"uid or accno is required\"\n}"}],"_postman_id":"05b390b6-c95e-4ad8-9b02-257d8a13e4ad"},{"name":"GET Real Name of Bank Acc","id":"1eaf3ed6-9d08-48d4-badb-a838624fd960","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"accno\": \"1231231231\",\n    \"bankCode\": \"014\"\n}","options":{"raw":{"language":"json"}}},"url":"localhost/xapi8/agent/bank/verify-bank","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"<value>"}]},"isInherited":true,"source":{"_postman_id":"27af2235-5c55-4a87-b308-e1982a9ab519","id":"27af2235-5c55-4a87-b308-e1982a9ab519","name":"Auto Bank","type":"collection"}},"urlObject":{"path":["xapi8","agent","bank","verify-bank"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"1eaf3ed6-9d08-48d4-badb-a838624fd960"},{"name":"Transfer from Agent Bank to others","id":"f677ac70-bf07-4165-ab6b-e9db2b8f440b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"fromBank\": \"1231231231\",\n    \"fromBankType\": \"014\",\n    \"toBank\": \"3213213213\",\n    \"toBankType\": \"014\",\n    \"amt\": 1.25,\n    \"prefix\": \"agent1\"\n}","options":{"raw":{"language":"json"}}},"url":"localhost/xapi8/agent/bank/transfer","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"<value>"}]},"isInherited":true,"source":{"_postman_id":"27af2235-5c55-4a87-b308-e1982a9ab519","id":"27af2235-5c55-4a87-b308-e1982a9ab519","name":"Auto Bank","type":"collection"}},"urlObject":{"path":["xapi8","agent","bank","transfer"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"f677ac70-bf07-4165-ab6b-e9db2b8f440b"},{"name":"GET Slip of a Bank Transaction","id":"01482f11-129c-4d32-a738-8b0c1a0563ff","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"qrCode\": \"002600060000010103000260006000001010300026000600000101030\",\n    \"prefix\": \"agent1\"\n}","options":{"raw":{"language":"json"}}},"url":"localhost/xapi8/agent/bank/qr-slip","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"<value>"}]},"isInherited":true,"source":{"_postman_id":"27af2235-5c55-4a87-b308-e1982a9ab519","id":"27af2235-5c55-4a87-b308-e1982a9ab519","name":"Auto Bank","type":"collection"}},"urlObject":{"path":["xapi8","agent","bank","qr-slip"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"01482f11-129c-4d32-a738-8b0c1a0563ff"},{"name":"GET Bank Txn","id":"ea2f3286-5ebb-4885-8943-8d24646d7057","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"startRow\": 0,\r\n    \"endRow\": 10,\r\n    \"filterModel\": {\r\n        \"ca\": {\r\n            \"filterType\": \"date\",\r\n            \"type\": \"inRange\",\r\n            \"dateFrom\": \"2021-07-01T00:00:00.000Z\",\r\n            \"dateTo\": \"2023-07-31T23:59:59.999Z\"\r\n        },\r\n        \"type\": {\r\n            \"filterType\": \"text\",\r\n            \"type\": \"equals\",\r\n            \"filter\": \"+ | -\"\r\n        },\r\n        \"amt\": {\r\n            \"filterType\": \"number\",\r\n            \"type\": \"equals | greaterThan | lessThan\",\r\n            \"filter\": 20.2\r\n        },\r\n        \"status\": {\r\n            \"filterType\": \"number\",\r\n            \"type\": \"equals\",\r\n            \"filter\": 5\r\n        },\r\n        \"fromBankAccno\": {\r\n            \"filterType\": \"text\",\r\n            \"type\": \"contains | startsWith | endsWith\",\r\n            \"filter\": \"2342839238\"\r\n        },\r\n        \"toBankAccno\": {\r\n            \"filterType\": \"text\",\r\n            \"type\": \"contains | startsWith | endsWith\",\r\n            \"filter\": \"123\"\r\n        },\r\n        \"detail\": {\r\n            \"filterType\": \"text\",\r\n            \"type\": \"contains | startsWith | endsWith\",\r\n            \"filter\": \"123\"\r\n        }\r\n    },\r\n    \"sortModel\": [\r\n        {\r\n            \"colId\": \"slipDate | ca | ua\",\r\n            \"sort\": \"desc | asc\"\r\n        }\r\n    ]\r\n}","options":{"raw":{"language":"json"}}},"url":"localhost/xapi8/agent/bank/txn","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"<value>"}]},"isInherited":true,"source":{"_postman_id":"27af2235-5c55-4a87-b308-e1982a9ab519","id":"27af2235-5c55-4a87-b308-e1982a9ab519","name":"Auto Bank","type":"collection"}},"urlObject":{"path":["xapi8","agent","bank","txn"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"e0629801-a738-4819-88d8-ab10ec614648","name":"success example","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"startRow\": 0,\r\n    \"endRow\": 10,\r\n    \"filterModel\": {\r\n        \"ca\": {\r\n            \"filterType\": \"date\",\r\n            \"type\": \"inRange\",\r\n            \"dateFrom\": \"2021-07-01T00:00:00.000Z\",\r\n            \"dateTo\": \"2023-07-31T23:59:59.999Z\"\r\n        },\r\n        \"type\": {\r\n            \"filterType\": \"text\",\r\n            \"type\": \"equals\",\r\n            \"filter\": \"+ | -\"\r\n        },\r\n        \"amt\": {\r\n            \"filterType\": \"number\",\r\n            \"type\": \"equals | greaterThan | lessThan\",\r\n            \"filter\": 20.2\r\n        },\r\n        \"status\": {\r\n            \"filterType\": \"number\",\r\n            \"type\": \"equals\",\r\n            \"filter\": 5\r\n        },\r\n        \"fromBankAccno\": {\r\n            \"filterType\": \"text\",\r\n            \"type\": \"contains | startsWith | endsWith\",\r\n            \"filter\": \"2342839238\"\r\n        },\r\n        \"toBankAccno\": {\r\n            \"filterType\": \"text\",\r\n            \"type\": \"contains | startsWith | endsWith\",\r\n            \"filter\": \"123\"\r\n        },\r\n        \"detail\": {\r\n            \"filterType\": \"text\",\r\n            \"type\": \"contains | startsWith | endsWith\",\r\n            \"filter\": \"123\"\r\n        }\r\n    },\r\n    \"sortModel\": [\r\n        {\r\n            \"colId\": \"slipDate | ca | ua\",\r\n            \"sort\": \"desc | asc\"\r\n        }\r\n    ]\r\n}","options":{"raw":{"language":"json"}}},"url":"localhost/xapi8/agent/bank/txn"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"items\": [\n        {\n            \"txid\": 20,\n            \"type\": \"+\",\n            \"fee\": 0,\n            \"amt\": 20.2,\n            \"bamt\": 0,\n            \"aamt\": 0,\n            \"status\": 6,\n            \"statusBefore\": null,\n            \"error\": null,\n            \"hide\": false,\n            \"detail\": \"รับโอนจาก SCB x9238 JOHN D\",\n            \"note\": null,\n            \"userDetail\": null,\n            \"isAuto\": true,\n            \"withBonus\": false,\n            \"withRefCom\": false,\n            \"bonusAmt\": 0,\n            \"refComAmt\": 0,\n            \"levelRewardAmt\": 0,\n            \"gameTxnRef\": null,\n            \"ca\": \"2023-02-05T04:59:59.528Z\",\n            \"ua\": \"2023-02-05T04:59:59.528Z\",\n            \"operator\": \"\",\n            \"confirmed\": true,\n            \"method\": \"EZ\",\n            \"qr\": null,\n            \"slipImg\": null,\n            \"foundOrder\": 0,\n            \"foundMethods\": [],\n            \"slipDate\": \"2023-02-05T04:59:59.446Z\",\n            \"ref1\": \"cd3b24011bb4b85da8d18135fb270744\",\n            \"ref2\": \"60b5a780801590c15cbed2d6c7547002\",\n            \"ref3\": null,\n            \"remain\": 0,\n            \"fromBankBeforeAccno\": \"%9238\",\n            \"fromBankBeforeCode\": \"014\",\n            \"fromBankBeforeName\": \"JOHN D\",\n            \"isFirstDeposit\": false,\n            \"isFirstWithdraw\": false,\n            \"idSinceCreate\": -1,\n            \"idSinceDay\": -1,\n            \"uid\": null,\n            \"fromBank\": {\n                \"accno\": \"2342839238\",\n                \"alias\": null,\n                \"nameTH\": \"MR. JOHN DOE\",\n                \"nameEN\": \"MR. JOHN DOE\",\n                \"bankType\": {\n                    \"code\": \"014\"\n                }\n            },\n            \"toBank\": {\n                \"accno\": \"1231231231\",\n                \"alias\": \"NA SCB\",\n                \"nameTH\": \"นาง นา นา\",\n                \"nameEN\": \"MRS. NA NA\",\n                \"bankType\": {\n                    \"code\": \"014\"\n                }\n            },\n            \"bankUser\": {\n                \"uid\": \"user1\",\n                \"name\": \"MRJOHNDOEMRJOHNDOEMRJOHNDOE\"\n            }\n        },\n        {\n            \"txid\": 19,\n            \"type\": \"+\",\n            \"fee\": 0,\n            \"amt\": 20.2,\n            \"bamt\": 0,\n            \"aamt\": 0,\n            \"status\": 6,\n            \"statusBefore\": null,\n            \"error\": null,\n            \"hide\": false,\n            \"detail\": \"รับโอนจาก SCB x9238 JOHN D\",\n            \"note\": null,\n            \"userDetail\": null,\n            \"isAuto\": true,\n            \"withBonus\": false,\n            \"withRefCom\": false,\n            \"bonusAmt\": 0,\n            \"refComAmt\": 0,\n            \"levelRewardAmt\": 0,\n            \"gameTxnRef\": null,\n            \"ca\": \"2023-02-05T04:58:39.876Z\",\n            \"ua\": \"2023-02-05T04:58:39.876Z\",\n            \"operator\": \"\",\n            \"confirmed\": true,\n            \"method\": \"EZ\",\n            \"qr\": null,\n            \"slipImg\": null,\n            \"foundOrder\": 0,\n            \"foundMethods\": [],\n            \"slipDate\": \"2023-02-05T04:58:39.795Z\",\n            \"ref1\": \"88d3ba8e1897c69338415c233f9a4e97\",\n            \"ref2\": \"bcce5b567575082024870396aea27c14\",\n            \"ref3\": null,\n            \"remain\": 0,\n            \"fromBankBeforeAccno\": \"%9238\",\n            \"fromBankBeforeCode\": \"014\",\n            \"fromBankBeforeName\": \"JOHN D\",\n            \"isFirstDeposit\": false,\n            \"isFirstWithdraw\": false,\n            \"idSinceCreate\": -1,\n            \"idSinceDay\": -1,\n            \"uid\": null,\n            \"fromBank\": {\n                \"accno\": \"2342839238\",\n                \"alias\": null,\n                \"nameTH\": \"MR. JOHN DOE\",\n                \"nameEN\": \"MR. JOHN DOE\",\n                \"bankType\": {\n                    \"code\": \"014\"\n                }\n            },\n            \"toBank\": {\n                \"accno\": \"1231231231\",\n                \"alias\": \"NA SCB\",\n                \"nameTH\": \"นาง นา นา\",\n                \"nameEN\": \"MRS. NA NA\",\n                \"bankType\": {\n                    \"code\": \"014\"\n                }\n            },\n            \"bankUser\": {\n                \"uid\": \"user1\",\n                \"name\": \"MRJOHNDOEMRJOHNDOEMRJOHNDOE\"\n            }\n        }\n    ],\n    \"meta\": {\n        \"totalItems\": 6,\n        \"itemCount\": 2,\n        \"itemsPerPage\": 2,\n        \"totalPages\": 3,\n        \"currentPage\": 1\n    }\n}"}],"_postman_id":"ea2f3286-5ebb-4885-8943-8d24646d7057"}],"id":"e1fa3fd8-95e1-4959-b56d-da2894bff007","_postman_id":"e1fa3fd8-95e1-4959-b56d-da2894bff007","description":"","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"<value>"}]},"isInherited":true,"source":{"_postman_id":"27af2235-5c55-4a87-b308-e1982a9ab519","id":"27af2235-5c55-4a87-b308-e1982a9ab519","name":"Auto Bank","type":"collection"}}}],"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"<value>"}]}},"event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":[""],"id":"23dd8076-0d42-43fa-863f-b230b9f854cc"}},{"listen":"test","script":{"type":"text/javascript","exec":[""],"id":"b40f444d-c856-4881-83a1-ddc3e65557f1"}}],"variable":[{"key":"BASE_URL","value":"localhost","type":"string"}]}