{"info":{"_postman_id":"611cc358-b979-4895-9e54-e6298b7f8fdf","name":"IDW: Standard Voice Prompt OTP","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"18471738","collectionId":"611cc358-b979-4895-9e54-e6298b7f8fdf","publishedId":"2s84DmwPd8","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2022-10-21T15:02:14.000Z"},"item":[{"name":"0) Get Token","event":[{"listen":"test","script":{"id":"0cd94dcb-c287-4a94-942b-90ea7fcbaf31","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","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":"c06a206e-8104-42dc-9d66-7268ad63ef0d","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":"c06a206e-8104-42dc-9d66-7268ad63ef0d"},{"name":"2a) MobileMatch - Send Voice OTP","event":[{"listen":"test","script":{"id":"13010af7-ea00-4a87-859c-c09c44e5ae64","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":"c7fe60c1-ecf7-4987-ad7a-89c2ec1419c4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{token}}"}],"url":"https://api.preprod.iddataweb.com/v1/otp?dialCode=1&telephone=123456789&type=voice&credential=your_credential&apiKey=your_OTP_apikey&appID=your_app_id","urlObject":{"protocol":"https","path":["v1","otp"],"host":["api","preprod","iddataweb","com"],"query":[{"key":"dialCode","value":"1"},{"key":"telephone","value":"123456789"},{"key":"type","value":"voice"},{"key":"credential","value":"your_credential"},{"key":"apiKey","value":"your_OTP_apikey"},{"key":"appID","value":"your_app_id"},{"disabled":true,"key":"asi","value":""}],"variable":[]}},"response":[],"_postman_id":"c7fe60c1-ecf7-4987-ad7a-89c2ec1419c4"},{"name":"3) MobileMatch - Verify OTP","id":"b43954e1-ad82-4377-9558-0cb7f30da73f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":"{\r\n    \"asi\": \"{{asi}}\",\r\n    \"apikey\": \"{{forwardApiKey}}\",\r\n    \"credential\": \"your_credential\",\r\n    \"appID\": \"your_app_ID\",\r\n    \"userAttributes\": [\r\n        {\r\n        \t\"attributeType\": \"PINCode\",\r\n        \t\"values\": {\r\n        \t\t\"pincode\": \"111111\",\r\n        \t\t\"pinType\": \"voice\"\r\n        \t}\r\n        }\r\n    ]\r\n}\r\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":"b43954e1-ad82-4377-9558-0cb7f30da73f"}]}