{"info":{"_postman_id":"24223c19-6149-4c0d-8e06-3c2897b3663e","name":"Dmoney API integration testing","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"54449251","collectionId":"24223c19-6149-4c0d-8e06-3c2897b3663e","publishedId":"2sBXqQHJFt","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2026-05-15T13:10:57.000Z"},"item":[{"name":"Admin Login","item":[{"name":"Positive Tests","item":[{"name":"TC_01_Admin_Login_Valid_Pass","event":[{"listen":"prerequest","script":{"id":"acff8649-75f7-4fa6-9767-65ef86bbe802","exec":["var url = \"http://localhost:5000\";","","pm.collectionVariables.set(\"BaseUrl\", url);","","var key = \"ROADTOSDET\";","","pm.collectionVariables.set(\"SecretKey\", key);"],"type":"text/javascript","packages":{},"requests":{}}},{"listen":"test","script":{"id":"8ba2bc8e-7bb3-41ab-8641-41a899b89dc1","exec":["var jsonData = pm.response.json();","","pm.test(\"Admin can login successfully\", function(){","","    pm.expect(jsonData.message).to.contains(\"Login successful\");","})","","pm.test(\"Status code is 200\", function(){","    pm.response.to.have.status(200);","})","","var token = jsonData.token;","pm.collectionVariables.set(\"AdminToken\", token);",""],"type":"text/javascript","packages":{},"requests":{}}}],"id":"2b694f96-ea41-4344-902e-34300ce2ce8f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"email\": \"admin@dmoney.com\",\n  \"password\": \"1234\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/user/login","urlObject":{"path":["user","login"],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[],"_postman_id":"2b694f96-ea41-4344-902e-34300ce2ce8f"}],"id":"3416a5bf-8fc6-4484-a8a7-b54b62478b09","_postman_id":"3416a5bf-8fc6-4484-a8a7-b54b62478b09","description":""},{"name":"Negative Tests","item":[{"name":"TC_02_Admin_Login_Wrong_Pass","event":[{"listen":"prerequest","script":{"id":"acff8649-75f7-4fa6-9767-65ef86bbe802","exec":[""],"type":"text/javascript","packages":{},"requests":{}}},{"listen":"test","script":{"id":"8ba2bc8e-7bb3-41ab-8641-41a899b89dc1","exec":["var jsonData = pm.response.json();","","pm.test(\"Admin can not login\", function(){","","    pm.expect(jsonData.message).to.contains(\"Password incorrect\");","})","","pm.test(\"Status code is 401\", function(){","    pm.response.to.have.status(401);","})",""],"type":"text/javascript","packages":{},"requests":{}}}],"id":"8d05d86f-fe30-46b3-9a55-a8705f7e3e8b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"email\": \"admin@dmoney.com\",\n  \"password\": \"12345\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/user/login","urlObject":{"path":["user","login"],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[],"_postman_id":"8d05d86f-fe30-46b3-9a55-a8705f7e3e8b"}],"id":"f0cfba4b-c33e-4c6e-84d2-ac04879cf9a4","_postman_id":"f0cfba4b-c33e-4c6e-84d2-ac04879cf9a4","description":""}],"id":"1d570864-7d21-43f5-8931-a8ef37e806fa","_postman_id":"1d570864-7d21-43f5-8931-a8ef37e806fa","description":""},{"name":"Agent Creation","item":[{"name":"Positive Tests","item":[{"name":"TC_03_Agent_Creation_Valid_Data","event":[{"listen":"test","script":{"id":"d9cf58de-34bc-4a01-b6b5-c0aaae9b9776","exec":["var jsonData = pm.response.json();","","pm.test(\"Agent created successfully\", function(){","","    pm.expect(jsonData.message).to.contains(\"Registration successful.\");","})","","pm.test(\"Status code is 201\", function(){","    pm.response.to.have.status(201);","})","","var id = jsonData.user.id;","","pm.collectionVariables.set(\"Agent_Id\", id);","","var email = jsonData.user.email;","","pm.collectionVariables.set(\"Agent_Email\", email);","","var phone_number = jsonData.user.phone_number;","","pm.collectionVariables.set(\"Agent_PhoneNumber\", phone_number);",""],"type":"text/javascript","packages":{},"requests":{}}},{"listen":"prerequest","script":{"id":"53fdac1b-d8d2-449c-a114-fadaa343a802","exec":["var RandomId = _.random( 100000 , 999999 );","","var PhoneNumber = \"01314\" + RandomId;","","pm.collectionVariables.set(\"RandomId\", RandomId);","","pm.collectionVariables.set(\"RandomPhoneNumber\", PhoneNumber);"],"type":"text/javascript","packages":{},"requests":{}}}],"id":"0ad636ca-4d07-49fe-a5e6-52ce715b47ab","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"Dan Marquardt\",\n  \"email\": \"rahadm10+435675@gmail.com\",\n  \"password\": \"1234\",\n  \"phone_number\": \"01314435675\",\n  \"nid\": \"9876543210\",\n  \"role\": \"Agent\"\n}"},"url":"http://localhost:5000/user/register","urlObject":{"path":["user","register"],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[],"_postman_id":"0ad636ca-4d07-49fe-a5e6-52ce715b47ab"}],"id":"15a15b32-d695-4d5d-a138-331680fd0a15","_postman_id":"15a15b32-d695-4d5d-a138-331680fd0a15","description":""},{"name":"Negative Tests","item":[{"name":"TC_04_CreateAgent_InvalidGmail","event":[{"listen":"test","script":{"id":"d9cf58de-34bc-4a01-b6b5-c0aaae9b9776","exec":["var jsonData = pm.response.json();","","pm.test(\"Agent not created successfully\", function(){","","    pm.expect(jsonData.message).to.contains(\"Only Gmail addresses (@gmail.com) are accepted for registration.\");","})","","pm.test(\"Status code is 400\", function(){","    pm.response.to.have.status(400);","})"],"type":"text/javascript","packages":{},"requests":{}}},{"listen":"prerequest","script":{"id":"53fdac1b-d8d2-449c-a114-fadaa343a802","exec":[""],"type":"text/javascript","packages":{},"requests":{}}}],"id":"8344760b-89e4-4622-bbd4-8882dc72e428","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZGVudGlmaWVyIjoiYWRtaW5AZG1vbmV5LmNvbSIsInJvbGUiOiJBZG1pbiIsImlhdCI6MTc3ODkxNDI1MCwiZXhwIjoxNzc4OTE3ODUwfQ.d3P_0geVuQsln0J2CU4F-PCym9hmghShZGWtXzcEFGo","type":"text"},{"key":"X-AUTH-SECRET-KEY","value":"ROADTOSDET","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"Test User\",\n  \"email\": \"rahad@yahoo.com\",\n  \"password\": \"1234\",\n  \"phone_number\": \"01312121111\",\n  \"nid\": \"9876543210\",\n  \"role\": \"Agent\"\n}"},"url":"http://localhost:5000/user/register","urlObject":{"path":["user","register"],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[],"_postman_id":"8344760b-89e4-4622-bbd4-8882dc72e428"},{"name":"TC_05_CreateAgent_StringPhoneFormat","event":[{"listen":"test","script":{"id":"d9cf58de-34bc-4a01-b6b5-c0aaae9b9776","exec":["var jsonData = pm.response.json();","","pm.test(\"Should return invalid phone format message\", function(){","","    pm.expect(jsonData.message).to.contains(\"The phone number format is invalid.\");","})","","pm.test(\"Status code is 400\", function(){","    pm.response.to.have.status(400);","})"],"type":"text/javascript","packages":{},"requests":{}}},{"listen":"prerequest","script":{"id":"53fdac1b-d8d2-449c-a114-fadaa343a802","exec":[""],"type":"text/javascript","packages":{},"requests":{}}}],"id":"b8f1e9c4-548c-471c-9f79-5930ca94cf1c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"Edwin Gislason\",\n  \"email\": \"rahad1435675@gmail.com\",\n  \"password\": \"1234\",\n  \"phone_number\": \"BAAJKKBBBCC\",\n  \"nid\": \"9822241111\",\n  \"role\": \"Agent\"\n}"},"url":"http://localhost:5000/user/register","urlObject":{"path":["user","register"],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[],"_postman_id":"b8f1e9c4-548c-471c-9f79-5930ca94cf1c"},{"name":"TC_06_CreateAgent_StringNidFormat","event":[{"listen":"test","script":{"id":"d9cf58de-34bc-4a01-b6b5-c0aaae9b9776","exec":["var jsonData = pm.response.json();","","pm.test(\"Should return invalid NID format message\", function(){","","    pm.expect(jsonData.message).to.contains(\"The NID format is invalid.\");","})","","pm.test(\"Status code is 400\", function(){","    pm.response.to.have.status(400);","})"],"type":"text/javascript","packages":{},"requests":{}}},{"listen":"prerequest","script":{"id":"53fdac1b-d8d2-449c-a114-fadaa343a802","exec":[""],"type":"text/javascript","packages":{},"requests":{}}}],"id":"d1c7b478-7c62-4b05-a342-e5a89c23170e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"Mindy Braun\",\n  \"email\": \"rahad2435675@gmail.com\",\n  \"password\": \"1234\",\n  \"phone_number\": \"01237852323\",\n  \"nid\": \"ABCBBAKADE\",\n  \"role\": \"Agent\"\n}"},"url":"http://localhost:5000/user/register","urlObject":{"path":["user","register"],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[],"_postman_id":"d1c7b478-7c62-4b05-a342-e5a89c23170e"}],"id":"687ab6cc-caf6-4053-9bc4-daa6090a2672","_postman_id":"687ab6cc-caf6-4053-9bc4-daa6090a2672","description":""}],"id":"d2654372-0ce4-49c2-a68f-536b22e97e6c","_postman_id":"d2654372-0ce4-49c2-a68f-536b22e97e6c","description":""},{"name":"Customer1 Creation","item":[{"name":"Positive Tests","item":[{"name":"TC_07_Customer1_Creation_With_Valid_Data","event":[{"listen":"prerequest","script":{"id":"893ceda2-bc31-4601-8d5e-b71947823b9e","exec":["var RandomId = _.random( 100000 , 999999 );","","var PhoneNumber = \"01314\" + RandomId;","","pm.collectionVariables.set(\"RandomId\", RandomId);","","pm.collectionVariables.set(\"RandomPhoneNumber\", PhoneNumber);"],"type":"text/javascript","packages":{},"requests":{}}},{"listen":"test","script":{"id":"6dbd86e6-fefa-410c-8227-407218c3c6b0","exec":["var jsonData = pm.response.json();","","pm.test(\"Customer1 created successfully\", function(){","","    pm.expect(jsonData.message).to.contains(\"Registration successful.\");","})","","pm.test(\"Status code is 201\", function(){","    pm.response.to.have.status(201);","})","","var id = jsonData.user.id;","","pm.collectionVariables.set(\"Customer1_Id\", id);","","var email = jsonData.user.email;","","pm.collectionVariables.set(\"Customer1_Email\", email);","","var phone_number = jsonData.user.phone_number;","","pm.collectionVariables.set(\"Customer1_PhoneNumber\", phone_number);",""],"type":"text/javascript","packages":{},"requests":{}}}],"id":"90a179ec-9bb2-4aa7-852a-70a1f4aee9d0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZGVudGlmaWVyIjoiYWRtaW5AZG1vbmV5LmNvbSIsInJvbGUiOiJBZG1pbiIsImlhdCI6MTc3ODkxNDI1MCwiZXhwIjoxNzc4OTE3ODUwfQ.d3P_0geVuQsln0J2CU4F-PCym9hmghShZGWtXzcEFGo","type":"text"},{"key":"X-AUTH-SECRET-KEY","value":"ROADTOSDET","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"Tracey Feeney\",\n  \"email\": \"rahadm10+435675@gmail.com\",\n  \"password\": \"1234\",\n  \"phone_number\": \"01314435675\",\n  \"nid\": \"9876543210\",\n  \"role\": \"Customer\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/user/register","urlObject":{"path":["user","register"],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[],"_postman_id":"90a179ec-9bb2-4aa7-852a-70a1f4aee9d0"}],"id":"3b6bb93b-5395-439d-8047-ea6cd25bc497","_postman_id":"3b6bb93b-5395-439d-8047-ea6cd25bc497","description":""}],"id":"b1b35e82-56df-4dfd-ad4a-a186385155ec","_postman_id":"b1b35e82-56df-4dfd-ad4a-a186385155ec","description":""},{"name":"Customer2 Creation","item":[{"name":"Positive Tests","item":[{"name":"TC_08_Customer2_Creation_With_Valid_Data","event":[{"listen":"prerequest","script":{"id":"893ceda2-bc31-4601-8d5e-b71947823b9e","exec":["var RandomId = _.random( 100000 , 999999 );","","var PhoneNumber = \"01314\" + RandomId;","","pm.collectionVariables.set(\"RandomId\", RandomId);","","pm.collectionVariables.set(\"RandomPhoneNumber\", PhoneNumber);"],"type":"text/javascript","packages":{},"requests":{}}},{"listen":"test","script":{"id":"6dbd86e6-fefa-410c-8227-407218c3c6b0","exec":["var jsonData = pm.response.json();","","pm.test(\"Customer2 created successfully\", function(){","","    pm.expect(jsonData.message).to.contains(\"Registration successful.\");","})","","pm.test(\"Status code is 201\", function(){","    pm.response.to.have.status(201);","})","","var id = jsonData.user.id;","","pm.collectionVariables.set(\"Customer2_Id\", id);","","var email = jsonData.user.email;","","pm.collectionVariables.set(\"Customer2_Email\", email);","","var phone_number = jsonData.user.phone_number;","","pm.collectionVariables.set(\"Customer2_PhoneNumber\", phone_number);",""],"type":"text/javascript","packages":{},"requests":{}}}],"id":"99b9f0ab-928a-41c1-9882-f43063c48dd0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"Virgil Wuckert\",\n  \"email\": \"rahadm10+435675@gmail.com\",\n  \"password\": \"1234\",\n  \"phone_number\": \"01314435675\",\n  \"nid\": \"9876543210\",\n  \"role\": \"Customer\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/user/register","urlObject":{"path":["user","register"],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[],"_postman_id":"99b9f0ab-928a-41c1-9882-f43063c48dd0"}],"id":"e0640ac8-32dc-4d68-9ed6-fcb144d0de04","_postman_id":"e0640ac8-32dc-4d68-9ed6-fcb144d0de04","description":""}],"id":"097f9cde-96b7-4a4e-9fcb-fa202cf07d7b","_postman_id":"097f9cde-96b7-4a4e-9fcb-fa202cf07d7b","description":""},{"name":"Agent_Activation_By_Admin","item":[{"name":"Positive Tests","item":[{"name":"TC_09_Active_Agent_By_Admin_Auth_Key","event":[{"listen":"test","script":{"id":"0c8e13f7-60a9-455f-8767-ece49631c2b6","exec":["var jsonData = pm.response.json();","","pm.test(\"Agent is active\", function(){","","    pm.expect(jsonData.message).to.contains(\"User updated successfully\");","})","","pm.test(\"Status code is 200\", function(){","    pm.response.to.have.status(200);","})",""],"type":"text/javascript","packages":{},"requests":{}}}],"id":"d4d54eb9-3acd-4673-80e4-873e2b9b2de8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZGVudGlmaWVyIjoiYWRtaW5AZG1vbmV5LmNvbSIsInJvbGUiOiJBZG1pbiIsImlhdCI6MTc3ODkxNDI1MCwiZXhwIjoxNzc4OTE3ODUwfQ.d3P_0geVuQsln0J2CU4F-PCym9hmghShZGWtXzcEFGo","type":"text"},{"key":"X-AUTH-SECRET-KEY","value":"ROADTOSDET","type":"text"}],"body":{"mode":"raw","raw":"{\n\n     \"status\": \"active\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/user/update/300","urlObject":{"path":["user","update","300"],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[],"_postman_id":"d4d54eb9-3acd-4673-80e4-873e2b9b2de8"}],"id":"d75be91f-031a-47b0-a39a-c37c3460ea9f","_postman_id":"d75be91f-031a-47b0-a39a-c37c3460ea9f","description":""},{"name":"Negative Tests","item":[{"name":"TC_10_ActiveAgent_Missing_AuthKey","event":[{"listen":"test","script":{"id":"0c8e13f7-60a9-455f-8767-ece49631c2b6","exec":["var jsonData = pm.response.json();","","pm.test(\"Error message check: No Token Found\", function(){","","    pm.expect(jsonData.message).to.contains(\"No Token Found!\");","})","","pm.test(\"Status code is 401\", function(){","    pm.response.to.have.status(401);","})",""],"type":"text/javascript","packages":{},"requests":{}}}],"id":"d31d6afe-8843-4e75-91d8-746400af5927","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"X-AUTH-SECRET-KEY","value":"ROADTOSDET","type":"text"}],"body":{"mode":"raw","raw":"{\n\n     \"status\": \"active\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/user/update/300","urlObject":{"path":["user","update","300"],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[],"_postman_id":"d31d6afe-8843-4e75-91d8-746400af5927"},{"name":"TC_11_ActiveAgent_Invalid_AdminToken","event":[{"listen":"test","script":{"id":"0c8e13f7-60a9-455f-8767-ece49631c2b6","exec":["var jsonData = pm.response.json();","","pm.test(\"Error message check: Token invalid\", function(){","","    pm.expect(jsonData.message).to.contains(\"Token invalid!\");","})","","pm.test(\"Status code is 403\", function(){","    pm.response.to.have.status(403);","})",""],"type":"text/javascript","packages":{},"requests":{}}}],"id":"75118aa4-8115-4c31-a189-e63c90aaf94a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZGVudGlmaWVyIjoiYWRtaW5AZG1vbmV5LmNvbSIsInJvbGUiOiJBZG1pbiIsImlhdCI6MTc3ODc0Nzg5NSwiZXhwIjoxNzc4NzUxNDk1fQ.xw43saF7gCzdnI8pF2EQzPQLm884pfALOZlbmZMy2uB","type":"text"},{"key":"X-AUTH-SECRET-KEY","value":"ROADTOSDET","type":"text"}],"body":{"mode":"raw","raw":"{\n\n     \"status\": \"active\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/user/update/300","urlObject":{"path":["user","update","300"],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[],"_postman_id":"75118aa4-8115-4c31-a189-e63c90aaf94a"},{"name":"TC_12_ActiveAgent_Insufficient_Permissions","event":[{"listen":"test","script":{"id":"0c8e13f7-60a9-455f-8767-ece49631c2b6","exec":["// var jsonData = pm.response.json();","","// pm.test(\"Error message check: You can only update your own account\", function(){","","//     pm.expect(jsonData.message).to.contains(\"You can only update your own account\");","// })","","pm.test(\"Status code is 403\", function(){","    pm.response.to.have.status(403);","})",""],"type":"text/javascript","packages":{},"requests":{}}}],"id":"79085e35-04a8-443c-b6fc-b5cb0910ba90","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZGVudGlmaWVyIjoicmFoYWRtMTArMjYzNDAxQGdtYWlsLmNvbSIsInJvbGUiOiJDdXN0b21lciIsImlhdCI6MTc3ODkxNDQwOSwiZXhwIjoxNzc4OTE4MDA5fQ.HBSJI-Wn8qwIwRxXLwVKyZ3DOXJ-6xQwr1HSYkXZI_w","type":"text"},{"key":"X-AUTH-SECRET-KEY","value":"ROADTOSDET","type":"text"}],"body":{"mode":"raw","raw":"{\n\n     \"status\": \"active\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/user/update/300","urlObject":{"path":["user","update","300"],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[],"_postman_id":"79085e35-04a8-443c-b6fc-b5cb0910ba90"},{"name":"TC_13_ActiveAgent_Invalid_SecretKey","event":[{"listen":"test","script":{"id":"0c8e13f7-60a9-455f-8767-ece49631c2b6","exec":["var jsonData = pm.response.json();","","pm.test(\"Error message check: Secret auth key validation failure\", function(){","","    pm.expect(jsonData.message).to.contains(\"Secret auth key validation failure!\");","})","","pm.test(\"Status code is 401\", function(){","    pm.response.to.have.status(401);","})",""],"type":"text/javascript","packages":{},"requests":{}}}],"id":"6c6d49ab-0799-44bd-a6c8-165462030412","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZGVudGlmaWVyIjoiYWRtaW5AZG1vbmV5LmNvbSIsInJvbGUiOiJBZG1pbiIsImlhdCI6MTc3ODkxNDI1MCwiZXhwIjoxNzc4OTE3ODUwfQ.d3P_0geVuQsln0J2CU4F-PCym9hmghShZGWtXzcEFGo","type":"text"},{"key":"X-AUTH-SECRET-KEY","value":"ROADTSDET","type":"text"}],"body":{"mode":"raw","raw":"{\n\n     \"status\": \"active\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/user/update/300","urlObject":{"path":["user","update","300"],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[],"_postman_id":"6c6d49ab-0799-44bd-a6c8-165462030412"}],"id":"12079449-b262-4c92-8c63-ad0f792c00ce","_postman_id":"12079449-b262-4c92-8c63-ad0f792c00ce","description":""}],"id":"170f1331-7e48-466f-b393-86b1a9af596e","_postman_id":"170f1331-7e48-466f-b393-86b1a9af596e","description":""},{"name":"Customer1_Activation_By_Admin","item":[{"name":"Positive Tests","item":[{"name":"TC_14_Active_Customer1_By_Admin_Auth_Key","event":[{"listen":"test","script":{"id":"0c8e13f7-60a9-455f-8767-ece49631c2b6","exec":["var jsonData = pm.response.json();","","pm.test(\"Customer1 is active\", function(){","","    pm.expect(jsonData.message).to.contains(\"User updated successfully\");","})","","pm.test(\"Status code is 200\", function(){","    pm.response.to.have.status(200);","})",""],"type":"text/javascript","packages":{},"requests":{}}}],"id":"49a1d196-0981-4f11-a7b3-3564f17a3357","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZGVudGlmaWVyIjoiYWRtaW5AZG1vbmV5LmNvbSIsInJvbGUiOiJBZG1pbiIsImlhdCI6MTc3ODkxNDI1MCwiZXhwIjoxNzc4OTE3ODUwfQ.d3P_0geVuQsln0J2CU4F-PCym9hmghShZGWtXzcEFGo","type":"text"},{"key":"X-AUTH-SECRET-KEY","value":"ROADTOSDET","type":"text"}],"body":{"mode":"raw","raw":"{\n\n     \"status\": \"active\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/user/update/301","urlObject":{"path":["user","update","301"],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[],"_postman_id":"49a1d196-0981-4f11-a7b3-3564f17a3357"}],"id":"a6922898-5d1c-4c1d-920a-7afeb592817f","_postman_id":"a6922898-5d1c-4c1d-920a-7afeb592817f","description":""},{"name":"Negative Tests","item":[{"name":"TC_15_ActiveCustomer_By_InvalidRole_CustomerToken","event":[{"listen":"test","script":{"id":"0c8e13f7-60a9-455f-8767-ece49631c2b6","exec":["// var jsonData = pm.response.json();","","// pm.test(\"Error message should indicate lack of permission\", function(){","","//     pm.expect(jsonData.message).to.contains(\"permission denied\");","// })","","pm.test(\"Status code is 403\", function(){","    pm.response.to.have.status(403);","})",""],"type":"text/javascript","packages":{},"requests":{}}}],"id":"cdb253b3-9dd4-465e-96ee-ca038eb0df59","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZGVudGlmaWVyIjoicmFoYWRtMTArMjYzNDAxQGdtYWlsLmNvbSIsInJvbGUiOiJDdXN0b21lciIsImlhdCI6MTc3ODkxNDQwOSwiZXhwIjoxNzc4OTE4MDA5fQ.HBSJI-Wn8qwIwRxXLwVKyZ3DOXJ-6xQwr1HSYkXZI_w","type":"text"},{"key":"X-AUTH-SECRET-KEY","value":"ROADTOSDET","type":"text"}],"body":{"mode":"raw","raw":"{\n\n     \"status\": \"active\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/user/update/301","urlObject":{"path":["user","update","301"],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[],"_postman_id":"cdb253b3-9dd4-465e-96ee-ca038eb0df59"}],"id":"f8d3be12-a5fe-4506-8dd7-4647ea2a79ce","_postman_id":"f8d3be12-a5fe-4506-8dd7-4647ea2a79ce","description":""}],"id":"8ef26e9c-df77-411b-a030-d09985526fdb","_postman_id":"8ef26e9c-df77-411b-a030-d09985526fdb","description":""},{"name":"Customer2_Activation_By_Admin","item":[{"name":"Positive Tests","item":[{"name":"TC_16_Active_Customer2_By_Admin_Auth_Key","event":[{"listen":"test","script":{"id":"0c8e13f7-60a9-455f-8767-ece49631c2b6","exec":["var jsonData = pm.response.json();","","pm.test(\"Customer2 is active\", function(){","","    pm.expect(jsonData.message).to.contains(\"User updated successfully\");","})","","pm.test(\"Status code is 200\", function(){","    pm.response.to.have.status(200);","})",""],"type":"text/javascript","packages":{},"requests":{}}}],"id":"0caa5087-fb70-4f75-a2c3-89b67fff31ca","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZGVudGlmaWVyIjoiYWRtaW5AZG1vbmV5LmNvbSIsInJvbGUiOiJBZG1pbiIsImlhdCI6MTc3ODkxNDI1MCwiZXhwIjoxNzc4OTE3ODUwfQ.d3P_0geVuQsln0J2CU4F-PCym9hmghShZGWtXzcEFGo","type":"text"},{"key":"X-AUTH-SECRET-KEY","value":"ROADTOSDET","type":"text"}],"body":{"mode":"raw","raw":"{\n\n     \"status\": \"active\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/user/update/302","urlObject":{"path":["user","update","302"],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[],"_postman_id":"0caa5087-fb70-4f75-a2c3-89b67fff31ca"}],"id":"471fc812-0f64-488f-bcd9-6b512fdbc1df","_postman_id":"471fc812-0f64-488f-bcd9-6b512fdbc1df","description":""}],"id":"29e7d6c8-31a8-4a89-b85e-0ed316716d76","_postman_id":"29e7d6c8-31a8-4a89-b85e-0ed316716d76","description":""},{"name":"System_To_Agent_Transactions","item":[{"name":"Positive Tests","item":[{"name":"TC_17_System_Login_Valid_Data","event":[{"listen":"test","script":{"id":"0263fcb2-7a46-4d65-98ae-390407a2d7a3","exec":["var jsonData = pm.response.json();","","var token = jsonData.token;","pm.collectionVariables.set(\"SystemToken\", token);"],"type":"text/javascript","packages":{},"requests":{}}}],"id":"c8ed2f89-f26e-4e29-a2ff-4903c64491d6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"email\": \"SYSTEM\",\n  //\"phone_number\": \"01700000000\",\n  \"password\": \"1234\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/user/login","urlObject":{"path":["user","login"],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[],"_postman_id":"c8ed2f89-f26e-4e29-a2ff-4903c64491d6"},{"name":"TC_18_Deposit_System_To_Agent_5000TK","id":"1877ba8e-ad77-4897-8349-9dbc2ad38d98","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZGVudGlmaWVyIjoiU1lTVEVNIiwicm9sZSI6IkFnZW50IiwiaWF0IjoxNzc4OTE0MzMxLCJleHAiOjE3Nzg5MTc5MzF9.inojVun9cn9lluWQqH-zfML2DCxAw-HteZ4H_A-DkGs","type":"text"},{"key":"X-AUTH-SECRET-KEY","value":"ROADTOSDET","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"from_account\": \"SYSTEM\",\n  \"to_account\": \"01314573399\",\n  \"amount\": 5000\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/transaction/deposit","urlObject":{"path":["transaction","deposit"],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[],"_postman_id":"1877ba8e-ad77-4897-8349-9dbc2ad38d98"}],"id":"ff88d091-b2a4-42ab-9a17-b0adb5803ec8","_postman_id":"ff88d091-b2a4-42ab-9a17-b0adb5803ec8","description":""}],"id":"faa0f72b-134a-49a9-9bfa-97dd50e8c909","_postman_id":"faa0f72b-134a-49a9-9bfa-97dd50e8c909","description":""},{"name":"Agent Login","item":[{"name":"Agent_Primary_Login","id":"3ca77dbc-c94e-490b-96bd-a82f9fd6f568","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"email\": \"rahadm10+573399@gmail.com\",\n  \"password\": \"1234\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/user/login","urlObject":{"path":["user","login"],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[],"_postman_id":"3ca77dbc-c94e-490b-96bd-a82f9fd6f568"},{"name":"Gmail_List","event":[{"listen":"test","script":{"id":"76b18356-9fe2-4011-8e1f-4539efef6393","exec":["let jsonData = pm.response.json();","","let latestEmailId = jsonData.messages[0].id;","","pm.collectionVariables.set(\"EmailId\", latestEmailId);"],"type":"text/javascript","packages":{},"requests":{}}}],"id":"77502d2a-41de-43bc-a482-00f0914425c9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer ya29.a0AQvPyIMP9-3OgSQEa-X1fxSDDBxDMh9U8hgT3AByKu9rzQAo16eRku9WercjmN2j1lsIXmfBD9fIz5Di5tGSFqsYRokSnBsJ_-bIS4jjIrwOQxu4HOYwOtWpsQzly1I7qfKbotqrdb2bfWxeFLixMrTTPf_L1Smm5hVQnhvEoQ2y2S2s-1VHAW0U4yMI9C07WE7r9MMaCgYKAbgSARYSFQHGX2MioyJyHWhbq9AsGELLtpdbxQ0206","type":"text"}],"url":"https://gmail.googleapis.com/gmail/v1/users/me/messages","urlObject":{"protocol":"https","path":["gmail","v1","users","me","messages"],"host":["gmail","googleapis","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"77502d2a-41de-43bc-a482-00f0914425c9"},{"name":"Read_Email","event":[{"listen":"prerequest","script":{"id":"dbad8af8-8c65-455a-a725-2696d91f570c","exec":[""],"type":"text/javascript","packages":{},"requests":{}}},{"listen":"test","script":{"id":"f59fae0e-9d15-4d4e-b9a1-4d174bc4d3d6","exec":["let jsonData = pm.response.json();","","let snippet = jsonData.snippet;","","let otp = snippet.match(/\\b\\d{4}\\b/)[0];","","pm.collectionVariables.set(\"otp\", otp);",""],"type":"text/javascript","packages":{},"requests":{}}}],"id":"212a122a-54b8-414c-9fe9-f51a36dfe3d9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer ya29.a0AQvPyIMP9-3OgSQEa-X1fxSDDBxDMh9U8hgT3AByKu9rzQAo16eRku9WercjmN2j1lsIXmfBD9fIz5Di5tGSFqsYRokSnBsJ_-bIS4jjIrwOQxu4HOYwOtWpsQzly1I7qfKbotqrdb2bfWxeFLixMrTTPf_L1Smm5hVQnhvEoQ2y2S2s-1VHAW0U4yMI9C07WE7r9MMaCgYKAbgSARYSFQHGX2MioyJyHWhbq9AsGELLtpdbxQ0206","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://gmail.googleapis.com/gmail/v1/users/me/messages/19e2f902b4cae941","urlObject":{"protocol":"https","path":["gmail","v1","users","me","messages","19e2f902b4cae941"],"host":["gmail","googleapis","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"212a122a-54b8-414c-9fe9-f51a36dfe3d9"},{"name":"Agent_Verify_OTP","event":[{"listen":"test","script":{"id":"eec35a78-a512-459b-a625-bfd21b7d220a","exec":["var jsonData = pm.response.json();","","pm.test(\"Admin can login successfully\", function(){","","    pm.expect(jsonData.message).to.contains(\"Login successful\");","})","","pm.test(\"Status code is 200\", function(){","    pm.response.to.have.status(200);","})","","var token = jsonData.token;","pm.collectionVariables.set(\"AgentToken\", token);",""],"type":"text/javascript","packages":{},"requests":{}}}],"id":"e2616083-ac54-42ae-9dd2-e8bdb6ae5960","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer ya29.a0AQvPyIMP9-3OgSQEa-X1fxSDDBxDMh9U8hgT3AByKu9rzQAo16eRku9WercjmN2j1lsIXmfBD9fIz5Di5tGSFqsYRokSnBsJ_-bIS4jjIrwOQxu4HOYwOtWpsQzly1I7qfKbotqrdb2bfWxeFLixMrTTPf_L1Smm5hVQnhvEoQ2y2S2s-1VHAW0U4yMI9C07WE7r9MMaCgYKAbgSARYSFQHGX2MioyJyHWhbq9AsGELLtpdbxQ0206","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"identifier\": \"rahadm10+573399@gmail.com\",\n  \"otp\": \"8541\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/user/verify-otp","urlObject":{"path":["user","verify-otp"],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[],"_postman_id":"e2616083-ac54-42ae-9dd2-e8bdb6ae5960"}],"id":"fd9dd8bc-133b-4254-b6a0-0b127289f447","_postman_id":"fd9dd8bc-133b-4254-b6a0-0b127289f447","description":""},{"name":"Agent_To_Customer1_Transactions","item":[{"name":"Positive Tests","item":[{"name":"TC_19_Deposit_Agent_To_Customer1_2000TK","id":"5222b1f5-3772-4947-8dff-a7b40334ea4b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZGVudGlmaWVyIjoicmFoYWRtMTArNTczMzk5QGdtYWlsLmNvbSIsInJvbGUiOiJBZ2VudCIsImlhdCI6MTc3ODkxNDM1NywiZXhwIjoxNzc4OTE3OTU3fQ.c9pKHmdlkhw4AbEftrtay_6r68MDRPlsbYfD0U80sgk","type":"text"},{"key":"X-AUTH-SECRET-KEY","value":"ROADTOSDET","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"from_account\": \"01314573399\",\n  \"to_account\": \"01314263401\",\n  \"amount\": 2000\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/transaction/deposit","urlObject":{"path":["transaction","deposit"],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[],"_postman_id":"5222b1f5-3772-4947-8dff-a7b40334ea4b"}],"id":"74aa288c-5984-414e-a02f-76d78b313cf0","_postman_id":"74aa288c-5984-414e-a02f-76d78b313cf0","description":""},{"name":"Negative Tests","item":[{"name":"TC_20_Agent_Deposit_Negative_Amount","event":[{"listen":"test","script":{"id":"a608c221-d022-40d0-b7de-48c6f94b868a","exec":["var jsonData = pm.response.json();","","pm.test(\"Negative amount error message\", function(){","","    pm.expect(jsonData.message).to.contains(\"Amount must be a valid number greater than 0\");","})","","pm.test(\"Status code is 400\", function(){","    pm.response.to.have.status(400);","})",""],"type":"text/javascript","packages":{},"requests":{}}}],"id":"906e0344-84e6-4b3a-a716-2e1670c85230","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZGVudGlmaWVyIjoicmFoYWRtMTArNTczMzk5QGdtYWlsLmNvbSIsInJvbGUiOiJBZ2VudCIsImlhdCI6MTc3ODkxNDM1NywiZXhwIjoxNzc4OTE3OTU3fQ.c9pKHmdlkhw4AbEftrtay_6r68MDRPlsbYfD0U80sgk","type":"text"},{"key":"X-AUTH-SECRET-KEY","value":"ROADTOSDET","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"from_account\": \"01314573399\",\n  \"to_account\": \"01314263401\",\n  \"amount\": -2000\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/transaction/deposit","urlObject":{"path":["transaction","deposit"],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[],"_postman_id":"906e0344-84e6-4b3a-a716-2e1670c85230"},{"name":"TC_21_Agent_Deposit_Zero","event":[{"listen":"test","script":{"id":"a608c221-d022-40d0-b7de-48c6f94b868a","exec":["var jsonData = pm.response.json();","","pm.test(\"Zero Not Allowed\", function(){","","    pm.expect(jsonData.message).to.contains(\"Amount must be a valid number greater than 0\");","})","","pm.test(\"Status code is 400\", function(){","    pm.response.to.have.status(400);","})",""],"type":"text/javascript","packages":{},"requests":{}}}],"id":"6e7fe82d-6d1d-4aa6-9e88-6a7f835dc999","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZGVudGlmaWVyIjoicmFoYWRtMTArNTczMzk5QGdtYWlsLmNvbSIsInJvbGUiOiJBZ2VudCIsImlhdCI6MTc3ODkxNDM1NywiZXhwIjoxNzc4OTE3OTU3fQ.c9pKHmdlkhw4AbEftrtay_6r68MDRPlsbYfD0U80sgk","type":"text"},{"key":"X-AUTH-SECRET-KEY","value":"ROADTOSDET","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"from_account\": \"01314573399\",\n  \"to_account\": \"01314263401\",\n  \"amount\": 0\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/transaction/deposit","urlObject":{"path":["transaction","deposit"],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[],"_postman_id":"6e7fe82d-6d1d-4aa6-9e88-6a7f835dc999"},{"name":"TC_22_Agent_Deposit_Without_Auth_Token","event":[{"listen":"test","script":{"id":"a608c221-d022-40d0-b7de-48c6f94b868a","exec":["var jsonData = pm.response.json();","","pm.test(\"Token not found message\", function(){","","    pm.expect(jsonData.message).to.contains(\"No Token Found!\");","})","","pm.test(\"Status code is 401\", function(){","    pm.response.to.have.status(401);","})",""],"type":"text/javascript","packages":{},"requests":{}}}],"id":"4fe00999-a7cd-4d63-8971-ae532f49abbb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"X-AUTH-SECRET-KEY","value":"ROADTOSDET","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"from_account\": \"01314573399\",\n  \"to_account\": \"01314263401\",\n  \"amount\": 100\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/transaction/deposit","urlObject":{"path":["transaction","deposit"],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[],"_postman_id":"4fe00999-a7cd-4d63-8971-ae532f49abbb"},{"name":"TC_23_Agent_Deposit_Empty_Body","event":[{"listen":"test","script":{"id":"a608c221-d022-40d0-b7de-48c6f94b868a","exec":["var jsonData = pm.response.json();","","// pm.test(\"Need\", function(){","","//     pm.expect(jsonData.message).to.contains(\"error\");","// })","","pm.test(\"Status code is 400\", function(){","    pm.response.to.have.status(400);","})",""],"type":"text/javascript","packages":{},"requests":{}}}],"id":"fb990af2-5dd1-4aa2-964e-6997c3ea5805","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZGVudGlmaWVyIjoicmFoYWRtMTArNTczMzk5QGdtYWlsLmNvbSIsInJvbGUiOiJBZ2VudCIsImlhdCI6MTc3ODkxNDM1NywiZXhwIjoxNzc4OTE3OTU3fQ.c9pKHmdlkhw4AbEftrtay_6r68MDRPlsbYfD0U80sgk","type":"text"},{"key":"X-AUTH-SECRET-KEY","value":"ROADTOSDET","type":"text"}],"body":{"mode":"raw","raw":"// {\n//   \"from_account\": \"01314573399\",\n//   \"to_account\": \"01314263401\",\n//   \"amount\": -2000\n// }","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/transaction/deposit","urlObject":{"path":["transaction","deposit"],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[],"_postman_id":"fb990af2-5dd1-4aa2-964e-6997c3ea5805"},{"name":"TC_24_Agent_Deposit_Using_Customer_Token","event":[{"listen":"test","script":{"id":"a608c221-d022-40d0-b7de-48c6f94b868a","exec":["var jsonData = pm.response.json();","","pm.test(\"Need Valid Token\", function(){","","    pm.expect(jsonData.message).to.contains(\"Unauthorized\");","})","","pm.test(\"Status code is 403\", function(){","    pm.response.to.have.status(403);","})",""],"type":"text/javascript","packages":{},"requests":{}}}],"id":"6f6662bb-cb1c-44c1-aa6a-3cfee5cdc887","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZGVudGlmaWVyIjoicmFoYWRtMTArNDM1Njc1QGdtYWlsLmNvbSIsInJvbGUiOiJDdXN0b21lciIsImlhdCI6MTc3ODkxNDQ1MCwiZXhwIjoxNzc4OTE4MDUwfQ.BjkFxSCNNkYUaa1hPTNbtIEqi6HK8o9oKyFKmp2jr0U","type":"text"},{"key":"X-AUTH-SECRET-KEY","value":"ROADTOSDET","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"from_account\": \"01314573399\",\n  \"to_account\": \"01314263401\",\n  \"amount\": 100\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/transaction/deposit","urlObject":{"path":["transaction","deposit"],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[],"_postman_id":"6f6662bb-cb1c-44c1-aa6a-3cfee5cdc887"}],"id":"12de7c59-0d5c-4176-bf5e-d6707859be0f","_postman_id":"12de7c59-0d5c-4176-bf5e-d6707859be0f","description":""}],"id":"3c8436a7-3556-43b7-a7d3-2d7698c4c966","_postman_id":"3c8436a7-3556-43b7-a7d3-2d7698c4c966","description":""},{"name":"Customer1 Login","item":[{"name":"Customer1_Primary_Login","id":"33fd6e48-e47f-4915-8084-e6717dfdab1d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"email\": \"rahadm10+263401@gmail.com\",\n  \"password\": \"1234\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/user/login","urlObject":{"path":["user","login"],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[],"_postman_id":"33fd6e48-e47f-4915-8084-e6717dfdab1d"},{"name":"Gmail_List","event":[{"listen":"test","script":{"id":"76b18356-9fe2-4011-8e1f-4539efef6393","exec":["let jsonData = pm.response.json();","","let latestEmailId = jsonData.messages[0].id;","","pm.collectionVariables.set(\"EmailId\", latestEmailId);"],"type":"text/javascript","packages":{},"requests":{}}}],"id":"90b4a019-d617-42cb-ae07-083fb0e9ce03","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer ya29.a0AQvPyIMP9-3OgSQEa-X1fxSDDBxDMh9U8hgT3AByKu9rzQAo16eRku9WercjmN2j1lsIXmfBD9fIz5Di5tGSFqsYRokSnBsJ_-bIS4jjIrwOQxu4HOYwOtWpsQzly1I7qfKbotqrdb2bfWxeFLixMrTTPf_L1Smm5hVQnhvEoQ2y2S2s-1VHAW0U4yMI9C07WE7r9MMaCgYKAbgSARYSFQHGX2MioyJyHWhbq9AsGELLtpdbxQ0206","type":"text"}],"url":"https://gmail.googleapis.com/gmail/v1/users/me/messages","urlObject":{"protocol":"https","path":["gmail","v1","users","me","messages"],"host":["gmail","googleapis","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"90b4a019-d617-42cb-ae07-083fb0e9ce03"},{"name":"Read_Email","event":[{"listen":"prerequest","script":{"id":"dbad8af8-8c65-455a-a725-2696d91f570c","exec":[""],"type":"text/javascript","packages":{},"requests":{}}},{"listen":"test","script":{"id":"f59fae0e-9d15-4d4e-b9a1-4d174bc4d3d6","exec":["let jsonData = pm.response.json();","","let snippet = jsonData.snippet;","","let otp = snippet.match(/\\b\\d{4}\\b/)[0];","","pm.collectionVariables.set(\"otp\", otp);",""],"type":"text/javascript","packages":{},"requests":{}}}],"id":"7e3e49f4-9087-45c1-a4e6-885f55827e01","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer ya29.a0AQvPyIMP9-3OgSQEa-X1fxSDDBxDMh9U8hgT3AByKu9rzQAo16eRku9WercjmN2j1lsIXmfBD9fIz5Di5tGSFqsYRokSnBsJ_-bIS4jjIrwOQxu4HOYwOtWpsQzly1I7qfKbotqrdb2bfWxeFLixMrTTPf_L1Smm5hVQnhvEoQ2y2S2s-1VHAW0U4yMI9C07WE7r9MMaCgYKAbgSARYSFQHGX2MioyJyHWhbq9AsGELLtpdbxQ0206","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://gmail.googleapis.com/gmail/v1/users/me/messages/19e2f902b4cae941","urlObject":{"protocol":"https","path":["gmail","v1","users","me","messages","19e2f902b4cae941"],"host":["gmail","googleapis","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"7e3e49f4-9087-45c1-a4e6-885f55827e01"},{"name":"Customer1_Verify_OTP","event":[{"listen":"test","script":{"id":"eec35a78-a512-459b-a625-bfd21b7d220a","exec":["var jsonData = pm.response.json();","","pm.test(\"Customer1 can login successfully\", function(){","","    pm.expect(jsonData.message).to.contains(\"Login successful\");","})","","pm.test(\"Status code is 200\", function(){","    pm.response.to.have.status(200);","})","","var token = jsonData.token;","pm.collectionVariables.set(\"Customer1Token\", token);",""],"type":"text/javascript","packages":{},"requests":{}}}],"id":"91d3d8bb-9202-4417-9c9e-291bd74ebb92","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer ya29.a0AQvPyIMP9-3OgSQEa-X1fxSDDBxDMh9U8hgT3AByKu9rzQAo16eRku9WercjmN2j1lsIXmfBD9fIz5Di5tGSFqsYRokSnBsJ_-bIS4jjIrwOQxu4HOYwOtWpsQzly1I7qfKbotqrdb2bfWxeFLixMrTTPf_L1Smm5hVQnhvEoQ2y2S2s-1VHAW0U4yMI9C07WE7r9MMaCgYKAbgSARYSFQHGX2MioyJyHWhbq9AsGELLtpdbxQ0206","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"identifier\": \"rahadm10+263401@gmail.com\",\n  \"otp\": \"8541\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/user/verify-otp","urlObject":{"path":["user","verify-otp"],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[],"_postman_id":"91d3d8bb-9202-4417-9c9e-291bd74ebb92"}],"id":"611e9baa-bb51-4076-b0a8-6ca32d9bce9b","_postman_id":"611e9baa-bb51-4076-b0a8-6ca32d9bce9b","description":""},{"name":"Customer1_To_Customer2_Transactions","item":[{"name":"Positive Tests","item":[{"name":"TC_25_Deposit_Customer1_To_Customer2_1000TK","id":"ee211d79-6dda-4d3d-a715-4e0abe1601fa","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZGVudGlmaWVyIjoicmFoYWRtMTArMjYzNDAxQGdtYWlsLmNvbSIsInJvbGUiOiJDdXN0b21lciIsImlhdCI6MTc3ODkxNDQwOSwiZXhwIjoxNzc4OTE4MDA5fQ.HBSJI-Wn8qwIwRxXLwVKyZ3DOXJ-6xQwr1HSYkXZI_w","type":"text"},{"key":"X-AUTH-SECRET-KEY","value":"ROADTOSDET","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"from_account\": \"01314263401\",\n  \"to_account\": \"01314435675\",\n  \"amount\": 1000\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/transaction/sendmoney","urlObject":{"path":["transaction","sendmoney"],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[],"_postman_id":"ee211d79-6dda-4d3d-a715-4e0abe1601fa"}],"id":"bdcec8b9-c580-4795-a4ed-1b2d4d6abef7","_postman_id":"bdcec8b9-c580-4795-a4ed-1b2d4d6abef7","description":""},{"name":"Negative Tests","item":[{"name":"TC_26_P2P_Transfer_To_Self","event":[{"listen":"test","script":{"id":"1fadc8c1-d300-44ff-80a0-48986879166a","exec":["var jsonData = pm.response.json();","","pm.test(\"Self p2p error\", function(){","","    pm.expect(jsonData.message).to.contains(\"From account and to account cannot be the same\");","})","","pm.test(\"Status code is 400\", function(){","    pm.response.to.have.status(400);","})",""],"type":"text/javascript","packages":{},"requests":{}}}],"id":"83843799-eb1a-40a9-b996-eb087cffc8dc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZGVudGlmaWVyIjoicmFoYWRtMTArMjYzNDAxQGdtYWlsLmNvbSIsInJvbGUiOiJDdXN0b21lciIsImlhdCI6MTc3ODkxNDQwOSwiZXhwIjoxNzc4OTE4MDA5fQ.HBSJI-Wn8qwIwRxXLwVKyZ3DOXJ-6xQwr1HSYkXZI_w","type":"text"},{"key":"X-AUTH-SECRET-KEY","value":"ROADTOSDET","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"from_account\": \"01314263401\",\n  \"to_account\": \"01314263401\",\n  \"amount\": 1000\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/transaction/sendmoney","urlObject":{"path":["transaction","sendmoney"],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[],"_postman_id":"83843799-eb1a-40a9-b996-eb087cffc8dc"},{"name":"TC_27_P2P_Missing_Required_Fields","event":[{"listen":"test","script":{"id":"1fadc8c1-d300-44ff-80a0-48986879166a","exec":["var jsonData = pm.response.json();","","// pm.test(\"Self p2p error\", function(){","","//     pm.expect(jsonData.message).to.contains(\"From account and to account cannot be the same\");","// })","","pm.test(\"Status code is 400\", function(){","    pm.response.to.have.status(400);","})",""],"type":"text/javascript","packages":{},"requests":{}}}],"id":"721b60be-5ddc-46b2-a3a0-f29dc6fa9447","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZGVudGlmaWVyIjoicmFoYWRtMTArMjYzNDAxQGdtYWlsLmNvbSIsInJvbGUiOiJDdXN0b21lciIsImlhdCI6MTc3ODkxNDQwOSwiZXhwIjoxNzc4OTE4MDA5fQ.HBSJI-Wn8qwIwRxXLwVKyZ3DOXJ-6xQwr1HSYkXZI_w","type":"text"},{"key":"X-AUTH-SECRET-KEY","value":"ROADTOSDET","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"from_account\": \"01314263401\",\n  \"to_account\": \"01314263401\"\n  //\"amount\": 1000\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/transaction/sendmoney","urlObject":{"path":["transaction","sendmoney"],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[],"_postman_id":"721b60be-5ddc-46b2-a3a0-f29dc6fa9447"},{"name":"TC_28_P2P_Using_Admin_Token","event":[{"listen":"test","script":{"id":"1fadc8c1-d300-44ff-80a0-48986879166a","exec":["var jsonData = pm.response.json();","","// pm.test(\"Self p2p error\", function(){","","//     pm.expect(jsonData.message).to.contains(\"From account and to account cannot be the same\");","// })","","pm.test(\"Status code is 403\", function(){","    pm.response.to.have.status(403);","})",""],"type":"text/javascript","packages":{},"requests":{}}}],"id":"7209a0b3-f304-4e7b-8a4a-750efcd25a6b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZGVudGlmaWVyIjoiYWRtaW5AZG1vbmV5LmNvbSIsInJvbGUiOiJBZG1pbiIsImlhdCI6MTc3ODkxNDI1MCwiZXhwIjoxNzc4OTE3ODUwfQ.d3P_0geVuQsln0J2CU4F-PCym9hmghShZGWtXzcEFGo","type":"text"},{"key":"X-AUTH-SECRET-KEY","value":"ROADTOSDET","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"from_account\": \"01314263401\",\n  \"to_account\": \"01314263401\",\n  \"amount\": 1000\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/transaction/sendmoney","urlObject":{"path":["transaction","sendmoney"],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[],"_postman_id":"7209a0b3-f304-4e7b-8a4a-750efcd25a6b"}],"id":"003a2846-169b-4747-80d1-649a33b8692d","_postman_id":"003a2846-169b-4747-80d1-649a33b8692d","description":""}],"id":"6638b82a-9da3-4155-a790-05c795172824","_postman_id":"6638b82a-9da3-4155-a790-05c795172824","description":""},{"name":"Customer2 Login","item":[{"name":"Customer2_Primary_Login","id":"8ae2e305-c2d6-492a-a13b-6762e8c04378","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"email\": \"rahadm10+435675@gmail.com\",\n  \"password\": \"1234\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/user/login","urlObject":{"path":["user","login"],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[],"_postman_id":"8ae2e305-c2d6-492a-a13b-6762e8c04378"},{"name":"Gmail_List","event":[{"listen":"test","script":{"id":"76b18356-9fe2-4011-8e1f-4539efef6393","exec":["let jsonData = pm.response.json();","","let latestEmailId = jsonData.messages[0].id;","","pm.collectionVariables.set(\"EmailId\", latestEmailId);"],"type":"text/javascript","packages":{},"requests":{}}}],"id":"ae03feb8-e229-4c61-9cf6-d58914225062","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer ya29.a0AQvPyIMP9-3OgSQEa-X1fxSDDBxDMh9U8hgT3AByKu9rzQAo16eRku9WercjmN2j1lsIXmfBD9fIz5Di5tGSFqsYRokSnBsJ_-bIS4jjIrwOQxu4HOYwOtWpsQzly1I7qfKbotqrdb2bfWxeFLixMrTTPf_L1Smm5hVQnhvEoQ2y2S2s-1VHAW0U4yMI9C07WE7r9MMaCgYKAbgSARYSFQHGX2MioyJyHWhbq9AsGELLtpdbxQ0206","type":"text"}],"url":"https://gmail.googleapis.com/gmail/v1/users/me/messages","urlObject":{"protocol":"https","path":["gmail","v1","users","me","messages"],"host":["gmail","googleapis","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"ae03feb8-e229-4c61-9cf6-d58914225062"},{"name":"Read_Email","event":[{"listen":"prerequest","script":{"id":"dbad8af8-8c65-455a-a725-2696d91f570c","exec":[""],"type":"text/javascript","packages":{},"requests":{}}},{"listen":"test","script":{"id":"f59fae0e-9d15-4d4e-b9a1-4d174bc4d3d6","exec":["let jsonData = pm.response.json();","","let snippet = jsonData.snippet;","","let otp = snippet.match(/\\b\\d{4}\\b/)[0];","","pm.collectionVariables.set(\"otp\", otp);",""],"type":"text/javascript","packages":{},"requests":{}}}],"id":"37e840c3-97b8-4801-bfd1-6cc5c6316ca8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer ya29.a0AQvPyIMP9-3OgSQEa-X1fxSDDBxDMh9U8hgT3AByKu9rzQAo16eRku9WercjmN2j1lsIXmfBD9fIz5Di5tGSFqsYRokSnBsJ_-bIS4jjIrwOQxu4HOYwOtWpsQzly1I7qfKbotqrdb2bfWxeFLixMrTTPf_L1Smm5hVQnhvEoQ2y2S2s-1VHAW0U4yMI9C07WE7r9MMaCgYKAbgSARYSFQHGX2MioyJyHWhbq9AsGELLtpdbxQ0206","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://gmail.googleapis.com/gmail/v1/users/me/messages/19e2f902b4cae941","urlObject":{"protocol":"https","path":["gmail","v1","users","me","messages","19e2f902b4cae941"],"host":["gmail","googleapis","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"37e840c3-97b8-4801-bfd1-6cc5c6316ca8"},{"name":"Customer2_Verify_OTP","event":[{"listen":"test","script":{"id":"eec35a78-a512-459b-a625-bfd21b7d220a","exec":["var jsonData = pm.response.json();","","pm.test(\"Customer2 can login successfully\", function(){","","    pm.expect(jsonData.message).to.contains(\"Login successful\");","})","","pm.test(\"Status code is 200\", function(){","    pm.response.to.have.status(200);","})","","var token = jsonData.token;","pm.collectionVariables.set(\"Customer2Token\", token);",""],"type":"text/javascript","packages":{},"requests":{}}}],"id":"d69730ea-e4f3-4a18-8b57-e09e17c80d31","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer ya29.a0AQvPyIMP9-3OgSQEa-X1fxSDDBxDMh9U8hgT3AByKu9rzQAo16eRku9WercjmN2j1lsIXmfBD9fIz5Di5tGSFqsYRokSnBsJ_-bIS4jjIrwOQxu4HOYwOtWpsQzly1I7qfKbotqrdb2bfWxeFLixMrTTPf_L1Smm5hVQnhvEoQ2y2S2s-1VHAW0U4yMI9C07WE7r9MMaCgYKAbgSARYSFQHGX2MioyJyHWhbq9AsGELLtpdbxQ0206","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"identifier\": \"rahadm10+435675@gmail.com\",\n  \"otp\": \"8541\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/user/verify-otp","urlObject":{"path":["user","verify-otp"],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[],"_postman_id":"d69730ea-e4f3-4a18-8b57-e09e17c80d31"}],"id":"0881f3f1-0169-4ab6-87b0-6368da0d7864","_postman_id":"0881f3f1-0169-4ab6-87b0-6368da0d7864","description":""},{"name":"Cashout_Customer2_To_Agent","item":[{"name":"Positive Tests","item":[{"name":"TC_29_Cashout_Customer2_To_Agent_500TK","event":[{"listen":"test","script":{"id":"4aa79a02-ce09-445b-a720-a7a2b4d8352b","exec":["var jsonData = pm.response.json();","","pm.test(\"Customer2 can withdraw successfully\", function(){","","    pm.expect(jsonData.message).to.contains(\"Withdraw successful\");","})","","pm.test(\"Status code is 201\", function(){","    pm.response.to.have.status(201);","})",""],"type":"text/javascript","packages":{},"requests":{}}}],"id":"3d35104c-7500-4930-83d2-b314e596e9cb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZGVudGlmaWVyIjoicmFoYWRtMTArNDM1Njc1QGdtYWlsLmNvbSIsInJvbGUiOiJDdXN0b21lciIsImlhdCI6MTc3ODkxNDQ1MCwiZXhwIjoxNzc4OTE4MDUwfQ.BjkFxSCNNkYUaa1hPTNbtIEqi6HK8o9oKyFKmp2jr0U","type":"text"},{"key":"X-AUTH-SECRET-KEY","value":"ROADTOSDET","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"from_account\": \"01314435675\",\n  \"to_account\": \"01314573399\",\n  \"amount\": 500\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/transaction/withdraw","urlObject":{"path":["transaction","withdraw"],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[],"_postman_id":"3d35104c-7500-4930-83d2-b314e596e9cb"}],"id":"c0b6286d-02f5-4b07-9333-d0fd21987ffd","_postman_id":"c0b6286d-02f5-4b07-9333-d0fd21987ffd","description":""},{"name":"Negative Tests","item":[{"name":"TC_30_Cashout_Zero_Amount","event":[{"listen":"test","script":{"id":"4aa79a02-ce09-445b-a720-a7a2b4d8352b","exec":["var jsonData = pm.response.json();","","// pm.test(\"Customer2 can withdraw successfully\", function(){","","//     pm.expect(jsonData.message).to.contains(\"Withdraw successful\");","// })","","pm.test(\"Status code is 400\", function(){","    pm.response.to.have.status(400);","})",""],"type":"text/javascript","packages":{},"requests":{}}}],"id":"a5be50c6-3c3e-4697-b4da-61960043493d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZGVudGlmaWVyIjoicmFoYWRtMTArNDM1Njc1QGdtYWlsLmNvbSIsInJvbGUiOiJDdXN0b21lciIsImlhdCI6MTc3ODkxNDQ1MCwiZXhwIjoxNzc4OTE4MDUwfQ.BjkFxSCNNkYUaa1hPTNbtIEqi6HK8o9oKyFKmp2jr0U","type":"text"},{"key":"X-AUTH-SECRET-KEY","value":"ROADTOSDET","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"from_account\": \"01314435675\",\n  \"to_account\": \"01314573399\",\n  \"amount\": 0\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/transaction/withdraw","urlObject":{"path":["transaction","withdraw"],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[],"_postman_id":"a5be50c6-3c3e-4697-b4da-61960043493d"},{"name":"TC_31_Cashout_To_Another_Customer_Account","event":[{"listen":"test","script":{"id":"4aa79a02-ce09-445b-a720-a7a2b4d8352b","exec":["var jsonData = pm.response.json();","","// pm.test(\"Customer2 can withdraw successfully\", function(){","","//     pm.expect(jsonData.message).to.contains(\"Withdraw successful\");","// })","","pm.test(\"Status code is 400\", function(){","    pm.response.to.have.status(400);","})",""],"type":"text/javascript","packages":{},"requests":{}}}],"id":"8ea63b2f-183f-4fe5-906c-dd21ee0635a3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZGVudGlmaWVyIjoicmFoYWRtMTArNDM1Njc1QGdtYWlsLmNvbSIsInJvbGUiOiJDdXN0b21lciIsImlhdCI6MTc3ODkxNDQ1MCwiZXhwIjoxNzc4OTE4MDUwfQ.BjkFxSCNNkYUaa1hPTNbtIEqi6HK8o9oKyFKmp2jr0U","type":"text"},{"key":"X-AUTH-SECRET-KEY","value":"ROADTOSDET","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"from_account\": \"01314435675\",\n  \"to_account\": \"01314263401\",\n  \"amount\": 100\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/transaction/withdraw","urlObject":{"path":["transaction","withdraw"],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[],"_postman_id":"8ea63b2f-183f-4fe5-906c-dd21ee0635a3"},{"name":"TC_32_Cashout_Negative_Amount","event":[{"listen":"test","script":{"id":"4aa79a02-ce09-445b-a720-a7a2b4d8352b","exec":["var jsonData = pm.response.json();","","// pm.test(\"Customer2 can withdraw successfully\", function(){","","//     pm.expect(jsonData.message).to.contains(\"Withdraw successful\");","// })","","pm.test(\"Status code is 400\", function(){","    pm.response.to.have.status(400);","})",""],"type":"text/javascript","packages":{},"requests":{}}}],"id":"d10ca31c-93ab-4b0f-b9fa-bf2f354ba7b5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZGVudGlmaWVyIjoicmFoYWRtMTArNDM1Njc1QGdtYWlsLmNvbSIsInJvbGUiOiJDdXN0b21lciIsImlhdCI6MTc3ODkxNDQ1MCwiZXhwIjoxNzc4OTE4MDUwfQ.BjkFxSCNNkYUaa1hPTNbtIEqi6HK8o9oKyFKmp2jr0U","type":"text"},{"key":"X-AUTH-SECRET-KEY","value":"ROADTOSDET","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"from_account\": \"01314435675\",\n  \"to_account\": \"01314573399\",\n  \"amount\": -100\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/transaction/withdraw","urlObject":{"path":["transaction","withdraw"],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[],"_postman_id":"d10ca31c-93ab-4b0f-b9fa-bf2f354ba7b5"},{"name":"TC_33_Cashout_Using_Agent_Token_Self","event":[{"listen":"test","script":{"id":"4aa79a02-ce09-445b-a720-a7a2b4d8352b","exec":["var jsonData = pm.response.json();","","// pm.test(\"Customer2 can withdraw successfully\", function(){","","//     pm.expect(jsonData.message).to.contains(\"Withdraw successful\");","// })","","pm.test(\"Status code is 403\", function(){","    pm.response.to.have.status(403);","})",""],"type":"text/javascript","packages":{},"requests":{}}}],"id":"bee3e5a9-df10-45c0-9da1-02351fd4d75d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZGVudGlmaWVyIjoicmFoYWRtMTArNTczMzk5QGdtYWlsLmNvbSIsInJvbGUiOiJBZ2VudCIsImlhdCI6MTc3ODkxNDM1NywiZXhwIjoxNzc4OTE3OTU3fQ.c9pKHmdlkhw4AbEftrtay_6r68MDRPlsbYfD0U80sgk","type":"text"},{"key":"X-AUTH-SECRET-KEY","value":"ROADTOSDET","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"from_account\": \"01314435675\",\n  \"to_account\": \"01314573399\",\n  \"amount\": 100\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/transaction/withdraw","urlObject":{"path":["transaction","withdraw"],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[],"_postman_id":"bee3e5a9-df10-45c0-9da1-02351fd4d75d"}],"id":"ab16e36e-eebe-4809-8379-b469331391a6","_postman_id":"ab16e36e-eebe-4809-8379-b469331391a6","description":""}],"id":"7a2c7da9-281d-498d-9b33-949bbd247b9c","_postman_id":"7a2c7da9-281d-498d-9b33-949bbd247b9c","description":""}],"event":[{"listen":"prerequest","script":{"id":"256e82c9-b879-4b7f-b4aa-618e2d65fbcf","type":"text/javascript","packages":{},"requests":{},"exec":[""]}},{"listen":"test","script":{"id":"958debce-8434-4b7a-ab34-b8d0dc4fcbe3","type":"text/javascript","packages":{},"requests":{},"exec":[""]}}],"variable":[{"key":"BaseUrl","value":"http://localhost:5000"},{"key":"SecretKey","value":"ROADTOSDET"},{"key":"AdminToken","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZGVudGlmaWVyIjoiYWRtaW5AZG1vbmV5LmNvbSIsInJvbGUiOiJBZG1pbiIsImlhdCI6MTc3ODkxNDI1MCwiZXhwIjoxNzc4OTE3ODUwfQ.d3P_0geVuQsln0J2CU4F-PCym9hmghShZGWtXzcEFGo"},{"key":"RandomId","value":435675},{"key":"RandomPhoneNumber","value":"01314435675"},{"key":"Agent_Id","value":300},{"key":"Agent_Email","value":"rahadm10+573399@gmail.com"},{"key":"Agent_PhoneNumber","value":"01314573399"},{"key":"Customer1_Id","value":301},{"key":"Customer1_Email","value":"rahadm10+263401@gmail.com"},{"key":"Customer1_PhoneNumber","value":"01314263401"},{"key":"Customer2_Id","value":302},{"key":"Customer2_Email","value":"rahadm10+435675@gmail.com"},{"key":"Customer2_PhoneNumber","value":"01314435675"},{"key":"SystemToken","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZGVudGlmaWVyIjoiU1lTVEVNIiwicm9sZSI6IkFnZW50IiwiaWF0IjoxNzc4OTE0MzMxLCJleHAiOjE3Nzg5MTc5MzF9.inojVun9cn9lluWQqH-zfML2DCxAw-HteZ4H_A-DkGs"},{"key":"GmailToken","value":"ya29.a0AQvPyIMP9-3OgSQEa-X1fxSDDBxDMh9U8hgT3AByKu9rzQAo16eRku9WercjmN2j1lsIXmfBD9fIz5Di5tGSFqsYRokSnBsJ_-bIS4jjIrwOQxu4HOYwOtWpsQzly1I7qfKbotqrdb2bfWxeFLixMrTTPf_L1Smm5hVQnhvEoQ2y2S2s-1VHAW0U4yMI9C07WE7r9MMaCgYKAbgSARYSFQHGX2MioyJyHWhbq9AsGELLtpdbxQ0206"},{"key":"EmailId","value":"19e2f902b4cae941"},{"key":"otp","value":"8541"},{"key":"AgentToken","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZGVudGlmaWVyIjoicmFoYWRtMTArNTczMzk5QGdtYWlsLmNvbSIsInJvbGUiOiJBZ2VudCIsImlhdCI6MTc3ODkxNDM1NywiZXhwIjoxNzc4OTE3OTU3fQ.c9pKHmdlkhw4AbEftrtay_6r68MDRPlsbYfD0U80sgk"},{"key":"Customer1Token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZGVudGlmaWVyIjoicmFoYWRtMTArMjYzNDAxQGdtYWlsLmNvbSIsInJvbGUiOiJDdXN0b21lciIsImlhdCI6MTc3ODkxNDQwOSwiZXhwIjoxNzc4OTE4MDA5fQ.HBSJI-Wn8qwIwRxXLwVKyZ3DOXJ-6xQwr1HSYkXZI_w"},{"key":"Customer2Token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZGVudGlmaWVyIjoicmFoYWRtMTArNDM1Njc1QGdtYWlsLmNvbSIsInJvbGUiOiJDdXN0b21lciIsImlhdCI6MTc3ODkxNDQ1MCwiZXhwIjoxNzc4OTE4MDUwfQ.BjkFxSCNNkYUaa1hPTNbtIEqi6HK8o9oKyFKmp2jr0U"}]}