{"info":{"_postman_id":"abf0e311-1848-4eeb-9561-be4c91765956","name":"IDW: Standard FastTap MFA","description":"<html><head></head><body><h2 id=\"before-you-start\"><strong>Before you start,</strong></h2>\n<p><strong>Create a new</strong> <strong><code>Environment</code></strong> <strong>so this project can save and write information for you automatically.</strong></p>\n<img src=\"https://content.pstmn.io/9412927d-0d08-4c3d-8c3b-dd8d7329f938/U2NyZWVuIFNob3QgMjAyMi0xMS0wOSBhdCA3LjA5LjUxIFBNLnBuZw==\">\n\n<p>If you get stuck, or decide to walk through this project again with new data, call each step in order to ensure the old data gets replaced.</p>\n<hr>\n<p>To start,</p>\n<ol>\n<li>Open 0) Get Token &gt; Auth. Enter your FastTap API Key and Secret. Click Send.</li>\n<li>After generating your Bearer Token, fill out 1) Send FastTap Link. Click Send.</li>\n</ol>\n<img src=\"https://content.pstmn.io/dea0410f-b297-4d8f-abec-5b950f549dac/aW1hZ2UucG5n\" width=\"1424\" height=\"940\">\n\n<p>3. After you've opened and submitted your FastTap Link, (optionally), you can send 2) Get FastTap Status to verify that your link has been used.</p>\n<p>4. Open 3) Verify FastTap. Click send to see your results.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"24165880","collectionId":"abf0e311-1848-4eeb-9561-be4c91765956","publishedId":"2s93m611q6","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2024-07-18T16:34:55.000Z"},"item":[{"name":"0) Get Token","event":[{"listen":"test","script":{"id":"df6fc57a-3f73-4e2a-b4db-ecc70f3b935e","exec":["pm.environment.clear()\r","var authString = request.headers.authorization.split(\" \")[1].toString()\r","var encodedAuth = Buffer.from(authString, 'base64')\r","var decodedAuth = encodedAuth.toString().split(\":\")\r","\r","var forwardApiKey = decodedAuth[0]\r","\r","postman.setEnvironmentVariable(\"token\",JSON.parse(pm.response.text()).access_token)\r","postman.setEnvironmentVariable(\"fastTapAPIKey\", forwardApiKey)"],"type":"text/javascript","packages":{}}}],"id":"e3ec380c-b671-47cb-b86d-f36e710acad0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"},{"key":"password","value":"<password>"}]},"isInherited":false},"method":"POST","header":[],"url":"https://api.preprod.iddataweb.com/v1/token?grant_type=client_credentials","urlObject":{"protocol":"https","path":["v1","token"],"host":["api","preprod","iddataweb","com"],"query":[{"key":"grant_type","value":"client_credentials"}],"variable":[]}},"response":[],"_postman_id":"e3ec380c-b671-47cb-b86d-f36e710acad0"},{"name":"1) Send FastTap Link","event":[{"listen":"test","script":{"id":"776aea3d-b94d-4b41-89c6-0905e033b53b","exec":["postman.setEnvironmentVariable(\"mobilePhoneNumber\", (","    request.url.split('&')[1]","               .split('=')[1]","))","postman.setEnvironmentVariable(\"dialCode\", (","    request.url.split('?')[1]","               .split('&')[0]","               .split('=')[1]","))","","var responseBody = JSON.parse(pm.response.text())","","// ASI (OR TRANSACTION ID)","","var asi = responseBody.asi","","postman.setEnvironmentVariable(\"asi\", asi)"],"type":"text/javascript","packages":{}}}],"id":"d742c451-41a8-4393-bc89-a36dcc3ca223","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{token}}"},{"key":"Content-Type","value":"application/json"}],"url":"https://api.preprod.iddataweb.com/v1/doccapture/sendlink?dialCode=your-dial-code&telephone=your-phone-number&apikey={{fastTapAPIKey}}","urlObject":{"protocol":"https","path":["v1","doccapture","sendlink"],"host":["api","preprod","iddataweb","com"],"query":[{"key":"dialCode","value":"your-dial-code"},{"key":"telephone","value":"your-phone-number"},{"key":"apikey","value":"{{fastTapAPIKey}}"}],"variable":[]}},"response":[],"_postman_id":"d742c451-41a8-4393-bc89-a36dcc3ca223"},{"name":"2) Get FastTap Status","event":[{"listen":"test","script":{"id":"cd97dec8-90b9-4979-bee3-47eb6d3f4862","exec":["var urls       = JSON.parse(pm.response.text()).urls","var frontImage = urls.frontImage","var backImage  = urls.backImage","var selfie     = urls.cameraSnapshot","","postman.setEnvironmentVariable(\"frontImage\", frontImage)","postman.setEnvironmentVariable(\"backImage\", backImage)","postman.setEnvironmentVariable(\"selfie\", selfie)",""],"type":"text/javascript","packages":{}}}],"id":"f8bd7f1b-2a44-4d6a-bbdd-16e7bd2a112b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{token}}"},{"key":"Content-Type","value":"application/json"}],"url":"https://api.preprod.iddataweb.com/v1/doccapture/results?asi={{asi}}","urlObject":{"protocol":"https","path":["v1","doccapture","results"],"host":["api","preprod","iddataweb","com"],"query":[{"key":"asi","value":"{{asi}}"}],"variable":[]}},"response":[],"_postman_id":"f8bd7f1b-2a44-4d6a-bbdd-16e7bd2a112b"},{"name":"3) Verify FastTap","id":"dc91f5ff-6e7f-4175-be80-65511c4a1ab7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":"{\n    \"asi\": \"{{asi}}\",\n\t\"apikey\": \"{{fastTapAPIKey}}\",\n    \"userAttributes\": [\n        {\n            \"attributeType\": \"InternationalTelephone\",\n            \"values\": {\n                \"dialCode\": \"{{dialCode}}\",\n                \"telephone\": \"{{mobilePhoneNumber}}\"\n            }\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://api.preprod.iddataweb.com/v1/slverify","urlObject":{"protocol":"https","path":["v1","slverify"],"host":["api","preprod","iddataweb","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"dc91f5ff-6e7f-4175-be80-65511c4a1ab7"}],"event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":[""],"id":"10c18538-7fd6-490a-b8bf-1397bd1ad689"}},{"listen":"test","script":{"type":"text/javascript","exec":[""],"id":"b5955a0b-09fc-485f-bf43-79a9bff5a9d4"}}]}