List the medicine catalogue
Any signed in user. Returns a page of the catalogue with a live stock quantity on every row. Search, category, and form narrow the rows, and low_stock keeps rows at or below threshold.
GET
/api/v1/medicinesAuthorization
AuthorizationBearer token (JWT) · headerrequiredJWT from POST /api/v1/auth/login sent as Authorization Bearer.
Query parameters
searchstringFree text matched against name, barcode, generic name, strength, and form.
categorystringRestrict to one category slug.
formstringRestrict to one dose form, or all for every form.
low_stockbooleanKeep only rows at or below their low stock threshold. Matched as the literal true.
is_activestringtrue, false, or all. Defaults to true.
branch_idstringSum stock for one branch. An empty value sums the whole organisation.
pageintegerOne based page number. Defaults to 1.
page_sizeintegerRows per page, capped at 200. Defaults to 20.
Responses
200
A page of medicines
totalintegerrequiredmin -9007199254740991 · max 9007199254740991
pageintegerrequiredmin -9007199254740991 · max 9007199254740991
page_sizeintegerrequiredmin -9007199254740991 · max 9007199254740991
itemsobject[]requiredShow propertiesHide properties
Array of
objectidstringrequirednamestringrequiredgeneric_namestringrequiredbarcodestringrequiredcategorystringrequiredformstringrequiredstrengthstringrequiredunitstringrequiredselling_pricestringrequiredmax_public_pricestringrequiredstock_quantityintegerrequiredmin -9007199254740991 · max 9007199254740991
low_stock_thresholdintegerrequiredmin -9007199254740991 · max 9007199254740991
requires_prescriptionbooleanrequiredis_controlledbooleanrequiredvat_categorystringrequiredrequires_cold_chainbooleanrequiredsfda_registration_nostringrequiredimage_keystringrequiredimage_urlstringrequiredis_activebooleanrequiredcreated_atstringrequiredupdated_atstringrequired401
Not authenticated
detailstringrequired