{"collection":{"info":{"_postman_id":"066d27aa-fedb-463d-ace6-cca047ba7433","name":"VERIFICATION API","schema":"https://schema.getpostman.com/json/collection/v2.1.0/collection.json","createdAt":"2023-04-18T08:35:02.000Z","updatedAt":"2023-04-18T08:35:02.000Z","lastUpdatedBy":"18262776","uid":"18262776-066d27aa-fedb-463d-ace6-cca047ba7433"},"item":[{"name":"PAN Verification","event":[{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"df0a21c3-c915-4b17-b6ca-47709354dfe5"}}],"id":"bed5a726-abf7-4bd9-a388-08f297ff50bc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"developer_key","value":"{{developer_key}}"},{"key":"secret-key","value":"{{secret-key}}"},{"key":"secret-key-timestamp","value":"{{secret-key-timestamp}}"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"pan_number","value":"VBLPZ6447L","type":"text"},{"key":"purpose","value":"1","type":"text"},{"key":"initiator_id","value":"{{initiator_id}}","type":"text"},{"key":"purpose_desc","value":"onboarding","type":"text"}]},"url":{"raw":"https://staging.eko.in:25004/ekoapi/v1/pan/verify","protocol":"https","host":["staging","eko","in"],"port":"25004","path":["ekoapi","v1","pan","verify"]}},"response":[],"createdAt":"2023-04-18T08:35:02.000Z","updatedAt":"2023-04-18T08:35:02.000Z","uid":"18262776-bed5a726-abf7-4bd9-a388-08f297ff50bc"},{"name":"Verify Bank Account Details","event":[{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"5a2f965c-7733-4eb4-97c8-e1b323d4b838"}}],"id":"d3d6fa5d-a889-473d-a317-35efca3d71b8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"developer_key","value":"{{developer_key}}"},{"key":"secret-key","value":"{{secret-key}}"},{"key":"secret-key-timestamp","value":"{{secret-key-timestamp}}"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"initiator_id","value":"{{initiator_id}}","type":"text"},{"key":"customer_id","value":"7661109875","type":"text"},{"key":"client_ref_id","value":"AVS20181123194719311","type":"text"},{"key":"user_code","value":"{{user_code}}","type":"text"}]},"url":{"raw":"https://staging.eko.in:25004/ekoapi/v2/banks/ifsc:KKBK0000261/accounts/1711654121","protocol":"https","host":["staging","eko","in"],"port":"25004","path":["ekoapi","v2","banks","ifsc:KKBK0000261","accounts","1711654121"]}},"response":[],"createdAt":"2023-04-18T08:35:02.000Z","updatedAt":"2023-04-18T08:35:02.000Z","uid":"18262776-d3d6fa5d-a889-473d-a317-35efca3d71b8"}],"event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":["// Fetch the key value from the environment variable file","var key = pm.environment.get(\"key\");","console.log(key)","// Encode it using base64","var encodedKey = btoa(key);","// Get current timestamp in milliseconds since UNIX epoch as STRING","// Check out https://currentmillis.com to understand the timestamp format","var secret_key_timestamp = Math.round(Date.now());","// Computes the signature by hashing the salt with the encoded key","var hash = CryptoJS.HmacSHA256(secret_key_timestamp.toString(), encodedKey);","// Encode it using base64","var secret_key = hash.toString(CryptoJS.enc.Base64);","// Set the secret_key as a global variable to be used in the POST request","console.log(\"secret_key  :\",secret_key);","console.log(\"secret_key_timestamp :\",secret_key_timestamp);","pm.environment.set(\"secret-key\", secret_key);","pm.environment.set(\"secret-key-timestamp\", secret_key_timestamp);"],"id":"11ed1333-50c9-4145-95a8-50756eaa5ae3"}},{"listen":"test","script":{"type":"text/javascript","exec":[""],"id":"2e08a1de-95d1-4986-80a5-a967e5526901"}}]}}