{"info":{"_postman_id":"d42b6e95-e733-4a64-a5da-9694b6378332","name":"Lend Disk API","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"45782409","collectionId":"d42b6e95-e733-4a64-a5da-9694b6378332","publishedId":"2sB2x5GCZp","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2025-06-10T19:55:08.000Z"},"item":[{"name":"Auth","item":[{"name":"Signin","event":[{"listen":"test","script":{"id":"653396cd-0d7a-4136-89bb-b117907e5d92","exec":["// Ensure login succeeded","pm.test(\"Login successful\", function () {","    pm.response.to.have.status(201);","});","","// Parse response","const json = pm.response.json();","","/**"," * ========================="," * AUTH"," * ========================="," */","pm.environment.set(\"access_token\", json.data.accessToken.token);","pm.environment.set(\"token_type\", json.data.accessToken.token_type);","","/**"," * ========================="," * USER"," * ========================="," */","pm.environment.set(\"user_id\", json.data.user.id);","pm.environment.set(\"user_email\", json.data.user.email);","pm.environment.set(\"user_role\", json.data.user.role);","pm.environment.set(\"is_super_admin\", json.data.user.is_super_admin);","","/**"," * ========================="," * TENANT"," * ========================="," */","pm.environment.set(\"tenant_id\", json.data.tenant.id);","pm.environment.set(\"tenant_name\", json.data.tenant.name);","pm.environment.set(\"tenant_code\", json.data.tenant.code);","pm.environment.set(\"tenant_subdomain\", json.data.tenant.subdomain);","pm.environment.set(\"tenant_database\", json.data.tenant.database_name);","pm.environment.set(\"tenant_status\", json.data.tenant.status);","pm.environment.set(\"tenant_setup_status\", json.data.tenant.setup_status);","","/**"," * ========================="," * OPTIONAL: ADMIN META"," * (only if present)"," * ========================="," */","if (json.data.tenant.data) {","    pm.environment.set(","        \"tenant_admin_user_id\",","        json.data.tenant.data.admin_user_id","    );","}","","/**"," * ========================="," * DEBUG"," * ========================="," */","console.log(\"Login variables updated\");",""],"type":"text/javascript","packages":{},"requests":{}}}],"id":"c07cf920-c0b7-4ce1-910f-3d00e9ed3571","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"email\":\"{{user_email}}\",\n    \"password\":\"{{password}}\"\n}","options":{"raw":{"language":"json"}}},"url":"/auth/signin","urlObject":{"path":["auth","signin"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"c07cf920-c0b7-4ce1-910f-3d00e9ed3571"},{"name":"Activate Email","id":"c9d6ae95-4e48-443b-9ccb-06f18411bb61","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"/auth/activate-email/{{emailActivationToken}}","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"d42b6e95-e733-4a64-a5da-9694b6378332","id":"d42b6e95-e733-4a64-a5da-9694b6378332","name":"Lend Disk API","type":"collection"}},"urlObject":{"path":["auth","activate-email","{{emailActivationToken}}"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"c9d6ae95-4e48-443b-9ccb-06f18411bb61"},{"name":"Forgot Password","id":"387b40ca-01a2-4fcb-b3d6-025a96f44bf2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"email\":\"richarddaaki4@gmail.com\"\n   }","options":{"raw":{"language":"json"}}},"url":"/auth/forgot-password","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"d42b6e95-e733-4a64-a5da-9694b6378332","id":"d42b6e95-e733-4a64-a5da-9694b6378332","name":"Lend Disk API","type":"collection"}},"urlObject":{"path":["auth","forgot-password"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"387b40ca-01a2-4fcb-b3d6-025a96f44bf2"},{"name":"Set Password","id":"e567419d-068a-4e96-aab6-b24624dc64f3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"password\":\"!Ln20lnnow\",\n    \"password_confirmation\":\"!Ln20lnnow\",\n    \"token\":\"f507df46-2af8-4646-9bf9-2f9e07d0fe59\"\n   }","options":{"raw":{"language":"json"}}},"url":"/auth/set-password","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"d42b6e95-e733-4a64-a5da-9694b6378332","id":"d42b6e95-e733-4a64-a5da-9694b6378332","name":"Lend Disk API","type":"collection"}},"urlObject":{"path":["auth","set-password"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"e567419d-068a-4e96-aab6-b24624dc64f3"},{"name":"Register","event":[{"listen":"test","script":{"id":"ccb68900-a3c3-442f-9ec2-5edecf2940df","exec":["// Parse response","const json = pm.response.json();","","// USER","pm.environment.set(\"user_id\", json.data.user.id);","pm.environment.set(\"user_email\", json.data.user.email);","pm.environment.set(\"user_role\", json.data.user.role);","","// TENANT","pm.environment.set(\"tenant_id\", json.data.tenant.id);","pm.environment.set(\"tenant_name\", json.data.tenant.name);","pm.environment.set(\"tenant_code\", json.data.tenant.code);","pm.environment.set(\"tenant_subdomain\", json.data.tenant.subdomain);","pm.environment.set(\"tenant_database\", json.data.tenant.database_name);","","// AUTH TOKEN","pm.environment.set(\"access_token\", json.data.accessToken.token);","pm.environment.set(\"token_type\", json.data.accessToken.token_type);","","// ROLE ID (first role)","if (json.data.roles && json.data.roles.length > 0) {","    pm.environment.set(\"role_id\", json.data.roles[0].id);","    pm.environment.set(\"role_name\", json.data.roles[0].name);","}","","// LOG FOR DEBUG","console.log(\"Variables saved successfully\");",""],"type":"text/javascript","packages":{},"requests":{}}}],"id":"db97d167-187b-4108-8127-16fb7eabe573","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"email\":\"richarddaaki4@gmail.com\",\n    \"company_name\":\"Kwetelena Fincial Services\",\n    \"first_name\":\"Waaki\",\n    \"last_name\":\"Jul\",\n    \"agree_to_terms_and_conditions\":\"on\"\n   }","options":{"raw":{"language":"json"}}},"url":"/auth/register","urlObject":{"path":["auth","register"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"db97d167-187b-4108-8127-16fb7eabe573"}],"id":"dfc7176c-3017-4748-8a0b-8a90efca4c3b","_postman_id":"dfc7176c-3017-4748-8a0b-8a90efca4c3b","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"d42b6e95-e733-4a64-a5da-9694b6378332","id":"d42b6e95-e733-4a64-a5da-9694b6378332","name":"Lend Disk API","type":"collection"}}},{"name":"Tenant","item":[{"name":"Branches","item":[{"name":"Get All Branches","id":"7dcbc233-ee43-4463-bc66-01496c009878","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"X-Tenant-ID","value":"{{tenant_id}}","type":"text"}],"url":"/branches","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"d42b6e95-e733-4a64-a5da-9694b6378332","id":"d42b6e95-e733-4a64-a5da-9694b6378332","name":"Lend Disk API","type":"collection"}},"urlObject":{"path":["branches"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"7dcbc233-ee43-4463-bc66-01496c009878"},{"name":"Create Branch","id":"b6fbbeaf-8ec8-4f86-bea7-c96a509f3eeb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"X-Tenant-ID","value":"","type":"text"}],"body":{"mode":"raw","raw":"{\n     \"name\":\"Head Office\",\n     \"code\":\"HQ\",\n     \"address\":\"Plot 2 Bombo Road Kla\",\n     \"phone\":\"+256771397135\",\n     \"email\":\"info@lenddisk.com\",\n     \"manager_id\":null,\n     \"is_active\":true,\n     \"min_loan_amount\":100000,\n     \"max_loan_amount\":10000000,\n     \"min_interest_rate\":12.29,\n     \"max_interest_rate\":2,\n     \"capital_amount\":10000000,\n     \"opening_date\":\"2025-12-29\",\n     \"latitude\":36.688573,\n     \"longitude\":0.04311,\n     \"metadata\":null\n  \n}","options":{"raw":{"language":"json"}}},"url":"/branches","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"d42b6e95-e733-4a64-a5da-9694b6378332","id":"d42b6e95-e733-4a64-a5da-9694b6378332","name":"Lend Disk API","type":"collection"}},"urlObject":{"path":["branches"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"b6fbbeaf-8ec8-4f86-bea7-c96a509f3eeb"}],"id":"d43bbbaf-03cc-456f-bda9-f3f153846d74","_postman_id":"d43bbbaf-03cc-456f-bda9-f3f153846d74","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"d42b6e95-e733-4a64-a5da-9694b6378332","id":"d42b6e95-e733-4a64-a5da-9694b6378332","name":"Lend Disk API","type":"collection"}}},{"name":"RepaymentCycles","item":[{"name":"Create Repayment cycle","id":"3877b9f2-4d5d-4241-9a56-3f19427cf814","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"X-Tenant-ID","value":"{{tenant_id}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"name\":\"Monthly\",\n    \"days\":7,\n    \"is_default\":true\n\n}","options":{"raw":{"language":"json"}}},"url":"/repayment-cycles","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"d42b6e95-e733-4a64-a5da-9694b6378332","id":"d42b6e95-e733-4a64-a5da-9694b6378332","name":"Lend Disk API","type":"collection"}},"urlObject":{"path":["repayment-cycles"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"3877b9f2-4d5d-4241-9a56-3f19427cf814"},{"name":"Get Repayment Cycles","id":"a85f15f4-78e3-4170-bde6-7bf656be3e3f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"X-Tenant-ID","value":"{{tenant_id}}","type":"text"}],"url":"/repayment-cycles","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"d42b6e95-e733-4a64-a5da-9694b6378332","id":"d42b6e95-e733-4a64-a5da-9694b6378332","name":"Lend Disk API","type":"collection"}},"urlObject":{"path":["repayment-cycles"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"a85f15f4-78e3-4170-bde6-7bf656be3e3f"},{"name":"Get a Repayment Cycle","id":"54f684d6-ff4e-4d25-a85e-7e40d2195dda","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"X-Tenant-ID","value":"{{tenantId}}","type":"text"}],"url":"/repayment-cycles/{{repaymentCycleId}}","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"d42b6e95-e733-4a64-a5da-9694b6378332","id":"d42b6e95-e733-4a64-a5da-9694b6378332","name":"Lend Disk API","type":"collection"}},"urlObject":{"path":["repayment-cycles","{{repaymentCycleId}}"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"54f684d6-ff4e-4d25-a85e-7e40d2195dda"},{"name":"Edit Repaymet Cycle","id":"19b3b0b5-02c3-4048-ad49-8ffa7fbe2b93","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"X-Tenant-ID","value":"{{tenantId}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"name\":\"Monthly\",\n    \"days\":28,\n    \"is_default\":true\n}","options":{"raw":{"language":"json"}}},"url":"/repayment-cycles/{{repaymentCycleId}}","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"d42b6e95-e733-4a64-a5da-9694b6378332","id":"d42b6e95-e733-4a64-a5da-9694b6378332","name":"Lend Disk API","type":"collection"}},"urlObject":{"path":["repayment-cycles","{{repaymentCycleId}}"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"19b3b0b5-02c3-4048-ad49-8ffa7fbe2b93"},{"name":"Delete Repayment Cycle","id":"ff0d4900-325a-46c7-b482-d3358400c14e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"X-Tenant-ID","value":"{{tenantId}}","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"/repayment-cycles/{{repaymentCycleId}}","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"d42b6e95-e733-4a64-a5da-9694b6378332","id":"d42b6e95-e733-4a64-a5da-9694b6378332","name":"Lend Disk API","type":"collection"}},"urlObject":{"path":["repayment-cycles","{{repaymentCycleId}}"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"ff0d4900-325a-46c7-b482-d3358400c14e"}],"id":"e93e0f3c-467f-41be-9870-ed680a04e08d","_postman_id":"e93e0f3c-467f-41be-9870-ed680a04e08d","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"d42b6e95-e733-4a64-a5da-9694b6378332","id":"d42b6e95-e733-4a64-a5da-9694b6378332","name":"Lend Disk API","type":"collection"}}},{"name":"Create Tenant","id":"93ba92fc-a82a-423d-9470-0fa523dffee4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"name\": \"Kibiika Finacial Solutions\",\n    \"contact_person\": \"Daaki Benjamin\",\n    \"phone\": \"0771397135\",\n    \"email\": \"benjamindaaki@gmail.com\",\n    \"plan_id\":\"4c2bc5f6-c1a3-41bf-b110-ebd4bfdc5e53\"\n}","options":{"raw":{"language":"json"}}},"url":"/tenants","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"d42b6e95-e733-4a64-a5da-9694b6378332","id":"d42b6e95-e733-4a64-a5da-9694b6378332","name":"Lend Disk API","type":"collection"}},"urlObject":{"path":["tenants"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"93ba92fc-a82a-423d-9470-0fa523dffee4"},{"name":"Get Tenants","id":"95d91095-638e-44c7-9ef7-c899194e771b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":"/tenants","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"d42b6e95-e733-4a64-a5da-9694b6378332","id":"d42b6e95-e733-4a64-a5da-9694b6378332","name":"Lend Disk API","type":"collection"}},"urlObject":{"path":["tenants"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"95d91095-638e-44c7-9ef7-c899194e771b"},{"name":"Get Tenant","id":"342396f0-e024-4d33-a8a6-1e270dfc5e6b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":"/tenants/{{tenantId}}","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"d42b6e95-e733-4a64-a5da-9694b6378332","id":"d42b6e95-e733-4a64-a5da-9694b6378332","name":"Lend Disk API","type":"collection"}},"urlObject":{"path":["tenants","{{tenantId}}"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"342396f0-e024-4d33-a8a6-1e270dfc5e6b"},{"name":"Get Tenant Onboarding Status","id":"765dd562-ad13-4968-9450-5955ad8d9a84","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":"/tenants/{{tenantId}}/status","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"d42b6e95-e733-4a64-a5da-9694b6378332","id":"d42b6e95-e733-4a64-a5da-9694b6378332","name":"Lend Disk API","type":"collection"}},"urlObject":{"path":["tenants","{{tenantId}}","status"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"765dd562-ad13-4968-9450-5955ad8d9a84"}],"id":"75d6fc4e-a54e-4177-bbae-f8e06861d4a8","_postman_id":"75d6fc4e-a54e-4177-bbae-f8e06861d4a8","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"d42b6e95-e733-4a64-a5da-9694b6378332","id":"d42b6e95-e733-4a64-a5da-9694b6378332","name":"Lend Disk API","type":"collection"}}},{"name":"Users","item":[{"name":"All Users","id":"4dd705eb-c8d4-48ad-81b3-846f054b3b8c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"email\":\"daaki@texolenergies.com\",\n    \"password\":\"password\"\n}"},"url":"/users","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"d42b6e95-e733-4a64-a5da-9694b6378332","id":"d42b6e95-e733-4a64-a5da-9694b6378332","name":"Lend Disk API","type":"collection"}},"urlObject":{"path":["users"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"4dd705eb-c8d4-48ad-81b3-846f054b3b8c"},{"name":"Reclaim Permissions","id":"25c64586-f9ba-49f5-920f-121d68cb63ba","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"url":"/users/{{user_id}}/reclaim-permissions","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"d42b6e95-e733-4a64-a5da-9694b6378332","id":"d42b6e95-e733-4a64-a5da-9694b6378332","name":"Lend Disk API","type":"collection"}},"urlObject":{"path":["users","{{user_id}}","reclaim-permissions"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"25c64586-f9ba-49f5-920f-121d68cb63ba"},{"name":"Get User","id":"f4e86581-8a4b-4e0b-85a4-903862c2ce11","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/users/{{user_id}}","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"d42b6e95-e733-4a64-a5da-9694b6378332","id":"d42b6e95-e733-4a64-a5da-9694b6378332","name":"Lend Disk API","type":"collection"}},"urlObject":{"path":["users","{{user_id}}"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"f4e86581-8a4b-4e0b-85a4-903862c2ce11"},{"name":"Block User","id":"5530e97b-cd30-4265-b826-d82e411dc3bd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"url":"/users/{{user_id}}/block","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"d42b6e95-e733-4a64-a5da-9694b6378332","id":"d42b6e95-e733-4a64-a5da-9694b6378332","name":"Lend Disk API","type":"collection"}},"urlObject":{"path":["users","{{user_id}}","block"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"5530e97b-cd30-4265-b826-d82e411dc3bd"},{"name":"UnBlock User","id":"393d2672-0b64-492c-a27e-b834dfb6104c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"url":"/users/{{user_id}}/unblock","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"d42b6e95-e733-4a64-a5da-9694b6378332","id":"d42b6e95-e733-4a64-a5da-9694b6378332","name":"Lend Disk API","type":"collection"}},"urlObject":{"path":["users","{{user_id}}","unblock"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"393d2672-0b64-492c-a27e-b834dfb6104c"},{"name":"Get User Recent Activity Logs","id":"2fc6f181-ce1f-4ec0-acbd-283b36e16694","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"X-Tenant-Id","value":"{{tenant_id}}","type":"text"}],"url":"/users/{{user_id}}/recent-activity","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"d42b6e95-e733-4a64-a5da-9694b6378332","id":"d42b6e95-e733-4a64-a5da-9694b6378332","name":"Lend Disk API","type":"collection"}},"urlObject":{"path":["users","{{user_id}}","recent-activity"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"2fc6f181-ce1f-4ec0-acbd-283b36e16694"},{"name":"Update User","id":"fe6510dc-592d-4de0-9467-cb60c081b023","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"first_name\":\"New First\",\n    \"other_names\":\"New Other Names\"\n}","options":{"raw":{"language":"json"}}},"url":"/users/{{user_id}}","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"d42b6e95-e733-4a64-a5da-9694b6378332","id":"d42b6e95-e733-4a64-a5da-9694b6378332","name":"Lend Disk API","type":"collection"}},"urlObject":{"path":["users","{{user_id}}"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"fe6510dc-592d-4de0-9467-cb60c081b023"},{"name":"Assign User Role","id":"4c872572-9e67-49c9-8ccd-32fbb4cf0c70","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"role_id\":\"{{role_id}}\"\n}","options":{"raw":{"language":"json"}}},"url":"/users/{{user_id}}/assign-role","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"d42b6e95-e733-4a64-a5da-9694b6378332","id":"d42b6e95-e733-4a64-a5da-9694b6378332","name":"Lend Disk API","type":"collection"}},"urlObject":{"path":["users","{{user_id}}","assign-role"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"4c872572-9e67-49c9-8ccd-32fbb4cf0c70"},{"name":"Assign User Roles","id":"e5b26078-5f39-418c-9e0d-7a3045402019","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"role_ids\":[\"{{role_id}}\"]\n    \n}","options":{"raw":{"language":"json"}}},"url":"/users/{{user_id}}/assign-roles","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"d42b6e95-e733-4a64-a5da-9694b6378332","id":"d42b6e95-e733-4a64-a5da-9694b6378332","name":"Lend Disk API","type":"collection"}},"urlObject":{"path":["users","{{user_id}}","assign-roles"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"e5b26078-5f39-418c-9e0d-7a3045402019"},{"name":"Assign User Permissions","id":"b91c4b7e-88cc-4c20-8311-d70c9c4b6972","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"permissions\":[]\n    \n}","options":{"raw":{"language":"json"}}},"url":"/users/{{user_id}}/assign-permissions","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"d42b6e95-e733-4a64-a5da-9694b6378332","id":"d42b6e95-e733-4a64-a5da-9694b6378332","name":"Lend Disk API","type":"collection"}},"urlObject":{"path":["users","{{user_id}}","assign-permissions"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"b91c4b7e-88cc-4c20-8311-d70c9c4b6972"},{"name":"Revoke User Role","id":"934266ed-b267-4cb8-84c9-c6f788cca6ba","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"role_id\":\"{{role_id}}\"\n    \n}","options":{"raw":{"language":"json"}}},"url":"/users/{{user_id}}/revoke-role","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"d42b6e95-e733-4a64-a5da-9694b6378332","id":"d42b6e95-e733-4a64-a5da-9694b6378332","name":"Lend Disk API","type":"collection"}},"urlObject":{"path":["users","{{user_id}}","revoke-role"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"934266ed-b267-4cb8-84c9-c6f788cca6ba"},{"name":"Revoke Permissions","id":"df780601-a6aa-435d-b88a-758c58cf2906","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"permissions\":[]\n    \n}","options":{"raw":{"language":"json"}}},"url":"/users/{{user_id}}/revoke-permissions","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"d42b6e95-e733-4a64-a5da-9694b6378332","id":"d42b6e95-e733-4a64-a5da-9694b6378332","name":"Lend Disk API","type":"collection"}},"urlObject":{"path":["users","{{user_id}}","revoke-permissions"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"df780601-a6aa-435d-b88a-758c58cf2906"},{"name":"Get Roles","id":"d00db428-d5a4-47e7-befc-be518ae8fbbf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"permissions\":[]\n    \n}","options":{"raw":{"language":"json"}}},"url":"/users/{{user_id}}/get-roles","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"d42b6e95-e733-4a64-a5da-9694b6378332","id":"d42b6e95-e733-4a64-a5da-9694b6378332","name":"Lend Disk API","type":"collection"}},"urlObject":{"path":["users","{{user_id}}","get-roles"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"d00db428-d5a4-47e7-befc-be518ae8fbbf"},{"name":"Get Permissions","id":"da74d6b8-8f6d-404e-907a-c98c07fa5667","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"permissions\":[]\n    \n}","options":{"raw":{"language":"json"}}},"url":"/users/{{user_id}}/get-permissions","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"d42b6e95-e733-4a64-a5da-9694b6378332","id":"d42b6e95-e733-4a64-a5da-9694b6378332","name":"Lend Disk API","type":"collection"}},"urlObject":{"path":["users","{{user_id}}","get-permissions"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"da74d6b8-8f6d-404e-907a-c98c07fa5667"}],"id":"57c1b142-0e32-4f7b-933e-cb9b52074c41","_postman_id":"57c1b142-0e32-4f7b-933e-cb9b52074c41","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"d42b6e95-e733-4a64-a5da-9694b6378332","id":"d42b6e95-e733-4a64-a5da-9694b6378332","name":"Lend Disk API","type":"collection"}}},{"name":"Plans","item":[{"name":"Get All Plans","id":"17b75403-d3c0-4850-a148-d74738c4b303","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"email\":\"daaki@texolenergies.com\",\n    \"password\":\"password\"\n}"},"url":"/plans","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"d42b6e95-e733-4a64-a5da-9694b6378332","id":"d42b6e95-e733-4a64-a5da-9694b6378332","name":"Lend Disk API","type":"collection"}},"urlObject":{"path":["plans"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"17b75403-d3c0-4850-a148-d74738c4b303"},{"name":"Create Plan","id":"f6674fce-ad5c-4fde-a328-4c1b294ee4df","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"Premium\",\n  \"description\":\"For Medium busines\",\n        \"monthly_price\": 399,\n        \"annual_price\": 3990,\n        \"max_users\": 20,\n        \"max_members\": 20000,\n        \"max_loans\": 2000,\n        \"features\": [\n            \"All Features Included\"\n        ]\n    }","options":{"raw":{"language":"json"}}},"url":"/plans","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"d42b6e95-e733-4a64-a5da-9694b6378332","id":"d42b6e95-e733-4a64-a5da-9694b6378332","name":"Lend Disk API","type":"collection"}},"urlObject":{"path":["plans"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"f6674fce-ad5c-4fde-a328-4c1b294ee4df"}],"id":"4a321406-b190-448c-b5ab-285e81222b94","_postman_id":"4a321406-b190-448c-b5ab-285e81222b94","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"d42b6e95-e733-4a64-a5da-9694b6378332","id":"d42b6e95-e733-4a64-a5da-9694b6378332","name":"Lend Disk API","type":"collection"}}},{"name":"Roles","item":[{"name":"Get All Roles","id":"5cadeb2c-4c45-44f8-98bb-405085fb6540","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/roles","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"d42b6e95-e733-4a64-a5da-9694b6378332","id":"d42b6e95-e733-4a64-a5da-9694b6378332","name":"Lend Disk API","type":"collection"}},"urlObject":{"path":["roles"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"5cadeb2c-4c45-44f8-98bb-405085fb6540"},{"name":"Create Role","id":"6b7fa8d8-66f6-4fd5-8f19-4c540e2ad0d3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"name\":\"Accountant\"\n}","options":{"raw":{"language":"json"}}},"url":"/roles","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"d42b6e95-e733-4a64-a5da-9694b6378332","id":"d42b6e95-e733-4a64-a5da-9694b6378332","name":"Lend Disk API","type":"collection"}},"urlObject":{"path":["roles"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"6b7fa8d8-66f6-4fd5-8f19-4c540e2ad0d3"},{"name":"Get Role","id":"82f70496-d51d-4734-b994-bfcaefdf5de3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/roles/{{role_id}}","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"d42b6e95-e733-4a64-a5da-9694b6378332","id":"d42b6e95-e733-4a64-a5da-9694b6378332","name":"Lend Disk API","type":"collection"}},"urlObject":{"path":["roles","{{role_id}}"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"82f70496-d51d-4734-b994-bfcaefdf5de3"},{"name":"Update Role","id":"cab7dde2-2744-4b79-8f5d-c46a97ea86ed","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"name\":\"Owner\"\n}","options":{"raw":{"language":"json"}}},"url":"/roles/{{role_id}}","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"d42b6e95-e733-4a64-a5da-9694b6378332","id":"d42b6e95-e733-4a64-a5da-9694b6378332","name":"Lend Disk API","type":"collection"}},"urlObject":{"path":["roles","{{role_id}}"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"cab7dde2-2744-4b79-8f5d-c46a97ea86ed"},{"name":"Assign Permissions to Role","id":"d055eb01-48a0-45ac-b8b3-030c431aefa0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"permissions\":[\n        \n    ]\n}","options":{"raw":{"language":"json"}}},"url":"/roles/{{role_id}}/assign-permissions","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"d42b6e95-e733-4a64-a5da-9694b6378332","id":"d42b6e95-e733-4a64-a5da-9694b6378332","name":"Lend Disk API","type":"collection"}},"urlObject":{"path":["roles","{{role_id}}","assign-permissions"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"d055eb01-48a0-45ac-b8b3-030c431aefa0"},{"name":"Revoke Permissions to Role","id":"aeca7959-2b5e-4546-b7b7-1ee74a4b483e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"permissions\":[\n        \n    ]\n}","options":{"raw":{"language":"json"}}},"url":"/roles/{{role_id}}/revoke-permissions","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"d42b6e95-e733-4a64-a5da-9694b6378332","id":"d42b6e95-e733-4a64-a5da-9694b6378332","name":"Lend Disk API","type":"collection"}},"urlObject":{"path":["roles","{{role_id}}","revoke-permissions"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"aeca7959-2b5e-4546-b7b7-1ee74a4b483e"},{"name":"Delete Role","id":"82cd0a29-6221-4b12-99ac-30ed65b0fb78","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"name\":\"Owner\"\n}","options":{"raw":{"language":"json"}}},"url":"/roles/{{role_id}}","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"d42b6e95-e733-4a64-a5da-9694b6378332","id":"d42b6e95-e733-4a64-a5da-9694b6378332","name":"Lend Disk API","type":"collection"}},"urlObject":{"path":["roles","{{role_id}}"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"82cd0a29-6221-4b12-99ac-30ed65b0fb78"}],"id":"9b9ee47b-a8a0-4e15-9f68-4c018939caf1","_postman_id":"9b9ee47b-a8a0-4e15-9f68-4c018939caf1","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"d42b6e95-e733-4a64-a5da-9694b6378332","id":"d42b6e95-e733-4a64-a5da-9694b6378332","name":"Lend Disk API","type":"collection"}}},{"name":"Permissions","item":[{"name":"Get All Permissions","id":"4479eed2-39f4-4735-bc7d-acb2c718c8e2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/permissions","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"d42b6e95-e733-4a64-a5da-9694b6378332","id":"d42b6e95-e733-4a64-a5da-9694b6378332","name":"Lend Disk API","type":"collection"}},"urlObject":{"path":["permissions"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"4479eed2-39f4-4735-bc7d-acb2c718c8e2"}],"id":"7c76ce6c-e99f-4d40-9403-c7a988f5c0fe","_postman_id":"7c76ce6c-e99f-4d40-9403-c7a988f5c0fe","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"d42b6e95-e733-4a64-a5da-9694b6378332","id":"d42b6e95-e733-4a64-a5da-9694b6378332","name":"Lend Disk API","type":"collection"}}}],"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]}},"event":[{"listen":"prerequest","script":{"id":"33e980f3-bf2d-41c9-a92a-34e4c0489b4d","type":"text/javascript","packages":{},"requests":{},"exec":[""]}},{"listen":"test","script":{"id":"af1c4322-f557-4037-a9fc-ac75de6d0f90","type":"text/javascript","packages":{},"requests":{},"exec":[""]}}],"variable":[{"key":"base_url","value":""},{"key":"accessToken","value":""},{"key":"accessToken1","value":""},{"key":"tenant1Id","value":""},{"key":"tenant2Id","value":""},{"key":"accessToken2","value":""}]}