Report on the medicine inventory
Admin, branch manager, or auditor. Returns totals, value, categories, and a low stock list. A branch_id scopes every figure to that branch; without one the org-wide stock is reported.
GET
/api/v1/reports/inventoryAuthorization
AuthorizationBearer token (JWT) · headerrequiredJWT from POST /api/v1/auth/login sent as Authorization Bearer.
Query parameters
branch_idstringScope the report to one branch. Empty reports every branch together.
Responses
200
The inventory report
total_medicinesintegerrequiredmin -9007199254740991 · max 9007199254740991
low_stock_countintegerrequiredmin -9007199254740991 · max 9007199254740991
inventory_valuestringrequiredby_categoryobject[]requiredShow propertiesHide properties
Array of
objectcategorystringrequiredmedicine_countintegerrequiredmin -9007199254740991 · max 9007199254740991
total_unitsintegerrequiredmin -9007199254740991 · max 9007199254740991
total_valuestringrequiredlow_stock_listobject[]requiredShow propertiesHide properties
Array of
objectidstringrequirednamestringrequiredcategorystringrequiredstock_quantityintegerrequiredmin -9007199254740991 · max 9007199254740991
low_stock_thresholdintegerrequiredmin -9007199254740991 · max 9007199254740991
selling_pricestringrequired401
Not authenticated
detailstringrequired403
Caller is not an admin, branch manager, or auditor
detailstringrequired