{"collection":{"info":{"_postman_id":"2d86fc88-7918-48b6-afbd-e1ca249ae0c9","name":"Payout / Fund Transfer","schema":"https://schema.getpostman.com/json/collection/v2.1.0/collection.json","createdAt":"2023-04-18T08:37:56.000Z","updatedAt":"2023-04-18T08:37:56.000Z","lastUpdatedBy":"18262776","uid":"18262776-2d86fc88-7918-48b6-afbd-e1ca249ae0c9"},"item":[{"name":"Initiate Payout / Fund Transfer","id":"531f9574-17f3-4a34-8ac0-ec9999498254","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}}"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"initiator_id","value":"{{initiator_id}}","type":"text"},{"key":"amount","value":"1045","type":"text"},{"key":"payment_mode","value":"5","type":"text"},{"key":"client_ref_id","value":"Settlemet7206123420","type":"text"},{"key":"recipient_name","value":"Virender Singh","type":"text"},{"key":"ifsc","value":"SBIN0000001","type":"text"},{"key":"account","value":"234243534","type":"text"},{"key":"service_code","value":"45","type":"text"},{"key":"sender_name","value":"Flipkart","type":"text"},{"key":"source","value":"NEWCONNECT","type":"text"},{"key":"tag","value":"Logistic","type":"text"},{"key":"beneficiary_account_type","value":"1","type":"text"}]},"url":{"raw":"https://staging.eko.in:25004/ekoapi/v1/agent/user_code:{{user_code}}/settlement","protocol":"https","host":["staging","eko","in"],"port":"25004","path":["ekoapi","v1","agent","user_code:{{user_code}}","settlement"]}},"response":[],"createdAt":"2023-04-18T08:37:57.000Z","updatedAt":"2023-04-18T08:37:57.000Z","uid":"18262776-531f9574-17f3-4a34-8ac0-ec9999498254"},{"name":"Transaction Inquiry","id":"3463e039-b0b2-43e6-a0f1-8e42d6ce8ecc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"developer_key","value":"{{developer_key}}"},{"key":"secret-key","value":"{{secret-key}}"},{"key":"secret-key-timestamp","value":"{{secret-key-timestamp}}"}],"url":{"raw":"https://staging.eko.in:25004/ekoapi/v1/transactions/12969629?initiator_id={{initiator_id}}","protocol":"https","host":["staging","eko","in"],"port":"25004","path":["ekoapi","v1","transactions","12969629"],"query":[{"key":"initiator_id","value":"{{initiator_id}}"}]}},"response":[],"createdAt":"2023-04-18T08:37:57.000Z","updatedAt":"2023-04-18T08:37:57.000Z","uid":"18262776-3463e039-b0b2-43e6-a0f1-8e42d6ce8ecc"}],"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":"44265122-5435-4f08-be8d-17312d9a76ef"}},{"listen":"test","script":{"type":"text/javascript","exec":[""],"id":"b104f8a2-9cc4-41f5-9d65-209d265e1d0d"}}]}}