{"info":{"_postman_id":"b3f0f9fd-e5e0-4f16-9082-3ed489081a9b","name":"Payourse","description":"<html><head></head><body><p>Payourse documentation</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"6893536","collectionId":"b3f0f9fd-e5e0-4f16-9082-3ed489081a9b","publishedId":"UVsEU8Lb","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"101840","highlight":"635BFF"},"publishDate":"2022-03-07T10:10:23.000Z"},"item":[{"name":"Kitbag","item":[{"name":"misc","item":[{"name":"Ping","id":"5b889f59-42c2-4283-87dc-3545871e4326","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{KITBAG_URL}}/ping","urlObject":{"path":["ping"],"host":["{{KITBAG_URL}}"],"query":[],"variable":[]}},"response":[{"id":"2a525329-798b-48aa-a803-f09ec8c3be64","name":"success","originalRequest":{"method":"GET","header":[],"url":"{{baseURL}}/ping"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Origin"},{"key":"Date","value":"Thu, 09 Dec 2021 08:29:10 GMT"},{"key":"Content-Length","value":"73"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"RequestCompleted\",\n    \"data\": {\n        \"version\": \"0.0.1\"\n    }\n}"}],"_postman_id":"5b889f59-42c2-4283-87dc-3545871e4326"},{"name":"{{baseURL}}/key/revoke","id":"b6c008dc-00de-4951-89ec-8aac701aa316","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"x-waas-key","value":"725d00d3-1ce0-4619-823b-5600c90f1feb--2109167954--a4de0a6c","type":"text"},{"key":"X-Waas-User","value":"user6","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"key\": \"725d00d3-1ce0-4619-823b-5600c90f1feb--2109167954--a4de0a6c\"\n}","options":{"raw":{"language":"json"}}},"url":"{{KITBAG_URL}}/key/revoke","urlObject":{"path":["key","revoke"],"host":["{{KITBAG_URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"b6c008dc-00de-4951-89ec-8aac701aa316"},{"name":"Get pricing","id":"1388c4cd-110b-445e-87c2-b63b0100dacc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{KITBAG_URL}}/pricing","urlObject":{"path":["pricing"],"host":["{{KITBAG_URL}}"],"query":[],"variable":[]}},"response":[{"id":"814ca439-6f06-4072-a943-b09932caaf00","name":"Get pricing","originalRequest":{"method":"GET","header":[],"url":"{{KITBAG_URL}}/pricing"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 18 May 2022 08:34:44 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Vary","value":"Origin"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Expect-CT","value":"max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=FLXvgjeLuFL4L2q4wLrjK6lkOEH90wPH87kJZm5S3UR3MYXCcH5CLZgrjnLpbB0x9ZB2BHwh8RX3mrYbIfOXEpi3FP5rQlO6t1didGWlTUNbuGQi3RBXtb37r%2FYrMgf0Hn%2BKrNU0s%2FJrxe1zWqQ%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"70d341638f876b44-AMS"},{"key":"Content-Encoding","value":"br"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"RequestCompleted\",\n    \"data\": {\n        \"pricingModels\": [\n            {\n                \"createdAt\": 1652862829180,\n                \"updatedAt\": 1652862829180,\n                \"type\": \"payPerWallet\",\n                \"walletType\": \"standard\",\n                \"currency\": \"USD\",\n                \"pricePerUnit\": 0.5,\n                \"description\": \"Pay per wallet\"\n            },\n            {\n                \"createdAt\": 1652862829196,\n                \"updatedAt\": 1652862829196,\n                \"type\": \"payPerAddress\",\n                \"walletType\": \"standard\",\n                \"currency\": \"USD\",\n                \"pricePerUnit\": 0.2,\n                \"description\": \"Pay per address\"\n            },\n            {\n                \"createdAt\": 1652862829218,\n                \"updatedAt\": 1652862829218,\n                \"type\": \"payPerSeconds\",\n                \"walletType\": \"lite\",\n                \"currency\": \"USD\",\n                \"pricePerUnit\": 0.000002,\n                \"description\": \"$0.1728 per day\"\n            }\n        ]\n    }\n}"}],"_postman_id":"1388c4cd-110b-445e-87c2-b63b0100dacc"}],"id":"3f3d8919-5d73-4c77-a6e7-4fd3f5ae2ade","_postman_id":"3f3d8919-5d73-4c77-a6e7-4fd3f5ae2ade","description":""},{"name":"app","item":[{"name":"GET /app","id":"8734f2d0-c6a0-4909-9c15-fcaf486c8c15","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Waas-Key","value":"{{kitbag_api_key}}","type":"text"},{"key":"X-Waas-User","value":"{{kitbag_api_user}}","type":"text"}],"url":"{{KITBAG_URL}}/app?name=newtestapp","urlObject":{"path":["app"],"host":["{{KITBAG_URL}}"],"query":[{"key":"name","value":"newtestapp"}],"variable":[]}},"response":[{"id":"369d3a53-04bf-4b36-bf65-23cba4fcd5b3","name":"GET /app - success","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseURL}}/app?name=test","host":["{{baseURL}}"],"path":["app"],"query":[{"key":"name","value":"test"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Origin"},{"key":"Date","value":"Thu, 09 Dec 2021 08:32:30 GMT"},{"key":"Content-Length","value":"115"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"RequestCompleted\",\n    \"data\": {\n        \"id\": \"617ab45475597407f18b78a3\",\n        \"name\": \"test\",\n        \"type\": \"lite\"\n    }\n}"},{"id":"87795fb5-e09c-48fd-ab3d-fd941e576dca","name":"GET /app - not found","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseURL}}/app?name=aaaaaaaaaaa","host":["{{baseURL}}"],"path":["app"],"query":[{"key":"name","value":"aaaaaaaaaaa"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Origin"},{"key":"Date","value":"Thu, 09 Dec 2021 08:33:26 GMT"},{"key":"Content-Length","value":"42"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": false,\n    \"message\": \"AppNotFound\"\n}"}],"_postman_id":"8734f2d0-c6a0-4909-9c15-fcaf486c8c15"},{"name":"Create /app","id":"2bc6e0a4-4539-4bb9-b0e8-acd710f73873","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"X-Waas-Key","value":"{{kitbag_api_key}}","type":"text"},{"key":"X-Waas-User","value":"{{kitbag_api_user}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"name\": \"newtestapp\",\n    \"type\": \"lite\"\n}","options":{"raw":{"language":"json"}}},"url":"{{KITBAG_URL}}/app","urlObject":{"path":["app"],"host":["{{KITBAG_URL}}"],"query":[{"disabled":true,"description":{"content":"<p>(required)</p>\n","type":"text/plain"},"key":"name","value":"testapp"},{"disabled":true,"description":{"content":"<p>(lite|standard) - standard app will always have their wallet being monitored</p>\n","type":"text/plain"},"key":"type","value":"lite"},{"disabled":true,"description":{"content":"<p>(optional) - Time this address would stop being monitored</p>\n","type":"text/plain"},"key":"expTime","value":""},{"disabled":true,"description":{"content":"<p>(optional) - the callback url that will be called when a transaction occured for any wallet created under this app</p>\n","type":"text/plain"},"key":"webhookURL","value":""}],"variable":[]}},"response":[{"id":"d04334e0-2874-4b45-b80b-fbd292890585","name":"Create /app - bad request","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{baseURL}}/app","host":["{{baseURL}}"],"path":["app"],"query":[{"key":"name","value":"test","description":"(required)","disabled":true},{"key":"type","value":"lite","description":"(lite|standard) - standard app will always have their wallet being monitored","disabled":true},{"key":"expTime","value":"1","description":"(optional) - Time this address would stop being monitored","disabled":true},{"key":"webhookURL","value":null,"description":"(optional) - the callback url that will be called when a transaction occured for any wallet created under this app","disabled":true}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Origin"},{"key":"Date","value":"Thu, 09 Dec 2021 08:35:13 GMT"},{"key":"Content-Length","value":"117"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": false,\n    \"message\": \"utils.InvalidReqDataErrorMsg\",\n    \"data\": {\n        \"errors\": [\n            \"Invalid app name\",\n            \"Invalid app type\"\n        ]\n    }\n}"},{"id":"c17dab2b-575b-45e5-9ba9-771b4691d33e","name":"Create /app - success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"newtestapp\",\n    \"type\": \"lite\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{baseURL}}/app","host":["{{baseURL}}"],"path":["app"],"query":[{"key":"name","value":"testapp","description":"(required)","disabled":true},{"key":"type","value":"lite","description":"(lite|standard) - standard app will always have their wallet being monitored","disabled":true},{"key":"expTime","value":"","description":"(optional) - Time this address would stop being monitored","disabled":true},{"key":"webhookURL","value":null,"description":"(optional) - the callback url that will be called when a transaction occured for any wallet created under this app","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Origin"},{"key":"Date","value":"Thu, 09 Dec 2021 08:44:16 GMT"},{"key":"Content-Length","value":"46"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"RequestCompleted\"\n}"}],"_postman_id":"2bc6e0a4-4539-4bb9-b0e8-acd710f73873"},{"name":"Update /app","id":"836402b7-eed3-4f1a-98cf-c5296bd11e88","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"X-Waas-Key","value":"{{kitbag_api_key}}","type":"text"},{"key":"X-Waas-User","value":"{{kitbag_api_user}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"name\": \"newtestapp\",\n    \"webhookUrl\": \"https://900a-105-113-16-98.ngrok.io/v2/webhook\"\n}","options":{"raw":{"language":"json"}}},"url":"{{KITBAG_URL}}/app","urlObject":{"path":["app"],"host":["{{KITBAG_URL}}"],"query":[],"variable":[]}},"response":[{"id":"66321b1c-f540-499e-8973-eec4627883aa","name":"Update /app - success","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"newtestapp\",\n    \"webhookUrl\": \"https://57c1-102-219-153-82.ngrok.io/webhook\"\n}","options":{"raw":{"language":"json"}}},"url":"{{baseURL}}/app"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 14 Dec 2021 13:39:15 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"access-control-allow-origin","value":"*"},{"key":"vary","value":"Origin"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Expect-CT","value":"max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=AsJp3l7L6WIh1UJpnkhLlSYwpXqV%2BFhAfECFyDdK3BfwZkjgjaOjsGbebW5WpPuwJj0olZ1tjQICHCo4O9Oc9BPqxE9JziMr8YKvA5KLGSvX9yaFM5WYYMmC%2Bv%2BxEGJuSpmD8DmS%2Br1osAAKGN8%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"6bd7d655de587777-LHR"},{"key":"Content-Encoding","value":"br"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400, h3-28=\":443\"; ma=86400, h3-27=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"RequestCompleted\",\n    \"data\": {}\n}"},{"id":"c06f0f9f-62fc-4fa9-9ef3-0f5001ac5e33","name":"Update /app - app not found","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"newtestapp1aa\",\n    \"webhookUrl\": \"https://57c1-102-219-153-82.ngrok.io/webhook\"\n}","options":{"raw":{"language":"json"}}},"url":"{{baseURL}}/app"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 14 Dec 2021 13:40:14 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"42"},{"key":"Connection","value":"keep-alive"},{"key":"access-control-allow-origin","value":"*"},{"key":"vary","value":"Origin"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Expect-CT","value":"max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=LVeiRpJoQjirtGoWOu2vGzpdSvAHG93VOC2MjS9f5qz3RPGPrHg9UWX5rXBfO3ErnKE0oUOMgnrFYJPGdd5OwRp0OyvrMWC3o5BVHgNDR51Y2CbfR8xPDBKbBckE%2FcuYw7uTkxSfBK9YaM%2B3pjs%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"6bd7d7c61c527777-LHR"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400, h3-28=\":443\"; ma=86400, h3-27=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": false,\n    \"message\": \"AppNotFound\"\n}"}],"_postman_id":"836402b7-eed3-4f1a-98cf-c5296bd11e88"}],"id":"5bac400e-fd33-4674-bd88-3c1a4fdc010d","_postman_id":"5bac400e-fd33-4674-bd88-3c1a4fdc010d","description":""},{"name":"wallet","item":[{"name":"get /wallet","id":"9f77ac21-8d71-4642-95f2-82a9008afa89","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Waas-Key","value":"{{kitbag_api_key}}","type":"text"},{"key":"X-Waas-User","value":"{{kitbag_api_user}}","type":"text"}],"url":"{{KITBAG_URL}}/wallet?reference=146d480f-2f1c-4031-bde1-1f7596603413","urlObject":{"path":["wallet"],"host":["{{KITBAG_URL}}"],"query":[{"key":"reference","value":"146d480f-2f1c-4031-bde1-1f7596603413"}],"variable":[]}},"response":[{"id":"37383d36-0309-424e-a685-90641200308a","name":"get /wallet - success","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseURL}}/wallet?reference=6f17b167-ddfe-49cd-a30b-9e735ad26f6a","host":["{{baseURL}}"],"path":["wallet"],"query":[{"key":"reference","value":"6f17b167-ddfe-49cd-a30b-9e735ad26f6a"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Origin"},{"key":"Date","value":"Thu, 09 Dec 2021 08:48:35 GMT"},{"key":"Content-Length","value":"485"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"RequestCompleted\",\n    \"data\": {\n        \"appName\": \"donation\",\n        \"reference\": \"6f17b167-ddfe-49cd-a30b-9e735ad26f6a\",\n        \"currencies\": [\n            \"BTC\"\n        ],\n        \"status\": \"Active\",\n        \"expTime\": 1638792576000,\n        \"walletType\": \"lite\",\n        \"Addresses\": {\n            \"BTC\": {\n                \"id\": \"61acac00fa86f29cf47dddab\",\n                \"appName\": \"donation\",\n                \"address\": \"tb1qgw9mm8q630up808q5qlxwmtfqy4l3l9m9nsq6h\",\n                \"currency\": \"BTC\",\n                \"balance\": 10000,\n                \"networkBalance\": 0,\n                \"totalSent\": 0,\n                \"totalReceived\": 10000,\n                \"totalTransactions\": 1,\n                \"index\": 15,\n                \"expTime\": 1638792576000\n            }\n        }\n    }\n}"},{"id":"6fff74dc-c4a1-40e9-b768-d151c13e67c3","name":"get /wallet - not found","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseURL}}/wallet?reference=does-not-exist","host":["{{baseURL}}"],"path":["wallet"],"query":[{"key":"reference","value":"does-not-exist"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Origin"},{"key":"Date","value":"Thu, 09 Dec 2021 08:49:55 GMT"},{"key":"Content-Length","value":"45"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": false,\n    \"message\": \"WalletNotFound\"\n}"}],"_postman_id":"9f77ac21-8d71-4642-95f2-82a9008afa89"},{"name":"create /wallet","id":"a9f9b69c-49df-464c-8359-65a3a15d0ef2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"x-waas-key","value":"{{kitbag_api_key}}","type":"text"},{"key":"x-waas-user","value":"{{kitbag_api_user}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"appName\": \"newtestapp\",\n    \"currencies\": [\"ETH\"]\n}","options":{"raw":{"language":"json"}}},"url":"{{KITBAG_URL}}/wallet","urlObject":{"path":["wallet"],"host":["{{KITBAG_URL}}"],"query":[{"disabled":true,"description":{"content":"<p>(required)</p>\n","type":"text/plain"},"key":"appName","value":"testnewapp"},{"disabled":true,"description":{"content":"<p>Array of supported currencies</p>\n","type":"text/plain"},"key":"currencies","value":"BTC"}],"variable":[]}},"response":[{"id":"a67138d2-0283-417f-8ad9-69d0377a7338","name":"create /wallet - bad request ( invalid app)","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"appName\": \"donation\",\n    \"currencies\": [\"BTC\"]\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{baseURL}}/wallet","host":["{{baseURL}}"],"path":["wallet"],"query":[{"key":"appName","value":"testnewapp","description":"(required)","disabled":true},{"key":"currencies","value":"BTC","description":"Array of supported currencies","disabled":true}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 09 Dec 2021 09:02:25 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"71"},{"key":"Connection","value":"keep-alive"},{"key":"access-control-allow-origin","value":"*"},{"key":"vary","value":"Origin"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Expect-CT","value":"max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=xx016jouYWjR8CUZQj%2BU1PVSkJDldyBs6LrFVAUAJbxUxM5dRrc96GlNBIizZRLWsHboTFp3Gjz5fZdqiJ5nQ3H8e9eyRnxcv7DyIxedamLlSzqFsJQBZfKySxJatRflfWl17M7zO%2FjEAMOrfv4%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"6bad0dee5b5c75bf-LHR"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400, h3-28=\":443\"; ma=86400, h3-27=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": false,\n    \"message\": \"CreateWalletFailed: invalid app supplied\"\n}"},{"id":"7ce4de90-98c5-4ab1-9898-6c567cb19542","name":"create /wallet - success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"appName\": \"newtestapp\",\n    \"currencies\": [\"BTC\"]\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{baseURL}}/wallet","host":["{{baseURL}}"],"path":["wallet"],"query":[{"key":"appName","value":"testnewapp","description":"(required)","disabled":true},{"key":"currencies","value":"BTC","description":"Array of supported currencies","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 09 Dec 2021 09:03:52 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"access-control-allow-origin","value":"*"},{"key":"vary","value":"Origin"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Expect-CT","value":"max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=vu2ap5fSW3GA%2FolKmNnwfKYTCSskCYG1KiDh1JYlv%2F0RNxg9h6pD2NkGwvUuxy0d%2Ba%2FzJ8u6LS5RuRERDtYIrX8nJ%2FaF4H%2B%2BTnwp2c2ZsV0TNrHTOnECo45fm2jQgEMb3LEJLTj2mznzbxIYPhI%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"6bad100d4c8c75bf-LHR"},{"key":"Content-Encoding","value":"br"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400, h3-28=\":443\"; ma=86400, h3-27=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"RequestCompleted\",\n    \"data\": {\n        \"reference\": \"de509a0b-7c6c-4422-aa98-063eb51ffaac\",\n        \"addresses\": {\n            \"BTC\": {\n                \"id\": \"61b1c6782bd7f207d4cf5cb2\",\n                \"appName\": \"newtestapp\",\n                \"address\": \"tb1quqqnuyvdx0mdzhymh7s7nz5s07a6qefdx9u6aq\",\n                \"currency\": \"BTC\",\n                \"balance\": 0,\n                \"networkBalance\": 0,\n                \"totalSent\": 0,\n                \"totalReceived\": 0,\n                \"totalTransactions\": 0,\n                \"index\": 1,\n                \"expTime\": 1639127031000\n            }\n        }\n    }\n}"}],"_postman_id":"a9f9b69c-49df-464c-8359-65a3a15d0ef2"},{"name":"Update /wallet","id":"235ee9d7-d96a-4a83-ba16-cd41942ba729","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"X-Waas-Key","value":"{{xapikey}}","type":"text"},{"key":"X-Waas-User","value":"{{xapiuser}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"reference\": \"75517490-1993-4b6d-8ce4-31d6192e3081\",\n    \"currencies\": [\"BUSD\",\"DASH\",\"BTC\",\"ETH\",\"USDT_TRC20\",\"USDT_ERC20\",\"CUSD\"]\n}","options":{"raw":{"language":"json"}}},"url":"{{KITBAG_URL}}/wallet","urlObject":{"path":["wallet"],"host":["{{KITBAG_URL}}"],"query":[{"disabled":true,"description":{"content":"<p>(required)</p>\n","type":"text/plain"},"key":"appName","value":"testnewapp"},{"disabled":true,"description":{"content":"<p>Array of supported currencies</p>\n","type":"text/plain"},"key":"currencies","value":"BTC"}],"variable":[]}},"response":[],"_postman_id":"235ee9d7-d96a-4a83-ba16-cd41942ba729"}],"id":"d87e7b61-f8b6-486c-b553-35e89cf26d42","_postman_id":"d87e7b61-f8b6-486c-b553-35e89cf26d42","description":""},{"name":"Update","item":[{"name":"/update","id":"5009b3bf-d2f1-40fe-8fb3-579d53c50aca","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{KITBAG_URL}}/update?appName=testapp","urlObject":{"path":["update"],"host":["{{KITBAG_URL}}"],"query":[{"key":"appName","value":"testapp"}],"variable":[]}},"response":[],"_postman_id":"5009b3bf-d2f1-40fe-8fb3-579d53c50aca"}],"id":"fb2ca6d0-9d4c-4b05-bb55-6b8b1bc3f5ca","_postman_id":"fb2ca6d0-9d4c-4b05-bb55-6b8b1bc3f5ca","description":""},{"name":"transfer","item":[{"name":"POST /transfer","id":"9e52ee4d-33a1-4798-a37e-6c14b4673e7d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"x-waas-key","value":"{{kitbag_api_key}}","type":"text"},{"key":"x-waas-user","value":"{{kitbag_api_user}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"address\":\"TE5cYUU25wQAp7pPK1Q4Ah6izW39AcPRTZ\",\n    \"fromWalletID\":\"365a6941-3135-459f-b7fa-714b65cfa0fe\",\n    \"currency\":\"USDT\",\n    \"amount\":\"0.5\",\n    \"network\": \"tron\",\n    \"appName\": \"newtestapp\"\n}","options":{"raw":{"language":"json"}}},"url":"{{KITBAG_URL}}/transfer","urlObject":{"path":["transfer"],"host":["{{KITBAG_URL}}"],"query":[],"variable":[]}},"response":[{"id":"366882a8-71f2-4a29-8d23-a6e0906bc831","name":"POST /transfer - success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"address\":\"TJQtwXsVmAefCtovZdL4Qy3fbzLwmwSfZD\",\n    \"fromWalletID\":\"913fb976-2d8c-40d3-8f93-b609c13a75d4\",\n    \"currency\":\"USDT_TRC20\",\n    \"amount\":\"50\"\n}","options":{"raw":{"language":"json"}}},"url":"{{baseURL}}/transfer"},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"RequestCompleted\",\n    \"data\": {\n        \"createdAt\": 1659682009499,\n        \"updatedAt\": 1659682009499,\n        \"direction\": \"Exchange\",\n        \"value\": \"50\",\n        \"formattedValue\": \"50\",\n        \"prevBalance\": \"\",\n        \"newBalance\": \"\",\n        \"currency\": \"USDT_TRC20\",\n        \"txID\": \"ef4b929c-b94a-4ee9-a350-f25dcb1ef5ef\",\n        \"fromWalletID\": \"913fb976-2d8c-40d3-8f93-b609c13a75d4\",\n        \"toWalletID\": \"external\",\n        \"address\": \"TJQtwXsVmAefCtovZdL4Qy3fbzLwmwSfZD\",\n        \"confirmed\": false,\n        \"date\": 1659682009000\n    }\n}"},{"id":"688303b4-81fc-4540-b758-a3bbf46acf3d","name":"POST /transfer - not found","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"address\":\"TJQtwXsVmAefCtovZdL4Qy3fbzLwmwSfZD\",\n    \"fromWalletID\":\"913fb976-2d8c-40d3-8f93-b609c13a75d4\",\n    \"currency\":\"PESEWAS\",\n    \"amount\":\"50\"\n}","options":{"raw":{"language":"json"}}},"url":"{{baseURL}}/transfer"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n    \"success\": false,\n    \"message\": \"invalid request data value\",\n    \"data\": {\n        \"errors\": [\n            \"Invalid currencies\"\n        ]\n    }\n}"}],"_postman_id":"9e52ee4d-33a1-4798-a37e-6c14b4673e7d"}],"id":"db4b52b2-3b26-4427-973f-109c69e77235","_postman_id":"db4b52b2-3b26-4427-973f-109c69e77235","description":""},{"name":"invoice","item":[{"name":"payment info","id":"655cfd8e-4e2e-42e3-8db5-8b96f8c77696","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Waas-Key","value":"{{kitbag_api_key}}","type":"text"},{"key":"X-Waas-User","value":"{{kitbag_api_user}}","type":"text"}],"url":"{{KITBAG_URL}}/invoice/payment_info","urlObject":{"path":["invoice","payment_info"],"host":["{{KITBAG_URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"655cfd8e-4e2e-42e3-8db5-8b96f8c77696"},{"name":"Pricing","id":"e3465f69-2e5c-4cf0-83dd-30ba239a7d2d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"x-waas-key","value":"{{kitbag_api_key}}","type":"text"},{"key":"x-waas-user","value":"{{kitbag_api_user}}","type":"text"}],"url":"{{KITBAG_URL}}/pricing","urlObject":{"path":["pricing"],"host":["{{KITBAG_URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"e3465f69-2e5c-4cf0-83dd-30ba239a7d2d"}],"id":"19fab936-3c75-44f9-8b12-d5d68fbdd84d","_postman_id":"19fab936-3c75-44f9-8b12-d5d68fbdd84d","description":""},{"name":"supported","item":[{"name":"supported config","id":"3cdfdf2d-54c5-4c21-934e-60cfa15e9c7a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{KITBAG_URL}}/supported/config","urlObject":{"path":["supported","config"],"host":["{{KITBAG_URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"3cdfdf2d-54c5-4c21-934e-60cfa15e9c7a"}],"id":"c3f8505e-2a65-4232-913d-97f7bbf9f699","_postman_id":"c3f8505e-2a65-4232-913d-97f7bbf9f699","description":""}],"id":"3ca4c186-484f-4b36-b0d8-5436322a257d","description":"<h1 id=\"welcome\">Welcome</h1>\n<p>Kitbag manages the generation of crypto addresses, monitoring of those addresses and sending transaction notifications when transaction occurs on those addresses.</p>\n<h1 id=\"onboarding-on-kitbag\">Onboarding on Kitbag</h1>\n<p>Send your email address and username to <a href=\"https://t.me/johnanisere\">https://t.me/johnanisere</a> or <a href=\"https://t.me/skyyboat\">https://t.me/skyyboat</a> to get your API key.</p>\n<h1 id=\"getting-started\">Getting started</h1>\n<p>Follow the simple steps bellow to create your first wallet address</p>\n<ul>\n<li>Set your request headers: Kitbag endpoints requires that both X-Waas-Key and X-Waas-User (the username you gave us) is present in your header</li>\n<li>Create your first app using POST /app endpoint</li>\n<li>Create your first wallet under the app using POST /wallet endpoint. A wallet reference will be generated for you if it is not provided. You can either specify the currencies supported by this wallet or update the currencies using the PUT /wallet endpoint</li>\n<li>Send testnet token to the wallet address of a specific wallet, the balance of the wallet will be updated when the transaction is confirmed.</li>\n</ul>\n<h1 id=\"webhook\">Webhook</h1>\n<p>We send a post request if you have a webhookURL set for your app. You can set a webhookURl by calling PUT /app with your webhook url. We expect a response with status code 200 from your app to consider the request as successful. Unsuccessful request will be store and you will need to call the GET /update endpoint to receive missed updates . Below is the structure of our webhook data:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  data:{\n        ID             string         \n        Direction      string // \"Received\"|\"Withdrawal\"|\"Transfer\" \n        Value          string // this value is in base unit e.g sats for btc and wei for eth        \n        FormattedValue string          \n        PrevBalance    string          \n        NewBalance     string          \n        Currency       string // ETH|USDT_ERC20|BTC|USDT_TRC20|BUSD|CUSD|DASH\n        TxID           string          \n        FromWalletID   string          \n        ToWalletID     string // this will be your wallet reference for incoming tx        \n        Address        string          \n        Confirmed      bool            \n        Date           uint64          \n    },\n  verification: {\n        signature: string\n        timestamp: string\n    }\n}\n\n</code></pre>\n<h3 id=\"sample-webhook-data\">Sample Webhook data:</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"data\": {\n        \"id\": \"62444ac6b28ffe44675076e7\",\n        \"direction\": \"Received\",\n        \"value\": \"6500000000000000\",\n        \"formattedValue\": \"0.0065\",\n        \"prevBalance\": \"0\",\n        \"newBalance\": \"0\",\n        \"currency\": \"ETH\",\n        \"txID\": \"0x58b8d890ec5590ca790c3d8a1afe0ef5a9810b1ecdd8ddb221811adead49aa37\",\n        \"fromWalletID\": \"external\",\n        \"toWalletID\": \"remittance-0307ef20ec564b1c9ca485e1dd6cc871\",\n        \"address\": \"0x99a2B66F010B3829d09259c6729Cb3c52DEA99C4\",\n        \"confirmed\": false,\n        \"date\": 1648642758000\n    },\n    \"verification\": {\n        \"signature\": \"czJ9S/lNq3MuqYmTKaNi36mPydaRTJyEPrg+QmlntSqmLgmYJkALx8GbaptGxPAUFdWdmfDriL1ARO5pGFMETmvNwuTK8KCi/ND4qtl3HeXd2Q09hXocgY8CCnfRNBQXnb12WPAQTR0ZIqLZ6yrFHW6VtvFA3+YXHo6skTe9MJhnm+vkisqijV9Mka6zGobpVyTHo8MfYCXGgIW8LzFhei+HADGCdxoMk2Z9tziB1H3ZqwUdnNqGeUfsnE4jHyQgQYmIGJlIXHIxPO7g67mvr6sbQTQTl+4QddfzsrMfSgBTPG9IC06uLr4tmf0FeHBq67kkZyA9k1l0AYn4gbj5IQ==\",\n        \"timestamp\": \"1648642758000\"\n    }\n}\n\n</code></pre>\n<h1 id=\"validate-webhook-data\">Validate webhook data</h1>\n<p>Kitbag uses RSA key pair signing to sign webhook data. Our publicly available public key can be used together with the signature and timestamp in the request body to verify that the data is sent from kitbag.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-javascript\">// code snippet to validate kitbag data in js\nconst verifyKitbagData = (publicKey: string, data: any, signature: string, timeStamp: string) =&gt; {\n  return crypto.verify(\n      \"sha256\",\n      Buffer.concat([Buffer.from(JSON.stringify(data)), Buffer.from(`${timeStamp}`)]),\n      {\n          key: publicKey,\n          padding: crypto.constants.RSA_PKCS1_PSS_PADDING,\n      },\n      Buffer.from(signature, \"base64\")\n  )\n}\n// destructure the request body\nconst {data, verification} = req.body\n// call the validation function\nconst isValid = verifyKitbagData(publicKey, data, verification.signature, verification.timestamp)\n\n</code></pre>\n<h1 id=\"public-keys-for-webhook-data-verification\">Public keys for webhook data verification</h1>\n<h3 id=\"staging-public-key\">Staging public key:</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>-----BEGIN RSA PUBLIC KEY-----\nMIIBCgKCAQEAv2ipgHLFFHgGHr9VpsPN8V1HIbCrlmTZRU/CYSDaoVX+xerJOMGX\nqmwgQMQH5T81VaMw4rtIA8tT4DkJgjb+7G0x4CGK1OPdlvhEGP2mOFy02onkEnMv\nuN3glVc4YKLvWDTG0KT7q9mARBIkO2Nrwy6IVHAl9pMXMJTRS22c0cIbuRmkYsGZ\ntrylUv50knbRSgy5EA6523+j3PPJB4TgsigGSJxJGuksaxnDQGRE558xnyw/0gJm\nmAIdbxboQTGMqod/My/kAssRkUNu1QtqrsdhZmGYHS+pIPJSaxqHEy8eiTahoqqq\n8KgNUfQfwduG+Kc4f/t5JHetSt1dgulmswIDAQAB\n-----END RSA PUBLIC KEY-----\n\n</code></pre><h3 id=\"production-public-key\">Production public key:</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>-----BEGIN RSA PUBLIC KEY-----\nMIIBCgKCAQEAoGmOqVUxIGq92P8J5KqwJbwucsNeUwfS76saj0UPgT1IsK/mvceR\nGes7dsgE4EVx7Wsd5PPNeAfaNt8d0plBLhHRW64WFyv6jYcYp8eVdHUxWLA6p5gZ\n9rGrZiwqKqunppTPlV04gdDC32rAbpAR3IMYmMJLuPy63Oumszl4qk69A1o60Son\nr0KYBaRK7aQsFT9IFexicDUhrF1SohaNH/msTdvJb0SwSGiV92EhmmC2R8CL83/B\nS8QC5c9PWtZ4a26CRLHe0IfaGGz8ClhlO8IFxz0cNrpoRa4JRsffezQ+RMQqCxhc\nigC7wHfqZr5BtziQOYJjUknVzsd81HEYlwIDAQAB\n-----END RSA PUBLIC KEY-----\n\n</code></pre><h1 id=\"testing-on-staging\">Testing on staging</h1>\n<p>You can get testnet tokens for supported currencies in the table below. You can also search for more faucets on google using this query: <code>ropsten faucet eth</code>. Also, you can get metamask chain configuration on <a href=\"https://chainlist.org/\">https://chainlist.org/</a>. These test tokens can be used to test in our staging environment:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Currency</strong></th>\n<th><strong>Wallet</strong></th>\n<th><strong>Faucet</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>BTC</td>\n<td><a href=\"https://electrum.org/#download\">https://electrum.org/#download</a></td>\n<td><a href=\"https://kuttler.eu/en/bitcoin/btc/faucet/\">https://kuttler.eu/en/bitcoin/btc/faucet/</a></td>\n</tr>\n<tr>\n<td>ETH</td>\n<td>metamask</td>\n<td><a href=\"https://testnet.help/en/ethfaucet/ropsten,\">https://testnet.help/en/ethfaucet/ropsten,</a> <a href=\"https://faucet.metamask.io/\">https://faucet.metamask.io/</a></td>\n</tr>\n<tr>\n<td>USDT ERC20</td>\n<td>metamask</td>\n<td>-</td>\n</tr>\n<tr>\n<td>USDT TRC20</td>\n<td>tronlink extension nile network</td>\n<td><a href=\"https://nileex.io/join/getJoinPage\">https://nileex.io/join/getJoinPage</a>  <br />  <br /></td>\n</tr>\n</tbody>\n</table>\n</div>","_postman_id":"3ca4c186-484f-4b36-b0d8-5436322a257d"},{"name":"kitbagV2","item":[{"name":"wallet","item":[{"name":"create wallet","id":"c860effe-7b41-42e9-8710-b2e9ba8a69e1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"x-waas-key","value":"{{kitbag_api_key}}","type":"text"},{"key":"x-waas-user","value":"{{kitbag_api_user}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"appName\": \"newtestapp\",\n    \"addresses\": [\n        {\"currency\":\"USDT\", \"network\": \"tron\"}\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"{{KITBAG_URL}}/v2/wallet","urlObject":{"path":["v2","wallet"],"host":["{{KITBAG_URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"c860effe-7b41-42e9-8710-b2e9ba8a69e1"},{"name":"update wallet","id":"3eb98192-b9c2-488a-bc16-7d6ccf5e01ca","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"x-waas-key","value":"{{kitbag_api_key}}","type":"text"},{"key":"x-waas-user","value":"{{kitbag_api_user}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"reference\": \"74ccbc4a-84f8-4a77-adb1-20585cf20de0\",\n    \"addresses\": [\n        {\"currency\":\"USDC\", \"network\": \"polygon\"},\n        {\"currency\":\"USDC\", \"network\": \"tron\"},\n        {\"currency\":\"BTC\", \"network\": \"bitcoin\"}\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"{{KITBAG_URL}}/v2/wallet","urlObject":{"path":["v2","wallet"],"host":["{{KITBAG_URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"3eb98192-b9c2-488a-bc16-7d6ccf5e01ca"},{"name":"get wallet","id":"279e780b-8358-4c27-a423-5eea7ba03251","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"x-waas-key","value":"{{kitbag_api_key}}","type":"text"},{"key":"x-waas-user","value":"{{kitbag_api_user}}","type":"text"}],"url":"{{KITBAG_URL}}/v2/wallet?reference=f626c3ed-6376-4d08-82a7-4ced03131c65","urlObject":{"path":["v2","wallet"],"host":["{{KITBAG_URL}}"],"query":[{"key":"reference","value":"f626c3ed-6376-4d08-82a7-4ced03131c65"}],"variable":[]}},"response":[],"_postman_id":"279e780b-8358-4c27-a423-5eea7ba03251"}],"id":"85f9e69e-c222-4999-b502-b7b9de86809b","_postman_id":"85f9e69e-c222-4999-b502-b7b9de86809b","description":""}],"id":"07ff93fa-e227-497d-9392-8bd80351178b","_postman_id":"07ff93fa-e227-497d-9392-8bd80351178b","description":""}]}