Skip to content
PharmaFlow Knowledgebase
Esc
↑↓navigate↵open⌘Jpreview
On this page

PharmaFlow API

The PharmaFlow point of sale, inventory, and operations API. Paths are absolute: feature routes live under /api/v1, and /health stays on the root so a liveness probe never tracks the API version. The local default base URL is http://localhost:8000. Authentication is a Bearer JWT from POST /api/v1/auth/login unless an operation is marked public. Roles are admin and pharmacist in the seed data, and admin bypasses every role check.

Version 0.1.0
Base URLhttp://localhost:8000

Health

Service and database smoke checks.

Auth

Login, current user, and password change.

Users

User records, roles, and password resets.

Branches

Pharmacy branches and their lifecycle.

Currency

Currency registry, branch currency, and exchange rates.

Categories

Medicine categories used to group the catalogue.

Medicines

The medicine catalogue, batch stock, and the controlled registry.

Suppliers

Supplier records and contact details.

Sessions

Cash sessions, breaks, tender declarations, and Z-reports.

Sales

Sale creation, listing, and invoice allocation.

Returns

Sale returns, restocking, and credit notes.

Parked

Parked carts and their recall or void lifecycle.

Coupons

Coupon validation and administration.

Prescriptions

Prescriptions and their dispense or cancel flow.

Purchases

Batch receipts, expiring stock, and the movement ledger.

Transfers

Stock transfers between branches.

Stockcount

Stock count sheets and variance submission.

Customers

Customer records, credit limits, and the ledger.

Dashboard

Summary metrics and branch comparison.

Alerts

Low stock, expiring, and expired alerts.

Audit

The append-only audit trail.

PurchaseOrders

Purchase orders from draft through received.

Reports

Inventory, purchase, sales, pharmacist, and VAT reports.

Sync

Device registration, push, pull, and snapshots.

Settings

Organisation settings, including the tax policy.

Printing

Printers, receipt templates, and print jobs.

Ops

Changelog entries and manager approvals.

Dispensing

Will-call pickup, generic search, and refill reminders.

SupplierFinance

Supplier invoices, payments, reorder suggestions, and quarantine.

Compliance

Statutory books, the EFRIS preview, and devices.

Marketing

Public marketing contact and enquiry endpoints.

Images

Presigned uploads for medicine photos and branding.