{ "info": { "name": "Pharmacy Core API", "description": "API collection for Pharmacy Core API", "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" }, "variable": [ { "key": "baseUrl", "value": "http://localhost:8080", "type": "string" }, { "key": "token", "value": "", "type": "string" } ], "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{token}}", "type": "string" } ] }, "item": [ { "name": "Auth / Identity", "item": [ { "name": "Get Current User", "request": { "method": "GET", "header": [], "url": { "raw": "{{baseUrl}}/v1/auth/me", "host": [ "{{baseUrl}}" ], "path": [ "v1", "auth", "me" ] } } }, { "name": "Update Current User", "request": { "method": "PUT", "header": [], "url": { "raw": "{{baseUrl}}/v1/auth/me", "host": [ "{{baseUrl}}" ], "path": [ "v1", "auth", "me" ] }, "body": { "mode": "raw", "raw": "{}", "options": { "raw": { "language": "json" } } } } }, { "name": "Register", "request": { "method": "POST", "header": [], "url": { "raw": "{{baseUrl}}/v1/auth/register", "host": [ "{{baseUrl}}" ], "path": [ "v1", "auth", "register" ] }, "body": { "mode": "raw", "raw": "{}", "options": { "raw": { "language": "json" } } } } }, { "name": "Login", "request": { "method": "POST", "header": [], "url": { "raw": "{{baseUrl}}/v1/auth/login", "host": [ "{{baseUrl}}" ], "path": [ "v1", "auth", "login" ] }, "body": { "mode": "raw", "raw": "{}", "options": { "raw": { "language": "json" } } } } }, { "name": "Logout", "request": { "method": "POST", "header": [], "url": { "raw": "{{baseUrl}}/v1/auth/logout", "host": [ "{{baseUrl}}" ], "path": [ "v1", "auth", "logout" ] }, "body": { "mode": "raw", "raw": "{}", "options": { "raw": { "language": "json" } } } } }, { "name": "Refresh Token", "request": { "method": "POST", "header": [], "url": { "raw": "{{baseUrl}}/v1/auth/token", "host": [ "{{baseUrl}}" ], "path": [ "v1", "auth", "token" ] }, "body": { "mode": "raw", "raw": "{}", "options": { "raw": { "language": "json" } } } } } ] }, { "name": "Catalogue", "item": [ { "name": "Get Drugs", "request": { "method": "GET", "header": [], "url": { "raw": "{{baseUrl}}/v1/drugs", "host": [ "{{baseUrl}}" ], "path": [ "v1", "drugs" ] } } }, { "name": "Create Drug", "request": { "method": "POST", "header": [], "url": { "raw": "{{baseUrl}}/v1/drugs", "host": [ "{{baseUrl}}" ], "path": [ "v1", "drugs" ] }, "body": { "mode": "raw", "raw": "{}", "options": { "raw": { "language": "json" } } } } }, { "name": "Search Drugs", "request": { "method": "GET", "header": [], "url": { "raw": "{{baseUrl}}/v1/drugs/search", "host": [ "{{baseUrl}}" ], "path": [ "v1", "drugs", "search" ] } } }, { "name": "Get Product Batches", "request": { "method": "GET", "header": [], "url": { "raw": "{{baseUrl}}/v1/products/:product_id/batches", "host": [ "{{baseUrl}}" ], "path": [ "v1", "products", ":product_id", "batches" ] } } } ] }, { "name": "Inventory", "item": [ { "name": "Create GRN", "request": { "method": "POST", "header": [], "url": { "raw": "{{baseUrl}}/v1/inventory/grn", "host": [ "{{baseUrl}}" ], "path": [ "v1", "inventory", "grn" ] }, "body": { "mode": "raw", "raw": "{}", "options": { "raw": { "language": "json" } } } } }, { "name": "Get Expiring Stock", "request": { "method": "GET", "header": [], "url": { "raw": "{{baseUrl}}/v1/inventory/expiring", "host": [ "{{baseUrl}}" ], "path": [ "v1", "inventory", "expiring" ] } } }, { "name": "Get Low Stock", "request": { "method": "GET", "header": [], "url": { "raw": "{{baseUrl}}/v1/inventory/low-stock", "host": [ "{{baseUrl}}" ], "path": [ "v1", "inventory", "low-stock" ] } } }, { "name": "Stock Adjustment", "request": { "method": "POST", "header": [], "url": { "raw": "{{baseUrl}}/v1/inventory/adjustments", "host": [ "{{baseUrl}}" ], "path": [ "v1", "inventory", "adjustments" ] }, "body": { "mode": "raw", "raw": "{}", "options": { "raw": { "language": "json" } } } } }, { "name": "Recall Batch", "request": { "method": "GET", "header": [], "url": { "raw": "{{baseUrl}}/v1/inventory/recall/:batch_no", "host": [ "{{baseUrl}}" ], "path": [ "v1", "inventory", "recall", ":batch_no" ] } } } ] }, { "name": "Dispensing (Orders)", "item": [ { "name": "Get Order History", "request": { "method": "GET", "header": [], "url": { "raw": "{{baseUrl}}/v1/orders/history", "host": [ "{{baseUrl}}" ], "path": [ "v1", "orders", "history" ] } } }, { "name": "Get H1 Register", "request": { "method": "GET", "header": [], "url": { "raw": "{{baseUrl}}/v1/orders/h1-register", "host": [ "{{baseUrl}}" ], "path": [ "v1", "orders", "h1-register" ] } } }, { "name": "Get Invoice PDF", "request": { "method": "GET", "header": [], "url": { "raw": "{{baseUrl}}/v1/orders/:id/invoice/pdf", "host": [ "{{baseUrl}}" ], "path": [ "v1", "orders", ":id", "invoice", "pdf" ] } } }, { "name": "Create Order", "request": { "method": "POST", "header": [], "url": { "raw": "{{baseUrl}}/v1/orders", "host": [ "{{baseUrl}}" ], "path": [ "v1", "orders" ] }, "body": { "mode": "raw", "raw": "{}", "options": { "raw": { "language": "json" } } } } }, { "name": "Update Order Items", "request": { "method": "PATCH", "header": [], "url": { "raw": "{{baseUrl}}/v1/orders/:id/items", "host": [ "{{baseUrl}}" ], "path": [ "v1", "orders", ":id", "items" ] }, "body": { "mode": "raw", "raw": "{}", "options": { "raw": { "language": "json" } } } } }, { "name": "Precheck Order", "request": { "method": "POST", "header": [], "url": { "raw": "{{baseUrl}}/v1/orders/:id/precheck", "host": [ "{{baseUrl}}" ], "path": [ "v1", "orders", ":id", "precheck" ] }, "body": { "mode": "raw", "raw": "{}", "options": { "raw": { "language": "json" } } } } }, { "name": "Dispense Order", "request": { "method": "POST", "header": [], "url": { "raw": "{{baseUrl}}/v1/orders/:id/dispense", "host": [ "{{baseUrl}}" ], "path": [ "v1", "orders", ":id", "dispense" ] }, "body": { "mode": "raw", "raw": "{}", "options": { "raw": { "language": "json" } } } } } ] }, { "name": "Audit", "item": [ { "name": "Get AI Calls", "request": { "method": "GET", "header": [], "url": { "raw": "{{baseUrl}}/v1/audit/ai-calls", "host": [ "{{baseUrl}}" ], "path": [ "v1", "audit", "ai-calls" ] } } }, { "name": "Get Overrides", "request": { "method": "GET", "header": [], "url": { "raw": "{{baseUrl}}/v1/audit/overrides", "host": [ "{{baseUrl}}" ], "path": [ "v1", "audit", "overrides" ] } } }, { "name": "Get H1 Register Audit", "request": { "method": "GET", "header": [], "url": { "raw": "{{baseUrl}}/v1/audit/h1-register", "host": [ "{{baseUrl}}" ], "path": [ "v1", "audit", "h1-register" ] } } }, { "name": "Get Sales Register", "request": { "method": "GET", "header": [], "url": { "raw": "{{baseUrl}}/v1/audit/sales-register", "host": [ "{{baseUrl}}" ], "path": [ "v1", "audit", "sales-register" ] } } }, { "name": "Get Dashboard Metrics", "request": { "method": "GET", "header": [], "url": { "raw": "{{baseUrl}}/v1/audit/dashboard-metrics", "host": [ "{{baseUrl}}" ], "path": [ "v1", "audit", "dashboard-metrics" ] } } } ] }, { "name": "Prescription", "item": [ { "name": "Upload Prescription", "request": { "method": "POST", "header": [], "url": { "raw": "{{baseUrl}}/v1/rx", "host": [ "{{baseUrl}}" ], "path": [ "v1", "rx" ] }, "body": { "mode": "raw", "raw": "{}", "options": { "raw": { "language": "json" } } } } }, { "name": "Get Prescriptions", "request": { "method": "GET", "header": [], "url": { "raw": "{{baseUrl}}/v1/rx", "host": [ "{{baseUrl}}" ], "path": [ "v1", "rx" ] } } }, { "name": "Get Prescription by ID", "request": { "method": "GET", "header": [], "url": { "raw": "{{baseUrl}}/v1/rx/:id", "host": [ "{{baseUrl}}" ], "path": [ "v1", "rx", ":id" ] } } }, { "name": "Confirm Prescription", "request": { "method": "POST", "header": [], "url": { "raw": "{{baseUrl}}/v1/rx/:id/confirm", "host": [ "{{baseUrl}}" ], "path": [ "v1", "rx", ":id", "confirm" ] }, "body": { "mode": "raw", "raw": "{}", "options": { "raw": { "language": "json" } } } } } ] }, { "name": "AI", "item": [ { "name": "Voice AI", "request": { "method": "POST", "header": [], "url": { "raw": "{{baseUrl}}/v1/ai/voice", "host": [ "{{baseUrl}}" ], "path": [ "v1", "ai", "voice" ] }, "body": { "mode": "raw", "raw": "{}", "options": { "raw": { "language": "json" } } } } } ] }, { "name": "Integration", "item": [ { "name": "Sync Hospital Patient", "request": { "method": "POST", "header": [], "url": { "raw": "{{baseUrl}}/v1/integration/hospital/patient-sync", "host": [ "{{baseUrl}}" ], "path": [ "v1", "integration", "hospital", "patient-sync" ] }, "body": { "mode": "raw", "raw": "{}", "options": { "raw": { "language": "json" } } } } }, { "name": "Get Hospital Patients", "request": { "method": "GET", "header": [], "url": { "raw": "{{baseUrl}}/v1/integration/hospital/patients", "host": [ "{{baseUrl}}" ], "path": [ "v1", "integration", "hospital", "patients" ] } } }, { "name": "Receive Telegaruda Rx", "request": { "method": "POST", "header": [], "url": { "raw": "{{baseUrl}}/v1/integration/telegaruda/prescription", "host": [ "{{baseUrl}}" ], "path": [ "v1", "integration", "telegaruda", "prescription" ] }, "body": { "mode": "raw", "raw": "{}", "options": { "raw": { "language": "json" } } } } }, { "name": "Fetch Telegaruda Patient", "request": { "method": "GET", "header": [], "url": { "raw": "{{baseUrl}}/v1/integration/telegaruda/patient/:patientId", "host": [ "{{baseUrl}}" ], "path": [ "v1", "integration", "telegaruda", "patient", ":patientId" ] } } }, { "name": "Get Hospital Prescriptions", "request": { "method": "GET", "header": [], "url": { "raw": "{{baseUrl}}/v1/integration/hospital/prescriptions", "host": [ "{{baseUrl}}" ], "path": [ "v1", "integration", "hospital", "prescriptions" ] } } } ] }, { "name": "Upload", "item": [ { "name": "Upload File", "request": { "method": "POST", "header": [], "url": { "raw": "{{baseUrl}}/v1/upload", "host": [ "{{baseUrl}}" ], "path": [ "v1", "upload" ] }, "body": { "mode": "raw", "raw": "{}", "options": { "raw": { "language": "json" } } } } }, { "name": "Get Presigned URL", "request": { "method": "GET", "header": [], "url": { "raw": "{{baseUrl}}/v1/upload/presigned", "host": [ "{{baseUrl}}" ], "path": [ "v1", "upload", "presigned" ] } } } ] } ] }