{"info":{"_postman_id":"714764d6-704c-4126-8b8b-7cac04ef5a28","name":"IDW: Standard MobileMatch to BioGovID","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><a href=\"https://docs.iddataweb.com/docs/api-integration-of-mobilematch-to-biogovid\">Follow these instructions step-by-step to use this project properly</a></p>\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</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"24165880","collectionId":"714764d6-704c-4126-8b8b-7cac04ef5a28","publishedId":"2s9YysEN2c","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2024-07-18T16:41:39.000Z"},"item":[{"name":"0) Get Token","event":[{"listen":"test","script":{"id":"a19b1f48-55f3-42f5-885f-6ba62eea47db","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","pm.environment.set(\"token\",JSON.parse(pm.response.text()).access_token)\r","pm.environment.set(\"forwardApiKey\", forwardApiKey)"],"type":"text/javascript","packages":{}}}],"id":"690aeb30-3328-407c-a51d-42c234995db8","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":"690aeb30-3328-407c-a51d-42c234995db8"},{"name":"0.1) Country Selection","event":[{"listen":"test","script":{"id":"a7f1225e-838f-4a94-8899-d59288e5145d","exec":["var requestBody  = JSON.parse(pm.request.body.raw)","var responseBody = JSON.parse(pm.response.text())","","// FORWARD API KEY, APP ID, CREDENTIAL, ASI (OR TRANSACTION ID)","var credential = requestBody.credential","var appID = requestBody.appID","var forwardApiKey = responseBody.forwardApiKey","var asi = responseBody.transaction_id","","pm.environment.set(\"credential\", credential);","pm.environment.set(\"appID\", appID);","pm.environment.set(\"forwardApiKey\", forwardApiKey);","pm.environment.set(\"asi\", asi)"],"type":"text/javascript","packages":{}}}],"id":"a895278e-54aa-4c38-99e0-1cb7f2e6d36a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"apikey\": \"{{forwardApiKey}}\",\n    \"credential\": \"(used as a unique identifier) e.g. employee@company.com\",\n    \"appID\":\"YOUR_APPLICATION_NAME e.g. 'Employee Onboarding App'\",\n    \"userAttributes\": [\n        {\n            \"attributeType\": \"Country\",\n            \"values\": {\n                \"country\": \"US\"\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":"a895278e-54aa-4c38-99e0-1cb7f2e6d36a"},{"name":"1) MobileMatch - Verify PII","event":[{"listen":"test","script":{"id":"b9f352f2-c2e9-4c7d-a28f-5a9a57f8a1b0","exec":["var requestBody  = JSON.parse(pm.request.body.raw)","var responseBody = JSON.parse(pm.response.text())","","// FIRST & LAST NAME","var firstName = requestBody.userAttributes[0].values.fname","var lastName = requestBody.userAttributes[0].values.lname","","// DATE OF BIRTH","var DOB = requestBody.userAttributes[3].values","","var dateOfBirth_month = DOB.month","var dateOfBirth_day = DOB.day","var dateOfBirth_year = DOB.year","","// ADDRESS","var address = requestBody.userAttributes[1].values","","var country = address.country","var state = address.administrative_area_level_1","var city = address.locality","var zip = address.postal_code","var street = address.route","var streetNumber = address.street_number","","// PHONE NUMBER","var mobilePhoneNumber = requestBody.userAttributes[2].values.telephone","","var dialCode = requestBody.userAttributes[2].values.dialCode","","","// FORWARD API KEY","var forwardApiKey = responseBody.forwardApiKey","","pm.environment.set(\"firstName\",firstName)","pm.environment.set(\"dateOfBirth_day\",dateOfBirth_day)","pm.environment.set(\"dateOfBirth_month\",dateOfBirth_month)","pm.environment.set(\"dateOfBirth_year\",dateOfBirth_year)","pm.environment.set(\"lastName\",lastName)","pm.environment.set(\"country\",country)","pm.environment.set(\"city\",city)","pm.environment.set(\"state\",state)","pm.environment.set(\"street\",street)","pm.environment.set(\"streetNumber\",streetNumber)","pm.environment.set(\"zip\",zip)","pm.environment.set(\"forwardApiKey\", forwardApiKey);","pm.environment.set(\"mobilePhoneNumber\", mobilePhoneNumber);","pm.environment.set(\"dialCode\", dialCode);"],"type":"text/javascript","packages":{}}}],"id":"dd8d105a-1595-4cef-8c84-2cd42e55388e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"apikey\": \"{{forwardApiKey}}\",\n    \"credential\": \"{{credential}}\",\n    \"appID\":\"{{appID}}\",\n    \"asi\": \"{{asi}}\",\n    \"userAttributes\": [\n        {\n            \"attributeType\": \"FullName\",\n            \"values\": {\n                \"fname\": \"John\",\n                \"mname\": \"\",\n                \"lname\": \"Smith\"\n            }\n        },\n        {\n            \"attributeType\": \"InternationalAddress\",\n            \"values\": {\n                \"country\": \"US\",\n                \"administrative_area_level_1\": \"VA\",\n                \"locality\": \"Vienna\",\n                \"postal_code\": \"12345\",\n                \"route\": \"Way Street Roa\",\n                \"street_number\": \"1234\"\n            }\n        },\n        {\n            \"attributeType\": \"InternationalTelephone\",\n            \"values\": {\n                \"dialCode\": \"1\",\n                \"telephone\": \"1234567890\"\n            }\n        },\n        {\n            \"attributeType\": \"DOB\",\n            \"values\": {\n                \"day\": \"01\",\n                \"month\": \"01\",\n                \"year\": \"1901\"\n            }\n        },\n               {\n            \"attributeType\": \"Email\",\n            \"values\": {\n                \"email\": \"user@email.com\"\n            }\n        }\n    ]\n}"},"url":"https://api.preprod.iddataweb.com/v1/slverify","urlObject":{"protocol":"https","path":["v1","slverify"],"host":["api","preprod","iddataweb","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"dd8d105a-1595-4cef-8c84-2cd42e55388e"},{"name":"2a) Send FastTap Link","event":[{"listen":"test","script":{"id":"3dfdc98f-9ec9-4f8d-9bdc-11ce71435d2e","exec":["pm.environment.set(\"mobilePhoneNumber\", (","    request.url.split('&')[1]","               .split('=')[1]","))","pm.environment.set(\"dialCode\", (","    request.url.split('?')[1]","               .split('&')[0]","               .split('=')[1]","))","","var responseBody = JSON.parse(pm.response.text())","","// ASI (OR TRANSACTION ID)","","var asi = responseBody.asi","","pm.environment.set(\"asi\", asi)"],"type":"text/javascript","packages":{}}}],"id":"1da705a0-4ef2-4777-9156-66952349e4e4","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={{dialCode}}&telephone={{mobilePhoneNumber}}&apikey={{forwardApiKey}}","urlObject":{"protocol":"https","path":["v1","doccapture","sendlink"],"host":["api","preprod","iddataweb","com"],"query":[{"key":"dialCode","value":"{{dialCode}}"},{"key":"telephone","value":"{{mobilePhoneNumber}}"},{"key":"apikey","value":"{{forwardApiKey}}"}],"variable":[]}},"response":[],"_postman_id":"1da705a0-4ef2-4777-9156-66952349e4e4"},{"name":"3a) Get FastTap Status","event":[{"listen":"test","script":{"id":"df9b114f-7d1b-43b4-b0f3-b0c048a75c8d","exec":["var urls       = JSON.parse(pm.response.text()).urls","var frontImage = urls.frontImage","var backImage  = urls.backImage","var selfie     = urls.cameraSnapshot","","pm.environment.set(\"frontImage\", frontImage)","pm.environment.set(\"backImage\", backImage)","pm.environment.set(\"selfie\", selfie)",""],"type":"text/javascript","packages":{}}}],"id":"67bc1009-06f4-480c-99d1-7e0ced9b7696","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":"67bc1009-06f4-480c-99d1-7e0ced9b7696"},{"name":"4a) Verify FastTap","event":[{"listen":"test","script":{"id":"9060d504-7436-4e6f-8be8-acece40dcf0a","exec":["var responseBody = JSON.parse(pm.response.text())","var acquiredAttributes = responseBody.acquiredAttributes","var fuzzyDeviceID;","","for (var i = 0; i < acquiredAttributes.length; ++i){","    if (acquiredAttributes[i].attributeType === 'FuzzyDeviceID'){","        fuzzyDeviceID = acquiredAttributes[i].values['fuzzyDeviceID']","    }","}","","pm.environment.set(\"fuzzyDeviceID\", fuzzyDeviceID)"],"type":"text/javascript","packages":{}}}],"id":"15220a37-cd86-46da-9c23-65dabe461ea1","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\": \"{{forwardApiKey}}\",\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":"15220a37-cd86-46da-9c23-65dabe461ea1"},{"name":"1b) Send Async Link","event":[{"listen":"test","script":{"id":"59aa2b42-739d-4396-8fe1-2e4e2024add8","exec":["var requestBody  = JSON.parse(pm.request.body.raw)","var responseBody = pm.response.json()","","// FORWARD API KEY, APP ID, CREDENTIAL, ASI (OR TRANSACTION ID)","var credential = requestBody.credential","var appID = requestBody.appID","var asi = responseBody.asi","","pm.environment.set(\"credential\", credential);","pm.environment.set(\"appID\", appID);","pm.environment.set(\"asi\", asi);"],"type":"text/javascript"}}],"id":"109a0034-3961-4c7d-b581-ee7b677ed1cf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Authorization","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":"{\n    \"credential\": \"{{credential}}\",\n    \"country\": \"{{country}}\",\n    \"asi\": \"{{asi}}\",\n    \"apikey\": \"{{forwardApiKey}}\",\n    \"userAttributes\": [\n      {\n          \"attributeType\": \"InternationalTelephone\",\n          \"values\": {\n          \t\"dialCode\": \"1\",\n          \t\"telephone\": \"{{mobilePhoneNumber}}\"\n          }\n      },\n            {\n          \"attributeType\": \"FullName\",\n          \"values\": {\n          \t\"fname\": \"{{firstName}}\",\n            \"mname\":\"\",\n          \t\"lname\": \"{{lastName}}\"\n          }\n      }\n\t]\n}","options":{"raw":{"language":"json"}}},"url":"https://api.preprod.iddataweb.com/v1/async-ui/send-link","urlObject":{"protocol":"https","path":["v1","async-ui","send-link"],"host":["api","preprod","iddataweb","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"109a0034-3961-4c7d-b581-ee7b677ed1cf"},{"name":"2b) Get Async Results","id":"8093baa1-579c-4449-8c69-da4491c9ab83","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{token}}","type":"text"},{"key":"{{forwardApiKey}}","value":"","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"credential\": \"{{credential}}\",\n    \"asi\": \"{{asi}}\",\n    \"appID\": \"{{appID}}\",\n    \"userAttributes\": [\n      {\n          \"attributeType\": \"InternationalTelephone\",\n          \"values\": {\n          \t\"dialCode\": \"1\",\n          \t\"telephone\": \"{{mobilePhoneNumber}}\"\n          }\n      },\n            {\n          \"attributeType\": \"FullName\",\n          \"values\": {\n          \t\"fname\": \"{{firstName}}\",\n            \"mname\":\"\",\n          \t\"lname\": \"{{lastName}}\"\n          }\n      }\n\t],\n    \"country\": \"{{country}}\",\n    \"apikey\": \"{{forwardApiKey}}\"\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":"8093baa1-579c-4449-8c69-da4491c9ab83"}],"event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":[""],"id":"f6a6de5f-46c1-4dd2-8e7f-1b76bc9dfbe1"}},{"listen":"test","script":{"type":"text/javascript","exec":[""],"id":"6a838d21-054b-4e8e-a487-688bbcb777bf"}}]}